net.kemitix.checkstyle-5-complexity.xml Maven / Gradle / Ivy
<?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="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpOnFilenameCheck"> <property name="fileNamePattern" value="(.sync-conflict-| conflicted copy )"/> <property name="match" value="true"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.FileLengthCheck"> <property name="max" value="500"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocPackageCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck"> <property name="max" value="120"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck"> <property name="lineSeparator" value="lf"/> </module> <module name="com.puppycrawl.tools.checkstyle.filters.SuppressWarningsFilter"/> <module name="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.UniquePropertiesCheck"/> <module name="TreeWalker"> <module name="com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationLocationCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.AnonInnerLengthCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.AtclauseOrderCheck"> <property name="tagOrder" value="@param, @author, @version, @serial, @return, @throws, @exception, @serialData, @serialField, @see, @since, @deprecated"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.AvoidEscapedUnicodeCharactersCheck"> <property name="allowEscapesForControlCharacters" value="true"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.AvoidInlineConditionalsCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.blocks.AvoidNestedBlocksCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.metrics.BooleanExpressionComplexityCheck"> <property name="max" value="2"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.naming.CatchParameterNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.metrics.ClassDataAbstractionCouplingCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.metrics.ClassFanOutComplexityCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.ClassTypeParameterNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.indentation.CommentsIndentationCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.ConstantNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.CovariantEqualsCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.metrics.CyclomaticComplexityCheck"> <property name="max" value="5"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.DefaultComesLastCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.DesignForExtensionCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.blocks.EmptyCatchBlockCheck"> <property name="commentFormat" value="expected|ignore"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyForInitializerPadCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyForIteratorPadCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.EqualsAvoidNullCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.ExecutableStatementCountCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.ExplicitInitializationCheck"> <property name="onlyObjectReferences" value="true"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.FallThroughCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.FinalClassCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.FinalParametersCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.GenericWhitespaceCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck"> <property name="ignoreConstructorParameter" value="true"/> <property name="ignoreSetter" value="true"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.design.HideUtilityClassConstructorCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.IllegalCatchCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.IllegalThrowsCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.IllegalTokenCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.IllegalTypeCheck"> <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="com.puppycrawl.tools.checkstyle.checks.coding.InnerAssignmentCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.InnerTypeLastCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.InterfaceIsTypeCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.InterfaceTypeParameterNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocParagraphCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.metrics.JavaNCSSCheck"> <property name="classMaximum" value="250"/> <property name="fileMaximum" value="250"/> <property name="methodMaximum" value="12"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.naming.LambdaParameterNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.LocalFinalVariableNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.LocalVariableNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.MemberNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.MethodCountCheck"> <property name="maxTotal" value="10"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.MethodLengthCheck"> <property name="max" value="30"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.naming.MethodNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.MethodParamPadCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.MethodTypeParameterNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.annotation.MissingDeprecatedCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.MissingSwitchDefaultCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.ModifiedControlVariableCheck"> <property name="skipEnhancedForLoopVariable" value="true"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.MultipleStringLiteralsCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.MultipleVariableDeclarationsCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.MutableExceptionCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.NestedForDepthCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.NestedIfDepthCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.NestedTryDepthCheck"> <property name="max" value="0"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.NoCloneCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.NoFinalizerCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.NoLineWrapCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.javadoc.NonEmptyAtclauseDescriptionCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceAfterCheck"> <property name="allowLineBreaks" value="false"/> <property name="tokens" value="DOT"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.NoWhitespaceBeforeCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.metrics.NPathComplexityCheck"> <property name="max" value="5"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.OneTopLevelClassCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.OperatorWrapCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.OverloadMethodsDeclarationOrderCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.annotation.PackageAnnotationCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.PackageDeclarationCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.PackageNameCheck"> <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]+)*$"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.naming.ParameterNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.sizes.ParameterNumberCheck"> <property name="ignoreOverriddenMethods" value="true"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck"> <property name="checkMethods" value="false"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.ReturnCountCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.SeparatorWrapCheck"> <property name="option" value="nl"/> <property name="tokens" value="DOT"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.SingleSpaceSeparatorCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.StaticVariableNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.StringLiteralEqualityCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.annotation.SuppressWarningsCheck"> <property name="format" value="^constantname|covariantequals|equalshashcode|noclone|onetoplevelclass|outertypefilename|packagedeclaration|typename|visibilitymodifier$"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.ThrowsCountCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.TodoCommentCheck"> <property name="format" value="^(\s*\*).*((TODO)|(FIXME))"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.TrailingCommentCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.TypecastParenPadCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.naming.TypeNameCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.UncommentedMainCheck"> <property name="excludedClasses" value="(Main|Application)$"/> </module> <module name="com.puppycrawl.tools.checkstyle.checks.coding.UnnecessaryParenthesesCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.UpperEllCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck"/> <module name="com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck"/> </module><!-- /TreeWalker --> </module><!-- /Checker -->