PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/asl/lib/checkstyle/config/checkstyle_checks.xml

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
XML | 175 lines | 146 code | 20 blank | 9 comment | 0 complexity | 1343b195cc28c8d4efb68889bb8d25a6 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. <?xml version="1.0"?>
  2. <!DOCTYPE module PUBLIC
  3. "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
  4. "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
  5. <module name="Checker">
  6. <!--
  7. If you set the basedir property below, then all reported file
  8. names will be relative to the specified directory. See
  9. http://checkstyle.sourceforge.net/5.x/config.html#Checker
  10. <property name="basedir" value="${basedir}"/>
  11. -->
  12. <metadata name="com.atlas-sw.eclipse" value="I like Sydney"/>
  13. <property name="severity" value="error"/>
  14. <module name="SuppressionFilter">
  15. <property name="file" value="${checkstyle.suppressions.file}"/>
  16. </module>
  17. <module name="JavadocPackage">
  18. <property name="allowLegacy" value="false"/>
  19. </module>
  20. <module name="Translation">
  21. <property name="severity" value="${translation.severity}"/>
  22. </module>
  23. <module name="FileTabCharacter">
  24. <property name="eachLine" value="false"/>
  25. </module>
  26. <module name="FileLength">
  27. <property name="fileExtensions" value="java"/>
  28. </module>
  29. <module name="Header">
  30. <property name="headerFile" value="${checkstyle.header.file}"/>
  31. <property name="fileExtensions" value="java"/>
  32. <property name="id" value="header"/>
  33. </module>
  34. <module name="RegexpSingleline">
  35. <property name="format" value="\s+$"/>
  36. <property name="minimum" value="0"/>
  37. <property name="maximum" value="0"/>
  38. </module>
  39. <module name="TreeWalker">
  40. <property name="tabWidth" value="4" />
  41. <module name="AvoidStarImport"/>
  42. <module name="ConstantName"/>
  43. <module name="EmptyBlock"/>
  44. <module name="EmptyForIteratorPad"/>
  45. <module name="EqualsHashCode"/>
  46. <!-- module name="IllegalCatch"/ -->
  47. <module name="ImportControl">
  48. <property name="file" value="${checkstyle.importcontrol.file}"/>
  49. </module>
  50. <module name="IllegalImport"/>
  51. <module name="IllegalInstantiation"/>
  52. <module name="IllegalThrows"/>
  53. <module name="InnerAssignment"/>
  54. <module name="JavadocType">
  55. <property name="authorFormat" value="\S"/>
  56. </module>
  57. <module name="JavadocMethod">
  58. <property name="allowUndeclaredRTE" value="true"/>
  59. <property name="allowThrowsTagsForSubclasses" value="true"/>
  60. </module>
  61. <module name="JavadocVariable"/>
  62. <module name="JavadocStyle">
  63. <property name="scope" value="public"/>
  64. </module>
  65. <module name="LeftCurly">
  66. <property name="tokens" value="CLASS_DEF,INTERFACE_DEF,METHOD_DEF,CTOR_DEF"/>
  67. <property name="option" value="nl"/>
  68. </module>
  69. <module name="LeftCurly">
  70. <property name="tokens" value="LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE"/>
  71. <property name="option" value="nlow"/>
  72. </module>
  73. <module name="OuterTypeNumber"/>
  74. <module name="LineLength">
  75. <property name="ignorePattern" value="^ *\* *[^ ]+$"/>
  76. </module>
  77. <module name="LocalFinalVariableName"/>
  78. <module name="LocalVariableName"/>
  79. <module name="MemberName">
  80. <property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
  81. </module>
  82. <module name="MethodLength"/>
  83. <module name="MethodName"/>
  84. <module name="MethodParamPad"/>
  85. <module name="ModifierOrder"/>
  86. <module name="NeedBraces"/>
  87. <module name="NoWhitespaceAfter">
  88. <property name="tokens" value="ARRAY_INIT, BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS" />
  89. </module>
  90. <module name="NoWhitespaceBefore"/>
  91. <module name="NoWhitespaceBefore">
  92. <property name="tokens" value="DOT"/>
  93. <property name="allowLineBreaks" value="true"/>
  94. </module>
  95. <module name="OperatorWrap"/>
  96. <module name="OperatorWrap">
  97. <property name="tokens" value="ASSIGN, DIV_ASSIGN, PLUS_ASSIGN, MINUS_ASSIGN, STAR_ASSIGN, MOD_ASSIGN, SR_ASSIGN, BSR_ASSIGN, SL_ASSIGN, BXOR_ASSIGN, BOR_ASSIGN, BAND_ASSIGN"/>
  98. <property name="option" value="eol"/>
  99. </module>
  100. <module name="PackageName"/>
  101. <module name="ParameterName">
  102. <property name="format" value="^a[A-Z][a-zA-Z0-9]*$"/>
  103. </module>
  104. <module name="ParameterNumber">
  105. <property name="id" value="paramNum"/>
  106. </module>
  107. <module name="ParenPad"/>
  108. <module name="TypecastParenPad"/>
  109. <module name="RedundantImport"/>
  110. <module name="RedundantModifier"/>
  111. <module name="RightCurly">
  112. <property name="option" value="alone"/>
  113. </module>
  114. <module name="SimplifyBooleanExpression"/>
  115. <module name="SimplifyBooleanReturn"/>
  116. <module name="StaticVariableName">
  117. <property name="format" value="^s[A-Z][a-zA-Z0-9]*$"/>
  118. </module>
  119. <module name="TypeName"/>
  120. <module name="UnusedImports"/>
  121. <module name="UpperEll"/>
  122. <module name="VisibilityModifier"/>
  123. <module name="WhitespaceAfter"/>
  124. <module name="WhitespaceAround"/>
  125. <module name="GenericWhitespace"/>
  126. <module name="FinalClass"/>
  127. <module name="MissingSwitchDefault"/>
  128. <module name="MagicNumber"/>
  129. <module name="Indentation">
  130. <property name="basicOffset" value="4"/>
  131. <property name="braceAdjustment" value="0"/>
  132. <property name="caseIndent" value="0"/>
  133. </module>
  134. <module name="ArrayTrailingComma"/>
  135. <module name="FinalLocalVariable"/>
  136. <module name="EqualsAvoidNull"/>
  137. <!-- Generates quite a few errors -->
  138. <module name="CyclomaticComplexity">
  139. <property name="severity" value="ignore"/>
  140. </module>
  141. <module name="NestedIfDepth">
  142. <property name="max" value="3"/>
  143. </module>
  144. <module name="NestedTryDepth"/>
  145. <module name="ExplicitInitialization"/>
  146. <module name="AnnotationUseStyle"/>
  147. <module name="MissingDeprecated"/>
  148. <module name="MissingOverride">
  149. <property name="javaFiveCompatibility" value="true"/>
  150. </module>
  151. <module name="PackageAnnotation"/>
  152. <module name="SuppressWarnings"/>
  153. </module>
  154. </module>