-
Notifications
You must be signed in to change notification settings - Fork 1
/
checkstyle.xml
268 lines (267 loc) · 11.3 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: SSE Checkstyle Configuration [ohne package-info]
Description: none
-->
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<module name="FileContentsHolder"/>
<module name="JavadocMethod">
<property name="severity" value="error"/>
<property name="allowUndeclaredRTE" value="true"/>
</module>
<module name="JavadocType">
<property name="severity" value="error"/>
</module>
<module name="JavadocVariable">
<property name="severity" value="error"/>
<property name="excludeScope" value="private"/>
</module>
<module name="JavadocStyle">
<property name="severity" value="error"/>
<property name="checkEmptyJavadoc" value="true"/>
</module>
<module name="AbstractClassName">
<property name="severity" value="error"/>
<property name="format" value="^[A-Z][a-zA-Z0-9]+$"/>
<property name="ignoreModifier" value="true"/>
</module>
<module name="ConstantName">
<property name="severity" value="error"/>
</module>
<module name="LocalFinalVariableName">
<property name="severity" value="error"/>
</module>
<module name="LocalVariableName">
<property name="severity" value="error"/>
</module>
<module name="MemberName">
<property name="severity" value="error"/>
<property name="format" value="^[a-z][a-zA-Z0-9]*$|^x$|^y$|^z$"/>
</module>
<module name="MethodName">
<property name="severity" value="error"/>
</module>
<module name="PackageName">
<property name="format" value="^[a-z_]+(\.[a-z_]+[a-zA-Z_0-9]*)*$"/>
</module>
<module name="ParameterName">
<property name="severity" value="error"/>
<property name="format" value="^[a-z][a-zA-Z0-9]+|^x$|^y$|^z$"/>
</module>
<module name="StaticVariableName">
<property name="severity" value="error"/>
<property name="format" value="^[a-z][a-zA-Z0-9]+$"/>
</module>
<module name="TypeName">
<property name="severity" value="error"/>
<property name="format" value="^[A-Z][a-zA-Z0-9]+$"/>
</module>
<module name="IllegalImport">
<property name="severity" value="error"/>
</module>
<module name="RedundantImport">
<property name="severity" value="warning"/>
</module>
<module name="UnusedImports">
<property name="severity" value="warning"/>
</module>
<module name="LineLength">
<property name="severity" value="error"/>
<property name="max" value="120"/>
</module>
<module name="MethodLength">
<property name="severity" value="error"/>
<property name="max" value="70"/>
</module>
<module name="EmptyForInitializerPad">
<property name="severity" value="error"/>
</module>
<module name="EmptyForIteratorPad">
<property name="severity" value="error"/>
</module>
<module name="MethodParamPad">
<property name="severity" value="error"/>
</module>
<module name="NoWhitespaceAfter">
<property name="severity" value="error"/>
<property name="tokens" value="ARRAY_INIT, BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
</module>
<module name="NoWhitespaceBefore">
<property name="severity" value="error"/>
<property name="tokens" value="SEMI, POST_DEC, POST_INC"/>
</module>
<module name="OperatorWrap">
<property name="severity" value="error"/>
<property name="tokens" value="BAND, BOR, BSR, BXOR, COLON, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR"/>
</module>
<module name="ParenPad">
<property name="severity" value="error"/>
<property name="tokens" value="CTOR_CALL, METHOD_CALL, SUPER_CTOR_CALL"/>
</module>
<module name="TypecastParenPad">
<property name="severity" value="error"/>
<property name="tokens" value="TYPECAST, RPAREN"/>
</module>
<module name="WhitespaceAfter">
<property name="severity" value="error"/>
<property name="tokens" value="COMMA, SEMI, TYPECAST"/>
</module>
<module name="WhitespaceAround">
<property name="severity" value="error"/>
<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
</module>
<module name="ModifierOrder">
<property name="severity" value="error"/>
</module>
<module name="AvoidNestedBlocks">
<property name="severity" value="error"/>
<property name="allowInSwitchCase" value="true"/>
</module>
<module name="EmptyBlock">
<property name="severity" value="error"/>
<property name="tokens" value="LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF, LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
</module>
<module name="LeftCurly">
<property name="severity" value="error"/>
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF"/>
</module>
<module name="NeedBraces">
<property name="severity" value="error"/>
<property name="tokens" value="LITERAL_DO, LITERAL_ELSE, LITERAL_IF, LITERAL_FOR, LITERAL_WHILE"/>
</module>
<module name="RightCurly">
<property name="severity" value="error"/>
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE"/>
</module>
<module name="EmptyStatement">
<property name="severity" value="error"/>
</module>
<module name="EqualsHashCode">
<property name="severity" value="error"/>
</module>
<module name="InnerAssignment">
<property name="severity" value="error"/>
</module>
<module name="MissingSwitchDefault">
<property name="severity" value="error"/>
</module>
<module name="SimplifyBooleanExpression">
<property name="severity" value="error"/>
</module>
<module name="SimplifyBooleanReturn">
<property name="severity" value="error"/>
</module>
<module name="StringLiteralEquality">
<property name="severity" value="warning"/>
</module>
<module name="NestedIfDepth">
<property name="severity" value="error"/>
<property name="max" value="3"/>
</module>
<module name="NestedTryDepth">
<property name="severity" value="error"/>
</module>
<module name="SuperFinalize">
<property name="severity" value="error"/>
</module>
<module name="IllegalCatch">
<property name="severity" value="error"/>
</module>
<module name="IllegalThrows">
<property name="severity" value="error"/>
<property name="illegalClassNames" value="java.lang.Exception, java.lang.Throwable, java.lang.RuntimeException"/>
</module>
<module name="PackageDeclaration">
<property name="severity" value="warning"/>
</module>
<module name="ReturnCount">
<property name="max" value="1"/>
</module>
<module name="DeclarationOrder">
<property name="severity" value="error"/>
</module>
<module name="DefaultComesLast">
<property name="severity" value="error"/>
</module>
<module name="FallThrough">
<property name="severity" value="error"/>
<property name="checkLastCaseGroup" value="true"/>
</module>
<module name="MultipleVariableDeclarations"/>
<module name="VisibilityModifier">
<property name="severity" value="error"/>
<property name="protectedAllowed" value="true"/>
<property name="publicMemberPattern" value="^serialVersionUID$"/>
</module>
<module name="BooleanExpressionComplexity">
<property name="severity" value="error"/>
</module>
<module name="ArrayTypeStyle">
<property name="severity" value="error"/>
</module>
<module name="UpperEll">
<property name="severity" value="error"/>
</module>
<module name="Indentation">
<property name="severity" value="error"/>
<property name="caseIndent" value="0"/>
</module>
<module name="ParameterNumber">
<property name="severity" value="error"/>
<property name="max" value="5"/>
<property name="ignoreOverriddenMethods" value="true"/>
</module>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: stop nested if depth check"/>
<property name="onCommentFormat" value="checkstyle: resume nested if depth check"/>
<property name="checkFormat" value="NestedIfDepth"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: stop parameter number check"/>
<property name="onCommentFormat" value="checkstyle: resume parameter number check"/>
<property name="checkFormat" value="ParameterNumberCheck"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: stop exception type check"/>
<property name="onCommentFormat" value="checkstyle: resume exception type check"/>
<property name="checkFormat" value="(IllegalThrows|IllegalCatch)"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: stop declaration order check"/>
<property name="onCommentFormat" value="checkstyle: resume declaration order check"/>
<property name="checkFormat" value="DeclarationOrder"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: stop visibility modifier check"/>
<property name="onCommentFormat" value="checkstyle: resume visibility modifier check"/>
<property name="checkFormat" value="VisibilityModifier"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: stop name check"/>
<property name="onCommentFormat" value="checkstyle: resume name check"/>
<property name="checkFormat" value="(MemberName|MethodName|TypeName|StaticVariableName)"/>
</module>
<module name="FileLength">
<property name="severity" value="error"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="FileTabCharacter">
<property name="severity" value="error"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="JavadocPackage">
<property name="severity" value="ignore"/>
<property name="allowLegacy" value="true"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="error"/>
</module>
<module name="SuppressionCommentFilter"/>
</module>