1
+ <?xml version =" 1.0" ?>
2
+ <!DOCTYPE module PUBLIC
3
+ "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
4
+ "https://checkstyle.org/dtds/configuration_1_3.dtd">
5
+
6
+ <!--
7
+
8
+ Checkstyle configuration that matches the Eclipse formatter
9
+
10
+ Checkstyle is very configurable. Be sure to read the documentation at
11
+ http://checkstyle.sourceforge.net (or in your downloaded distribution).
12
+
13
+ Most Checks are configurable, be sure to consult the documentation.
14
+
15
+ To completely disable a check, just comment it out or delete it from the file.
16
+
17
+ Finally, it is worth reading the documentation.
18
+
19
+ -->
20
+
21
+ <module name =" Checker" >
22
+ <!--
23
+ If you set the basedir property below, then all reported file
24
+ names will be relative to the specified directory. See
25
+ https://checkstyle.org/5.x/config.html#Checker
26
+
27
+ <property name="basedir" value="${basedir}"/>
28
+ -->
29
+
30
+ <property name =" fileExtensions" value =" java, properties, xml" />
31
+
32
+ <module name =" SuppressionFilter" >
33
+ <property name =" file" value =" config/checkstyle/suppressions.xml" />
34
+ <property name =" optional" value =" false" />
35
+ </module >
36
+
37
+ <!-- Excludes all 'module-info.java' files -->
38
+ <!-- See https://checkstyle.org/config_filefilters.html -->
39
+ <module name =" BeforeExecutionExclusionFileFilter" >
40
+ <property name =" fileNamePattern" value =" module\-info\.java$" />
41
+ </module >
42
+
43
+ <!-- Checks that a package-info.java file exists for each package. -->
44
+ <!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage -->
45
+ <!-- <module name="JavadocPackage"/> -->
46
+
47
+ <!-- Checks whether files end with a new line. -->
48
+ <!-- See http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile -->
49
+ <module name =" NewlineAtEndOfFile" />
50
+
51
+ <!-- Checks that property files contain the same keys. -->
52
+ <!-- See http://checkstyle.sourceforge.net/config_misc.html#Translation -->
53
+ <module name =" Translation" />
54
+
55
+ <!-- Checks for Size Violations. -->
56
+ <!-- See http://checkstyle.sourceforge.net/config_sizes.html -->
57
+ <module name =" FileLength" />
58
+
59
+ <!-- Checks for whitespace -->
60
+ <!-- See http://checkstyle.sourceforge.net/config_whitespace.html -->
61
+ <module name =" FileTabCharacter" />
62
+
63
+ <!-- Miscellaneous other checks. -->
64
+ <!-- See http://checkstyle.sourceforge.net/config_misc.html -->
65
+ <module name =" RegexpSingleline" >
66
+ <property name =" format" value =" \s+$" />
67
+ <property name =" minimum" value =" 0" />
68
+ <property name =" maximum" value =" 0" />
69
+ <property name =" message" value =" Line has trailing spaces." />
70
+ </module >
71
+
72
+ <!-- Checks for Headers -->
73
+ <!-- See http://checkstyle.sourceforge.net/config_header.html -->
74
+ <!-- <module name="Header"> -->
75
+ <!-- <property name="headerFile" value="${checkstyle.header.file}"/> -->
76
+ <!-- <property name="fileExtensions" value="java"/> -->
77
+ <!-- </module> -->
78
+
79
+ <module name =" TreeWalker" >
80
+
81
+ <!-- Checks for Javadoc comments. -->
82
+ <!-- See http://checkstyle.sourceforge.net/config_javadoc.html -->
83
+ <!-- <module name="JavadocMethod"/> -->
84
+ <!-- <module name="JavadocType"/> -->
85
+ <!-- <module name="JavadocVariable"/> -->
86
+ <!-- <module name="JavadocStyle"/> -->
87
+ <!-- <module name="MissingJavadocMethod"/> -->
88
+
89
+ <!-- Checks for Naming Conventions. -->
90
+ <!-- See http://checkstyle.sourceforge.net/config_naming.html -->
91
+ <module name =" ConstantName" />
92
+ <module name =" LocalFinalVariableName" />
93
+ <module name =" LocalVariableName" />
94
+ <module name =" MemberName" />
95
+ <module name =" MethodName" />
96
+ <module name =" PackageName" />
97
+ <module name =" ParameterName" />
98
+ <module name =" StaticVariableName" />
99
+ <module name =" TypeName" />
100
+
101
+ <!-- Checks for imports -->
102
+ <!-- See http://checkstyle.sourceforge.net/config_import.html -->
103
+ <module name =" AvoidStarImport" />
104
+ <module name =" IllegalImport" /> <!-- defaults to sun.* packages -->
105
+ <module name =" RedundantImport" />
106
+ <module name =" UnusedImports" >
107
+ <property name =" processJavadoc" value =" false" />
108
+ </module >
109
+
110
+ <!-- Checks for Size Violations. -->
111
+ <!-- See http://checkstyle.sourceforge.net/config_sizes.html -->
112
+ <module name =" LineLength" >
113
+ <property name =" max" value =" 120" />
114
+ </module >
115
+ <module name =" MethodLength" />
116
+ <module name =" ParameterNumber" />
117
+
118
+ <!-- Checks for whitespace -->
119
+ <!-- See http://checkstyle.sourceforge.net/config_whitespace.html -->
120
+ <module name =" EmptyForIteratorPad" />
121
+ <module name =" GenericWhitespace" />
122
+ <module name =" MethodParamPad" />
123
+ <module name =" NoWhitespaceAfter" />
124
+ <module name =" NoWhitespaceBefore" />
125
+ <module name =" OperatorWrap" />
126
+ <module name =" ParenPad" />
127
+ <module name =" TypecastParenPad" />
128
+ <module name =" WhitespaceAfter" />
129
+ <module name =" WhitespaceAround" />
130
+
131
+ <!-- Modifier Checks -->
132
+ <!-- See http://checkstyle.sourceforge.net/config_modifiers.html -->
133
+ <module name =" ModifierOrder" />
134
+ <module name =" RedundantModifier" />
135
+
136
+ <!-- Checks for blocks. You know, those {}'s -->
137
+ <!-- See http://checkstyle.sourceforge.net/config_blocks.html -->
138
+ <module name =" AvoidNestedBlocks" />
139
+ <module name =" EmptyBlock" />
140
+ <module name =" LeftCurly" />
141
+ <module name =" NeedBraces" />
142
+ <module name =" RightCurly" />
143
+
144
+ <!-- Checks for common coding problems -->
145
+ <!-- See http://checkstyle.sourceforge.net/config_coding.html -->
146
+ <module name =" EmptyStatement" />
147
+ <module name =" EqualsHashCode" />
148
+ <module name =" HiddenField" >
149
+ <property name =" ignoreConstructorParameter" value =" true" />
150
+ </module >
151
+ <module name =" IllegalInstantiation" />
152
+ <module name =" InnerAssignment" />
153
+ <module name =" MagicNumber" />
154
+ <module name =" MissingSwitchDefault" />
155
+ <module name =" MultipleVariableDeclarations" />
156
+ <module name =" SimplifyBooleanExpression" />
157
+ <module name =" SimplifyBooleanReturn" />
158
+
159
+ <!-- Checks for class design -->
160
+ <!-- See http://checkstyle.sourceforge.net/config_design.html -->
161
+ <module name =" DesignForExtension" />
162
+ <module name =" FinalClass" />
163
+ <module name =" HideUtilityClassConstructor" />
164
+ <module name =" InterfaceIsType" />
165
+ <module name =" VisibilityModifier" >
166
+ <property name =" allowPublicFinalFields" value =" true" />
167
+ </module >
168
+
169
+ <!-- Miscellaneous other checks. -->
170
+ <!-- See http://checkstyle.sourceforge.net/config_misc.html -->
171
+ <module name =" ArrayTypeStyle" />
172
+ <module name =" FinalParameters" />
173
+ <module name =" TodoComment" />
174
+ <module name =" UpperEll" />
175
+
176
+ </module >
177
+
178
+ </module >
0 commit comments