scytl_checkstyle.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This configuration file was written by the eclipse-cs plugin configuration editor
  4. -->
  5. <!--
  6. Checkstyle-Configuration: ScytlCheckStyle
  7. Description:
  8. -->
  9. <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
  10. <module name="Checker">
  11. <property name="severity" value="warning"/>
  12. <module name="TreeWalker">
  13. <module name="JavadocMethod">
  14. <property name="severity" value="ignore"/>
  15. <property name="allowMissingParamTags" value="true"/>
  16. <property name="allowMissingThrowsTags" value="true"/>
  17. <property name="allowMissingReturnTag" value="true"/>
  18. </module>
  19. <module name="JavadocType">
  20. <property name="severity" value="ignore"/>
  21. </module>
  22. <module name="JavadocVariable">
  23. <property name="severity" value="ignore"/>
  24. </module>
  25. <module name="JavadocStyle">
  26. <property name="severity" value="ignore"/>
  27. </module>
  28. <module name="ConstantName">
  29. <property name="format" value="^[A-Z][A-Z0-9]*(__?[A-Z0-9]+)*$"/>
  30. </module>
  31. <module name="LocalFinalVariableName"/>
  32. <module name="LocalVariableName"/>
  33. <module name="MemberName">
  34. <property name="format" value="^_[a-z][a-zA-Z0-9]*$"/>
  35. </module>
  36. <module name="MethodName"/>
  37. <module name="PackageName"/>
  38. <module name="ParameterName"/>
  39. <module name="StaticVariableName">
  40. <property name="severity" value="ignore"/>
  41. </module>
  42. <module name="TypeName"/>
  43. <module name="AvoidStarImport"/>
  44. <module name="IllegalImport"/>
  45. <module name="RedundantImport"/>
  46. <module name="UnusedImports"/>
  47. <module name="FileLength"/>
  48. <module name="LineLength">
  49. <property name="severity" value="ignore"/>
  50. </module>
  51. <module name="MethodLength"/>
  52. <module name="ParameterNumber">
  53. <property name="severity" value="ignore"/>
  54. </module>
  55. <module name="EmptyForIteratorPad"/>
  56. <module name="MethodParamPad"/>
  57. <module name="NoWhitespaceAfter">
  58. <property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
  59. </module>
  60. <module name="NoWhitespaceBefore"/>
  61. <module name="OperatorWrap"/>
  62. <module name="ParenPad"/>
  63. <module name="TypecastParenPad">
  64. <property name="tokens" value="RPAREN,TYPECAST"/>
  65. </module>
  66. <module name="TabCharacter"/>
  67. <module name="WhitespaceAfter"/>
  68. <module name="WhitespaceAround">
  69. <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,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,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND"/>
  70. </module>
  71. <module name="ModifierOrder"/>
  72. <module name="RedundantModifier"/>
  73. <module name="AvoidNestedBlocks"/>
  74. <module name="EmptyBlock"/>
  75. <module name="LeftCurly"/>
  76. <module name="NeedBraces"/>
  77. <module name="RightCurly"/>
  78. <module name="AvoidInlineConditionals">
  79. <property name="severity" value="ignore"/>
  80. </module>
  81. <module name="DoubleCheckedLocking"/>
  82. <module name="EmptyStatement"/>
  83. <module name="EqualsHashCode"/>
  84. <module name="HiddenField"/>
  85. <module name="IllegalInstantiation"/>
  86. <module name="InnerAssignment"/>
  87. <module name="MagicNumber">
  88. <property name="ignoreNumbers" value="-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10"/>
  89. </module>
  90. <module name="MissingSwitchDefault"/>
  91. <module name="RedundantThrows">
  92. <property name="severity" value="ignore"/>
  93. </module>
  94. <module name="SimplifyBooleanExpression"/>
  95. <module name="SimplifyBooleanReturn"/>
  96. <module name="DesignForExtension">
  97. <property name="severity" value="ignore"/>
  98. </module>
  99. <module name="FinalClass"/>
  100. <module name="HideUtilityClassConstructor"/>
  101. <module name="InterfaceIsType">
  102. <property name="severity" value="ignore"/>
  103. </module>
  104. <module name="VisibilityModifier">
  105. <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Scytl convention"/>
  106. <property name="protectedAllowed" value="true"/>
  107. </module>
  108. <module name="ArrayTypeStyle"/>
  109. <module name="FinalParameters"/>
  110. <module name="GenericIllegalRegexp">
  111. <property name="severity" value="ignore"/>
  112. <property name="format" value="\s+$"/>
  113. <property name="message" value="Line has trailing spaces."/>
  114. </module>
  115. <module name="TodoComment"/>
  116. <module name="UpperEll"/>
  117. <module name="StaticVariableName">
  118. <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Scytl convention"/>
  119. <property name="format" value="^_[a-z][a-zA-Z0-9]*$"/>
  120. </module>
  121. <module name="AnonInnerLength">
  122. <property name="max" value="50"/>
  123. </module>
  124. <module name="ExecutableStatementCount">
  125. <property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
  126. </module>
  127. <module name="EmptyForInitializerPad">
  128. <property name="severity" value="ignore"/>
  129. </module>
  130. <module name="CovariantEquals"/>
  131. <module name="DefaultComesLast"/>
  132. <module name="IllegalCatch"/>
  133. <module name="IllegalThrows"/>
  134. <module name="JUnitTestCase"/>
  135. <module name="ModifiedControlVariable"/>
  136. <module name="MultipleStringLiterals"/>
  137. <module name="MultipleVariableDeclarations"/>
  138. <module name="NestedTryDepth"/>
  139. <module name="NestedIfDepth">
  140. <property name="max" value="2"/>
  141. </module>
  142. <module name="PackageDeclaration"/>
  143. <module name="SuperFinalize"/>
  144. <module name="SuperClone"/>
  145. <module name="StringLiteralEquality"/>
  146. <module name="ReturnCount">
  147. <property name="max" value="3"/>
  148. </module>
  149. <module name="ClassFanOutComplexity"/>
  150. <module name="CyclomaticComplexity"/>
  151. <module name="NPathComplexity"/>
  152. <module name="ClassDataAbstractionCoupling">
  153. <property name="max" value="15"/>
  154. </module>
  155. <module name="BooleanExpressionComplexity"/>
  156. <module name="JavaNCSS">
  157. <property name="methodMaximum" value="150"/>
  158. </module>
  159. </module>
  160. <module name="PackageHtml">
  161. <property name="severity" value="ignore"/>
  162. </module>
  163. <module name="NewlineAtEndOfFile"/>
  164. <module name="Translation"/>
  165. </module>