-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcheckstyle.xml
115 lines (104 loc) · 3.99 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<module name="TreeWalker">
<!-- enable supressing warnings with comments or annotations -->
<module name="SuppressWarningsHolder" />
<module name="FileContentsHolder" />
<!-- Annotations -->
<module name="AnnotationUseStyle" />
<module name="MissingDeprecated" />
<!-- Block checks -->
<module name="AvoidNestedBlocks" />
<module name="EmptyBlock" />
<module name="LeftCurly" />
<module name="NeedBraces" />
<module name="RightCurly" />
<!-- Class design -->
<module name="FinalClass" />
<module name="HideUtilityClassConstructor" />
<module name="InterfaceIsType" />
<module name="MutableException" />
<!-- Coding -->
<module name="CovariantEquals" />
<module name="DefaultComesLast" />
<module name="EmptyStatement" />
<module name="EqualsAvoidNull" />
<module name="EqualsHashCode" />
<module name="ExplicitInitialization" />
<module name="FallThrough" />
<module name="FinalLocalVariable" />
<module name="IllegalInstantiation" />
<module name="IllegalToken" />
<module name="IllegalTokenText" />
<module name="IllegalType" />
<module name="ModifiedControlVariable" />
<module name="MultipleVariableDeclarations" />
<module name="NoClone" />
<module name="NoFinalizer" />
<module name="OneStatementPerLine" />
<module name="ParameterAssignment" />
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<module name="StringLiteralEquality" />
<module name="UnnecessaryParentheses" />
<module name="VariableDeclarationUsageDistance" />
<!-- Imports -->
<module name="AvoidStarImport" />
<module name="AvoidStaticImport">
<!-- Allow static imports for utils-style classes in the JDK or commonly
used libraries. -->
<property name="excludes" value="java.util.Collections.*" />
<property name="excludes" value="java.util.stream.Collectors.*" />
<property name="excludes" value="java.util.Comparator.*" />
<property name="excludes" value="org.junit.Assert.*" />
<property name="excludes" value="org.mockito.Matchers.*" />
<property name="excludes" value="org.mockito.Mockito.*" />
</module>
<module name="IllegalImport" />
<module name="RedundantImport" />
<module name="UnusedImports" />
<!-- Miscellaneous -->
<module name="ArrayTypeStyle" />
<module name="CommentsIndentation" />
<module name="FinalParameters" />
<module name="Indentation">
<property name="basicOffset" value="2" />
<property name="arrayInitIndent" value="2" />
<property name="caseIndent" value="2" />
<property name="throwsIndent" value="2" />
<property name="lineWrappingIndentation" value="2" />
</module>
<!-- Modifiers -->
<module name="RedundantModifier" />
<!-- Whitespace -->
<module name="EmptyForInitializerPad" />
<module name="GenericWhitespace" />
<module name="MethodParamPad" />
<module name="NoLineWrap" />
<module name="NoWhitespaceAfter" />
<module name="NoWhitespaceBefore" />
<module name="ParenPad" />
<module name="SeparatorWrap">
<property name="option" value="nl" />
<property name="tokens" value="DOT" />
</module>
<module name="TypecastParenPad" />
<module name="WhitespaceAfter" />
</module>
<!-- Supressing warnings -->
<module name="SuppressWarningsFilter"/>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE:([^:]+):OFF"/>
<property name="onCommentFormat" value="CHECKSTYLE:([^:]+):ON"/>
<property name="checkFormat" value="$1"/>
</module>
<!-- Editor style -->
<module name="FileLength">
<property name="max" value="800" />
</module>
<module name="FileTabCharacter" />
<module name="NewlineAtEndOfFile" />
</module>