Code Climate PHP Mess Detector (PHPMD) Engine
codeclimate-phpmd is a Code Climate Engine that wraps the PHP Mess Detector (PHPMD) static analysis tool.
Installation
- If you haven't already, install the Code Climate CLI.
- Run
codeclimate engines:enable phpmd. This command both installs the engine and enables it in your.codeclimate.ymlfile. - You're ready to analyze! Browse into your project's folder and run
codeclimate analyze.
Config Options
Format the values for these config options per the PHPMD documentation.
- file_extensions - This is where you can configure the file extensions for the files that you want PHPMD to analyze.
- rulesets - This is the list of rulesets that you want PHPMD to use while analyzing your files.
Sample Config
exclude_paths:
- "/examples/**/*"
engines:
phpmd:
enabled: true
config:
file_extensions: "php"
rulesets: "unusedcode,codesize,naming,optional_relative_path_to_custom_ruleset.xml"
ratings:
paths:
- "**.php"
Need help?
For help with PHPMD, check out their documentation.
If you're running into a Code Climate issue, first look over this project's GitHub Issues, as your question may have already been covered. If not, go ahead and open a support ticket with us.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
