You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/07/02 08:18:00 UTC

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

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"/>