Debian Codegraph @

rhino/checkstyle.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!DOCTYPE module PUBLIC
3 "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
4 "http://checkstyle.sourceforge.net/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 <!--
67 <module name="RegexpSingleline">
68 <property name="format" value="\s+$"/>
69 <property name="minimum" value="0"/>
70 <property name="maximum" value="0"/>
71 <property name="message" value="Line has trailing spaces."/>
72 </module>
73 -->
74
75 <!-- Checks for Headers -->
76 <!-- See http://checkstyle.sf.net/config_header.html -->
77 <!-- <module name="Header"> -->
78 <!-- <property name="headerFile" value="${checkstyle.header.file}"/> -->
79 <!-- <property name="fileExtensions" value="java"/> -->
80 <!-- </module> -->
81
82 <module name="TreeWalker">
83
84 <!-- Checks for Javadoc comments. -->
85 <!-- See http://checkstyle.sf.net/config_javadoc.html -->
86 <!--
87 <module name="JavadocMethod"/>
88 <module name="JavadocType"/>
89 <module name="JavadocVariable"/>
90 <module name="JavadocStyle"/>
91 -->
92
93 <!-- Checks for Naming Conventions. -->
94 <!-- See http://checkstyle.sf.net/config_naming.html -->
95 <!--
96 <module name="ConstantName"/>
97 <module name="LocalFinalVariableName"/>
98 <module name="LocalVariableName"/>
99 <module name="MemberName"/>
100 <module name="MethodName"/>
101 <module name="PackageName"/>
102 <module name="ParameterName"/>
103 <module name="StaticVariableName"/>
104 <module name="TypeName"/>
105 -->
106
107 <!-- Checks for imports -->
108 <!-- See http://checkstyle.sf.net/config_import.html -->
109 <!-- Unfortunately there's a lot of code to change with star imports... -->
110 <!-- <module name="AvoidStarImport"/> -->
111 <module name="IllegalImport"/>
112 <!-- defaults to sun.* packages -->
113 <module name="RedundantImport"/>
114 <module name="UnusedImports">
115 <property name="processJavadoc" value="true"/>
116 </module>
117 <!-- Checks for Size Violations. -->
118 <!-- See http://checkstyle.sf.net/config_sizes.html -->
119 <!--
120 <module name="LineLength"/>
121 <module name="MethodLength"/>
122 <module name="ParameterNumber"/>
123 -->
124
125 <!-- Checks for whitespace -->
126 <!-- See http://checkstyle.sf.net/config_whitespace.html -->
127 <!--
128 <module name="EmptyForIteratorPad"/>
129 <module name="GenericWhitespace"/>
130 <module name="MethodParamPad"/>
131 <module name="NoWhitespaceAfter"/>
132 <module name="NoWhitespaceBefore"/>
133 <module name="OperatorWrap"/>
134 <module name="ParenPad"/>
135 <module name="TypecastParenPad"/>
136 <module name="WhitespaceAfter"/>
137 <module name="WhitespaceAround"/>
138 -->
139
140 <!-- Modifier Checks -->
141 <!-- See http://checkstyle.sf.net/config_modifiers.html -->
142 <!--
143 <module name="ModifierOrder"/>
144 <module name="RedundantModifier"/>
145 -->
146
147 <!-- Checks for blocks. You know, those {}'s -->
148 <!-- See http://checkstyle.sf.net/config_blocks.html -->
149 <!--
150 <module name="AvoidNestedBlocks"/>
151 <module name="EmptyBlock"/>
152 <module name="LeftCurly"/>
153 <module name="NeedBraces"/>
154 <module name="RightCurly"/>
155 -->
156
157 <!-- Checks for common coding problems -->
158 <!-- See http://checkstyle.sf.net/config_coding.html -->
159 <!-- <module name="AvoidInlineConditionals"/> -->
160 <module name="CovariantEquals"/>
161 <module name="EmptyStatement"/>
162 <module name="EqualsHashCode"/>
163 <module name="FallThrough"/>
164 <!-- <module name="HiddenField"/> -->
165 <module name="IllegalInstantiation"/>
166 <module name="NoClone"/>
167 <module name="NoFinalizer"/>
168 <!-- <module name="InnerAssignment"/> -->
169 <module name="SimplifyBooleanExpression"/>
170 <module name="SimplifyBooleanReturn"/>
171 <module name="StringLiteralEquality"/>
172 <module name="SuperClone"/>
173
174 <!-- Checks for class design -->
175 <!-- See http://checkstyle.sf.net/config_design.html -->
176 <!--
177 <module name="DesignForExtension"/>
178 <module name="FinalClass"/>
179 <module name="HideUtilityClassConstructor"/>
180 <module name="InterfaceIsType"/>
181 <module name="VisibilityModifier"/>
182 -->
183
184 <!-- Miscellaneous other checks. -->
185 <!-- See http://checkstyle.sf.net/config_misc.html -->
186 <!-- -->
187 <!-- <module name="ArrayTypeStyle"/> -->
188 <!-- <module name="FinalParameters"/> -->
189 <!-- <module name="TodoComment"/> -->
190 <module name="UpperEll"/>
191 <!-- -->
192
193 </module>
194
195 </module>