The homepage of PMD can be found at pmd.github.io. PMD inspects Java source for common programming flaws, from unused variables to overly complex methods.
Within fawkeZ, PMD is one of the tools that feed the JcReport findings report. Its XML output is normalised before it is merged with the output of the other tools.
Updating PMD within fawkeZ
- Update the PMD version in
config/ivy.xml. - Add the new finders in
config/jcoderz-pmd.xml. - If the report schema of PMD changed, adopt
src/xml/schema/pmd.xsdand possibly the normaliser code. - If the rule set schema changed, adopt
src/xml/schema/pmd-ruleset.xsdand possibly the normaliser code.
The rule set definition itself is read from the PMD distribution, so that part is updated automatically when the version changes.
The summary report records the effect of the upgrade on the finding count over time.