codeclimate-pmd
is a Code Climate engine that wraps the PMD static analysis tool. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
- If you haven't already, install the Code Climate CLI.
- Run
codeclimate engines:enable pmd
. This command both installs the engine and enables it in your.codeclimate.yml
file. - You're ready to analyze! Browse into your project's folder and run
codeclimate analyze
. - To add you custom PMD rules, open
.codeclimate.yml
and add aconfig
entry pointing to yourruleset.xml
file:
engines:
pmd:
enabled: true
config: ruleset.xml
For help with PMD, check out their documentation.
If you're running into a Code Climate issue, first check out our PMD engine docs and 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.