1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
|
3 |
|
4 <!-- |
|
5 Checkstyle-Configuration: Checks |
|
6 Description: none |
|
7 --> |
|
8 <module name="Checker"> |
|
9 <property name="severity" value="error"/> |
|
10 <module name="TreeWalker"> |
|
11 <property name="tabWidth" value="4"/> |
|
12 <module name="JavadocStyle"> |
|
13 <property name="checkHtml" value="false"/> |
|
14 </module> |
|
15 <module name="LocalFinalVariableName"/> |
|
16 <module name="LocalVariableName"/> |
|
17 <module name="MemberName"> |
|
18 <property name="format" value="^(([a-z][a-zA-Z0-9]*$)|(_[A-Z][a-zA-Z0-9]*_[a-z][a-zA-Z0-9]*$))"/> |
|
19 </module> |
|
20 <module name="MethodName"/> |
|
21 <module name="PackageName"/> |
|
22 <module name="ParameterName"/> |
|
23 <module name="TypeName"> |
|
24 <property name="format" value="^[A-Z][_a-zA-Z0-9]*$"/> |
|
25 </module> |
|
26 <module name="RedundantImport"/> |
|
27 <module name="LineLength"> |
|
28 <property name="max" value="250"/> |
|
29 </module> |
|
30 <module name="MethodParamPad"/> |
|
31 <module name="NoWhitespaceAfter"> |
|
32 <property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/> |
|
33 </module> |
|
34 <module name="AvoidStarImport"> |
|
35 <property name="allowClassImports" value="false"/> |
|
36 <property name="allowStaticMemberImports" value="false"/> |
|
37 </module> |
|
38 <module name="NoWhitespaceBefore"> |
|
39 <property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/> |
|
40 </module> |
|
41 <module name="ParenPad"/> |
|
42 <module name="TypecastParenPad"> |
|
43 <property name="tokens" value="RPAREN,TYPECAST"/> |
|
44 </module> |
|
45 <module name="WhitespaceAfter"/> |
|
46 <module name="WhitespaceAround"> |
|
47 <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,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,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND"/> |
|
48 </module> |
|
49 <module name="RedundantModifier"/> |
|
50 <module name="AvoidNestedBlocks"> |
|
51 <property name="allowInSwitchCase" value="true"/> |
|
52 </module> |
|
53 <module name="EmptyBlock"> |
|
54 <property name="option" value="text"/> |
|
55 <property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_TRY,LITERAL_WHILE,STATIC_INIT"/> |
|
56 </module> |
|
57 <module name="LeftCurly"/> |
|
58 <module name="NeedBraces"/> |
|
59 <module name="RightCurly"/> |
|
60 <module name="EmptyStatement"/> |
|
61 <module name="HiddenField"> |
|
62 <property name="severity" value="ignore"/> |
|
63 <property name="ignoreConstructorParameter" value="true"/> |
|
64 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
65 </module> |
|
66 <module name="FinalClass"/> |
|
67 <module name="HideUtilityClassConstructor"> |
|
68 <property name="severity" value="ignore"/> |
|
69 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
70 </module> |
|
71 <module name="ArrayTypeStyle"/> |
|
72 <module name="UpperEll"/> |
|
73 <module name="FallThrough"/> |
|
74 <module name="FinalLocalVariable"> |
|
75 <property name="severity" value="ignore"/> |
|
76 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
77 </module> |
|
78 <module name="MultipleVariableDeclarations"/> |
|
79 <module name="StringLiteralEquality"> |
|
80 <property name="severity" value="error"/> |
|
81 </module> |
|
82 <module name="SuperFinalize"/> |
|
83 <module name="UnnecessaryParentheses"> |
|
84 <property name="severity" value="ignore"/> |
|
85 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
86 </module> |
|
87 <module name="Indentation"> |
|
88 <property name="severity" value="ignore"/> |
|
89 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
90 </module> |
|
91 <module name="StaticVariableName"> |
|
92 <property name="format" value="^[A-Za-z][a-zA-Z0-9]*$"/> |
|
93 </module> |
|
94 <module name="EmptyForInitializerPad"/> |
|
95 <module name="EmptyForIteratorPad"/> |
|
96 <module name="ModifierOrder"/> |
|
97 <module name="DefaultComesLast"/> |
|
98 <module name="InnerAssignment"> |
|
99 <property name="severity" value="ignore"/> |
|
100 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
101 </module> |
|
102 <module name="ModifiedControlVariable"/> |
|
103 <module name="MutableException"> |
|
104 <property name="severity" value="ignore"/> |
|
105 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
106 </module> |
|
107 <module name="ParameterAssignment"> |
|
108 <property name="severity" value="ignore"/> |
|
109 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> |
|
110 </module> |
|
111 <module name="RegexpSinglelineJava"> |
|
112 <metadata name="net.sf.eclipsecs.core.comment" value="Illegal trailing whitespace(s) at the end of the line."/> |
|
113 <property name="format" value="\s$"/> |
|
114 <property name="message" value="Illegal trailing whitespace(s) at the end of the line."/> |
|
115 <property name="ignoreComments" value="true"/> |
|
116 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for trailing spaces at the end of a line"/> |
|
117 </module> |
|
118 <module name="RegexpSinglelineJava"> |
|
119 <metadata name="net.sf.eclipsecs.core.comment" value="illegal space before a comma"/> |
|
120 <property name="format" value=" ,"/> |
|
121 <property name="message" value="illegal space before a comma"/> |
|
122 <property name="ignoreComments" value="true"/> |
|
123 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/> |
|
124 <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/> |
|
125 </module> |
|
126 <module name="RegexpSinglelineJava"> |
|
127 <property name="format" value="[^\x00-\x7F]"/> |
|
128 <property name="message" value="Only use ASCII characters."/> |
|
129 </module> |
|
130 <module name="RegexpSinglelineJava"> |
|
131 <property name="format" value="new (Hashtable|Vector|Stack|StringBuffer)[^\w]"/> |
|
132 <property name="message" value="Don't use old synchronized collection classes"/> |
|
133 </module> |
|
134 <module name="SuppressionCommentFilter"> |
|
135 <property name="offCommentFormat" value="Checkstyle: stop constant name check"/> |
|
136 <property name="onCommentFormat" value="Checkstyle: resume constant name check"/> |
|
137 <property name="checkFormat" value="ConstantNameCheck"/> |
|
138 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Allow non-conforming constant names"/> |
|
139 </module> |
|
140 <module name="SuppressionCommentFilter"> |
|
141 <property name="offCommentFormat" value="Checkstyle: stop method name check"/> |
|
142 <property name="onCommentFormat" value="Checkstyle: resume method name check"/> |
|
143 <property name="checkFormat" value="MethodName"/> |
|
144 <property name="checkC" value="false"/> |
|
145 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable method name checks"/> |
|
146 </module> |
|
147 <module name="SuppressionCommentFilter"> |
|
148 <property name="offCommentFormat" value="CheckStyle: stop parameter assignment check"/> |
|
149 <property name="onCommentFormat" value="CheckStyle: resume parameter assignment check"/> |
|
150 <property name="checkFormat" value="ParameterAssignment"/> |
|
151 <property name="checkC" value="false"/> |
|
152 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable Parameter Assignment"/> |
|
153 </module> |
|
154 <module name="SuppressionCommentFilter"> |
|
155 <property name="offCommentFormat" value="Checkstyle: stop final variable check"/> |
|
156 <property name="onCommentFormat" value="Checkstyle: resume final variable check"/> |
|
157 <property name="checkFormat" value="FinalLocalVariable"/> |
|
158 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable final variable checks"/> |
|
159 </module> |
|
160 <module name="SuppressionCommentFilter"> |
|
161 <property name="offCommentFormat" value="Checkstyle: stop"/> |
|
162 <property name="onCommentFormat" value="Checkstyle: resume"/> |
|
163 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable all checks"/> |
|
164 </module> |
|
165 <module name="SuppressionCommentFilter"> |
|
166 <property name="offCommentFormat" value="CheckStyle: stop inner assignment check"/> |
|
167 <property name="onCommentFormat" value="CheckStyle: resume inner assignment check"/> |
|
168 <property name="checkFormat" value="InnerAssignment"/> |
|
169 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable inner assignment checks"/> |
|
170 </module> |
|
171 <module name="SuppressionCommentFilter"> |
|
172 <property name="offCommentFormat" value="Checkstyle: stop field name check"/> |
|
173 <property name="onCommentFormat" value="Checkstyle: resume field name check"/> |
|
174 <property name="checkFormat" value="MemberName"/> |
|
175 <property name="checkC" value="false"/> |
|
176 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable field name checks"/> |
|
177 </module> |
|
178 <module name="SuppressionCommentFilter"> |
|
179 <property name="offCommentFormat" value="CheckStyle: stop header check"/> |
|
180 <property name="onCommentFormat" value="CheckStyle: resume header check"/> |
|
181 <property name="checkFormat" value=".*Header"/> |
|
182 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable header checks"/> |
|
183 </module> |
|
184 <module name="SuppressionCommentFilter"> |
|
185 <property name="offCommentFormat" value="CheckStyle: stop line length check"/> |
|
186 <property name="onCommentFormat" value="CheckStyle: resume line length check"/> |
|
187 <property name="checkFormat" value="LineLength"/> |
|
188 </module> |
|
189 <module name="SuppressionCommentFilter"> |
|
190 <property name="offCommentFormat" value="CheckStyle: start generated"/> |
|
191 <property name="onCommentFormat" value="CheckStyle: stop generated"/> |
|
192 <property name="checkFormat" value=".*Name|.*LineLength|.*Header"/> |
|
193 </module> |
|
194 <module name="SuppressionCommentFilter"> |
|
195 <property name="offCommentFormat" value="Checkstyle: stop"/> |
|
196 <property name="onCommentFormat" value="Checkstyle: resume"/> |
|
197 <property name="checkFormat" value=".*"/> |
|
198 </module> |
|
199 <module name="SuppressionCommentFilter"> |
|
200 <property name="offCommentFormat" value="@formatter:off"/> |
|
201 <property name="onCommentFormat" value="@formatter:on"/> |
|
202 <property name="checkFormat" value=".*"/> |
|
203 </module> |
|
204 </module> |
|
205 <module name="RegexpHeader"> |
|
206 <property name="header" value="/\*\n \* Copyright \(c\) (20[0-9][0-9], )?20[0-9][0-9], Oracle and/or its affiliates. All rights reserved.\n \* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n \*\n \* This code is free software; you can redistribute it and/or modify it\n \* under the terms of the GNU General Public License version 2 only, as\n \* published by the Free Software Foundation.\n \*\n \* This code is distributed in the hope that it will be useful, but WITHOUT\n \* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n \* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n \* version 2 for more details \(a copy is included in the LICENSE file that\n \* accompanied this code\).\n \*\n \* You should have received a copy of the GNU General Public License version\n \* 2 along with this work; if not, write to the Free Software Foundation,\n \* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n \*\n \* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n \* or visit www.oracle.com if you need additional information or have any\n \* questions.\n \*/\n"/> |
|
207 <property name="fileExtensions" value="java"/> |
|
208 </module> |
|
209 <module name="FileTabCharacter"> |
|
210 <property name="severity" value="error"/> |
|
211 <property name="fileExtensions" value="java"/> |
|
212 </module> |
|
213 <module name="NewlineAtEndOfFile"> |
|
214 <property name="lineSeparator" value="lf"/> |
|
215 </module> |
|
216 <module name="Translation"/> |
|
217 <module name="RegexpMultiline"> |
|
218 <metadata name="net.sf.eclipsecs.core.comment" value="illegal Windows line ending"/> |
|
219 <property name="format" value="\r\n"/> |
|
220 <property name="message" value="illegal Windows line ending"/> |
|
221 </module> |
|
222 </module> |
|