tools/checkstyle.xml
changeset 942 998f3c1edac5
parent 879 d33586e4ed1a
child 1013 3f4c77587fb9
equal deleted inserted replaced
941:05909f132584 942:998f3c1edac5
   118 	<module name="ConstantName"/>
   118 	<module name="ConstantName"/>
   119 	<module name="LocalFinalVariableName"/>
   119 	<module name="LocalFinalVariableName"/>
   120 	<module name="LocalVariableName"/>
   120 	<module name="LocalVariableName"/>
   121 	<module name="MemberName">
   121 	<module name="MemberName">
   122 	    <property  name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
   122 	    <property  name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
   123 	    <property name="severity" value="error"/>
   123 	    <property name="severity" value="warning"/>
   124 	</module>
   124 	</module>
   125 	<module name="MethodName"/>
   125 	<module name="MethodName"/>
   126 	<module name="PackageName"/>
   126 	<module name="PackageName"/>
   127 	<module name="ParameterName"/>
   127 	<module name="ParameterName"/>
   128 	<module name="StaticVariableName"/>
   128 	<module name="StaticVariableName"/>
   143 	<!--     value="${basedir}/java.header"/>                   -->
   143 	<!--     value="${basedir}/java.header"/>                   -->
   144 	<!-- </module> -->
   144 	<!-- </module> -->
   145 
   145 
   146 	<!-- Checks for imports                              -->
   146 	<!-- Checks for imports                              -->
   147 	<!-- See http://checkstyle.sf.net/config_import.html -->
   147 	<!-- See http://checkstyle.sf.net/config_import.html -->
   148 	<module name="AvoidStarImport"/>
   148 	<module name="AvoidStarImport">
       
   149 	    <property name="allowStaticMemberImports" value="true"/>
       
   150 	    <property name="severity" value="error"/>
       
   151 	</module>
   149 	<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
   152 	<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
   150 	<module name="RedundantImport"/>
   153 	<module name="RedundantImport"/>
   151 	<module name="UnusedImports">
   154 	<module name="UnusedImports">
   152 	    <property name="severity" value="error"/>
   155 	    <property name="severity" value="error"/>
   153 	</module>
   156 	</module>
   154 	<module name="AvoidStaticImport">
   157 	<module name="AvoidStaticImport">
   155 	    <property name="excludes" value="*"/>
   158 	    <property name="excludes" value="*"/>
       
   159 	</module>
       
   160 	<module name="ImportOrder">
       
   161 	    <property name="groups" value="/^javax?\./,/^android\./"/>
       
   162 	    <property name="ordered" value="true"/>
       
   163 	    <property name="separated" value="true"/>
       
   164 	    <property name="option" value="bottom"/>
       
   165 	    <property name="caseSensitive" value="true"/>
       
   166 	    <property name="severity" value="error"/>
   156 	</module>
   167 	</module>
   157 
   168 
   158 
   169 
   159 	<!-- Checks for Size Violations.                    -->
   170 	<!-- Checks for Size Violations.                    -->
   160 	<!-- See http://checkstyle.sf.net/config_sizes.html -->
   171 	<!-- See http://checkstyle.sf.net/config_sizes.html -->
   164 	<module name="MethodLength"/>
   175 	<module name="MethodLength"/>
   165 	<module name="ParameterNumber"/>
   176 	<module name="ParameterNumber"/>
   166 	<module name="AnonInnerLength">
   177 	<module name="AnonInnerLength">
   167 	    <property name="max" value="60" />
   178 	    <property name="max" value="60" />
   168 	</module>
   179 	</module>
       
   180 	<module name="MethodCount"/>
   169 
   181 
   170 
   182 
   171 	<!-- Checks for whitespace                               -->
   183 	<!-- Checks for whitespace                               -->
   172 	<!-- See http://checkstyle.sf.net/config_whitespace.html -->
   184 	<!-- See http://checkstyle.sf.net/config_whitespace.html -->
   173 	<module name="EmptyForIteratorPad"/>
   185 	<module name="EmptyForIteratorPad"/>
   255 	</module>
   267 	</module>
   256 	<module name="IllegalInstantiation"/>
   268 	<module name="IllegalInstantiation"/>
   257 	<module name="InnerAssignment">
   269 	<module name="InnerAssignment">
   258 	    <property name="severity" value="error"/>
   270 	    <property name="severity" value="error"/>
   259 	</module>
   271 	</module>
   260 	<module name="MagicNumber"/>
   272 	<module name="MagicNumber">
       
   273 	     <property name="ignoreHashCodeMethod" value="true" />
       
   274 	</module>
   261 	<module name="MissingSwitchDefault">
   275 	<module name="MissingSwitchDefault">
   262 	    <property name="severity" value="error"/>
   276 	    <property name="severity" value="error"/>
   263 	</module>
   277 	</module>
   264 	<module name="RedundantThrows"/>
   278 	<module name="RedundantThrows"/>
   265 	<module name="SimplifyBooleanExpression">
   279 	<module name="SimplifyBooleanExpression">
   302 	    <property name="severity" value="error"/>
   316 	    <property name="severity" value="error"/>
   303 	</module>
   317 	</module>
   304 	<module name="ReturnCount">
   318 	<module name="ReturnCount">
   305 	    <property name="max" value="3"/>
   319 	    <property name="max" value="3"/>
   306 	</module>
   320 	</module>
       
   321 	<module name="OneStatementPerLine"/>
   307 
   322 
   308 	<!-- Checks for class design                         -->
   323 	<!-- Checks for class design                         -->
   309 	<!-- See http://checkstyle.sf.net/config_design.html -->
   324 	<!-- See http://checkstyle.sf.net/config_design.html -->
   310 	<!-- 
   325 	<!-- 
   311 	  <module name="DesignForExtension"/>
   326 	  <module name="DesignForExtension"/>
   318 	<module name="VisibilityModifier"/>
   333 	<module name="VisibilityModifier"/>
   319 	<module name="MutableException"/>
   334 	<module name="MutableException"/>
   320 	<module name="ThrowsCount">
   335 	<module name="ThrowsCount">
   321 	    <property name="max" value="2" />
   336 	    <property name="max" value="2" />
   322 	</module>
   337 	</module>
   323 
   338 	<module name="InnerTypeLast">
       
   339 	    <property name="severity" value="error"/>
       
   340 	</module>
   324 
   341 
   325 	<!-- Miscellaneous other checks.                   -->
   342 	<!-- Miscellaneous other checks.                   -->
   326 	<!-- See http://checkstyle.sf.net/config_misc.html -->
   343 	<!-- See http://checkstyle.sf.net/config_misc.html -->
   327 	<module name="ArrayTypeStyle"/>
   344 	<module name="ArrayTypeStyle"/>
   328 	<module name="FinalParameters">
   345 	<module name="FinalParameters">
   335 
   352 
   336 	<module name="BooleanExpressionComplexity"/>
   353 	<module name="BooleanExpressionComplexity"/>
   337 	<module name="UpperEll"/>
   354 	<module name="UpperEll"/>
   338 
   355 
   339 	<module name="ArrayTypeStyle"/>
   356 	<module name="ArrayTypeStyle"/>
       
   357 	<module name="OuterTypeFilename">
       
   358 	    <property name="severity" value="error"/>
       
   359 	</module>
   340 
   360 
   341     </module>
   361     </module>
   342 
   362 
   343 </module>
   363 </module>