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 checks the sun coding conventions from:
9+
10+ - the Java Language Specification at
11+ http://java.sun.com/docs/books/jls/second_edition/html/index.html
12+
13+ - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
14+
15+ - the Javadoc guidelines at
16+ http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
17+
18+ - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
19+
20+ - some best practices
21+
22+ Checkstyle is very configurable. Be sure to read the documentation at
23+ http://checkstyle.sf.net (or in your downloaded distribution).
24+
25+ Most Checks are configurable, be sure to consult the documentation.
26+
27+ To completely disable a check, just comment it out or delete it from the file.
28+
29+ Finally, it is worth reading the documentation.
30+
31+ -->
32+
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="${basedir}"/>
40+ -->
41+
42+ <property name =" fileExtensions" value =" java, properties, xml" />
43+
44+ <!-- Checks that a package-info.java file exists for each package. -->
45+ <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
46+ <!-- <module name="JavadocPackage"/>-->
47+
48+ <!-- Checks whether files end with a new line. -->
49+ <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
50+ <!-- <module name="NewlineAtEndOfFile"/>-->
51+
52+ <!-- Checks that property files contain the same keys. -->
53+ <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
54+ <module name =" Translation" />
55+
56+ <!-- Checks for Size Violations. -->
57+ <!-- See http://checkstyle.sf.net/config_sizes.html -->
58+ <module name =" FileLength" />
59+
60+ <!-- Checks for whitespace -->
61+ <!-- See http://checkstyle.sf.net/config_whitespace.html -->
62+ <module name =" FileTabCharacter" />
63+
64+ <!-- Miscellaneous other checks. -->
65+ <!-- See http://checkstyle.sf.net/config_misc.html -->
66+ <module name =" RegexpSingleline" >
67+ <property name =" format" value =" \s+$" />
68+ <property name =" minimum" value =" 0" />
69+ <property name =" maximum" value =" 0" />
70+ <property name =" message" value =" Line has trailing spaces." />
71+ </module >
72+
73+ <!-- Checks for Headers -->
74+ <!-- See http://checkstyle.sf.net/config_header.html -->
75+ <!-- <module name="Header"> -->
76+ <!-- <property name="headerFile" value="${checkstyle.header.file}"/> -->
77+ <!-- <property name="fileExtensions" value="java"/> -->
78+ <!-- </module> -->
79+
80+ <module name =" TreeWalker" >
81+
82+ <!-- Checks for Javadoc comments. -->
83+ <!-- See http://checkstyle.sf.net/config_javadoc.html -->
84+ <!-- <module name="JavadocMethod"/>-->
85+ <!-- <module name="JavadocType"/>-->
86+ <!-- <module name="JavadocVariable"/>-->
87+ <!-- <module name="JavadocStyle"/>-->
88+
89+ <!-- Checks for Naming Conventions. -->
90+ <!-- See http://checkstyle.sf.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.sf.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.sf.net/config_sizes.html -->
112+ <!-- <module name="LineLength"/>-->
113+ <module name =" MethodLength" />
114+ <module name =" ParameterNumber" />
115+
116+ <!-- Checks for whitespace -->
117+ <!-- See http://checkstyle.sf.net/config_whitespace.html -->
118+ <module name =" EmptyForIteratorPad" />
119+ <module name =" GenericWhitespace" />
120+ <module name =" MethodParamPad" />
121+ <!-- <module name="NoWhitespaceAfter"/>-->
122+ <module name =" NoWhitespaceBefore" />
123+ <!-- <module name="OperatorWrap"/>-->
124+ <module name =" ParenPad" />
125+ <module name =" TypecastParenPad" />
126+ <module name =" WhitespaceAfter" />
127+ <module name =" WhitespaceAround" />
128+
129+ <!-- Modifier Checks -->
130+ <!-- See http://checkstyle.sf.net/config_modifiers.html -->
131+ <module name =" ModifierOrder" />
132+ <module name =" RedundantModifier" />
133+
134+ <!-- Checks for blocks. You know, those {}'s -->
135+ <!-- See http://checkstyle.sf.net/config_blocks.html -->
136+ <module name =" AvoidNestedBlocks" />
137+ <module name =" EmptyBlock" />
138+ <module name =" LeftCurly" />
139+ <module name =" NeedBraces" />
140+ <module name =" RightCurly" />
141+
142+ <!-- Checks for common coding problems -->
143+ <!-- See http://checkstyle.sf.net/config_coding.html -->
144+ <!-- <module name="AvoidInlineConditionals"/>-->
145+ <module name =" EmptyStatement" />
146+ <module name =" EqualsHashCode" />
147+ <!-- <module name="HiddenField"/>-->
148+ <module name =" IllegalInstantiation" />
149+ <module name =" InnerAssignment" />
150+ <!-- <module name="MagicNumber"/>-->
151+ <module name =" MissingSwitchDefault" />
152+ <module name =" SimplifyBooleanExpression" />
153+ <module name =" SimplifyBooleanReturn" />
154+
155+ <!-- Checks for class design -->
156+ <!-- See http://checkstyle.sf.net/config_design.html -->
157+ <!-- <module name="DesignForExtension"/>-->
158+ <module name =" FinalClass" />
159+ <module name =" HideUtilityClassConstructor" />
160+ <!-- <module name="InterfaceIsType"/>-->
161+ <!-- <module name="VisibilityModifier"/>-->
162+
163+ <!-- Miscellaneous other checks. -->
164+ <!-- See http://checkstyle.sf.net/config_misc.html -->
165+ <module name =" ArrayTypeStyle" />
166+ <!-- <module name="FinalParameters"/>-->
167+ <module name =" TodoComment" />
168+ <module name =" UpperEll" />
169+
170+ </module >
171+
172+ </module >
0 commit comments