pmd.cpd.ignore.literals |
if true, CPD ignores literal value differences when evaluating a duplicate block. This means that foo=42; and foo=43; will be seen as equivalent. You may want to run PMD with this option off to start with and then switch it on to see what it turns up. |
false |
false |
pmd.cpd.ignore.annotations |
Ignore annotations. More and more modern frameworks use annotations on classes and methods, which can be very redundant and trigger CPD matches. With J2EE (CDI, Transaction Handling, etc) and Spring (everything) annotations become very redundant. Often classes or methods have the same 5-6 lines of annotations. This causes false positives. |
false |
false |
pmd.minimum.priority |
The rule priority threshold; rules with lower priority than they will not be used |
false |
5 |
pmd.failonerror |
Whether or not to fail the build if any errors occur while processing the files |
false |
true |
pmd.main.sources.includes |
Pattern describing files included in pmd checks |
false |
**/*.java |
pmd.cpd.format |
The format of the report (e.g. csv, text, xml). |
false |
xml |
pmd.cpd.ignore.identifiers |
Similar to ignoreLiterals but for identifiers; i.e., variable names, methods names, and so forth. |
false |
false |
pmd.cpd.language |
Flag to select the appropriate language (e.g. cpp, cs, java, php, ruby, and ecmascript). |
false |
java |
pmd.rulesetfiles |
A comma delimited list of ruleset files ('rulesets/basic.xml,rulesets/design.xml'). If you write your own ruleset files, you can put them on the classpath and plug them in here. |
false |
rulesets/java/basic.xml,rulesets/java/imports.xml,java-unusedcode |
pmd.report.outputfile |
|
false |
${target.reports}/pmd.xml |
pmd.encoding |
The character set encoding (e.g. UTF-8) to use when reading the source code files |
false |
UTF-8 |
pmd.cpd.report.outputfile |
The destination file for the report. If not specified the console will be used instead. |
false |
${target.reports}/cpd.${pmd.cpd.format} |
pmd.main.sources.excludes |
Pattern describing files included in pmd checks |
false |
|
target.reports |
base directory for reports |
false |
${target}/reports |
pmd.max.rule.violations |
Whether or not to fail the build if PMD finds more than the value of this attribute. Note that setting this attribute to '-1' will never fail the build on rule violation |
false |
-1 |
pmd.cpd.minimum.token.count |
A positive integer indicating the minimum duplicate size. |
false |
100 |
pmd.main.sources |
directory where pmd rules will be checked |
false |
${basedir}/src/main/java |