acegi_checkstyle.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0"?>
  2. <!--
  3. /*
  4. * Copyright 2001-2004 The Apache Software Foundation.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. -->
  19. <!DOCTYPE module PUBLIC
  20. "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
  21. "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
  22. <!--
  23. Checkstyle is very configurable. Be sure to read the documentation at
  24. http://checkstyle.sf.net (or in your downloaded distribution).
  25. Most Checks are configurable, be sure to consult the documentation.
  26. To completely disable a check, just comment it out or delete it from the file.
  27. Finally, it is worth reading the documentation.
  28. -->
  29. <module name="Checker">
  30. <!-- Checks that a package.html file exists for each package. -->
  31. <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
  32. <!-- module name="PackageHtml"/ -->
  33. <!-- Checks whether files end with a new line. -->
  34. <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
  35. <module name="NewlineAtEndOfFile"/>
  36. <!-- Checks that property files contain the same keys. -->
  37. <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
  38. <module name="Translation"/>
  39. <module name="TreeWalker">
  40. <property name="cacheFile" value="${checkstyle.cache.file}"/>
  41. <!-- Checks for Javadoc comments. -->
  42. <!-- See http://checkstyle.sf.net/config_javadoc.html -->
  43. <!--
  44. <module name="JavadocMethod"/>
  45. <module name="JavadocType"/>
  46. <module name="JavadocVariable"/>
  47. <module name="JavadocStyle"/>
  48. -->
  49. <!-- Checks for Naming Conventions. -->
  50. <!-- See http://checkstyle.sf.net/config_naming.html -->
  51. <module name="ConstantName">
  52. <!-- logger variables break normal constant syntax. We need to allow lower case too -->
  53. <property name="format" value="^[a-zA-Z][a-zA-Z0-9]*(_[A-Z0-9]+)*$"/>
  54. </module>
  55. <module name="LocalFinalVariableName"/>
  56. <module name="LocalVariableName"/>
  57. <module name="MemberName"/>
  58. <module name="MethodName"/>
  59. <module name="PackageName"/>
  60. <module name="ParameterName"/>
  61. <module name="StaticVariableName"/>
  62. <module name="TypeName"/>
  63. <!-- Checks for Headers -->
  64. <!-- See http://checkstyle.sf.net/config_header.html -->
  65. <!-- <module name="Header"> -->
  66. <!-- The follow property value demonstrates the ability -->
  67. <!-- to have access to ANT properties. In this case it uses -->
  68. <!-- the ${basedir} property to allow Checkstyle to be run -->
  69. <!-- from any directory within a project. See property -->
  70. <!-- expansion, -->
  71. <!-- http://checkstyle.sf.net/config.html#properties -->
  72. <!-- <property -->
  73. <!-- name="headerFile" -->
  74. <!-- value="${basedir}/java.header"/> -->
  75. <!-- </module> -->
  76. <!-- Following interprets the header file as regular expressions. -->
  77. <!-- <module name="RegexpHeader"/> -->
  78. <!-- Checks for imports -->
  79. <!-- See http://checkstyle.sf.net/config_imports.html -->
  80. <module name="AvoidStarImport">
  81. <property name="excludes" value="javax.servlet,java.util"/>
  82. </module>
  83. <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
  84. <module name="RedundantImport"/>
  85. <!--module name="UnusedImports"/ -->
  86. <!-- Checks for Size Violations. -->
  87. <!-- See http://checkstyle.sf.net/config_sizes.html -->
  88. <module name="FileLength"/>
  89. <module name="LineLength">
  90. <property name="max" value="125"/>
  91. </module>
  92. <module name="MethodLength"/>
  93. <module name="ParameterNumber"/>
  94. <!-- Checks for whitespace -->
  95. <!-- See http://checkstyle.sf.net/config_whitespace.html -->
  96. <module name="EmptyForIteratorPad"/>
  97. <module name="MethodParamPad"/>
  98. <module name="NoWhitespaceAfter"/>
  99. <module name="NoWhitespaceBefore"/>
  100. <module name="OperatorWrap"/>
  101. <module name="ParenPad"/>
  102. <module name="TypecastParenPad"/>
  103. <module name="TabCharacter"/>
  104. <module name="WhitespaceAfter"/>
  105. <!--
  106. <module name="WhitespaceAround">
  107. <property name="allowEmptyMethods" value="true"/>
  108. <property name="allowEmptyConstructors" value="true"/>
  109. </module>
  110. -->
  111. <!-- Modifier Checks -->
  112. <!-- See http://checkstyle.sf.net/config_modifiers.html -->
  113. <module name="ModifierOrder"/>
  114. <module name="RedundantModifier"/>
  115. <!-- Checks for blocks. You know, those {}'s -->
  116. <!-- See http://checkstyle.sf.net/config_blocks.html -->
  117. <module name="AvoidNestedBlocks"/>
  118. <!-- module name="EmptyBlock"/ -->
  119. <module name="LeftCurly"/>
  120. <module name="NeedBraces"/>
  121. <module name="RightCurly"/>
  122. <!-- Checks for common coding problems -->
  123. <!-- See http://checkstyle.sf.net/config_coding.html -->
  124. <!-- module name="AvoidInlineConditionals"/ -->
  125. <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE -->
  126. <module name="EmptyStatement"/>
  127. <!-- module name="EqualsHashCode"/ -->
  128. <!--
  129. <module name="HiddenField">
  130. <property name="ignoreConstructorParameter" value="true"/>
  131. <property name="ignoreSetter" value="true"/>
  132. </module>
  133. -->
  134. <module name="IllegalInstantiation"/>
  135. <module name="InnerAssignment"/>
  136. <!-- module name="MagicNumber"/ -->
  137. <module name="MissingSwitchDefault"/>
  138. <!--
  139. <module name="RedundantThrows">
  140. <property name="allowUnchecked" value="true"/>
  141. </module>
  142. -->
  143. <!--
  144. <module name="SimplifyBooleanExpression"/>
  145. <module name="SimplifyBooleanReturn"/>
  146. -->
  147. <!-- Checks for class design -->
  148. <!-- See http://checkstyle.sf.net/config_design.html -->
  149. <!-- module name="DesignForExtension"/ -->
  150. <module name="FinalClass"/>
  151. <module name="HideUtilityClassConstructor"/>
  152. <module name="InterfaceIsType"/>
  153. <module name="VisibilityModifier">
  154. <!-- logger variables are often protected -->
  155. <property name="protectedAllowed" value="true"/>
  156. </module>
  157. <!-- Miscellaneous other checks. -->
  158. <!-- See http://checkstyle.sf.net/config_misc.html -->
  159. <module name="ArrayTypeStyle"/>
  160. <!-- module name="FinalParameters"/ -->
  161. <!--
  162. <module name="GenericIllegalRegexp">
  163. <property name="format" value="\s+$"/>
  164. <property name="message" value="Line has trailing spaces."/>
  165. </module>
  166. -->
  167. <!-- module name="TrailingComment"/ -->
  168. <!-- module name="TodoComment"/ -->
  169. <module name="UpperEll"/>
  170. </module>
  171. </module>