PMD
Information
PMD scans Java source code and looks for potential problems like:
- Empty try/catch/finally/switch blocks
- Unused local variables, parameters and private methods
- Empty if/while statements
- Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
- Classes with high Cyclomatic Complexity measurements
Homepage: http://pmd.sourceforge.net
Example
To use the pmd target, you need to set the properties described in the Common Build Targets document.
The common target will add the directory pmd to the report dir you provided and create a report with the name pmd-report.html.
DeadEd.com
http://www.deaded.com/staticpages/index.php/pmd