myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r673291 - /myfaces/myfaces-build-tools/trunk/other/checkstyle-rules/src/main/resources/default/myfaces-checks.xml
Date Wed, 02 Jul 2008 06:18:00 GMT
Author: skitching
Date: Tue Jul  1 23:17:59 2008
New Revision: 673291

URL: http://svn.apache.org/viewvc?rev=673291&view=rev
Log:
Allow "log" as a constant variable name.

Modified:
    myfaces/myfaces-build-tools/trunk/other/checkstyle-rules/src/main/resources/default/myfaces-checks.xml

Modified: myfaces/myfaces-build-tools/trunk/other/checkstyle-rules/src/main/resources/default/myfaces-checks.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/other/checkstyle-rules/src/main/resources/default/myfaces-checks.xml?rev=673291&r1=673290&r2=673291&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/other/checkstyle-rules/src/main/resources/default/myfaces-checks.xml
(original)
+++ myfaces/myfaces-build-tools/trunk/other/checkstyle-rules/src/main/resources/default/myfaces-checks.xml
Tue Jul  1 23:17:59 2008
@@ -79,7 +79,12 @@
           <property name="format" value="^_[a-z][a-zA-Z0-9]*$"/>
         </module>
 -->
-        <module name="ConstantName"/>
+
+        <module name="ConstantName">
+          <!-- Normal rules, except that "log" is also allowed as a constant name. -->
+          <property name="format" value="^(log|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*)$"/>
+        </module>
+
         <module name="LocalVariableName"/>
         <module name="MethodName"/>
         <module name="PackageName"/>



Mime
View raw message