Skip to content

A phpmd ruleset file which is compatible with CakePHP

License

Notifications You must be signed in to change notification settings

davidyell/phpmd-cakephp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PHP Mess Detector for CakePHP 3

A php mess detector ruleset file which is more compatible with CakePHP 3

Mess Detector?

The Mess Detector project aims to automatically find problems with your code, and highlight them to improve code quality.

Find out more at https://phpmd.org or github.com/phpmd/phpmd

Installation

  • Copy the phpmd.xml file into your project root.
  • Install phpmd composer require --dev phpmd/phpmd or globally with composer global require phpmd/phpmd

Check your code on the command line

phpmd src/ text phpmd.xml --suffixes=php

Run with Composer

"scripts": {
    "mess": "phpmd src/ text phpmd.xml --suffixes=php"
}
composer mess

Run as inspection in PHP Storm

In your settings, under Languages & Frameworks > PHP > Mess Detector set your 'Development environment' configuration to point to the correct executable, either in your projects 'vendor' folder, or you global folder.

Then in your settings, under Editor > Inspections > PHP add the phpmd.xml file to the Custom rulesets options.

There is an official guide also

About

A phpmd ruleset file which is compatible with CakePHP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published