PageRenderTime 29ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/asl/lib/checkstyle/config/sun_checks.xml

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
XML | 189 lines | 77 code | 32 blank | 80 comment | 0 complexity | 620af49da52e3a7745ee595aa12b1854 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. <!--
  6. Checkstyle configuration that checks the sun coding conventions from:
  7. - the Java Language Specification at
  8. http://java.sun.com/docs/books/jls/second_edition/html/index.html
  9. - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
  10. - the Javadoc guidelines at
  11. http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
  12. - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
  13. - some best practices
  14. Checkstyle is very configurable. Be sure to read the documentation at
  15. http://checkstyle.sf.net (or in your downloaded distribution).
  16. Most Checks are configurable, be sure to consult the documentation.
  17. To completely disable a check, just comment it out or delete it from the file.
  18. Finally, it is worth reading the documentation.
  19. -->
  20. <module name="Checker">
  21. <!--
  22. If you set the basedir property below, then all reported file
  23. names will be relative to the specified directory. See
  24. http://checkstyle.sourceforge.net/5.x/config.html#Checker
  25. <property name="basedir" value="${basedir}"/>
  26. -->
  27. <!-- Checks that a package-info.java file exists for each package. -->
  28. <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
  29. <module name="JavadocPackage"/>
  30. <!-- Checks whether files end with a new line. -->
  31. <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
  32. <module name="NewlineAtEndOfFile"/>
  33. <!-- Checks that property files contain the same keys. -->
  34. <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
  35. <module name="Translation"/>
  36. <!-- Checks for Size Violations. -->
  37. <!-- See http://checkstyle.sf.net/config_sizes.html -->
  38. <module name="FileLength"/>
  39. <!-- Checks for whitespace -->
  40. <!-- See http://checkstyle.sf.net/config_whitespace.html -->
  41. <module name="FileTabCharacter"/>
  42. <!-- Miscellaneous other checks. -->
  43. <!-- See http://checkstyle.sf.net/config_misc.html -->
  44. <module name="RegexpSingleline">
  45. <property name="format" value="\s+$"/>
  46. <property name="minimum" value="0"/>
  47. <property name="maximum" value="0"/>
  48. <property name="message" value="Line has trailing spaces."/>
  49. </module>
  50. <module name="TreeWalker">
  51. <!-- Checks for Javadoc comments. -->
  52. <!-- See http://checkstyle.sf.net/config_javadoc.html -->
  53. <module name="JavadocMethod"/>
  54. <module name="JavadocType"/>
  55. <module name="JavadocVariable"/>
  56. <module name="JavadocStyle"/>
  57. <!-- Checks for Naming Conventions. -->
  58. <!-- See http://checkstyle.sf.net/config_naming.html -->
  59. <module name="ConstantName"/>
  60. <module name="LocalFinalVariableName"/>
  61. <module name="LocalVariableName"/>
  62. <module name="MemberName"/>
  63. <module name="MethodName"/>
  64. <module name="PackageName"/>
  65. <module name="ParameterName"/>
  66. <module name="StaticVariableName"/>
  67. <module name="TypeName"/>
  68. <!-- Checks for Headers -->
  69. <!-- See http://checkstyle.sf.net/config_header.html -->
  70. <!-- <module name="Header"> -->
  71. <!-- The follow property value demonstrates the ability -->
  72. <!-- to have access to ANT properties. In this case it uses -->
  73. <!-- the ${basedir} property to allow Checkstyle to be run -->
  74. <!-- from any directory within a project. See property -->
  75. <!-- expansion, -->
  76. <!-- http://checkstyle.sf.net/config.html#properties -->
  77. <!-- <property -->
  78. <!-- name="headerFile" -->
  79. <!-- value="${basedir}/java.header"/> -->
  80. <!-- </module> -->
  81. <!-- Following interprets the header file as regular expressions. -->
  82. <!-- <module name="RegexpHeader"/> -->
  83. <!-- Checks for imports -->
  84. <!-- See http://checkstyle.sf.net/config_import.html -->
  85. <module name="AvoidStarImport"/>
  86. <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
  87. <module name="RedundantImport"/>
  88. <module name="UnusedImports"/>
  89. <!-- Checks for Size Violations. -->
  90. <!-- See http://checkstyle.sf.net/config_sizes.html -->
  91. <module name="LineLength"/>
  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="GenericWhitespace"/>
  98. <module name="MethodParamPad"/>
  99. <module name="NoWhitespaceAfter"/>
  100. <module name="NoWhitespaceBefore"/>
  101. <module name="OperatorWrap"/>
  102. <module name="ParenPad"/>
  103. <module name="TypecastParenPad"/>
  104. <module name="WhitespaceAfter"/>
  105. <module name="WhitespaceAround"/>
  106. <!-- Modifier Checks -->
  107. <!-- See http://checkstyle.sf.net/config_modifiers.html -->
  108. <module name="ModifierOrder"/>
  109. <module name="RedundantModifier"/>
  110. <!-- Checks for blocks. You know, those {}'s -->
  111. <!-- See http://checkstyle.sf.net/config_blocks.html -->
  112. <module name="AvoidNestedBlocks"/>
  113. <module name="EmptyBlock"/>
  114. <module name="LeftCurly"/>
  115. <module name="NeedBraces"/>
  116. <module name="RightCurly"/>
  117. <!-- Checks for common coding problems -->
  118. <!-- See http://checkstyle.sf.net/config_coding.html -->
  119. <module name="AvoidInlineConditionals"/>
  120. <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE -->
  121. <module name="EmptyStatement"/>
  122. <module name="EqualsHashCode"/>
  123. <module name="HiddenField"/>
  124. <module name="IllegalInstantiation"/>
  125. <module name="InnerAssignment"/>
  126. <module name="MagicNumber"/>
  127. <module name="MissingSwitchDefault"/>
  128. <module name="RedundantThrows"/>
  129. <module name="SimplifyBooleanExpression"/>
  130. <module name="SimplifyBooleanReturn"/>
  131. <!-- Checks for class design -->
  132. <!-- See http://checkstyle.sf.net/config_design.html -->
  133. <module name="DesignForExtension"/>
  134. <module name="FinalClass"/>
  135. <module name="HideUtilityClassConstructor"/>
  136. <module name="InterfaceIsType"/>
  137. <module name="VisibilityModifier"/>
  138. <!-- Miscellaneous other checks. -->
  139. <!-- See http://checkstyle.sf.net/config_misc.html -->
  140. <module name="ArrayTypeStyle"/>
  141. <module name="FinalParameters"/>
  142. <module name="TodoComment"/>
  143. <module name="UpperEll"/>
  144. </module>
  145. </module>