Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (77 sloc) 2.74 KB
<?xml version="1.0"?>
<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">
<description>
Avalax default ruleset
</description>
<rule ref="category/java/bestpractices.xml" />
<rule ref="category/java/codestyle.xml">
<exclude name="AtLeastOneConstructor" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="AbstractNaming" />
<exclude name="OnlyOneReturn" />
<exclude name="CommentDefaultAccessModifier" />
<exclude name="DefaultPackage" />
</rule>
<rule ref="category/java/design.xml">
<exclude name="LawOfDemeter" />
<exclude name="LoosePackageCoupling" />
<exclude name="ImmutableField" />
<exclude name="DataClass" />
<exclude name="UseUtilityClass" />
</rule>
<rule ref="category/java/errorprone.xml">
<exclude name="BeanMembersShouldSerialize" />
<exclude name="MissingSerialVersionUID" />
<exclude name="DataflowAnomalyAnalysis" />
</rule>
<rule ref="category/java/multithreading.xml" />
<rule ref="category/java/performance.xml">
<exclude name="AvoidInstantiatingObjectsInLoops" />
<exclude name="AvoidFileStream" />
</rule>
<rule ref="category/java/codestyle.xml/ShortClassName">
<properties>
<property name="minimum">
<value>2</value>
</property>
</properties>
</rule>
<rule ref="category/java/codestyle.xml/ShortVariable">
<properties>
<property name="minimum">
<value>2</value>
</property>
</properties>
</rule>
<rule ref="category/java/design.xml/NcssCount">
<properties>
<property name="methodReportLevel">
<value>30</value>
</property>
</properties>
</rule>
<rule ref="category/java/codestyle.xml/LongVariable">
<properties>
<property name="minimum">
<value>30</value>
</property>
</properties>
</rule>
<rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition">
<properties>
<property name="ignoreMagicNumbers">
<value>-1,0,1</value>
</property>
</properties>
</rule>
<rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals">
<properties>
<property name="maxDuplicateLiterals">
<value>6</value>
</property>
</properties>
</rule>
</ruleset>