Friday, May 13, 2005

PMD code Analyzer

One cool little tool which i use regularly to scan my Java codes , PMD , the version 3.1 is currently available for download.

What it does is that it first scans your codes and provides a report as to whether there are:

* Empty try/catch/finally/switch blocks
* Unused local variables, parameters and private methods
* Empty if/while statements
* Overcomplicated expressions
* Classes with high Cyclomatic Complexity measurements

PMD can be installed as a plugin for Eclipse , JBuilder , NetBeans and a host of other IDEs.

I have personnally used it with Eclipse and as a task in Ant and plugin report in Maven. It does help to improve quality of codes and is very simple to use and install.

Category:

No comments: