-
Notifications
You must be signed in to change notification settings - Fork 0
/
adv_checkstyle.xml
235 lines (234 loc) · 9.51 KB
/
adv_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
<?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: ADV Checkstyle
Description: none
-->
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<module name="FileContentsHolder"/>
<module name="MissingOverride"/>
<module name="ConstantName"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<module name="OuterTypeNumber"/>
<module name="GenericWhitespace"/>
<module name="EmptyForInitializerPad">
<property name="option" value="space"/>
</module>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore"/>
<module name="NoWhitespaceAfter"/>
<module name="ParenPad"/>
<module name="WhitespaceAfter">
<property name="tokens" value="COMMA,TYPECAST"/>
</module>
<module name="AvoidNestedBlocks"/>
<module name="EmptyBlock"/>
<module name="NeedBraces"/>
<module name="RightCurly"/>
<module name="LeftCurly">
<property name="maxLineLength" value="200"/>
</module>
<module name="CovariantEquals"/>
<module name="DefaultComesLast"/>
<module name="EmptyStatement"/>
<module name="FallThrough"/>
<module name="IllegalCatch"/>
<module name="IllegalThrows"/>
<module name="InnerAssignment"/>
<module name="ModifiedControlVariable"/>
<module name="NestedTryDepth"/>
<module name="NoFinalizer"/>
<module name="NoClone"/>
<module name="PackageDeclaration"/>
<module name="ParameterAssignment"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="SuperFinalize"/>
<module name="OneStatementPerLine"/>
<module name="OuterTypeFilename"/>
<module name="AvoidEscapedUnicodeCharacters"/>
<module name="UpperEll"/>
<module name="UncommentedMain"/>
<module name="TodoComment"/>
<module name="NPathComplexity">
<property name="severity" value="info"/>
</module>
<module name="CyclomaticComplexity">
<property name="severity" value="info"/>
</module>
<module name="FinalClass"/>
<module name="DiamondOperatorForVariableDefinitionCheck"/>
<module name="AvoidHidingCauseException"/>
<module name="AvoidNotShortCircuitOperatorsForBoolean"/>
<module name="ConfusingConditionCheck"/>
<module name="ForbidReturnInFinallyBlockCheck"/>
<module name="ForbidThrowAnonymousExceptionsCheck"/>
<module name="ReturnNullInsteadOfBoolean"/>
<module name="LogicConditionNeedOptimizationCheck"/>
<module name="MapIterationInForEachLoop"/>
<module name="TernaryPerExpressionCount"/>
<module name="NoNullForCollectionReturnCheck"/>
<module name="OverridableMethodInConstructor"/>
<module name="UselessSingleCatchCheck"/>
<module name="UselessSuperCtorCallCheck"/>
<module name="NestedSwitchCheck"/>
<module name="AvoidConditionInversionCheck"/>
<module name="NoMainMethodInAbstractClass"/>
<module name="ForbidWildcardAsReturnType"/>
<module name="PublicReferenceToPrivateTypeCheck"/>
<module name="EitherLogOrThrowCheck"/>
<module name="CauseParameterInException"/>
<module name="EqualsAvoidNull"/>
<module name="EmptyPublicCtorInClassCheck"/>
<module name="ReturnBooleanFromTernary"/>
<module name="UnnecessaryParenthesesExtended"/>
<module name="RedundantReturn"/>
<module name="SimpleAccessorNameNotation"/>
<module name="StaticMethodCandidate">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="SingleSpaceSeparatorCheck"/>
<module name="BooleanExpressionComplexity"/>
<module name="ClassDataAbstractionCoupling">
<property name="severity" value="info"/>
<property name="max" value="10"/>
</module>
<module name="ClassFanOutComplexity">
<property name="severity" value="info"/>
</module>
<module name="InnerTypeLast"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="MutableException"/>
<module name="EqualsHashCode"/>
<module name="ExplicitInitialization"/>
<module name="HiddenField">
<property name="severity" value="ignore"/>
<property name="ignoreConstructorParameter" value="true"/>
<property name="ignoreSetter" value="true"/>
<property name="setterCanReturnItsClass" value="true"/>
<property name="ignoreAbstractMethods" value="true"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MissingSwitchDefault"/>
<module name="MultipleStringLiterals">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MultipleVariableDeclarations">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="OverloadMethodsDeclarationOrder"/>
<module name="VisibilityModifier">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="OneTopLevelClass"/>
<module name="EmptyCatchBlock"/>
<module name="RedundantModifier"/>
<module name="SuperClone">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="AbbreviationAsWordInName"/>
<module name="TypeName"/>
<module name="MethodName"/>
<module name="LocalVariableName"/>
<module name="MemberName"/>
<module name="MethodTypeParameterName"/>
<module name="LocalFinalVariableName"/>
<module name="ClassTypeParameterName"/>
<module name="InterfaceTypeParameterName"/>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="StaticVariableName"/>
<module name="CustomDeclarationOrder">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MethodLength"/>
<module name="ModifierOrder"/>
<module name="DeclarationOrder">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="UnnecessaryParentheses"/>
<module name="ArrayTypeStyle"/>
<module name="TrailingComment"/>
<module name="SingleBreakOrContinueCheck"/>
<module name="InterfaceTypeParameterNameCheck"/>
<module name="EnumValueNameCheck"/>
<module name="AnonInnerLength"/>
<module name="Regexp">
<property name="format" value="$System\.out\.print.+^"/>
<property name="message" value="Do not print to console directly"/>
<property name="illegalPattern" value="true"/>
</module>
<module name="CatchParameterName"/>
<module name="Regexp">
<property name="format" value="\r"/>
<property name="message" value="No Windows-style new lines allowed"/>
<property name="illegalPattern" value="true"/>
</module>
</module>
<module name="RegexpSingleline">
<property name="format" value="^.*System.out.print.*$"/>
<property name="message" value="Cannot use System.out.print"/>
<property name="fileExtensions" value="java, kt"/>
</module>
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
<property name="fileExtensions" value="java, gradle, xml, kt, csv"/>
</module>
<module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="@cs\.suppress \[(\w+(\|\w+)*)\] \w[-\.'`,:;\w ]{14,}"/>
<property name="checkFormat" value="$1"/>
<property name="influenceFormat" value="1"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE\:OFF \w+"/>
</module>
<module name="SuppressionFilter">
<property name="file" value="${config_loc}/suppression.xml"/>
</module>
<module name="RegexpMultiline">
<property name="format" value="\n{3,}"/>
<property name="message" value="Multiple empty new lines"/>
</module>
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="message" value="Trailing whitespace"/>
</module>
<module name="RegexpSingleline">
<property name="format" value=".{151}"/>
<property name="message" value="Maximum line length of 150 exceeded"/>
</module>
<module name="RegexpSingleline">
<property name="format" value="(?=.[^+]\+$)[^"] \+"/>
<property name="message" value="Operators should go on a new line"/>
<property name="fileExtensions" value="kt"/>
</module>
<module name="RegexpSingleline">
<property name="format" value="\t"/>
<property name="message" value="No tabs allowed"/>
</module>
<module name="RegexpOnFilename">
<property name="folderPattern" value="src[\\/]test[\\/]java"/>
<property name="fileNamePattern" value=".*(java|kt)"/>
<property name="match" value="false"/>
</module>
<module name="RegexpOnFilename">
<property name="folderPattern" value="src[\\/]main[\\/]java"/>
<property name="fileNamePattern" value=".*(java|kt)"/>
<property name="match" value="false"/>
</module>
</module>