-
Notifications
You must be signed in to change notification settings - Fork 6
/
ruleset.xml
56 lines (53 loc) · 2.09 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
49
50
51
52
53
54
55
56
<?xml version="1.0"?>
<ruleset name="MOTS ruleset">
<description>MOTS ruleset</description>
<rule ref="category/java/bestpractices.xml" >
<exclude name="AbstractClassWithoutAbstractMethod" />
<exclude name="GuardLogStatement" />
<exclude name="AvoidReassigningParameters" />
<exclude name="JUnitAssertionsShouldIncludeMessage" />
<exclude name="JUnitTestContainsTooManyAsserts" />
</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" />
<exclude name="LoosePackageCoupling" />
<exclude name="TooManyFields" />
<exclude name="ExcessiveImports" />
<exclude name="GodClass" />
<exclude name="UseObjectForClearerAPI" />
<exclude name="ExcessiveParameterList" />
</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" />
<exclude name="AssignmentInOperand" />
<exclude name="AssignmentToNonFinalStatic" />
</rule>
<rule ref="category/java/performance.xml" >
<exclude name="SimplifyStartsWith" />
<exclude name="AvoidInstantiatingObjectsInLoops" />
</rule>
</ruleset>