Skip to content

Instantly share code, notes, and snippets.

@martinusadyh
Created January 9, 2015 17:41
Show Gist options
  • Save martinusadyh/f315b6a39ef8b98d31e5 to your computer and use it in GitHub Desktop.
Save martinusadyh/f315b6a39ef8b98d31e5 to your computer and use it in GitHub Desktop.
Maven PMD Plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.4</version>
<configuration>
<!-- your example configuration here -->
<rulesets>
<ruleset>rulesets/java/coupling.xml</ruleset>
<ruleset>rulesets/java/design.xml</ruleset>
<ruleset>rulesets/java/controversial.xml</ruleset>
<ruleset>rulesets/java/codesize.xml</ruleset>
<ruleset>rulesets/java/clone.xml</ruleset>
<ruleset>rulesets/java/braces.xml</ruleset>
<ruleset>rulesets/java/basic.xml</ruleset>
<ruleset>rulesets/java/finalizers.xml</ruleset>
<ruleset>rulesets/java/imports.xml</ruleset>
<ruleset>rulesets/java/logging-jakarta-commons.xml</ruleset>
<ruleset>rulesets/java/logging-java.xml</ruleset>
<ruleset>rulesets/java/migrating.xml</ruleset>
<ruleset>rulesets/java/optimizations.xml</ruleset>
<ruleset>rulesets/java/strictexception.xml</ruleset>
<ruleset>rulesets/java/strings.xml</ruleset>
<ruleset>rulesets/java/sunsecure.xml</ruleset>
<ruleset>rulesets/java/typeresolution.xml</ruleset>
<ruleset>rulesets/java/unusedcode.xml</ruleset>
</rulesets>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<targetJdk>1.7</targetJdk>
<verbose>true</verbose>
</configuration>
</plugin>
@zygimantus
Copy link

The files rulesets/java/...xml are not required to have here in my project? They are actual rule-sets from server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment