Permalink
Browse files

pmd 6.0.0

  • Loading branch information...
avalax committed Jan 9, 2018
1 parent 2afac0c commit 070a8946812e3334b39efadb1d81adf4e7bd3285
Showing with 31 additions and 33 deletions.
  1. +1 −1 build.gradle
  2. +30 −32 pmd.xml
View
@@ -200,7 +200,7 @@ task wrapper(type: Wrapper) {
apply plugin: 'pmd'
pmd{
toolVersion="5.8.1"
toolVersion="6.0.0"
}
task pmd(type: Pmd) {
View
62 pmd.xml
@@ -1,46 +1,44 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Java Application Rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd">
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Custom ruleset"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
<rule ref="rulesets/java/basic.xml" />
<rule ref="rulesets/java/braces.xml"/>
<description>
Avalax default ruleset
</description>
<rule ref="rulesets/java/basic.xml" />
<rule ref="rulesets/java/braces.xml" />
<rule ref="rulesets/java/clone.xml" />
<rule ref="rulesets/java/codesize.xml" />
<rule ref="rulesets/java/coupling.xml" >
<exclude name="LawOfDemeter"/>
<exclude name="LoosePackageCoupling"/>
</rule>
<rule ref="rulesets/java/design.xml" >
<exclude name="ImmutableField"/>
<exclude name="UseUtilityClass"/>
<exclude name="AbstractClassWithoutAnyMethod"/>
</rule>
<rule ref="rulesets/java/empty.xml" />
<rule ref="rulesets/java/codesize.xml" />
<rule ref="rulesets/java/coupling.xml">
<exclude name="LawOfDemeter" />
<exclude name="LoosePackageCoupling" />
</rule>
<rule ref="rulesets/java/design.xml">
<exclude name="ImmutableField" />
<exclude name="UseUtilityClass" />
<exclude name="AbstractClassWithoutAnyMethod" />
</rule>
<rule ref="rulesets/java/empty.xml" />
<rule ref="rulesets/java/finalizers.xml" />
<rule ref="rulesets/java/imports.xml">
<exclude name="TooManyStaticImports" />
</rule>
<rule ref="rulesets/java/logging-java.xml">
<exclude name="GuardLogStatementJavaUtil" />
</rule>
<rule ref="rulesets/java/logging-java.xml" />
<rule ref="rulesets/java/strings.xml" />
<rule ref="rulesets/java/naming.xml">
<exclude name="AbstractNaming" />
<exclude name="LongVariable" />
<exclude name="ShortVariable"/>
<exclude name="ShortClassName"/>
<exclude name="ShortMethodName"/>
<exclude name="VariableNamingConventions" />
<exclude name="ShortVariable" />
<exclude name="ShortClassName" />
<exclude name="ShortMethodName" />
<exclude name="VariableNamingConventions" />
</rule>
<rule ref="rulesets/java/strictexception.xml" />
<rule ref="rulesets/java/sunsecure.xml" />
<rule ref="rulesets/java/typeresolution.xml" />
<rule ref="rulesets/java/unnecessary.xml" />
<rule ref="rulesets/java/unusedcode.xml" />
<description>
Avalax default ruleset
</description>
<rule ref="rulesets/java/strictexception.xml" />
<rule ref="rulesets/java/sunsecure.xml" />
<rule ref="rulesets/java/typeresolution.xml" />
<rule ref="rulesets/java/unnecessary.xml" />
<rule ref="rulesets/java/unusedcode.xml" />
</ruleset>

0 comments on commit 070a894

Please sign in to comment.