diff graal/com.oracle.truffle.api/.checkstyle_checks.xml @ 20153:96acaee06302

added Checkstyle rule to prevent non-ASCII characters in Java source files
author Doug Simon <doug.simon@oracle.com>
date Fri, 03 Apr 2015 10:41:57 +0200
parents bbf53b35292e
children
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/.checkstyle_checks.xml	Fri Apr 03 10:41:28 2015 +0200
+++ b/graal/com.oracle.truffle.api/.checkstyle_checks.xml	Fri Apr 03 10:41:57 2015 +0200
@@ -126,6 +126,10 @@
       <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/>
     </module>
     <module name="RegexpSinglelineJava">
+      <property name="format" value="[^\x00-\x7F]"/>
+      <property name="message" value="Only use ASCII characters."/>
+    </module>
+     <module name="RegexpSinglelineJava">
       <property name="format" value="new (Hashtable|Vector|Stack|StringBuffer)[^\w]"/>
       <property name="message" value="Don't use old synchronized collection classes"/>
     </module>