I want to know if there is a way to run all PMD rulesets from command line.
I've used PMD integrated with Eclipse IDE and Maven. But now I need to run it from CLI. I've checked this page http://pmd.sourceforge.net/pmd-5.1.0/running.html and it says you can run it from CLI, but with specified rulesets:
C:\tmp\pmd-bin-5.1.0\pmd\bin>pmd -d c:\data\pmd\pmd\test-data\Unused1.java -f xml -R rulesets/java/unusedcode.xml
In that example, you just get results for Java unused code rule and I'm trying to achieve something like:
C:\tmp\pmd-bin-5.1.0\pmd\bin>pmd -d c:\data\pmd\pmd\test-data\Unused1.java -f xml -R rulesets/java/*.xml
and get results for all rules in Java rulesets.