Interview: PMD Code Analyzer for NetBeans IDE
Join the DZone community and get the full member experience.
Join For Free
he's also the author of easypmd , a netbeans plugin that can be downloaded here:
http://plugins.netbeans.org/plugin/52534/easypmd-4
hi gianluca. what is easypmd?
easypmd is a plugin that integrates the pmd code analyzer into netbeans ide.
in other words, it scans source files for violations of style rules that the developer has chosen to apply and reports the results both in the action items window and in the code editor itself, so as to provide complete and updated monitoring.

(click the image above to enlarge it.)
how is easypmd different to findbugs and other similar tools?
easypmd enables developers to employ pmd within netbeans ide, which means that, for example, acquired knowledge such as custom rules and rule sets created for pmd in other contexts, such as ant and maven, can be easily reused in the visual environment of the ide.
furthermore, anyone interested in pmd can quickly try it out in netbeans ide using easypmd.
that said, the choice of tools mainly depends on the developer's personal preferences and on their business requirements.
can you name some specific easypmd features that you are especially happy or proud of?
apart from the basic idea around which easypmd revolves, that is, the centralized reporting of pmd violations and the glyphs shown next to code editor lines causing such violations, i'd say that my favourite features are:
- visual customization of rulesets and of the related classpath. easypmd enables you to add rulesets by letting you choose among the predefined ones provided by pmd, as well as to add your own rulesets. in this case, the management of the required classpath is greatly simplified by the visual user interface.
- regex-based scanning. one can tell easypmd which files to include into or exclude from scanning, on the basis of regular expressions. a predefined set of regexes, covering the most common cases, is provided, both as examples and to simplify the task.
- profiles. developers can create as many profiles as they want, and every profile contains a fully-customized set of all the plugin options that can be changed just by switching to another profile.
-
flexibility.
easypmd's options let you configure both the underlying pmd engine and the plugin itself, for example, how violations are reported.
- speed and reliability. easypmd is fast, as it's based on a 2-level cache (both in memory and on disk), and it's becoming more and more robust, release after release.
easypmd should appear in the available plugins list in the netbeans plugin manager in netbeans ide 7.4.

furthermore, i have published a getting started tutorial, currently in english and french , to explain in detail how to install easypmd and how to get started with it.
http://gianlucacosta.info/software/easypmd/?tab=tabs-videos
the videos above are shown in the videos section of easypmd's home page.
finally, for those wishing to employ custom rulesets, i have updated the article " writing custom rulesets for easypmd ", which explains how to create a new ruleset and how to plug it into easypmd 4.
PMD (software)
NetBeans
Integrated development environment
Interview (journalism)
Opinions expressed by DZone contributors are their own.
Comments