1 package net.sf.mavenhist.extractor.pmd;
2
3 /**
4 * Extracts the number of PMD violations.
5 */
6 public class PMDViolationsExtractor extends AbstractPMDExtractor {
7
8 /**
9 * {@inheritDoc}
10 */
11 protected String getXPath(String version) {
12 return "count(pmd/file/violation)";
13 }
14
15 /**
16 * {@inheritDoc}
17 */
18 public String getName() {
19 return "pmdviolations";
20 }
21 }