-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
139 lines (123 loc) · 5.21 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
<?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">
<!-- List of all checks: https://checkstyle.sourceforge.io/checks.html -->
<module name="Checker">
<module name="NewlineAtEndOfFile">
<property name="fileExtensions" value="java, xml"/>
</module>
<module name="FileTabCharacter">
<property name="eachLine" value="true"/>
</module>
<module name="FileLength">
<property name="max" value="1000"/>
</module>
<module name="LineLength">
<property name="max" value="160"/>
</module>
<module name="TreeWalker">
<module name="ParenPad"/>
<module name="UpperEll"/>
<module name="LeftCurly"/>
<module name="EmptyBlock"/>
<module name="RightCurly"/>
<module name="NoLineWrap"/>
<module name="MagicNumber"/>
<module name="Indentation"/>
<module name="PackageName"/>
<module name="RequireThis"/>
<module name="OperatorWrap"/>
<module name="NoCodeInFile"/>
<module name="NestedIfDepth"/>
<module name="ModifierOrder"/>
<module name="UnusedImports"/>
<module name="AtclauseOrder"/>
<module name="UnusedImports"/>
<module name="NestedForDepth"/>
<module name="NestedTryDepth"/>
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="MethodParamPad"/>
<module name="MissingOverride"/>
<module name="CovariantEquals"/>
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
<module name="TypecastParenPad"/>
<module name="MissingDeprecated"/>
<module name="AvoidNestedBlocks"/>
<module name="GenericWhitespace"/>
<module name="NoWhitespaceAfter"/>
<module name="ArrayTrailingComma"/>
<module name="NoWhitespaceBefore"/>
<module name="EmptyForIteratorPad"/>
<module name="CommentsIndentation"/>
<module name="UnusedLocalVariable"/>
<module name="NoEnumTrailingComma"/>
<module name="OneStatementPerLine"/>
<module name="SingleSpaceSeparator"/>
<module name="IllegalInstantiation"/>
<module name="StringLiteralEquality"/>
<module name="EmptyForInitializerPad"/>
<module name="InvalidJavadocPosition"/>
<module name="MultipleStringLiterals"/>
<module name="SimplifyBooleanExpression"/>
<module name="NonEmptyAtclauseDescription"/>
<module name="HideUtilityClassConstructor"/>
<module name="JavadocContentLocationCheck"/>
<module name="MultipleVariableDeclarations"/>
<module name="JavadocMissingLeadingAsterisk"/>
<module name="AvoidEscapedUnicodeCharacters"/>
<module name="UnnecessarySemicolonInEnumeration"/>
<module name="RequireEmptyLineBeforeBlockTagGroup"/>
<module name="AvoidNoArgumentSuperConstructorCall"/>
<module name="JavadocMissingWhitespaceAfterAsterisk"/>
<module name="UnnecessarySemicolonInTryWithResources"/>
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
<module name="ParameterNumber">
<property name="max" value="5"/>
</module>
<module name="LambdaBodyLength">
<property name="max" value="5"/>
</module>
<module name="AnonInnerLength">
<property name="max" value="60"/>
</module>
<module name="ArrayTypeStyle">
<property name="javaStyle" value="true"/>
</module>
<module name="BooleanExpressionComplexity">
<property name="max" value="5"/>
</module>
<module name="CatchParameterName">
<property name="format" value="^([a-z][a-zA-Z0-9]+Exception)|exception$"/>
</module>
<module name="SeparatorWrap">
<property name="tokens" value="COMMA"/>
</module>
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected|ignore"/>
</module>
<module name="MethodLength">
<property name="max" value="15"/>
</module>
<module name="EmptyLineSeparator">
<property name="tokens" value="METHOD_DEF"/>
<property name="allowMultipleEmptyLines" value="false"/>
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
</module>
<module name="AnnotationLocation">
<property name="allowSamelineSingleParameterlessAnnotation" value="false"/>
<property name="allowSamelineParameterizedAnnotation" value="true"/>
</module>
<module name="CustomImportOrder">
<property name="separateLineBetweenGroups" value="true"/>
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="customImportOrderRules"
value="THIRD_PARTY_PACKAGE###STANDARD_JAVA_PACKAGE###STATIC"/>
</module>
</module>
</module>