Skip to content

Build PMD and test your new rule

David Renz edited this page Jun 9, 2016 · 13 revisions
  1. Install Maven (brew install maven if you are using Homebrew) in order to execute mvn commands in your CLI.

  2. To build PMD navigate with your CLI to the root directory of PMD and execute mvn clean package.

  3. After building PMD navigate to /pmd/pmd-dist/target and unzip pmd-bin-*.*.*-SNAPSHOT.zip.

  4. Run PMD pmd-bin-*.*.*-SNAPSHOT/bin/run.sh pmd -d /files/to/analyse -f text -R apex-ruleset. More inforamtion about running PMD via command line you can finde here.

Clone this wiki locally