codeclimate-phpmd
is a Code Climate Engine that wraps the PHP Mess Detector (PHPMD) static analysis tool.
codeclimate engines:enable phpmd
. This command both installs the engine and enables it in your .codeclimate.yml
file.codeclimate analyze
.Format the values for these config options per the PHPMD documentation.
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"
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.