PageRenderTime 263ms CodeModel.GetById 100ms app.highlight 4ms RepoModel.GetById 157ms 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
  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<module name="Checker">
  7  <!--
  8      If you set the basedir property below, then all reported file
  9      names will be relative to the specified directory. See
 10      http://checkstyle.sourceforge.net/5.x/config.html#Checker
 11
 12      <property name="basedir" value="${basedir}"/>
 13  -->
 14
 15  <metadata name="com.atlas-sw.eclipse" value="I like Sydney"/>
 16
 17  <property name="severity" value="error"/>
 18
 19  <module name="SuppressionFilter">
 20    <property name="file" value="${checkstyle.suppressions.file}"/>
 21  </module>
 22
 23  <module name="JavadocPackage">
 24    <property name="allowLegacy" value="false"/>
 25  </module>
 26
 27  <module name="Translation">
 28    <property name="severity" value="${translation.severity}"/>
 29  </module>
 30
 31  <module name="FileTabCharacter">
 32    <property name="eachLine" value="false"/>
 33  </module>
 34
 35  <module name="FileLength">
 36    <property name="fileExtensions" value="java"/>
 37  </module>
 38
 39  <module name="Header">
 40    <property name="headerFile" value="${checkstyle.header.file}"/>
 41    <property name="fileExtensions" value="java"/>
 42    <property name="id" value="header"/>
 43  </module>
 44
 45  <module name="RegexpSingleline">
 46    <property name="format" value="\s+$"/>
 47    <property name="minimum" value="0"/>
 48    <property name="maximum" value="0"/>
 49  </module>
 50
 51  <module name="TreeWalker">
 52    <property name="tabWidth" value="4" />
 53
 54    <module name="AvoidStarImport"/>
 55    <module name="ConstantName"/>
 56    <module name="EmptyBlock"/>
 57    <module name="EmptyForIteratorPad"/>
 58    <module name="EqualsHashCode"/>
 59
 60    <!-- module name="IllegalCatch"/ -->
 61    <module name="ImportControl">
 62      <property name="file" value="${checkstyle.importcontrol.file}"/>
 63    </module>
 64    <module name="IllegalImport"/>
 65    <module name="IllegalInstantiation"/>
 66    <module name="IllegalThrows"/>
 67    <module name="InnerAssignment"/>
 68    <module name="JavadocType">
 69      <property name="authorFormat" value="\S"/>
 70    </module>
 71    <module name="JavadocMethod">
 72      <property name="allowUndeclaredRTE" value="true"/>
 73      <property name="allowThrowsTagsForSubclasses" value="true"/>
 74    </module>
 75    <module name="JavadocVariable"/>
 76    <module name="JavadocStyle">
 77      <property name="scope" value="public"/>
 78    </module>
 79
 80    <module name="LeftCurly">
 81      <property name="tokens" value="CLASS_DEF,INTERFACE_DEF,METHOD_DEF,CTOR_DEF"/>
 82      <property name="option" value="nl"/>
 83    </module>
 84    <module name="LeftCurly">
 85      <property name="tokens" value="LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_SWITCH,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE"/>
 86      <property name="option" value="nlow"/>
 87    </module>
 88
 89    <module name="OuterTypeNumber"/>
 90    <module name="LineLength">
 91      <property name="ignorePattern" value="^ *\* *[^ ]+$"/>
 92    </module>
 93
 94    <module name="LocalFinalVariableName"/>
 95    <module name="LocalVariableName"/>
 96    <module name="MemberName">
 97      <property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
 98    </module>
 99    <module name="MethodLength"/>
100    <module name="MethodName"/>
101    <module name="MethodParamPad"/>
102    <module name="ModifierOrder"/>
103    <module name="NeedBraces"/>
104    <module name="NoWhitespaceAfter">
105      <property name="tokens" value="ARRAY_INIT, BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS" />
106    </module>
107
108    <module name="NoWhitespaceBefore"/>
109    <module name="NoWhitespaceBefore">
110      <property name="tokens" value="DOT"/>
111      <property name="allowLineBreaks" value="true"/>
112    </module>
113
114    <module name="OperatorWrap"/>
115    <module name="OperatorWrap">
116      <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"/>
117      <property name="option" value="eol"/>
118    </module>
119    <module name="PackageName"/>
120    <module name="ParameterName">
121      <property name="format" value="^a[A-Z][a-zA-Z0-9]*$"/>
122    </module>
123    <module name="ParameterNumber">
124      <property name="id" value="paramNum"/>
125    </module>
126    <module name="ParenPad"/>
127    <module name="TypecastParenPad"/>
128    <module name="RedundantImport"/>
129    <module name="RedundantModifier"/>
130    <module name="RightCurly">
131      <property name="option" value="alone"/>
132    </module>
133    <module name="SimplifyBooleanExpression"/>
134    <module name="SimplifyBooleanReturn"/>
135    <module name="StaticVariableName">
136      <property name="format" value="^s[A-Z][a-zA-Z0-9]*$"/>
137    </module>
138    <module name="TypeName"/>
139    <module name="UnusedImports"/>
140    <module name="UpperEll"/>
141    <module name="VisibilityModifier"/>
142    <module name="WhitespaceAfter"/>
143    <module name="WhitespaceAround"/>
144    <module name="GenericWhitespace"/>
145    <module name="FinalClass"/>
146    <module name="MissingSwitchDefault"/>
147    <module name="MagicNumber"/>
148    <module name="Indentation">
149      <property name="basicOffset" value="4"/>
150      <property name="braceAdjustment" value="0"/>
151      <property name="caseIndent" value="0"/>
152    </module>
153    <module name="ArrayTrailingComma"/>
154    <module name="FinalLocalVariable"/>
155    <module name="EqualsAvoidNull"/>
156
157    <!-- Generates quite a few errors -->
158    <module name="CyclomaticComplexity">
159      <property name="severity" value="ignore"/>
160    </module>
161
162    <module name="NestedIfDepth">
163      <property name="max" value="3"/>
164    </module>
165    <module name="NestedTryDepth"/>
166    <module name="ExplicitInitialization"/>
167    <module name="AnnotationUseStyle"/>
168    <module name="MissingDeprecated"/>
169    <module name="MissingOverride">
170      <property name="javaFiveCompatibility" value="true"/>
171    </module>
172    <module name="PackageAnnotation"/>
173    <module name="SuppressWarnings"/>
174  </module>
175</module>