Hmm, I really need to come up with a new naming scheme for my blog posts.
Knut Anders and Trond have been fixing FindBugs and CheckStyle warnings like crazy, and now there are just 3 FindBugs warnings and 22 CheckStyle warnings left. Clearly something had to be done!
Enter PMD:
[echo] PMD finished, found 1103 warnings.
If you want to run PMD on your OpenGrok, you can enable it like this:
cd ~/.ant/lib
unzip ~/Desktop/pmd-bin-4.2.2.zip
ln -s pmd-4.2.2/ pmd
You also have to make links to the jar files:
cd ~/.ant/lib/pmd/lib
ln -s pmd-4.2.2.jar pmd.jar
ln -s jaxen-1.1.1.jar jaxen.jar
To run PMD on the source code, just run ant pmd:
ant pmd
See the OpenGrok README.txt for more details.
(And if Knut Anders and Trond fix those 1103 warnings I can always enable the optimizations ruleset to get 1815 more warnings
)

