PMD command running multiple rules at once from Shell

600 Views Asked by At

I'm trying out PMD on some Java source code. I understand from the Terminal window on my Mac (Unix shell), the syntax is like so: pmd.sh html|xml|text|vbhtml rulesetfile1[,rulesetfile2[,..]] But the question is, what are the names rulesetfile1, 2 ... n... I mean I've seen this list on the website: http://pmd.sourceforge.net/rules/index.html But how does this correlate to the comma separated list I can supply from running the shell command? Can someone point me to a cross-reference so I can correlate the two? Cheers.

1

There are 1 best solutions below

1
On

This should be available in the ruleset folder of pmd installation. Here is the link to the folder in PMD's source repository.