-
Notifications
You must be signed in to change notification settings - Fork 6
/
checkstyle.xml
299 lines (298 loc) · 17 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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: JavaBDD Checkstyle
Description:
JavaBDD Checkstyle.
-->
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<module name="AnnotationUseStyle"/>
<module name="MissingOverride"/>
<module name="AnnotationLocation">
<property name="allowSamelineSingleParameterlessAnnotation" value="false"/>
</module>
<module name="AtclauseOrder"/>
<module name="JavadocStyle">
<property name="scope" value="anoninner"/>
<property name="endOfSentenceFormat" value="([.?!:][ \t\n\r\f<])|([.?!:]$)|(\{@inheritDoc\})"/>
<property name="checkEmptyJavadoc" value="true"/>
<message key="javadoc.noperiod" value="First sentence should end with a period, question mark, exclamation mark, colon, or '{@inheritDoc}'."/>
</module>
<module name="NonEmptyAtclauseDescription"/>
<module name="JavadocTagContinuationIndentation">
<message key="tag.continuation.indent" value="Line continuation has incorrect indentation level, expected level should be {0} spaces more than previous line."/>
</module>
<module name="JavadocParagraph">
<message key="javadoc.paragraph.line.before" value="<p> tag should be preceded an with empty line."/>
</module>
<module name="ConstantName">
<property name="severity" value="ignore"/>
<message key="name.invalidPattern" value="Constant name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="LocalVariableName">
<property name="severity" value="ignore"/>
<property name="format" value="^_?[a-z][a-zA-Z0-9]*_?$"/>
<message key="name.invalidPattern" value="Local variable name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="LocalFinalVariableName">
<property name="severity" value="ignore"/>
<property name="format" value="^([A-Z][A-Z0-9]*(_[A-Z0-9]+)*)|(^_?[a-z][a-zA-Z0-9]*_?$)$"/>
<message key="name.invalidPattern" value="Local final variable name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MemberName">
<property name="severity" value="ignore"/>
<message key="name.invalidPattern" value="Member name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MethodName">
<property name="severity" value="ignore"/>
<message key="name.invalidPattern" value="Method name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
<message key="name.invalidPattern" value="Package name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName">
<property name="severity" value="ignore"/>
<property name="format" value="^_?[a-z][a-zA-Z0-9]*_?$"/>
<property name="accessModifiers" value="private"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="StaticVariableName">
<property name="severity" value="ignore"/>
<message key="name.invalidPattern" value="Static variable name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="TypeName">
<metadata name="net.sf.eclipsecs.core.comment" value="General type name"/>
<property name="severity" value="ignore"/>
<message key="name.invalidPattern" value="Type name ''{0}'' must match pattern ''{1}''."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="ClassTypeParameterName">
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern" value="Class type parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MethodTypeParameterName">
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern" value="Method type parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="InterfaceTypeParameterName">
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern" value="Interface type parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="AvoidStarImport"/>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="GenericWhitespace">
<message key="ws.notPreceded" value="''{0}'' is not preceded with whitespace. (generics whitespace check)"/>
<message key="ws.followed" value="''{0}'' is followed by whitespace. (generics whitespace check)"/>
<message key="ws.illegalFollow" value="''{0}'' is followed by an illegal character. (generics whitespace check)"/>
<message key="ws.preceded" value="''{0}'' is preceded with whitespace. (generics whitespace check)"/>
</module>
<module name="EmptyForInitializerPad">
<message key="ws.notPreceded" value="''{0}'' is not preceded with whitespace, for empty 'for' initializer."/>
<message key="ws.preceded" value="''{0}'' is preceded with whitespace, for empty 'for' initializer."/>
</module>
<module name="EmptyForIteratorPad">
<message key="ws.notFollowed" value="''{0}'' is not followed by whitespace, for empty 'for' iterator."/>
<message key="ws.followed" value="''{0}'' is followed by whitespace, for empty 'for' iterator."/>
</module>
<module name="NoWhitespaceAfter">
<metadata name="net.sf.eclipsecs.core.comment" value="no line breaks"/>
<property name="allowLineBreaks" value="false"/>
<property name="tokens" value="AT,INC,DEC,UNARY_MINUS,UNARY_PLUS,BNOT,LNOT,DOT"/>
<message key="ws.followed" value="''{0}'' is followed by whitespace. (no whitespace after check)"/>
</module>
<module name="NoWhitespaceBefore">
<metadata name="net.sf.eclipsecs.core.comment" value="no line breaks"/>
<property name="tokens" value="POST_DEC,POST_INC"/>
<message key="ws.preceded" value="''{0}'' is preceded with whitespace. (no whitespace before check)"/>
</module>
<module name="MethodParamPad">
<message key="line.previous" value="''{0}'' should be on the previous line. (method parameter padding check)"/>
<message key="ws.notPreceded" value="''{0}'' is not preceded with whitespace. (method parameter padding check)"/>
<message key="ws.preceded" value="''{0}'' is preceded with whitespace. (method parameter padding check)"/>
</module>
<module name="TypecastParenPad">
<message key="ws.notPreceded" value="''{0}'' is not preceded with whitespace. (typecast parenthesis padding check)"/>
<message key="ws.notFollowed" value="''{0}'' is not followed by whitespace. (typecast parenthesis padding check)"/>
<message key="ws.followed" value="''{0}'' is followed by whitespace. (typecast parenthesis padding check)"/>
<message key="ws.preceded" value="''{0}'' is preceded with whitespace. (typecast parenthesis padding check)"/>
</module>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA,SEMI"/>
<message key="ws.notFollowed" value="''{0}'' is not followed by whitespace. (whitespace after check)"/>
</module>
<module name="WhitespaceAround">
<property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,DO_WHILE,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"/>
<message key="ws.notPreceded" value="''{0}'' is not preceded with whitespace. (whitespace around check)"/>
<message key="ws.notFollowed" value="''{0}'' is not followed by whitespace. (whitespace around check)"/>
</module>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="SeparatorWrap">
<metadata name="net.sf.eclipsecs.core.comment" value="separator at end of the line"/>
<property name="tokens" value="COMMA,SEMI,ARRAY_DECLARATOR,RBRACK"/>
<message key="line.previous" value="''{0}'' separator should be on the previous line."/>
<message key="line.new" value="''{0}'' separator should be on a new line."/>
</module>
<module name="SeparatorWrap">
<metadata name="net.sf.eclipsecs.core.comment" value="separator on new line"/>
<property name="option" value="nl"/>
<property name="tokens" value="DOT"/>
<message key="line.previous" value="''{0}'' separator should be on the previous line."/>
<message key="line.new" value="''{0}'' separator should be on a new line."/>
</module>
<module name="NoWhitespaceBefore">
<metadata name="net.sf.eclipsecs.core.comment" value="allow line breaks"/>
<property name="allowLineBreaks" value="true"/>
<property name="tokens" value="SEMI,DOT"/>
<message key="ws.preceded" value="''{0}'' is preceded with whitespace. (no whitespace before check)"/>
</module>
<module name="NoWhitespaceAfter">
<metadata name="net.sf.eclipsecs.core.comment" value="allow line breaks"/>
<property name="tokens" value="TYPECAST"/>
<message key="ws.followed" value="''{0}'' is followed by whitespace. (no whitespace after check)"/>
</module>
<module name="ModifierOrder"/>
<module name="NeedBraces">
<property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_IF,LITERAL_FOR,LITERAL_WHILE"/>
</module>
<module name="LeftCurly">
<property name="option" value="nlow"/>
<message key="line.previous" value="Block start curly brace ''{0}'' should be on the previous line."/>
<message key="line.new" value="Block start curly brace ''{0}'' should be on a new line."/>
</module>
<module name="RightCurly">
<metadata name="net.sf.eclipsecs.core.comment" value="same line"/>
<message key="line.alone" value="Block end curly brace ''{0}'' should be alone on a line."/>
<message key="line.new" value="Block end curly brace ''{0}'' should be on a new line."/>
<message key="line.same" value="Block end curly brace ''{0}'' should be on the same line."/>
</module>
<module name="RightCurly">
<metadata name="net.sf.eclipsecs.core.comment" value="alone on line"/>
<property name="option" value="alone_or_singleline"/>
<property name="tokens" value="CLASS_DEF,METHOD_DEF,CTOR_DEF,LITERAL_FOR,LITERAL_WHILE,STATIC_INIT,INSTANCE_INIT,ENUM_DEF,INTERFACE_DEF"/>
<message key="line.alone" value="Block end curly brace ''{0}'' should be alone on a line."/>
<message key="line.new" value="Block end curly brace ''{0}'' should be on a new line."/>
<message key="line.same" value="Block end curly brace ''{0}'' should be on the same line."/>
</module>
<module name="CovariantEquals">
<message key="covariant.equals" value="Covariant equals without overriding equals(java.lang.Object)."/>
</module>
<module name="DefaultComesLast"/>
<module name="InnerAssignment">
<metadata name="net.sf.eclipsecs.core.comment" value="Detects more than Eclipse JDT check."/>
<property name="severity" value="ignore"/>
<message key="assignment.inner.avoid" value="Assignment in expression (inner assignment) should be avoided."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="ModifiedControlVariable">
<property name="skipEnhancedForLoopVariable" value="true"/>
</module>
<module name="NoClone">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="NoFinalizer">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="PackageDeclaration">
<message key="missing.package.declaration" value="Avoid the default package."/>
</module>
<module name="SimplifyBooleanExpression">
<message key="simplify.expression" value="Boolean expression can be simplified."/>
</module>
<module name="StringLiteralEquality"/>
<module name="SuperClone"/>
<module name="SuperFinalize"/>
<module name="HideUtilityClassConstructor"/>
<module name="MutableException"/>
<module name="OneTopLevelClass"/>
<module name="ArrayTypeStyle">
<message key="array.type.style" value="Use Java style for arrays (brackets with the type) not C style (brackets with the name)."/>
</module>
<module name="UpperEll">
<message key="upperEll" value="Should use uppercase ''L'' for long numbers, not lowercase "l"."/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="Wrong indentation for lines starting with '{' or '}'."/>
<property name="format" value="^(\s{4})*(\s|\s\s|\s\s\s)[{}]$"/>
<property name="message" value="Wrong indentation. Must be a multiple of 4 spaces."/>
</module>
<module name="SuppressWithNearbyCommentFilter">
<metadata name="net.sf.eclipsecs.core.comment" value="'ignore checkstyle' comment prefix on same line"/>
<property name="commentFormat" value="ignore checkstyle (\w+)"/>
<property name="checkFormat" value="$1"/>
</module>
<module name="ImportOrder">
<property name="option" value="top"/>
<property name="groups" value="/^java\./,javax,org,com"/>
<property name="separated" value="true"/>
<property name="separatedStaticGroups" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
<property name="useContainerOrderingForStatic" value="true"/>
</module>
<module name="TypeName">
<metadata name="net.sf.eclipsecs.core.comment" value="Test classes must end with 'Test', not 'Tests' to be picked up by Tycho"/>
<property name="severity" value="ignore"/>
<property name="format" value="^.*(?<!Tests)$"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="SingleSpaceSeparator"/>
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
<module name="AvoidDoubleBraceInitialization"/>
<module name="JavadocMissingWhitespaceAfterAsterisk">
<property name="violateExecutionOnNonTightHtml" value="true"/>
</module>
<module name="NoCodeInFile"/>
<module name="RequireEmptyLineBeforeBlockTagGroup">
<property name="violateExecutionOnNonTightHtml" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="JavaDoc @-tag description should not start with a lower-case letter."/>
<property name="severity" value="ignore"/>
<property name="format" value="(@param \w+|@return) [a-z]"/>
<property name="message" value="JavaDoc @-tag description should not start with a lower-case letter."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
</module>
<module name="RegexpSingleline">
<property name="format" value="XXX"/>
<property name="message" value="Found XXX."/>
<property name="fileExtensions" value="java,xml,MF,properties,txt"/>
</module>
<module name="FileTabCharacter">
<property name="fileExtensions" value="java,xml,MF,properties,txt"/>
</module>
<module name="RegexpMultiline">
<metadata name="net.sf.eclipsecs.core.comment" value="Multiple consecutive empty lines"/>
<property name="format" value="\n\n\n"/>
<property name="message" value="Multiple consecutive empty lines found."/>
<property name="fileExtensions" value="java,xml,MF,properties,txt"/>
</module>
<module name="RegexpSingleline">
<metadata name="net.sf.eclipsecs.core.comment" value="Trailing whitespace"/>
<property name="format" value="^.*\s$"/>
<property name="message" value="Trailing whitespace found."/>
<property name="fileExtensions" value="java,xml,MF,properties,txt"/>
</module>
<module name="NewlineAtEndOfFile">
<property name="fileExtensions" value="java,xml,MF,properties,txt"/>
</module>
<module name="UniqueProperties"/>
</module>