29 Finally, it is worth reading the documentation. |
29 Finally, it is worth reading the documentation. |
30 |
30 |
31 --> |
31 --> |
32 |
32 |
33 <module name="Checker"> |
33 <module name="Checker"> |
|
34 <!-- |
|
35 If you set the basedir property below, then all reported file |
|
36 names will be relative to the specified directory. See |
|
37 http://checkstyle.sourceforge.net/5.x/config.html#Checker |
|
38 --> |
|
39 <property name="basedir" value="/home/beem/"/> |
|
40 |
34 <property name="severity" value="warning"/> |
41 <property name="severity" value="warning"/> |
35 |
42 |
36 <!-- Checks that a package.html file exists for each package. --> |
43 <!-- Checks that a package-info.java file exists for each package. --> |
37 <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml --> |
44 <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage --> |
38 <module name="PackageHtml"/> |
45 <module name="JavadocPackage"> |
|
46 <property name="allowLegacy" value="true"/> |
|
47 </module> |
39 |
48 |
40 <!-- Checks whether files end with a new line. --> |
49 <!-- Checks whether files end with a new line. --> |
41 <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> |
50 <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> |
42 <module name="NewlineAtEndOfFile"/> |
51 <module name="NewlineAtEndOfFile"/> |
43 |
52 |
44 <!-- Checks that property files contain the same keys. --> |
53 <!-- Checks that property files contain the same keys. --> |
45 <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> |
54 <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> |
46 <module name="Translation"/> |
55 <module name="Translation"/> |
|
56 |
|
57 <!-- Checks for Size Violations. --> |
|
58 <!-- See http://checkstyle.sf.net/config_sizes.html --> |
|
59 <module name="FileLength"/> |
|
60 |
|
61 <!-- Checks for whitespace --> |
|
62 <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
|
63 <!-- we want tab |
|
64 <module name="FileTabCharacter"/> |
|
65 --> |
|
66 |
|
67 <!-- Miscellaneous other checks. --> |
|
68 <!-- See http://checkstyle.sf.net/config_misc.html --> |
|
69 <module name="RegexpSingleline"> |
|
70 <property name="format" value="\s+$"/> |
|
71 <property name="minimum" value="0"/> |
|
72 <property name="maximum" value="0"/> |
|
73 <property name="message" value="Line has trailing spaces."/> |
|
74 </module> |
47 |
75 |
48 |
76 |
49 <module name="TreeWalker"> |
77 <module name="TreeWalker"> |
50 |
78 |
51 <!-- Checks for Javadoc comments. --> |
79 <!-- Checks for Javadoc comments. --> |
100 <!-- See http://checkstyle.sf.net/config_import.html --> |
128 <!-- See http://checkstyle.sf.net/config_import.html --> |
101 <module name="AvoidStarImport"/> |
129 <module name="AvoidStarImport"/> |
102 <module name="IllegalImport"/> <!-- defaults to sun.* packages --> |
130 <module name="IllegalImport"/> <!-- defaults to sun.* packages --> |
103 <module name="RedundantImport"/> |
131 <module name="RedundantImport"/> |
104 <module name="UnusedImports"/> |
132 <module name="UnusedImports"/> |
|
133 <module name="AvoidStaticImport"> |
|
134 <property name="excludes" value="*"/> |
|
135 </module> |
105 |
136 |
106 |
137 |
107 <!-- Checks for Size Violations. --> |
138 <!-- Checks for Size Violations. --> |
108 <!-- See http://checkstyle.sf.net/config_sizes.html --> |
139 <!-- See http://checkstyle.sf.net/config_sizes.html --> |
109 <module name="FileLength"/> |
|
110 <module name="LineLength"> |
140 <module name="LineLength"> |
111 <property name="max" value="120" /> |
141 <property name="max" value="120" /> |
112 </module> |
142 </module> |
113 <module name="MethodLength"/> |
143 <module name="MethodLength"/> |
114 <module name="ParameterNumber"/> |
144 <module name="ParameterNumber"/> |
118 |
148 |
119 |
149 |
120 <!-- Checks for whitespace --> |
150 <!-- Checks for whitespace --> |
121 <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
151 <!-- See http://checkstyle.sf.net/config_whitespace.html --> |
122 <module name="EmptyForIteratorPad"/> |
152 <module name="EmptyForIteratorPad"/> |
|
153 <module name="GenericWhitespace"/> |
123 <module name="MethodParamPad"/> |
154 <module name="MethodParamPad"/> |
124 <module name="NoWhitespaceAfter"/> |
155 <module name="NoWhitespaceAfter"/> |
125 <module name="NoWhitespaceBefore"/> |
156 <module name="NoWhitespaceBefore"/> |
126 <module name="OperatorWrap"/> |
157 <module name="OperatorWrap"/> |
127 <module name="ParenPad"/> |
158 <module name="ParenPad"/> |
147 <!-- |
178 <!-- |
148 <module name="NeedBraces"/> |
179 <module name="NeedBraces"/> |
149 --> |
180 --> |
150 <module name="RightCurly"/> |
181 <module name="RightCurly"/> |
151 |
182 |
|
183 <!-- Check for annotations |
|
184 http://checkstyle.sourceforge.net/config_annotation.html#MissingDeprecated |
|
185 --> |
|
186 <module name="AnnotationUseStyle"/> |
|
187 <module name="MissingDeprecated"/> |
|
188 <module name="MissingOverride"/> |
152 |
189 |
153 <!-- Checks for common coding problems --> |
190 <!-- Checks for common coding problems --> |
154 <!-- See http://checkstyle.sf.net/config_coding.html --> |
191 <!-- See http://checkstyle.sf.net/config_coding.html --> |
155 <module name="CovariantEquals"/> |
192 <module name="CovariantEquals"/> |
156 <module name="AvoidInlineConditionals"/> |
193 <module name="AvoidInlineConditionals"/> |
186 <module name="MultipleStringLiterals"/> |
223 <module name="MultipleStringLiterals"/> |
187 <module name="MultipleVariableDeclarations"/> |
224 <module name="MultipleVariableDeclarations"/> |
188 <module name="UnnecessaryParentheses"/> |
225 <module name="UnnecessaryParentheses"/> |
189 <module name="ParameterAssignment"/> |
226 <module name="ParameterAssignment"/> |
190 <module name="SuperClone"/> |
227 <module name="SuperClone"/> |
|
228 <module name="EqualsAvoidNull"/> |
|
229 <module name="NoClone"/> |
|
230 <module name="NoFinalizer"/> |
191 |
231 |
192 <!-- Checks for class design --> |
232 <!-- Checks for class design --> |
193 <!-- See http://checkstyle.sf.net/config_design.html --> |
233 <!-- See http://checkstyle.sf.net/config_design.html --> |
194 <!-- |
234 <!-- |
195 <module name="DesignForExtension"/> |
235 <module name="DesignForExtension"/> |
207 <module name="FinalParameters"> |
247 <module name="FinalParameters"> |
208 <property name="tokens" value="CTOR_DEF"/> |
248 <property name="tokens" value="CTOR_DEF"/> |
209 </module> |
249 </module> |
210 <module name="Indentation"/> |
250 <module name="Indentation"/> |
211 |
251 |
212 <module name="GenericIllegalRegexp"> |
|
213 <property name="format" value="\s+$"/> |
|
214 <property name="message" value="Line has trailing spaces."/> |
|
215 </module> |
|
216 <module name="TodoComment"/> |
252 <module name="TodoComment"/> |
217 <module name="UpperEll"/> |
253 <module name="UpperEll"/> |
218 |
254 |
219 <module name="BooleanExpressionComplexity"/> |
255 <module name="BooleanExpressionComplexity"/> |
220 <module name="UpperEll"/> |
256 <module name="UpperEll"/> |
221 |
|
222 |
257 |
223 <module name="ArrayTypeStyle"/> |
258 <module name="ArrayTypeStyle"/> |
224 |
259 |
225 </module> |
260 </module> |
226 <module name="StrictDuplicateCode"/> |
261 <module name="StrictDuplicateCode"/> |