Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/.checkstyle_checks.xml @ 20038:bbf53b35292e
added Checkstyle rule to forbid use of old synchronized classes such as StringBuffer, Vector, Hashtable and Stack
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 26 Mar 2015 11:38:27 +0100 |
parents | 143038c60b3b |
children | 96acaee06302 |
comparison
equal
deleted
inserted
replaced
20032:4d119424b4ce | 20038:bbf53b35292e |
---|---|
3 | 3 |
4 <!-- | 4 <!-- |
5 This configuration file was written by the eclipse-cs plugin configuration editor | 5 This configuration file was written by the eclipse-cs plugin configuration editor |
6 --> | 6 --> |
7 <!-- | 7 <!-- |
8 Checkstyle-Configuration: Maxine Checks | 8 Checkstyle-Configuration: Checks |
9 Description: none | 9 Description: none |
10 --> | 10 --> |
11 <module name="Checker"> | 11 <module name="Checker"> |
12 <property name="severity" value="error"/> | 12 <property name="severity" value="error"/> |
13 <module name="TreeWalker"> | 13 <module name="TreeWalker"> |
120 <module name="RegexpSinglelineJava"> | 120 <module name="RegexpSinglelineJava"> |
121 <metadata name="net.sf.eclipsecs.core.comment" value="illegal space before a comma"/> | 121 <metadata name="net.sf.eclipsecs.core.comment" value="illegal space before a comma"/> |
122 <property name="format" value=" ,"/> | 122 <property name="format" value=" ,"/> |
123 <property name="message" value="illegal space before a comma"/> | 123 <property name="message" value="illegal space before a comma"/> |
124 <property name="ignoreComments" value="true"/> | 124 <property name="ignoreComments" value="true"/> |
125 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/> | |
125 <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/> | 126 <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/> |
126 <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/> | 127 </module> |
128 <module name="RegexpSinglelineJava"> | |
129 <property name="format" value="new (Hashtable|Vector|Stack|StringBuffer)[^\w]"/> | |
130 <property name="message" value="Don't use old synchronized collection classes"/> | |
127 </module> | 131 </module> |
128 </module> | 132 </module> |
129 <module name="RegexpHeader"> | 133 <module name="RegexpHeader"> |
130 <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. Oracle designates this\n \* particular file as subject to the "Classpath" exception as provided\n \* by Oracle in the LICENSE file that accompanied this code.\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"/> | 134 <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. Oracle designates this\n \* particular file as subject to the "Classpath" exception as provided\n \* by Oracle in the LICENSE file that accompanied this code.\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"/> |
131 <property name="fileExtensions" value="java"/> | 135 <property name="fileExtensions" value="java"/> |