ruleset: add generated checkstyle configuration files for each rule level
This commit is contained in:
parent
cdfeccb98b
commit
cfa28e5f38
5 changed files with 676 additions and 0 deletions
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
|
||||
<module name="FileTabCharacter"/>
|
||||
<module name="Header">
|
||||
<property name="fileExtensions" value="java"/>
|
||||
<property name="headerFile" value="LICENSE.txt"/>
|
||||
</module>
|
||||
<module name="NewlineAtEndOfFile">
|
||||
<property name="lineSeparator" value="lf"/>
|
||||
</module>
|
||||
|
||||
<module name="Treewalker">
|
||||
|
||||
<module name="AnnotationLocation"/>
|
||||
<module name="AnnotationUseStyle"/>
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="CommentsIndentation"/>
|
||||
<module name="DeclarationOrder"/>
|
||||
<module name="EmptyForInitializerPad"/>
|
||||
<module name="EmptyForIteratorPad"/>
|
||||
<module name="EmptyLineSeparator"/>
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="GenericWhitespace"/>
|
||||
<module name="LeftCurly"/>
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</module>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="NoLineWrap"/>
|
||||
<module name="NoWhitespaceAfter">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="allowLineBreaks" value="false"/>
|
||||
</module>
|
||||
<module name="NoWhitespaceBefore"/>
|
||||
<module name="OneStatementPerLine"/>
|
||||
<module name="OperatorWrap"/>
|
||||
<module name="OverloadMethodsDeclarationOrder"/>
|
||||
<module name="ParenPad"/>
|
||||
<module name="RightCurly"/>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="SingleSpaceSeparator"/>
|
||||
<module name="TrailingComment"/>
|
||||
<module name="TypecastParenPad"/>
|
||||
<module name="UnnecessaryParentheses"/>
|
||||
<module name="UnusedImports"/>
|
||||
<module name="UpperEll"/>
|
||||
<module name="WhitespaceAfter"/>
|
||||
<module name="WhitespaceAround"/>
|
||||
<module name="ForbidCCommentsInMethods"/>
|
||||
|
||||
</module><!-- /Treewalker -->
|
||||
|
||||
</module><!-- /Checker -->
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
|
||||
<module name="FileTabCharacter"/>
|
||||
<module name="Header">
|
||||
<property name="fileExtensions" value="java"/>
|
||||
<property name="headerFile" value="LICENSE.txt"/>
|
||||
</module>
|
||||
<module name="NewlineAtEndOfFile">
|
||||
<property name="lineSeparator" value="lf"/>
|
||||
</module>
|
||||
|
||||
<module name="Treewalker">
|
||||
|
||||
<module name="AbbreviationAsWordInName"/>
|
||||
<module name="AbstractClassName"/>
|
||||
<module name="AnnotationLocation"/>
|
||||
<module name="AnnotationUseStyle"/>
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="CatchParameterName"/>
|
||||
<module name="ClassTypeParameterName"/>
|
||||
<module name="CommentsIndentation"/>
|
||||
<module name="ConstantName"/>
|
||||
<module name="DeclarationOrder"/>
|
||||
<module name="EmptyForInitializerPad"/>
|
||||
<module name="EmptyForIteratorPad"/>
|
||||
<module name="EmptyLineSeparator"/>
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="GenericWhitespace"/>
|
||||
<module name="InterfaceTypeParameterName"/>
|
||||
<module name="LeftCurly"/>
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</module>
|
||||
<module name="LocalFinalVariableName"/>
|
||||
<module name="LocalVariableName"/>
|
||||
<module name="MagicNumber"/>
|
||||
<module name="MemberName"/>
|
||||
<module name="MethodName"/>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="MethodTypeParameterName"/>
|
||||
<module name="ModifierOrder"/>
|
||||
<module name="MultipleStringLiterals"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="NeedBraces"/>
|
||||
<module name="NoLineWrap"/>
|
||||
<module name="NoWhitespaceAfter">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="allowLineBreaks" value="false"/>
|
||||
</module>
|
||||
<module name="NoWhitespaceBefore"/>
|
||||
<module name="OneStatementPerLine"/>
|
||||
<module name="OperatorWrap"/>
|
||||
<module name="OverloadMethodsDeclarationOrder"/>
|
||||
<module name="PackageName">
|
||||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]+)*$"/>
|
||||
</module>
|
||||
<module name="ParameterName"/>
|
||||
<module name="ParenPad"/>
|
||||
<module name="RightCurly"/>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="SingleSpaceSeparator"/>
|
||||
<module name="StaticVariableName"/>
|
||||
<module name="SuppressWarnings">
|
||||
<property name="format" value="^constantname|covariantequals|equalshashcode|noclone|onetoplevelclass|outertypefilename|packagedeclaration|typename|visibilitymodifier$"/>
|
||||
</module>
|
||||
<module name="SuppressWarningsHolder"/>
|
||||
<module name="TrailingComment"/>
|
||||
<module name="TypecastParenPad"/>
|
||||
<module name="TypeName"/>
|
||||
<module name="UnnecessaryParentheses"/>
|
||||
<module name="UnusedImports"/>
|
||||
<module name="UpperEll"/>
|
||||
<module name="WhitespaceAfter"/>
|
||||
<module name="WhitespaceAround"/>
|
||||
<module name="EnumValueName"/>
|
||||
<module name="ForbidCCommentsInMethods"/>
|
||||
<module name="NameConventionForJunit4TestClasses"/>
|
||||
<module name="NumericLiteralNeedsUnderscore"/>
|
||||
<module name="SimpleAccessorNameNotation"/>
|
||||
<module name="UniformEnumConstantName"/>
|
||||
|
||||
</module><!-- /Treewalker -->
|
||||
|
||||
</module><!-- /Checker -->
|
118
ruleset/src/main/resources/net/kemitix/checkstyle-3-javadoc.xml
Normal file
118
ruleset/src/main/resources/net/kemitix/checkstyle-3-javadoc.xml
Normal file
|
@ -0,0 +1,118 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
|
||||
<module name="FileTabCharacter"/>
|
||||
<module name="Header">
|
||||
<property name="fileExtensions" value="java"/>
|
||||
<property name="headerFile" value="LICENSE.txt"/>
|
||||
</module>
|
||||
<module name="JavadocPackage"/>
|
||||
<module name="NewlineAtEndOfFile">
|
||||
<property name="lineSeparator" value="lf"/>
|
||||
</module>
|
||||
<module name="Translation"/>
|
||||
<module name="UniqueProperties"/>
|
||||
|
||||
<module name="Treewalker">
|
||||
|
||||
<module name="AbbreviationAsWordInName"/>
|
||||
<module name="AbstractClassName"/>
|
||||
<module name="AnnotationLocation"/>
|
||||
<module name="AnnotationUseStyle"/>
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="AtclauseOrder">
|
||||
<property name="tagOrder" value="@param, @author, @version, @serial, @return, @throws, @exception, @serialData, @serialField, @see, @since, @deprecated"/>
|
||||
</module>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="CatchParameterName"/>
|
||||
<module name="ClassTypeParameterName"/>
|
||||
<module name="CommentsIndentation"/>
|
||||
<module name="ConstantName"/>
|
||||
<module name="DeclarationOrder"/>
|
||||
<module name="EmptyForInitializerPad"/>
|
||||
<module name="EmptyForIteratorPad"/>
|
||||
<module name="EmptyLineSeparator"/>
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="FallThrough"/>
|
||||
<module name="GenericWhitespace"/>
|
||||
<module name="InterfaceTypeParameterName"/>
|
||||
<module name="JavadocMethod">
|
||||
<property name="allowMissingPropertyJavadoc" value="true"/>
|
||||
<property name="validateThrows" value="true"/>
|
||||
<property name="scope" value="package"/>
|
||||
</module>
|
||||
<module name="JavadocParagraph"/>
|
||||
<module name="JavadocStyle"/>
|
||||
<module name="JavadocType">
|
||||
<property name="authorFormat" value="^.+ (\S+@[\S.]+)$"/>
|
||||
</module>
|
||||
<module name="LeftCurly"/>
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</module>
|
||||
<module name="LocalFinalVariableName"/>
|
||||
<module name="LocalVariableName"/>
|
||||
<module name="MagicNumber"/>
|
||||
<module name="MemberName"/>
|
||||
<module name="MethodName"/>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="MethodTypeParameterName"/>
|
||||
<module name="MissingDeprecated"/>
|
||||
<module name="ModifierOrder"/>
|
||||
<module name="MultipleStringLiterals"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="NeedBraces"/>
|
||||
<module name="NoLineWrap"/>
|
||||
<module name="NonEmptyAtclauseDescription"/>
|
||||
<module name="NoWhitespaceAfter">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="allowLineBreaks" value="false"/>
|
||||
</module>
|
||||
<module name="NoWhitespaceBefore"/>
|
||||
<module name="OneStatementPerLine"/>
|
||||
<module name="OperatorWrap"/>
|
||||
<module name="OverloadMethodsDeclarationOrder"/>
|
||||
<module name="PackageDeclaration"/>
|
||||
<module name="PackageName">
|
||||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]+)*$"/>
|
||||
</module>
|
||||
<module name="ParameterName"/>
|
||||
<module name="ParenPad"/>
|
||||
<module name="RightCurly"/>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="SingleSpaceSeparator"/>
|
||||
<module name="StaticVariableName"/>
|
||||
<module name="SuppressWarnings">
|
||||
<property name="format" value="^constantname|covariantequals|equalshashcode|noclone|onetoplevelclass|outertypefilename|packagedeclaration|typename|visibilitymodifier$"/>
|
||||
</module>
|
||||
<module name="SuppressWarningsHolder"/>
|
||||
<module name="TodoComment">
|
||||
<property name="format" value="^(\s*\*).*((TODO)|(FIXME))"/>
|
||||
</module>
|
||||
<module name="TrailingComment"/>
|
||||
<module name="TypecastParenPad"/>
|
||||
<module name="TypeName"/>
|
||||
<module name="UncommentedMain">
|
||||
<property name="excludedClasses" value="(Main|Application)$"/>
|
||||
</module>
|
||||
<module name="UnnecessaryParentheses"/>
|
||||
<module name="UnusedImports"/>
|
||||
<module name="UpperEll"/>
|
||||
<module name="WhitespaceAfter"/>
|
||||
<module name="WhitespaceAround"/>
|
||||
<module name="EnumValueName"/>
|
||||
<module name="ForbidCCommentsInMethods"/>
|
||||
<module name="NameConventionForJunit4TestClasses"/>
|
||||
<module name="NumericLiteralNeedsUnderscore"/>
|
||||
<module name="SimpleAccessorNameNotation"/>
|
||||
<module name="UniformEnumConstantName"/>
|
||||
|
||||
</module><!-- /Treewalker -->
|
||||
|
||||
</module><!-- /Checker -->
|
176
ruleset/src/main/resources/net/kemitix/checkstyle-4-tweaks.xml
Normal file
176
ruleset/src/main/resources/net/kemitix/checkstyle-4-tweaks.xml
Normal file
|
@ -0,0 +1,176 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
|
||||
<module name="FileTabCharacter"/>
|
||||
<module name="Header">
|
||||
<property name="fileExtensions" value="java"/>
|
||||
<property name="headerFile" value="LICENSE.txt"/>
|
||||
</module>
|
||||
<module name="JavadocPackage"/>
|
||||
<module name="NewlineAtEndOfFile">
|
||||
<property name="lineSeparator" value="lf"/>
|
||||
</module>
|
||||
<module name="Translation"/>
|
||||
<module name="UniqueProperties"/>
|
||||
|
||||
<module name="Treewalker">
|
||||
|
||||
<module name="AbbreviationAsWordInName"/>
|
||||
<module name="AbstractClassName"/>
|
||||
<module name="AnnotationLocation"/>
|
||||
<module name="AnnotationUseStyle"/>
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="AtclauseOrder">
|
||||
<property name="tagOrder" value="@param, @author, @version, @serial, @return, @throws, @exception, @serialData, @serialField, @see, @since, @deprecated"/>
|
||||
</module>
|
||||
<module name="AvoidEscapedUnicodeCharacters">
|
||||
<property name="allowEscapesForControlCharacters" value="true"/>
|
||||
</module>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="CatchParameterName"/>
|
||||
<module name="ClassTypeParameterName"/>
|
||||
<module name="CommentsIndentation"/>
|
||||
<module name="ConstantName"/>
|
||||
<module name="DeclarationOrder"/>
|
||||
<module name="DefaultComesLast"/>
|
||||
<module name="EmptyBlock"/>
|
||||
<module name="EmptyCatchBlock">
|
||||
<property name="commentFormat" value="expected|ignore"/>
|
||||
</module>
|
||||
<module name="EmptyForInitializerPad"/>
|
||||
<module name="EmptyForIteratorPad"/>
|
||||
<module name="EmptyLineSeparator"/>
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="EqualsAvoidNull"/>
|
||||
<module name="ExplicitInitialization"/>
|
||||
<module name="FallThrough"/>
|
||||
<module name="FinalParameters"/>
|
||||
<module name="GenericWhitespace"/>
|
||||
<module name="HiddenField">
|
||||
<property name="ignoreConstructorParameter" value="true"/>
|
||||
<property name="ignoreSetter" value="true"/>
|
||||
</module>
|
||||
<module name="HideUtilityClassConstructor"/>
|
||||
<module name="IllegalCatch"/>
|
||||
<module name="IllegalImport"/>
|
||||
<module name="IllegalThrows"/>
|
||||
<module name="IllegalToken"/>
|
||||
<module name="IllegalType">
|
||||
<property name="illegalClassNames" value="java.util.ArrayDeque, java.util.ArrayList, java.util.EnumMap, java.util.EnumSet, java.util.HashMap, java.util.HashSet, java.util.IdentityHashMap, java.util.LinkedHashMap, java.util.LinkedHashSet, java.util.LinkedList, java.util.PriorityQueue, java.util.TreeMap, java.util.TreeSet"/>
|
||||
</module>
|
||||
<module name="InnerAssignment"/>
|
||||
<module name="InnerTypeLast"/>
|
||||
<module name="InterfaceTypeParameterName"/>
|
||||
<module name="JavadocMethod">
|
||||
<property name="allowMissingPropertyJavadoc" value="true"/>
|
||||
<property name="validateThrows" value="true"/>
|
||||
<property name="scope" value="package"/>
|
||||
</module>
|
||||
<module name="JavadocParagraph"/>
|
||||
<module name="JavadocStyle"/>
|
||||
<module name="JavadocType">
|
||||
<property name="authorFormat" value="^.+ (\S+@[\S.]+)$"/>
|
||||
</module>
|
||||
<module name="LeftCurly"/>
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</module>
|
||||
<module name="LocalFinalVariableName"/>
|
||||
<module name="LocalVariableName"/>
|
||||
<module name="MagicNumber"/>
|
||||
<module name="MemberName"/>
|
||||
<module name="MethodName"/>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="MethodTypeParameterName"/>
|
||||
<module name="MissingDeprecated"/>
|
||||
<module name="MissingSwitchDefault"/>
|
||||
<module name="ModifiedControlVariable">
|
||||
<property name="skipEnhancedForLoopVariable" value="true"/>
|
||||
</module>
|
||||
<module name="ModifierOrder"/>
|
||||
<module name="MultipleStringLiterals"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="MutableException"/>
|
||||
<module name="NeedBraces"/>
|
||||
<module name="NoClone"/>
|
||||
<module name="NoFinalizer"/>
|
||||
<module name="NoLineWrap"/>
|
||||
<module name="NonEmptyAtclauseDescription"/>
|
||||
<module name="NoWhitespaceAfter">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="allowLineBreaks" value="false"/>
|
||||
</module>
|
||||
<module name="NoWhitespaceBefore"/>
|
||||
<module name="OneStatementPerLine"/>
|
||||
<module name="OneTopLevelClass"/>
|
||||
<module name="OperatorWrap"/>
|
||||
<module name="OuterTypeFilename"/>
|
||||
<module name="OverloadMethodsDeclarationOrder"/>
|
||||
<module name="PackageAnnotation"/>
|
||||
<module name="PackageDeclaration"/>
|
||||
<module name="PackageName">
|
||||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]+)*$"/>
|
||||
</module>
|
||||
<module name="ParameterName"/>
|
||||
<module name="ParenPad"/>
|
||||
<module name="RedundantModifier"/>
|
||||
<module name="RequireThis">
|
||||
<property name="checkMethods" value="false"/>
|
||||
</module>
|
||||
<module name="RightCurly"/>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="SingleSpaceSeparator"/>
|
||||
<module name="StaticVariableName"/>
|
||||
<module name="StringLiteralEquality"/>
|
||||
<module name="SuppressWarnings">
|
||||
<property name="format" value="^constantname|covariantequals|equalshashcode|noclone|onetoplevelclass|outertypefilename|packagedeclaration|typename|visibilitymodifier$"/>
|
||||
</module>
|
||||
<module name="SuppressWarningsHolder"/>
|
||||
<module name="TodoComment">
|
||||
<property name="format" value="^(\s*\*).*((TODO)|(FIXME))"/>
|
||||
</module>
|
||||
<module name="TrailingComment"/>
|
||||
<module name="TypecastParenPad"/>
|
||||
<module name="TypeName"/>
|
||||
<module name="UncommentedMain">
|
||||
<property name="excludedClasses" value="(Main|Application)$"/>
|
||||
</module>
|
||||
<module name="UnnecessaryParentheses"/>
|
||||
<module name="UnusedImports"/>
|
||||
<module name="UpperEll"/>
|
||||
<module name="VariableDeclarationUsageDistance"/>
|
||||
<module name="VisibilityModifier"/>
|
||||
<module name="WhitespaceAfter"/>
|
||||
<module name="WhitespaceAround"/>
|
||||
<module name="AvoidConstantAsFirstOperandInCondition"/>
|
||||
<module name="AvoidHidingCauseException"/>
|
||||
<module name="AvoidNotShortCircuitOperatorsForBoolean"/>
|
||||
<module name="DiamondOperatorForVariableDefinition"/>
|
||||
<module name="EitherLogOrThrow"/>
|
||||
<module name="EnumValueName"/>
|
||||
<module name="ForbidCCommentsInMethods"/>
|
||||
<module name="LogicConditionNeedOptimization"/>
|
||||
<module name="NameConventionForJunit4TestClasses"/>
|
||||
<module name="NoMainMethodInAbstractClass"/>
|
||||
<module name="NumericLiteralNeedsUnderscore"/>
|
||||
<module name="OverridableMethodInConstructor"/>
|
||||
<module name="PublicReferenceToPrivateType"/>
|
||||
<module name="RedundantReturn"/>
|
||||
<module name="ReturnBooleanFromTernary"/>
|
||||
<module name="ReturnNullInsteadOfBoolean"/>
|
||||
<module name="SimpleAccessorNameNotation"/>
|
||||
<module name="SingleBreakOrContinue"/>
|
||||
<module name="TernaryPerExpressionCount"/>
|
||||
<module name="UniformEnumConstantName"/>
|
||||
<module name="UselessSingleCatch"/>
|
||||
<module name="UselessSuperCtorCall"/>
|
||||
|
||||
</module><!-- /Treewalker -->
|
||||
|
||||
</module><!-- /Checker -->
|
|
@ -0,0 +1,229 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||
<module name="Checker">
|
||||
|
||||
<module name="FileLength"/>
|
||||
<module name="FileTabCharacter"/>
|
||||
<module name="Header">
|
||||
<property name="fileExtensions" value="java"/>
|
||||
<property name="headerFile" value="LICENSE.txt"/>
|
||||
</module>
|
||||
<module name="JavadocPackage"/>
|
||||
<module name="NewlineAtEndOfFile">
|
||||
<property name="lineSeparator" value="lf"/>
|
||||
</module>
|
||||
<module name="Translation"/>
|
||||
<module name="UniqueProperties"/>
|
||||
|
||||
<module name="Treewalker">
|
||||
|
||||
<module name="AbbreviationAsWordInName"/>
|
||||
<module name="AbstractClassName"/>
|
||||
<module name="AnnotationLocation"/>
|
||||
<module name="AnnotationUseStyle"/>
|
||||
<module name="AnonInnerLength"/>
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="AtclauseOrder">
|
||||
<property name="tagOrder" value="@param, @author, @version, @serial, @return, @throws, @exception, @serialData, @serialField, @see, @since, @deprecated"/>
|
||||
</module>
|
||||
<module name="AvoidEscapedUnicodeCharacters">
|
||||
<property name="allowEscapesForControlCharacters" value="true"/>
|
||||
</module>
|
||||
<module name="AvoidInlineConditionals"/>
|
||||
<module name="AvoidNestedBlocks"/>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="AvoidStaticImport">
|
||||
<property name="excludes" value="org.assertj.core.api.Assertions.assertThat,org.mockito.BDDMockito.given,org.mockito.Mockito.*,org.mockito.Matchers.*,org.mockito.Mockito.*"/>
|
||||
</module>
|
||||
<module name="BooleanExpressionComplexity">
|
||||
<property name="max" value="2"/>
|
||||
</module>
|
||||
<module name="CatchParameterName"/>
|
||||
<module name="ClassDataAbstractionCoupling"/>
|
||||
<module name="ClassFanOutComplexity"/>
|
||||
<module name="ClassTypeParameterName"/>
|
||||
<module name="CommentsIndentation"/>
|
||||
<module name="ConstantName"/>
|
||||
<module name="CovariantEquals"/>
|
||||
<module name="CyclomaticComplexity">
|
||||
<property name="max" value="5"/>
|
||||
</module>
|
||||
<module name="DeclarationOrder"/>
|
||||
<module name="DefaultComesLast"/>
|
||||
<module name="DesignForExtension"/>
|
||||
<module name="EmptyBlock"/>
|
||||
<module name="EmptyCatchBlock">
|
||||
<property name="commentFormat" value="expected|ignore"/>
|
||||
</module>
|
||||
<module name="EmptyForInitializerPad"/>
|
||||
<module name="EmptyForIteratorPad"/>
|
||||
<module name="EmptyLineSeparator"/>
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="EqualsAvoidNull"/>
|
||||
<module name="EqualsHashCode"/>
|
||||
<module name="ExecutableStatementCount"/>
|
||||
<module name="ExplicitInitialization"/>
|
||||
<module name="FallThrough"/>
|
||||
<module name="FinalClass"/>
|
||||
<module name="FinalParameters"/>
|
||||
<module name="GenericWhitespace"/>
|
||||
<module name="HiddenField">
|
||||
<property name="ignoreConstructorParameter" value="true"/>
|
||||
<property name="ignoreSetter" value="true"/>
|
||||
</module>
|
||||
<module name="HideUtilityClassConstructor"/>
|
||||
<module name="IllegalCatch"/>
|
||||
<module name="IllegalImport"/>
|
||||
<module name="IllegalThrows"/>
|
||||
<module name="IllegalToken"/>
|
||||
<module name="IllegalType">
|
||||
<property name="illegalClassNames" value="java.util.ArrayDeque, java.util.ArrayList, java.util.EnumMap, java.util.EnumSet, java.util.HashMap, java.util.HashSet, java.util.IdentityHashMap, java.util.LinkedHashMap, java.util.LinkedHashSet, java.util.LinkedList, java.util.PriorityQueue, java.util.TreeMap, java.util.TreeSet"/>
|
||||
</module>
|
||||
<module name="InnerAssignment"/>
|
||||
<module name="InnerTypeLast"/>
|
||||
<module name="InterfaceIsType"/>
|
||||
<module name="InterfaceTypeParameterName"/>
|
||||
<module name="JavadocMethod">
|
||||
<property name="allowMissingPropertyJavadoc" value="true"/>
|
||||
<property name="validateThrows" value="true"/>
|
||||
<property name="scope" value="package"/>
|
||||
</module>
|
||||
<module name="JavadocParagraph"/>
|
||||
<module name="JavadocStyle"/>
|
||||
<module name="JavadocType">
|
||||
<property name="authorFormat" value="^.+ (\S+@[\S.]+)$"/>
|
||||
</module>
|
||||
<module name="JavaNCSS">
|
||||
<property name="classMaximum" value="1200"/>
|
||||
<property name="fileMaximum" value="1600"/>
|
||||
<property name="methodMaximum" value="40"/>
|
||||
</module>
|
||||
<module name="LeftCurly"/>
|
||||
<module name="LineLength">
|
||||
<property name="max" value="120"/>
|
||||
</module>
|
||||
<module name="LocalFinalVariableName"/>
|
||||
<module name="LocalVariableName"/>
|
||||
<module name="MagicNumber"/>
|
||||
<module name="MemberName"/>
|
||||
<module name="MethodCount">
|
||||
<property name="maxTotal" value="30"/>
|
||||
</module>
|
||||
<module name="MethodLength">
|
||||
<property name="max" value="40"/>
|
||||
</module>
|
||||
<module name="MethodName"/>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="MethodTypeParameterName"/>
|
||||
<module name="MissingDeprecated"/>
|
||||
<module name="MissingSwitchDefault"/>
|
||||
<module name="ModifiedControlVariable">
|
||||
<property name="skipEnhancedForLoopVariable" value="true"/>
|
||||
</module>
|
||||
<module name="ModifierOrder"/>
|
||||
<module name="MultipleStringLiterals"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="MutableException"/>
|
||||
<module name="NeedBraces"/>
|
||||
<module name="NestedForDepth"/>
|
||||
<module name="NestedIfDepth"/>
|
||||
<module name="NestedTryDepth">
|
||||
<property name="max" value="0"/>
|
||||
</module>
|
||||
<module name="NoClone"/>
|
||||
<module name="NoFinalizer"/>
|
||||
<module name="NoLineWrap"/>
|
||||
<module name="NonEmptyAtclauseDescription"/>
|
||||
<module name="NoWhitespaceAfter">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="allowLineBreaks" value="false"/>
|
||||
</module>
|
||||
<module name="NoWhitespaceBefore"/>
|
||||
<module name="NPathComplexity">
|
||||
<property name="max" value="5"/>
|
||||
</module>
|
||||
<module name="OneStatementPerLine"/>
|
||||
<module name="OneTopLevelClass"/>
|
||||
<module name="OperatorWrap"/>
|
||||
<module name="OuterTypeFilename"/>
|
||||
<module name="OverloadMethodsDeclarationOrder"/>
|
||||
<module name="PackageAnnotation"/>
|
||||
<module name="PackageDeclaration"/>
|
||||
<module name="PackageName">
|
||||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]+)*$"/>
|
||||
</module>
|
||||
<module name="ParameterName"/>
|
||||
<module name="ParameterNumber">
|
||||
<property name="ignoreOverriddenMethods" value="true"/>
|
||||
</module>
|
||||
<module name="ParenPad"/>
|
||||
<module name="RedundantModifier"/>
|
||||
<module name="RequireThis">
|
||||
<property name="checkMethods" value="false"/>
|
||||
</module>
|
||||
<module name="ReturnCount"/>
|
||||
<module name="RightCurly"/>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="SimplifyBooleanExpression"/>
|
||||
<module name="SimplifyBooleanReturn"/>
|
||||
<module name="SingleSpaceSeparator"/>
|
||||
<module name="StaticVariableName"/>
|
||||
<module name="StringLiteralEquality"/>
|
||||
<module name="SuppressWarnings">
|
||||
<property name="format" value="^constantname|covariantequals|equalshashcode|noclone|onetoplevelclass|outertypefilename|packagedeclaration|typename|visibilitymodifier$"/>
|
||||
</module>
|
||||
<module name="SuppressWarningsHolder"/>
|
||||
<module name="ThrowsCount"/>
|
||||
<module name="TodoComment">
|
||||
<property name="format" value="^(\s*\*).*((TODO)|(FIXME))"/>
|
||||
</module>
|
||||
<module name="TrailingComment"/>
|
||||
<module name="TypecastParenPad"/>
|
||||
<module name="TypeName"/>
|
||||
<module name="UncommentedMain">
|
||||
<property name="excludedClasses" value="(Main|Application)$"/>
|
||||
</module>
|
||||
<module name="UnnecessaryParentheses"/>
|
||||
<module name="UnusedImports"/>
|
||||
<module name="UpperEll"/>
|
||||
<module name="VariableDeclarationUsageDistance"/>
|
||||
<module name="VisibilityModifier"/>
|
||||
<module name="WhitespaceAfter"/>
|
||||
<module name="WhitespaceAround"/>
|
||||
<module name="AvoidConstantAsFirstOperandInCondition"/>
|
||||
<module name="AvoidHidingCauseException"/>
|
||||
<module name="AvoidNotShortCircuitOperatorsForBoolean"/>
|
||||
<module name="ConfusingCondition"/>
|
||||
<module name="ConstructorWithoutParams"/>
|
||||
<module name="DiamondOperatorForVariableDefinition"/>
|
||||
<module name="EitherLogOrThrow"/>
|
||||
<module name="EnumValueName"/>
|
||||
<module name="ForbidCCommentsInMethods"/>
|
||||
<module name="ForbidReturnInFinallyBlock"/>
|
||||
<module name="ForbidWildcardAsReturnType"/>
|
||||
<module name="LogicConditionNeedOptimization"/>
|
||||
<module name="MapIterationInForEachLoop"/>
|
||||
<module name="NameConventionForJunit4TestClasses"/>
|
||||
<module name="NestedSwitch"/>
|
||||
<module name="NoMainMethodInAbstractClass"/>
|
||||
<module name="NumericLiteralNeedsUnderscore"/>
|
||||
<module name="OverridableMethodInConstructor"/>
|
||||
<module name="PublicReferenceToPrivateType"/>
|
||||
<module name="RedundantReturn"/>
|
||||
<module name="ReturnBooleanFromTernary"/>
|
||||
<module name="ReturnNullInsteadOfBoolean"/>
|
||||
<module name="SimpleAccessorNameNotation"/>
|
||||
<module name="SingleBreakOrContinue"/>
|
||||
<module name="TernaryPerExpressionCount"/>
|
||||
<module name="UniformEnumConstantName"/>
|
||||
<module name="UselessSingleCatch"/>
|
||||
<module name="UselessSuperCtorCall"/>
|
||||
|
||||
</module><!-- /Treewalker -->
|
||||
|
||||
</module><!-- /Checker -->
|
Loading…
Reference in a new issue