Alambic

PMD Analysis and Configuration

Purpose

PMD is an open-source, well-known and widely used static analysis tool for Java.

This plugin summarises the output of a PMD run, provides hints to better understand and use it, and defines a pragmatic strategy to fix violations in an efficient way. It also provides guidance on how to configure PMD and select rules for a better, more focused analysis. More precisely, this document:

Note on rules: There should be a rules directory where the plugin is, with the definition of the PMD rulesets to be analysed. You can extract them from the PMD jars (e.g. lib/pmd-java-5.2.3/rulesets/java*.xml) to match the version of PMD you are using.

Please note that this plugin only reads the XML configuration and output files of a PMD run. One has to execute it on a regular basis -- ideally in a continuous integration job -- and provide the XML files URLs to the plugin.

Check the plugin Perl documentation in the perldoc section.


Basic information


Provides

Information

Metrics

Figures

pmd_analysis_files_ncc1.svg, pmd_analysis_pie.html, pmd_analysis_top_5_rules.svg, pmd_configuration_rulesets_repartition.svg, pmd_configuration_summary_pie.html, pmd_configuration_violations_rules.svg

Downloads

Recommendations

Visualisation

PMD Analysis, PMD Configuration


Screenshot

pmd_analysis.png