-
Notifications
You must be signed in to change notification settings - Fork 19
Add or improve existing PMD rules
David Renz edited this page May 30, 2016
·
34 revisions
If you want to add rules that work similarly to the ones we already have you will have to extend PMD itself. Those are the steps you need to do:
- Setup development environment
- Add a new rule for Apex PMD
- Build PMD and test your new rule
- Commit and Pull Request the new rule
- Install Maven (
brew install mavenif you are using Homebrew) - To build PMD navigate to the root directory of PMD and execute
mvn clean package
- After building PMD navigate to
/pmd/pmd-dist/targetand unzippmd-bin-5.5.0-SNAPSHOT.zip - Run PMD
pmd-bin-5.5.0-SNAPSHOT/bin/run.sh pmd -d /files/to/analyse -f text -R apex-ruleset





