Mercurial > hg > graal-compiler
annotate graal/com.oracle.graal.graph/.checkstyle_checks.xml @ 22228:751a0882cb7e
mx makefile: Remove dead code
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Wed, 15 Jul 2015 18:23:34 +0200 |
parents | 96acaee06302 |
children | bbf75d0e6a7d |
rev | line source |
---|---|
4144 | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
3 | |
8959
7fee8bd5d2bd
Remove some System.(out|err).print...
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
6697
diff
changeset
|
4 <!-- |
7fee8bd5d2bd
Remove some System.(out|err).print...
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
6697
diff
changeset
|
5 This configuration file was written by the eclipse-cs plugin configuration editor |
4144 | 6 --> |
8959
7fee8bd5d2bd
Remove some System.(out|err).print...
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
6697
diff
changeset
|
7 <!-- |
11363
b332bfd012a4
added suppression filter so that long help messages for Options can be supported without triggering Checkstyle errors in generated sources
Doug Simon <doug.simon@oracle.com>
parents:
10513
diff
changeset
|
8 Checkstyle-Configuration: Checks |
8959
7fee8bd5d2bd
Remove some System.(out|err).print...
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
6697
diff
changeset
|
9 Description: none |
4144 | 10 --> |
11 <module name="Checker"> | |
9109
23c96de53386
Change severity of checkstyle problems from "warning" to "error". Fixed several System.out.print violations.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
8959
diff
changeset
|
12 <property name="severity" value="error"/> |
4144 | 13 <module name="TreeWalker"> |
14 <property name="tabWidth" value="4"/> | |
15 <module name="FileContentsHolder"/> | |
16 <module name="JavadocStyle"> | |
17 <property name="checkHtml" value="false"/> | |
18 </module> | |
19 <module name="LocalFinalVariableName"/> | |
20 <module name="LocalVariableName"/> | |
21 <module name="MemberName"> | |
22 <property name="format" value="^(([a-z][a-zA-Z0-9]*$)|(_[A-Z][a-zA-Z0-9]*_[a-z][a-zA-Z0-9]*$))"/> | |
23 </module> | |
20153
96acaee06302
added Checkstyle rule to prevent non-ASCII characters in Java source files
Doug Simon <doug.simon@oracle.com>
parents:
20038
diff
changeset
|
24 <module name="MethodName"/> |
4144 | 25 <module name="PackageName"/> |
26 <module name="ParameterName"/> | |
27 <module name="TypeName"> | |
28 <property name="format" value="^[A-Z][_a-zA-Z0-9]*$"/> | |
29 </module> | |
30 <module name="RedundantImport"/> | |
31 <module name="LineLength"> | |
32 <property name="max" value="250"/> | |
33 </module> | |
34 <module name="MethodParamPad"/> | |
35 <module name="NoWhitespaceAfter"> | |
36 <property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/> | |
37 </module> | |
38 <module name="NoWhitespaceBefore"> | |
39 <property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/> | |
40 </module> | |
41 <module name="ParenPad"/> | |
42 <module name="TypecastParenPad"> | |
43 <property name="tokens" value="RPAREN,TYPECAST"/> | |
44 </module> | |
45 <module name="WhitespaceAfter"/> | |
46 <module name="WhitespaceAround"> | |
47 <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND"/> | |
48 </module> | |
49 <module name="RedundantModifier"/> | |
50 <module name="AvoidNestedBlocks"> | |
51 <property name="allowInSwitchCase" value="true"/> | |
52 </module> | |
53 <module name="EmptyBlock"> | |
54 <property name="option" value="text"/> | |
55 <property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_TRY,LITERAL_WHILE,STATIC_INIT"/> | |
56 </module> | |
57 <module name="LeftCurly"/> | |
58 <module name="NeedBraces"/> | |
59 <module name="RightCurly"/> | |
60 <module name="EmptyStatement"/> | |
61 <module name="HiddenField"> | |
62 <property name="severity" value="ignore"/> | |
63 <property name="ignoreConstructorParameter" value="true"/> | |
64 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
65 </module> | |
66 <module name="FinalClass"/> | |
67 <module name="HideUtilityClassConstructor"> | |
68 <property name="severity" value="ignore"/> | |
69 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
70 </module> | |
71 <module name="ArrayTypeStyle"/> | |
72 <module name="UpperEll"/> | |
73 <module name="FallThrough"/> | |
74 <module name="FinalLocalVariable"> | |
75 <property name="severity" value="ignore"/> | |
76 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
77 </module> | |
78 <module name="MultipleVariableDeclarations"/> | |
79 <module name="StringLiteralEquality"> | |
80 <property name="severity" value="error"/> | |
81 </module> | |
82 <module name="SuperFinalize"/> | |
83 <module name="UnnecessaryParentheses"> | |
84 <property name="severity" value="ignore"/> | |
85 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
86 </module> | |
87 <module name="Indentation"> | |
88 <property name="severity" value="ignore"/> | |
89 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
90 </module> | |
91 <module name="StaticVariableName"> | |
92 <property name="format" value="^[A-Za-z][a-zA-Z0-9]*$"/> | |
93 </module> | |
94 <module name="EmptyForInitializerPad"/> | |
95 <module name="EmptyForIteratorPad"/> | |
96 <module name="ModifierOrder"/> | |
97 <module name="DefaultComesLast"/> | |
98 <module name="InnerAssignment"> | |
99 <property name="severity" value="ignore"/> | |
100 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
101 </module> | |
102 <module name="ModifiedControlVariable"/> | |
103 <module name="MutableException"> | |
104 <property name="severity" value="ignore"/> | |
105 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
106 </module> | |
107 <module name="ParameterAssignment"> | |
108 <property name="severity" value="ignore"/> | |
109 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | |
110 </module> | |
111 <module name="RegexpSinglelineJava"> | |
112 <metadata name="net.sf.eclipsecs.core.comment" value="Illegal trailing whitespace(s) at the end of the line."/> | |
113 <property name="format" value="\s$"/> | |
114 <property name="message" value="Illegal trailing whitespace(s) at the end of the line."/> | |
115 <property name="ignoreComments" value="true"/> | |
116 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for trailing spaces at the end of a line"/> | |
117 </module> | |
118 <module name="RegexpSinglelineJava"> | |
119 <metadata name="net.sf.eclipsecs.core.comment" value="illegal space before a comma"/> | |
120 <property name="format" value=" ,"/> | |
121 <property name="message" value="illegal space before a comma"/> | |
122 <property name="ignoreComments" value="true"/> | |
20038
bbf53b35292e
added Checkstyle rule to forbid use of old synchronized classes such as StringBuffer, Vector, Hashtable and Stack
Doug Simon <doug.simon@oracle.com>
parents:
18837
diff
changeset
|
123 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/> |
4144 | 124 <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/> |
125 </module> | |
20038
bbf53b35292e
added Checkstyle rule to forbid use of old synchronized classes such as StringBuffer, Vector, Hashtable and Stack
Doug Simon <doug.simon@oracle.com>
parents:
18837
diff
changeset
|
126 <module name="RegexpSinglelineJava"> |
20153
96acaee06302
added Checkstyle rule to prevent non-ASCII characters in Java source files
Doug Simon <doug.simon@oracle.com>
parents:
20038
diff
changeset
|
127 <property name="format" value="[^\x00-\x7F]"/> |
96acaee06302
added Checkstyle rule to prevent non-ASCII characters in Java source files
Doug Simon <doug.simon@oracle.com>
parents:
20038
diff
changeset
|
128 <property name="message" value="Only use ASCII characters."/> |
96acaee06302
added Checkstyle rule to prevent non-ASCII characters in Java source files
Doug Simon <doug.simon@oracle.com>
parents:
20038
diff
changeset
|
129 </module> |
96acaee06302
added Checkstyle rule to prevent non-ASCII characters in Java source files
Doug Simon <doug.simon@oracle.com>
parents:
20038
diff
changeset
|
130 <module name="RegexpSinglelineJava"> |
20038
bbf53b35292e
added Checkstyle rule to forbid use of old synchronized classes such as StringBuffer, Vector, Hashtable and Stack
Doug Simon <doug.simon@oracle.com>
parents:
18837
diff
changeset
|
131 <property name="format" value="new (Hashtable|Vector|Stack|StringBuffer)[^\w]"/> |
bbf53b35292e
added Checkstyle rule to forbid use of old synchronized classes such as StringBuffer, Vector, Hashtable and Stack
Doug Simon <doug.simon@oracle.com>
parents:
18837
diff
changeset
|
132 <property name="message" value="Don't use old synchronized collection classes"/> |
20153
96acaee06302
added Checkstyle rule to prevent non-ASCII characters in Java source files
Doug Simon <doug.simon@oracle.com>
parents:
20038
diff
changeset
|
133 </module> |
4144 | 134 </module> |
135 <module name="RegexpHeader"> | |
136 <property name="header" value="/\*\n \* Copyright \(c\) (20[0-9][0-9], )?20[0-9][0-9], Oracle and/or its affiliates. All rights reserved.\n \* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n \*\n \* This code is free software; you can redistribute it and/or modify it\n \* under the terms of the GNU General Public License version 2 only, as\n \* published by the Free Software Foundation.\n \*\n \* This code is distributed in the hope that it will be useful, but WITHOUT\n \* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n \* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n \* version 2 for more details \(a copy is included in the LICENSE file that\n \* accompanied this code\).\n \*\n \* You should have received a copy of the GNU General Public License version\n \* 2 along with this work; if not, write to the Free Software Foundation,\n \* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n \*\n \* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n \* or visit www.oracle.com if you need additional information or have any\n \* questions.\n \*/\n"/> | |
5521
13321732f85c
Only check .java files for correct header.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5062
diff
changeset
|
137 <property name="fileExtensions" value="java"/> |
4144 | 138 </module> |
139 <module name="FileTabCharacter"> | |
140 <property name="severity" value="error"/> | |
18163
c88ab4f1f04a
re-enabled Checkstyle with the release of 6.0 that supports Java 8; fixed existing Checkstyle warnings
Doug Simon <doug.simon@oracle.com>
parents:
14918
diff
changeset
|
141 <property name="fileExtensions" value="java"/> |
4144 | 142 </module> |
143 <module name="NewlineAtEndOfFile"> | |
144 <property name="lineSeparator" value="lf"/> | |
145 </module> | |
146 <module name="Translation"/> | |
147 <module name="SuppressionCommentFilter"> | |
148 <property name="offCommentFormat" value="Checkstyle: stop constant name check"/> | |
149 <property name="onCommentFormat" value="Checkstyle: resume constant name check"/> | |
150 <property name="checkFormat" value="ConstantNameCheck"/> | |
151 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Allow non-conforming constant names"/> | |
152 </module> | |
153 <module name="SuppressionCommentFilter"> | |
154 <property name="offCommentFormat" value="Checkstyle: stop method name check"/> | |
155 <property name="onCommentFormat" value="Checkstyle: resume method name check"/> | |
156 <property name="checkFormat" value="MethodName"/> | |
157 <property name="checkC" value="false"/> | |
158 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable method name checks"/> | |
159 </module> | |
160 <module name="SuppressionCommentFilter"> | |
161 <property name="offCommentFormat" value="CheckStyle: stop parameter assignment check"/> | |
162 <property name="onCommentFormat" value="CheckStyle: resume parameter assignment check"/> | |
163 <property name="checkFormat" value="ParameterAssignment"/> | |
164 <property name="checkC" value="false"/> | |
165 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable Parameter Assignment"/> | |
166 </module> | |
167 <module name="SuppressionCommentFilter"> | |
168 <property name="offCommentFormat" value="Checkstyle: stop final variable check"/> | |
169 <property name="onCommentFormat" value="Checkstyle: resume final variable check"/> | |
170 <property name="checkFormat" value="FinalLocalVariable"/> | |
171 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable final variable checks"/> | |
172 </module> | |
173 <module name="SuppressionCommentFilter"> | |
174 <property name="offCommentFormat" value="Checkstyle: stop"/> | |
175 <property name="onCommentFormat" value="Checkstyle: resume"/> | |
176 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable all checks"/> | |
177 </module> | |
178 <module name="SuppressionCommentFilter"> | |
179 <property name="offCommentFormat" value="CheckStyle: stop inner assignment check"/> | |
180 <property name="onCommentFormat" value="CheckStyle: resume inner assignment check"/> | |
181 <property name="checkFormat" value="InnerAssignment"/> | |
182 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable inner assignment checks"/> | |
183 </module> | |
184 <module name="SuppressionCommentFilter"> | |
185 <property name="offCommentFormat" value="Checkstyle: stop field name check"/> | |
186 <property name="onCommentFormat" value="Checkstyle: resume field name check"/> | |
187 <property name="checkFormat" value="MemberName"/> | |
188 <property name="checkC" value="false"/> | |
189 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable field name checks"/> | |
190 </module> | |
191 <module name="RegexpMultiline"> | |
192 <metadata name="net.sf.eclipsecs.core.comment" value="illegal Windows line ending"/> | |
193 <property name="format" value="\r\n"/> | |
194 <property name="message" value="illegal Windows line ending"/> | |
195 </module> | |
8959
7fee8bd5d2bd
Remove some System.(out|err).print...
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
6697
diff
changeset
|
196 <module name="SuppressionCommentFilter"> |
9901
4fcd38b13eb1
disabled emitting and checking of copyright header in files generated by OptionProcessor
Doug Simon <doug.simon@oracle.com>
parents:
9109
diff
changeset
|
197 <property name="offCommentFormat" value="CheckStyle: stop header check"/> |
4fcd38b13eb1
disabled emitting and checking of copyright header in files generated by OptionProcessor
Doug Simon <doug.simon@oracle.com>
parents:
9109
diff
changeset
|
198 <property name="onCommentFormat" value="CheckStyle: resume header check"/> |
4fcd38b13eb1
disabled emitting and checking of copyright header in files generated by OptionProcessor
Doug Simon <doug.simon@oracle.com>
parents:
9109
diff
changeset
|
199 <property name="checkFormat" value=".*Header"/> |
4fcd38b13eb1
disabled emitting and checking of copyright header in files generated by OptionProcessor
Doug Simon <doug.simon@oracle.com>
parents:
9109
diff
changeset
|
200 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable header checks"/> |
4fcd38b13eb1
disabled emitting and checking of copyright header in files generated by OptionProcessor
Doug Simon <doug.simon@oracle.com>
parents:
9109
diff
changeset
|
201 </module> |
11363
b332bfd012a4
added suppression filter so that long help messages for Options can be supported without triggering Checkstyle errors in generated sources
Doug Simon <doug.simon@oracle.com>
parents:
10513
diff
changeset
|
202 <module name="SuppressionCommentFilter"> |
b332bfd012a4
added suppression filter so that long help messages for Options can be supported without triggering Checkstyle errors in generated sources
Doug Simon <doug.simon@oracle.com>
parents:
10513
diff
changeset
|
203 <property name="offCommentFormat" value="CheckStyle: stop line length check"/> |
b332bfd012a4
added suppression filter so that long help messages for Options can be supported without triggering Checkstyle errors in generated sources
Doug Simon <doug.simon@oracle.com>
parents:
10513
diff
changeset
|
204 <property name="onCommentFormat" value="CheckStyle: resume line length check"/> |
b332bfd012a4
added suppression filter so that long help messages for Options can be supported without triggering Checkstyle errors in generated sources
Doug Simon <doug.simon@oracle.com>
parents:
10513
diff
changeset
|
205 <property name="checkFormat" value="LineLength"/> |
b332bfd012a4
added suppression filter so that long help messages for Options can be supported without triggering Checkstyle errors in generated sources
Doug Simon <doug.simon@oracle.com>
parents:
10513
diff
changeset
|
206 </module> |
18772
7fab6f106989
Truffle-DSL: avoid some checkstyle errors for generated code.
Christian Humer <christian.humer@gmail.com>
parents:
18163
diff
changeset
|
207 <module name="SuppressionCommentFilter"> |
7fab6f106989
Truffle-DSL: avoid some checkstyle errors for generated code.
Christian Humer <christian.humer@gmail.com>
parents:
18163
diff
changeset
|
208 <property name="offCommentFormat" value="CheckStyle: start generated"/> |
7fab6f106989
Truffle-DSL: avoid some checkstyle errors for generated code.
Christian Humer <christian.humer@gmail.com>
parents:
18163
diff
changeset
|
209 <property name="onCommentFormat" value="CheckStyle: stop generated"/> |
7fab6f106989
Truffle-DSL: avoid some checkstyle errors for generated code.
Christian Humer <christian.humer@gmail.com>
parents:
18163
diff
changeset
|
210 <property name="checkFormat" value=".*Name|.*LineLength"/> |
7fab6f106989
Truffle-DSL: avoid some checkstyle errors for generated code.
Christian Humer <christian.humer@gmail.com>
parents:
18163
diff
changeset
|
211 </module> |
4144 | 212 </module> |