Skip to content

codeclimate/codeclimate-pmd

Repository files navigation

Code Climate PMD Engine

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.

Installation

  1. If you haven't already, install the Code Climate CLI.
  2. Run codeclimate engines:enable pmd. This command both installs the engine and enables it in your .codeclimate.yml file.
  3. You're ready to analyze! Browse into your project's folder and run codeclimate analyze.
  4. To add you custom PMD rules, open .codeclimate.yml and add a config entry pointing to your ruleset.xml file:
engines:
  pmd:
    enabled: true
    config: ruleset.xml

Need help?

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.