added a testcase specifically for the modification time.
[utils] / build / style.xml
index 24558dd678e8fb4b817a1c2d0aa4a83e1e30f7bc..58b854ea9ed749c0cb82ba79b381c2802e0d8616 100644 (file)
@@ -34,7 +34,7 @@
 \r
     <!-- Checks that a package.html file exists for each package.     -->\r
     <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->\r
-    <module name="PackageHtml"/>\r
+    <!-- module name="PackageHtml"/ -->\r
 \r
     <!-- Checks whether files end with a new line.                        -->\r
     <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->\r
@@ -49,9 +49,9 @@
 \r
         <!-- Checks for Javadoc comments.                     -->\r
         <!-- See http://checkstyle.sf.net/config_javadoc.html -->\r
-        <module name="JavadocMethod"/>\r
-        <module name="JavadocType"/>\r
-        <module name="JavadocVariable"/>\r
+        <!-- module name="JavadocMethod"/ -->\r
+        <!-- module name="JavadocType"/ -->\r
+        <!-- module name="JavadocVariable"/ -->\r
        <!-- module name="JavadocStyle"/ -->\r
         \r
         <!-- Checks for Naming Conventions.                  -->\r
         <module name="ConstantName"/>\r
         <module name="LocalFinalVariableName"/>\r
         <module name="LocalVariableName"/>\r
-        <module name="MemberName"/>\r
-        <module name="MethodName"/>\r
+        <module name="MemberName">
+            <property name="format" value="_[a-z][a-zA-Z0-9]*$"/>
+        </module>\r
+        <module name="MethodName" />\r
         <module name="PackageName"/>\r
-        <module name="ParameterName"/>\r
-        <module name="StaticVariableName"/>\r
+        <module name="ParameterName">
+            <property name="format" value="^a[A-Z][a-zA-Z0-9]*$"/>
+        </module>\r
+        <module name="StaticVariableName">
+            <property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
+        </module>\r
         <module name="TypeName"/>\r
 \r
 \r
         <!-- Checks for Size Violations.                    -->\r
         <!-- See http://checkstyle.sf.net/config_sizes.html -->\r
         <module name="FileLength"/>\r
-        <module name="LineLength"/>\r
+        <module name="LineLength">
+            <property name="max" value="120"/>
+        </module>\r
         <module name="MethodLength"/>\r
         <module name="ParameterNumber"/>\r
 \r
         <!-- See http://checkstyle.sf.net/config_whitespace.html -->\r
         <module name="EmptyForIteratorPad"/>\r
         <!-- module name="MethodParamPad"/ -->\r
-        <module name="NoWhitespaceAfter"/>\r
+        <!-- module name="NoWhitespaceAfter"/ -->\r
         <module name="NoWhitespaceBefore"/>\r
         <module name="OperatorWrap"/>\r
         <module name="ParenPad"/>\r
         <!-- module name="TypecastParenPad"/ -->\r
         <module name="TabCharacter"/>\r
         <module name="WhitespaceAfter"/>\r
-        <module name="WhitespaceAround"/>\r
+        <!-- module name="WhitespaceAround">
+            <property name="tokens" value=" ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR,MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,GENERIC_START,GENERIC_END,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
+        </module -->\r
 \r
 \r
         <!-- Modifier Checks                                    -->\r
 \r
         <!-- Checks for blocks. You know, those {}'s         -->\r
         <!-- See http://checkstyle.sf.net/config_blocks.html -->\r
-        <module name="AvoidNestedBlocks"/>\r
+        <module name="AvoidNestedBlocks">
+            <property name="allowInSwitchCase" value="true"/>
+        </module>\r
         <module name="EmptyBlock"/>\r
         <module name="LeftCurly"/>\r
         <module name="NeedBraces"/>\r
         <!-- Checks for common coding problems               -->\r
         <!-- See http://checkstyle.sf.net/config_coding.html -->\r
         <module name="AvoidInlineConditionals"/>\r
-        <module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->\r
+        <!-- module name="DoubleCheckedLocking"/ -->   \r
         <module name="EmptyStatement"/>\r
         <module name="EqualsHashCode"/>\r
         <module name="HiddenField"/>\r
         <module name="IllegalInstantiation"/>\r
         <module name="InnerAssignment"/>\r
-        <module name="MagicNumber"/>\r
+        <module name="MagicNumber">
+            <property name="ignoreNumbers" value="-1,0,1,2,3,4"/>
+        </module>\r
         <module name="MissingSwitchDefault"/>\r
         <module name="RedundantThrows"/>\r
         <module name="SimplifyBooleanExpression"/>\r
         <module name="SimplifyBooleanReturn"/>\r
+        <!-- module name="ExplicitInitialization"/ -->\r
 \r
         <!-- Checks for class design                         -->\r
         <!-- See http://checkstyle.sf.net/config_design.html -->\r
-        <module name="DesignForExtension"/>\r
+        <!-- module name="DesignForExtension"/ -->\r
         <module name="FinalClass"/>\r
         <module name="HideUtilityClassConstructor"/>\r
         <module name="InterfaceIsType"/>\r
         <!-- Miscellaneous other checks.                   -->\r
         <!-- See http://checkstyle.sf.net/config_misc.html -->\r
         <module name="ArrayTypeStyle"/>\r
-        <module name="FinalParameters"/>\r
-        <module name="GenericIllegalRegexp">\r
+        <!-- module name="FinalParameters"/ -->\r
+        <!-- module name="GenericIllegalRegexp">\r
             <property name="format" value="\s+$"/>\r
             <property name="message" value="Line has trailing spaces."/>\r
-        </module>\r
+        </module -->\r
         <module name="TodoComment"/>\r
         <module name="UpperEll"/>\r
 \r