annotate truffle/com.oracle.truffle.dsl.processor/.checkstyle_checks.xml @ 22046:e7c2d36daf72

TruffleLanguage.parse method to convert a source to CallTarget. Basic caching to make sure the code is shared among tenants in one JVM.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Thu, 30 Jul 2015 17:36:34 +0200
parents 9c8c0937da41
children 7a5b874b8d12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4144
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
2 <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
10 -->
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
13 <module name="TreeWalker">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
14 <property name="tabWidth" value="4"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
15 <module name="FileContentsHolder"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
16 <module name="JavadocStyle">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
17 <property name="checkHtml" value="false"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
18 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
19 <module name="LocalFinalVariableName"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
20 <module name="LocalVariableName"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
21 <module name="MemberName">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
22 <property name="format" value="^(([a-z][a-zA-Z0-9]*$)|(_[A-Z][a-zA-Z0-9]*_[a-z][a-zA-Z0-9]*$))"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
25 <module name="PackageName"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
26 <module name="ParameterName"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
27 <module name="TypeName">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
28 <property name="format" value="^[A-Z][_a-zA-Z0-9]*$"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
29 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
30 <module name="RedundantImport"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
31 <module name="LineLength">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
32 <property name="max" value="250"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
33 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
34 <module name="MethodParamPad"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
35 <module name="NoWhitespaceAfter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
36 <property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
37 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
38 <module name="NoWhitespaceBefore">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
39 <property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
40 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
41 <module name="ParenPad"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
42 <module name="TypecastParenPad">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
43 <property name="tokens" value="RPAREN,TYPECAST"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
44 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
45 <module name="WhitespaceAfter"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
46 <module name="WhitespaceAround">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
48 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
49 <module name="RedundantModifier"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
50 <module name="AvoidNestedBlocks">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
51 <property name="allowInSwitchCase" value="true"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
52 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
53 <module name="EmptyBlock">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
54 <property name="option" value="text"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
55 <property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_TRY,LITERAL_WHILE,STATIC_INIT"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
56 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
57 <module name="LeftCurly"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
58 <module name="NeedBraces"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
59 <module name="RightCurly"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
60 <module name="EmptyStatement"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
61 <module name="HiddenField">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
62 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
63 <property name="ignoreConstructorParameter" value="true"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
64 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
65 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
66 <module name="FinalClass"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
67 <module name="HideUtilityClassConstructor">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
68 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
69 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
70 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
71 <module name="ArrayTypeStyle"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
72 <module name="UpperEll"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
73 <module name="FallThrough"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
74 <module name="FinalLocalVariable">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
75 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
76 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
77 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
78 <module name="MultipleVariableDeclarations"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
79 <module name="StringLiteralEquality">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
80 <property name="severity" value="error"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
81 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
82 <module name="SuperFinalize"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
83 <module name="UnnecessaryParentheses">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
84 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
85 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
86 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
87 <module name="Indentation">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
88 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
89 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
90 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
91 <module name="StaticVariableName">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
92 <property name="format" value="^[A-Za-z][a-zA-Z0-9]*$"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
93 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
94 <module name="EmptyForInitializerPad"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
95 <module name="EmptyForIteratorPad"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
96 <module name="ModifierOrder"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
97 <module name="DefaultComesLast"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
98 <module name="InnerAssignment">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
99 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
100 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
101 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
102 <module name="ModifiedControlVariable"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
103 <module name="MutableException">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
104 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
105 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
106 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
107 <module name="ParameterAssignment">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
108 <property name="severity" value="ignore"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
109 <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
110 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
111 <module name="RegexpSinglelineJava">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
112 <metadata name="net.sf.eclipsecs.core.comment" value="Illegal trailing whitespace(s) at the end of the line."/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
113 <property name="format" value="\s$"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
114 <property name="message" value="Illegal trailing whitespace(s) at the end of the line."/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
115 <property name="ignoreComments" value="true"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
116 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for trailing spaces at the end of a line"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
117 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
118 <module name="RegexpSinglelineJava">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
119 <metadata name="net.sf.eclipsecs.core.comment" value="illegal space before a comma"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
120 <property name="format" value=" ,"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
121 <property name="message" value="illegal space before a comma"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
124 <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
134 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
135 <module name="RegexpHeader">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
138 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
139 <module name="FileTabCharacter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
142 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
143 <module name="NewlineAtEndOfFile">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
144 <property name="lineSeparator" value="lf"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
145 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
146 <module name="Translation"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
147 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
148 <property name="offCommentFormat" value="Checkstyle: stop constant name check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
149 <property name="onCommentFormat" value="Checkstyle: resume constant name check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
150 <property name="checkFormat" value="ConstantNameCheck"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
151 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Allow non-conforming constant names"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
152 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
153 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
154 <property name="offCommentFormat" value="Checkstyle: stop method name check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
155 <property name="onCommentFormat" value="Checkstyle: resume method name check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
156 <property name="checkFormat" value="MethodName"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
157 <property name="checkC" value="false"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
158 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable method name checks"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
159 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
160 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
161 <property name="offCommentFormat" value="CheckStyle: stop parameter assignment check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
162 <property name="onCommentFormat" value="CheckStyle: resume parameter assignment check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
163 <property name="checkFormat" value="ParameterAssignment"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
164 <property name="checkC" value="false"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
165 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable Parameter Assignment"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
166 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
167 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
168 <property name="offCommentFormat" value="Checkstyle: stop final variable check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
169 <property name="onCommentFormat" value="Checkstyle: resume final variable check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
170 <property name="checkFormat" value="FinalLocalVariable"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
171 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable final variable checks"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
172 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
173 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
174 <property name="offCommentFormat" value="Checkstyle: stop"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
175 <property name="onCommentFormat" value="Checkstyle: resume"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
176 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable all checks"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
177 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
178 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
179 <property name="offCommentFormat" value="CheckStyle: stop inner assignment check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
180 <property name="onCommentFormat" value="CheckStyle: resume inner assignment check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
181 <property name="checkFormat" value="InnerAssignment"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
182 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable inner assignment checks"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
183 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
184 <module name="SuppressionCommentFilter">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
185 <property name="offCommentFormat" value="Checkstyle: stop field name check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
186 <property name="onCommentFormat" value="Checkstyle: resume field name check"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
187 <property name="checkFormat" value="MemberName"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
188 <property name="checkC" value="false"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
189 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable field name checks"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
190 </module>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
191 <module name="RegexpMultiline">
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
192 <metadata name="net.sf.eclipsecs.core.comment" value="illegal Windows line ending"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
193 <property name="format" value="\r\n"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
194 <property name="message" value="illegal Windows line ending"/>
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
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
34527a24bcf8 Adopted mxtool changes.
Doug Simon <doug.simon@oracle.com>
parents:
diff changeset
212 </module>