-
Notifications
You must be signed in to change notification settings - Fork 64
/
imixs-checkstyle-8.44.xml
246 lines (244 loc) · 11.2 KB
/
imixs-checkstyle-8.44.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Check Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<!-- This configuration file was adapted from the eclipse-emfcloud/ project -->
<module name="Checker">
<property name="severity" value="warning" />
<module name="SuppressionSingleFilter">
<metadata name="net.sf.eclipsecs.core.comment" value="Suppress MethodNameMain check on unit tests" />
<property name="files" value=".+\.*Test*.java" />
<property name="id" value="MethodNameRegular" />
</module>
<module name="SuppressionSingleFilter">
<metadata name="net.sf.eclipsecs.core.comment" value="Suppress MethodNameTest check except on unit tests" />
<property name="files" value=".+\.*(?!Test*.java)" />
<property name="files" value=".*[\\/]src[\\/](?!test[\\/])" />
<property name="id" value="MethodNameTest" />
</module>
<module name="LineLength">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="TreeWalker">
<property name="tabWidth" value="4" />
<module name="SuppressWarningsHolder" />
<module name="CyclomaticComplexity">
<property name="max" value="7" />
</module>
<module name="JavadocMethod">
<property name="accessModifiers" value="package" />
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="(@generated$)|(// end of custom code$)" />
<property name="onCommentFormat" value="(@generated NOT$)|(// begin of custom code$)" />
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Supress Warnings on EMF generated code. No Supress Warning on manual code" />
<metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Warning suppressed because code is generated by EMF. Warning enabled on custom code" />
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="// BEGIN SUPRESS CATCH EXCEPTION" />
<property name="onCommentFormat" value="// END SUPRESS CATCH EXCEPTION" />
<property name="messageFormat" value=".*Exception.*" />
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="SupressCatchExceptionWarning" />
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="// BEGIN IGNORE UNNECCESSARY IMPORT" />
<property name="onCommentFormat" value="// END IGNORE UNNECCESSARY IMPORT" />
<property name="messageFormat" value=".*import.*" />
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Ignore unneccessary import warnings" />
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="// BEGIN COMPLEX CODE" />
<property name="onCommentFormat" value="// END COMPLEX CODE" />
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="High Complexity Code Warning Suppression" />
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="// REUSED CLASS" />
<property name="onCommentFormat" value="// END REUSED CLASS" />
<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="High Complexity Code Warning Suppression" />
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)" />
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)" />
<property name="checkFormat" value="$1" />
</module>
<module name="JavadocStyle" />
<module name="ConstantName" />
<module name="LocalFinalVariableName" />
<module name="LocalVariableName" />
<module name="MemberName" />
<module name="MethodName">
<property name="id" value="MethodNameRegular" />
<property name="format" value="^[a-z][a-zA-Z0-9]*$" />
</module>
<module name="MethodName">
<property name="id" value="MethodNameTest" />
<property name="format" value="^[a-z][a-zA-Z0-9_]*$" />
</module>
<module name="PackageName" />
<module name="ParameterName" />
<module name="StaticVariableName">
<property name="format" value="^[a-zA-Z0-9_]*$" />
</module>
<module name="TypeName" />
<module name="AvoidStarImport" />
<module name="IllegalImport" />
<module name="RedundantImport" />
<module name="UnusedImports" />
<module name="MethodLength" />
<module name="ParameterNumber" />
<module name="EmptyForIteratorPad">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="MethodParamPad">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="NoWhitespaceAfter">
<property name="severity" value="ignore" />
<property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="NoWhitespaceBefore">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="OperatorWrap">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="ParenPad">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="TypecastParenPad">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="WhitespaceAfter">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="WhitespaceAround">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="ModifierOrder" />
<module name="RedundantModifier" />
<module name="AvoidNestedBlocks">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="EmptyBlock">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="LeftCurly">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="NeedBraces" />
<module name="RightCurly">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="AvoidInlineConditionals">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="EmptyStatement" />
<module name="EqualsHashCode" />
<module name="HiddenField">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="IllegalInstantiation" />
<module name="InnerAssignment" />
<module name="MagicNumber">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="MissingSwitchDefault" />
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<module name="DesignForExtension">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="FinalClass" />
<module name="HideUtilityClassConstructor" />
<module name="VisibilityModifier">
<property name="protectedAllowed" value="true" />
</module>
<module name="ArrayTypeStyle" />
<module name="FinalParameters">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="TodoComment">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="UpperEll" />
<module name="BooleanExpressionComplexity">
<property name="max" value="5" />
</module>
<module name="CyclomaticComplexity">
<property name="max" value="15" />
</module>
<module name="NPathComplexity">
<property name="max" value="220" />
</module>
<module name="JavaNCSS" />
<module name="SuperClone" />
<module name="SuperFinalize" />
<module name="PackageDeclaration" />
<module name="NestedIfDepth">
<property name="max" value="2" />
</module>
<module name="IllegalCatch">
<property name="id" value="IllegalExceptionCatch" />
</module>
<module name="IllegalThrows">
<property name="illegalClassNames" value="java.lang.Throwable, java.lang.Error, java.lang.RuntimeException, java.lang.Exception" />
<property name="ignoredMethodNames" value="finalize, call, start, stop, setUp, tearDown" />
</module>
<module name="CovariantEquals" />
<module name="DefaultComesLast" />
<module name="ExplicitInitialization" />
<module name="FallThrough" />
<module name="AnonInnerLength">
<property name="max" value="30" />
</module>
<module name="ThrowsCount">
<property name="max" value="3" />
</module>
<module name="UncommentedMain">
<property name="excludedClasses" value="\.ExampleServerLauncher$" />
</module>
<module name="CyclomaticComplexity">
<property name="id" value="complexity" />
<property name="max" value="15" />
</module>
<module name="SuppressWarnings" />
</module>
<module name="FileLength">
<property name="severity" value="info" />
<property name="max" value="3000" />
</module>
<module name="FileTabCharacter">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="NewlineAtEndOfFile">
<property name="severity" value="ignore" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
</module>
<module name="Translation" />
<module name="RegexpHeader">
<property name="header"
value="^\/\*{2,80}$\n^ \* Copyright( \(c\))? \d\d\d\d(-\d\d\d\d)?.+\.$\n^ \*.+$\n^ \*$\n \* This program and the accompanying materials are made available under the$\n^ \* terms of the Eclipse Public License v\. 2\.0 which is available at$\n^ \* https\:\/\/www\.eclipse\.org\/legal\/epl-2\.0/*" />
<property name="fileExtensions" value="java" />
<property name="multiLines" value="3"/>
</module>
<module name="SuppressWarningsFilter" />
</module>