-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
96 lines (77 loc) · 2.32 KB
/
checkstyle.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="severity" value="error"/>
<property name="fileExtensions" value="java"/>
<!-- Miscellaneous -->
<!--<module name="NewlineAtEndOfFile"/>-->
<!-- Size Violations -->
<module name="FileLength">
<property name="fileExtensions" value="java"/>
<property name="max" value="500"/>
</module>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<!-- Annotations -->
<module name="MissingDeprecated"/>
<module name="MissingOverride">
<property name="javaFiveCompatibility" value="true"/>
</module>
<!-- Block Checks -->
<module name="EmptyCatchBlock"/>
<!-- Class Design -->
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InnerTypeLast"/>
<module name="MutableException"/>
<!-- Coding -->
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="FallThrough"/>
<module name="MissingSwitchDefault"/>
<module name="NestedForDepth">
<property name="max" value="2"/>
</module>
<module name="NestedIfDepth">
<property name="max" value="3"/>
</module>
<module name="NoClone"/>
<module name="NoFinalizer"/>
<module name="StringLiteralEquality"/>
<module name="VariableDeclarationUsageDistance"/>
<!-- Imports -->
<!-- Javadoc Comments -->
<!-- Metrics
<module name="CyclomaticComplexity">
<property name="max">10</property>
<property name="switchBlockAsSingleDecisionPoint">true</property>
</module>
-->
<!-- Misc -->
<!-- Modifiers -->
<!-- Naming Conventions -->
<module name="ConstantName"/>
<!-- Regexp -->
<!-- Size Violations -->
<module name="ExecutableStatementCount">
<property name="max" value="30"/>
</module>
<module name="LineLength">
<property name="max" value="105"/>
<property name="ignorePattern" value="^ *\* *[^ ]+$"/>
</module>
<module name="MethodCount">
<property name="maxTotal" value="35"/>
</module>
<module name="MethodLength">
<property name="max" value="40"/>
<property name="countEmpty" value="false"/>
</module>
<module name="ParameterNumber">
<property name="max" value="5"/>
</module>
<!-- Whitespace -->
</module>
</module>