com.io7m.jlexing.checkstyle.checkstyle.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of io7m-jlexing-checkstyle Show documentation
Show all versions of io7m-jlexing-checkstyle Show documentation
Lexing primitives (Checkstyle policy)
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> <module name="Checker"> <property name="severity" value="error"/> <!-- Allow control of Javadoc checks with CHECKSTYLE_JAVADOC:ON and CHECKSTYLE_JAVADOC:OFF --> <module name="SuppressionCommentFilter"> <property name="onCommentFormat" value="CHECKSTYLE_JAVADOC:ON"/> <property name="offCommentFormat" value="CHECKSTYLE_JAVADOC:OFF"/> <property name="checkFormat" value="Javadoc.*"/> </module> <!-- Allow control of spacing checks with CHECKSTYLE_SPACE:ON and CHECKSTYLE_SPACE:OFF --> <module name="SuppressionCommentFilter"> <property name="onCommentFormat" value="CHECKSTYLE_SPACE:ON"/> <property name="offCommentFormat" value="CHECKSTYLE_SPACE:OFF"/> <property name="checkFormat" value="NoWhitespaceAfter"/> </module> <!-- Allow control of all checks with CHECKSTYLE:ON and CHECKSTYLE:OFF --> <module name="SuppressionCommentFilter"> <property name="onCommentFormat" value="CHECKSTYLE:ON"/> <property name="offCommentFormat" value="CHECKSTYLE:OFF"/> <property name="checkFormat" value=".*"/> </module> <module name="TreeWalker"> <!-- Required to use the SuppressionCommentFilter above --> <module name="FileContentsHolder"/> <module name="AbstractClassName"/> <!-- <module name="AnnotationUseStyle"/> --> <!-- Require that anonymous inner classes are less than 150 lines. --> <module name="AnonInnerLength"> <property name="max" value="150"/> </module> <module name="ArrayTrailingComma"/> <module name="ArrayTypeStyle"/> <!-- <module name="AvoidInlineConditionals"/> <module name="AvoidNestedBlocks"/> --> <module name="AvoidStarImport"/> <module name="AvoidStaticImport"/> <module name="BooleanExpressionComplexity"/> <module name="ClassDataAbstractionCoupling"> <property name="max" value="35"/> </module> <module name="ClassFanOutComplexity"> <property name="max" value="125"/> </module> <module name="ClassTypeParameterName"/> <module name="ConstantName"/> <module name="CovariantEquals"/> <module name="CyclomaticComplexity"> <property name="max" value="70"/> </module> <!-- <module name="DeclarationOrder"/> --> <module name="DefaultComesLast"/> <module name="DescendantToken"/> <module name="DesignForExtension"/> <!-- Require that empty blocks contain either a statement or --> <!-- an explanatory comment. --> <module name="EmptyBlock"> <property name="option" value="text"/> </module> <module name="EmptyForInitializerPad"/> <module name="EmptyForIteratorPad"/> <module name="EmptyStatement"/> <module name="EqualsAvoidNull"/> <module name="EqualsHashCode"/> <module name="ExecutableStatementCount"> <property name="max" value="200"/> </module> <module name="ExplicitInitialization"/> <module name="FallThrough"/> <module name="FinalClass"/> <module name="FinalLocalVariable"/> <module name="FinalParameters"/> <module name="GenericWhitespace"/> <module name="HiddenField"/> <module name="HideUtilityClassConstructor"/> <!-- <module name="IllegalCatch"/> --> <module name="IllegalImport"/> <module name="IllegalInstantiation"/> <module name="IllegalThrows"/> <module name="IllegalToken"> <property name="tokens" value="POST_INC,POST_DEC"/> </module> <module name="IllegalTokenText"/> <!-- <module name="IllegalType"/> --> <!-- <module name="ImportControl"/> --> <!-- <module name="ImportOrder"/> --> <!-- <module name="Indentation"/> --> <module name="InnerAssignment"/> <!-- <module name="InnerTypeLast"/> --> <module name="InterfaceIsType"/> <module name="JavaNCSS"> <property name="methodMaximum" value="270"/> </module> <module name="JavadocMethod"> <property name="scope" value="public"/> </module> <module name="JavadocType"> <property name="scope" value="public"/> </module> <module name="JavadocVariable"> <property name="scope" value="public"/> </module> <!-- <module name="LeftCurly"/> --> <module name="LineLength"> <property name="max" value="180"/> </module> <module name="LocalFinalVariableName"> <property name="format" value="^([a-z][a-z0-9_]*|_)$"/> </module> <module name="LocalVariableName"> <property name="format" value="^([a-z][a-z0-9_]*|_)$"/> </module> <!-- <module name="MagicNumber"/> --> <module name="MemberName"> <property name="format" value="^[a-z][a-z0-9_]*$"/> </module> <module name="MethodCount"> <property name="maxPublic" value="250"/> <property name="maxTotal" value="250"/> <property name="maxPackage" value="250"/> </module> <module name="MethodName"> <property name="format" value="^[a-z][A-Za-z0-9_]*$"/> </module> <module name="MethodParamPad"/> <module name="MethodTypeParameterName"> <property name="format" value="^[A-Z][A-Z0-9]*$"/> </module> <module name="MissingCtor"/> <module name="MissingDeprecated"/> <module name="MissingOverride"/> <!-- <module name="MissingSwitchDefault"/> --> <module name="ModifiedControlVariable"/> <!-- <module name="ModifierOrder"/> --> <!-- <module name="MultipleStringLiterals"/> --> <module name="MultipleVariableDeclarations"/> <module name="MutableException"/> <module name="NPathComplexity"/> <module name="NeedBraces"/> <module name="NestedForDepth"> <property name="max" value="2"/> </module> <module name="NestedIfDepth"> <property name="max" value="2"/> </module> <module name="NestedTryDepth"> <property name="max" value="3"/> </module> <module name="NoClone"/> <module name="NoFinalizer"/> <module name="NoWhitespaceAfter"/> <module name="NoWhitespaceBefore"/> <module name="OneStatementPerLine"/> <module name="OperatorWrap"/> <module name="OuterTypeFilename"/> <module name="OuterTypeNumber"/> <module name="PackageAnnotation"/> <module name="PackageDeclaration"/> <module name="PackageName"/> <module name="ParameterAssignment"/> <module name="ParameterName"> <property name="format" value="^([a-z][a-z0-9_]*|_)$"/> </module> <module name="ParameterNumber"> <property name="max" value="10"/> </module> <module name="ParenPad"/> <module name="RedundantImport"/> <module name="RedundantModifier"/> <module name="RequireThis"/> <module name="SimplifyBooleanExpression"/> <module name="SimplifyBooleanReturn"/> <module name="StaticVariableName"> <property name="format" value="^[A-Z][_A-Z0-9]*$"/> </module> <module name="StringLiteralEquality"/> <module name="TrailingComment"/> <!-- Restrict class names --> <module name="TypeName"> <property name="format" value="^[A-Z][a-zA-Z0-9_]*$"/> <property name="tokens" value="CLASS_DEF"/> </module> <!-- Restrict interface type names --> <module name="TypeName"> <property name="format" value="^[A-Z][a-zA-Z0-9_]*(Kind|Type)$"/> <property name="tokens" value="INTERFACE_DEF"/> </module> <module name="TypecastParenPad"/> <module name="UncommentedMain"/> <module name="UnusedImports"/> <module name="UpperEll"/> <module name="VisibilityModifier"/> <module name="WhitespaceAfter"/> <module name="WhitespaceAround"/> </module> <module name="FileLength"> <property name="max" value="1000"/> </module> <module name="FileTabCharacter"/> <module name="JavadocPackage"/> <module name="NewlineAtEndOfFile"/> <!-- <module name="StrictDuplicateCode"/> --> </module>