-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
48 lines (45 loc) · 1.77 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<ruleset name="New EBODAC ruleset"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0
https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>New EBODAC ruleset</description>
<rule ref="category/java/bestpractices.xml" >
<exclude name="AbstractClassWithoutAbstractMethod" />
<exclude name="GuardLogStatement" />
</rule>
<rule ref="category/java/codestyle.xml" >
<exclude name="AtLeastOneConstructor" />
<exclude name="BooleanGetMethodName" />
<exclude name="CommentDefaultAccessModifier" />
<exclude name="LocalVariableCouldBeFinal" />
<exclude name="LongVariable" />
<exclude name="MethodArgumentCouldBeFinal" />
<exclude name="OnlyOneReturn" />
<exclude name="ShortClassName" />
<exclude name="ShortVariable" />
<exclude name="TooManyStaticImports" />
<exclude name="UseUnderscoresInNumericLiterals" />
<exclude name="CallSuperInConstructor" />
</rule>
<rule ref="category/java/design.xml" >
<exclude name="AbstractClassWithoutAnyMethod" />
<exclude name="AvoidCatchingGenericException" />
<exclude name="UseUtilityClass" />
<exclude name="LawOfDemeter" />
</rule>
<rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition">
<properties>
<property name="ignoreMagicNumbers" value="-1,0,1,2" />
</properties>
</rule>
<rule ref="category/java/errorprone.xml" >
<exclude name="BeanMembersShouldSerialize" />
<exclude name="DataflowAnomalyAnalysis" />
<exclude name="AvoidDecimalLiteralsInBigDecimalConstructor" />
</rule>
<rule ref="category/java/performance.xml" >
<exclude name="SimplifyStartsWith" />
</rule>
</ruleset>