2011-12-11 01:44:11 +01:00
|
|
|
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~ Multiverse 2 Copyright (c) the Multiverse Team 2011. ~
|
|
|
|
~ Multiverse 2 is licensed under the BSD License. ~
|
|
|
|
~ For more information please check the README.md file included ~
|
|
|
|
~ with this project. ~
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
|
|
|
|
|
2012-01-04 13:17:10 +01:00
|
|
|
<!DOCTYPE module PUBLIC
|
2023-09-06 05:33:56 +02:00
|
|
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
|
|
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
2011-12-11 01:44:11 +01:00
|
|
|
<!-- Future reference: valid severity values are 'ignore', 'info', 'warning', 'error' -->
|
|
|
|
<module name="Checker">
|
2023-09-06 05:52:20 +02:00
|
|
|
<module name="LineLength">
|
|
|
|
<property name="fileExtensions" value="java"/>
|
|
|
|
<property name="max" value="160"/>
|
|
|
|
<property name="severity" value="warning"/>
|
|
|
|
</module>
|
2023-09-06 07:05:13 +02:00
|
|
|
<module name="JavadocPackage"/><!-- require package-info.java file -->
|
2012-01-28 15:48:46 +01:00
|
|
|
<module name="NewlineAtEndOfFile" />
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="Translation"/>
|
|
|
|
<module name="FileLength"/>
|
|
|
|
<module name="FileTabCharacter">
|
|
|
|
<property name="eachLine" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="RegexpSingleline">
|
|
|
|
<property name="message" value="Line has trailing spaces."/>
|
|
|
|
<property name="format" value="\s+$"/>
|
|
|
|
</module>
|
|
|
|
<module name="TreeWalker">
|
|
|
|
<!-- Make suppression possible -->
|
2023-09-06 05:52:20 +02:00
|
|
|
<module name="SuppressWithNearbyCommentFilter">
|
|
|
|
<property name="commentFormat" value="SUPPRESS CHECKSTYLE: (\w+)"/>
|
|
|
|
<property name="checkFormat" value="$1"/>
|
|
|
|
</module>
|
|
|
|
<module name="SuppressionCommentFilter">
|
|
|
|
<property name="offCommentFormat" value="BEGIN CHECKSTYLE-SUPPRESSION\: (\w+)"/>
|
|
|
|
<property name="onCommentFormat" value="END CHECKSTYLE-SUPPRESSION\: (\w+)"/>
|
|
|
|
<property name="checkFormat" value="$1"/>
|
2011-12-11 01:44:11 +01:00
|
|
|
</module>
|
2023-09-06 05:52:20 +02:00
|
|
|
<module name="SuppressionCommentFilter">
|
|
|
|
<property name="offCommentFormat" value="BEGIN CHECKSTYLE-SUPPRESSION\: ALL"/>
|
|
|
|
<property name="onCommentFormat" value="END CHECKSTYLE-SUPPRESSION\: ALL"/>
|
|
|
|
</module>
|
2023-09-06 07:05:13 +02:00
|
|
|
|
2023-09-06 05:52:20 +02:00
|
|
|
<!-- Actual checks -->
|
2023-09-06 13:57:36 +02:00
|
|
|
|
|
|
|
<!-- Annotations -->
|
2023-09-06 07:15:33 +02:00
|
|
|
<module name="AnnotationLocation"/>
|
|
|
|
<module name="AnnotationUseStyle"/>
|
|
|
|
<module name="MissingDeprecated"/>
|
|
|
|
<module name="MissingOverride"/>
|
|
|
|
|
2023-09-06 13:57:36 +02:00
|
|
|
<!-- Block Checks -->
|
|
|
|
<module name="AvoidNestedBlocks"/>
|
|
|
|
<module name="EmptyBlock"/>
|
|
|
|
<module name="EmptyCatchBlock">
|
|
|
|
<property name="exceptionVariableName" value="ignore"/>
|
|
|
|
</module>
|
|
|
|
<module name="LeftCurly">
|
|
|
|
<property name="ignoreEnums" value="false"/>
|
|
|
|
</module>
|
|
|
|
<module name="NeedBraces">
|
|
|
|
<property name="tokens" value="LITERAL_IF"/>
|
|
|
|
<property name="allowSingleLineStatement" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="NeedBraces">
|
|
|
|
<property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FOR,LITERAL_WHILE"/>
|
|
|
|
</module>
|
|
|
|
<module name="RightCurly"/>
|
|
|
|
|
2023-09-06 14:22:01 +02:00
|
|
|
<!-- Class Design -->
|
|
|
|
<module name="DesignForExtension">
|
|
|
|
<property name="severity" value="info"/>
|
|
|
|
</module>
|
|
|
|
<module name="FinalClass"/>
|
|
|
|
<module name="HideUtilityClassConstructor"/>
|
|
|
|
<module name="InnerTypeLast"/>
|
|
|
|
<module name="InterfaceIsType"/>
|
|
|
|
<module name="MutableException"/>
|
|
|
|
<module name="OneTopLevelClass"/>
|
|
|
|
<module name="ThrowsCount">
|
|
|
|
<property name="max" value="0"/>
|
|
|
|
</module>
|
|
|
|
<module name="VisibilityModifier">
|
|
|
|
<property name="protectedAllowed" value="true"/>
|
|
|
|
</module>
|
|
|
|
|
2023-09-06 15:17:31 +02:00
|
|
|
<!-- Coding -->
|
|
|
|
<module name="ArrayTrailingComma"/>
|
|
|
|
<module name="AvoidDoubleBraceInitialization"/>
|
|
|
|
<module name="AvoidNoArgumentSuperConstructorCall"/>
|
|
|
|
<module name="CovariantEquals"/>
|
|
|
|
<module name="DeclarationOrder"/>
|
|
|
|
<module name="DefaultComesLast"/>
|
|
|
|
<module name="EmptyStatement"/>
|
|
|
|
<module name="EqualsAvoidNull"/>
|
|
|
|
<module name="EqualsHashCode"/>
|
|
|
|
<module name="FallThrough">
|
|
|
|
<property name="checkLastCaseGroup" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="HiddenField">
|
|
|
|
<property name="ignoreConstructorParameter" value="true"/>
|
|
|
|
<property name="ignoreSetter" value="true"/>
|
|
|
|
<property name="setterCanReturnItsClass" value="true"/>
|
|
|
|
<property name="ignoreAbstractMethods" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="IllegalCatch"/>
|
|
|
|
<module name="IllegalThrows"/>
|
|
|
|
<module name="IllegalToken"/>
|
|
|
|
<module name="IllegalType"/>
|
|
|
|
<module name="InnerAssignment"/>
|
|
|
|
<module name="MagicNumber">
|
|
|
|
<property name="ignoreHashCodeMethod" value="true"/>
|
|
|
|
<property name="ignoreAnnotationElementDefaults" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="MissingSwitchDefault"/>
|
|
|
|
<module name="ModifiedControlVariable"/>
|
|
|
|
<module name="MultipleStringLiterals"/>
|
|
|
|
<module name="MultipleVariableDeclarations"/>
|
|
|
|
<module name="NestedForDepth">
|
|
|
|
<property name="severity" value="warning"/>
|
|
|
|
</module>
|
|
|
|
<module name="NestedIfDepth"/>
|
|
|
|
<module name="NestedTryDepth"/>
|
|
|
|
<module name="NoClone"/>
|
|
|
|
<module name="NoFinalizer"/>
|
|
|
|
<module name="OneStatementPerLine"/>
|
|
|
|
<module name="PackageDeclaration"/>
|
|
|
|
<module name="ParameterAssignment"/>
|
|
|
|
<module name="RequireThis"/>
|
|
|
|
<module name="ReturnCount"/>
|
|
|
|
<module name="SimplifyBooleanExpression"/>
|
|
|
|
<module name="SimplifyBooleanReturn"/>
|
|
|
|
<module name="StringLiteralEquality"/>
|
|
|
|
<module name="SuperClone"/>
|
|
|
|
<module name="SuperFinalize"/>
|
|
|
|
<module name="UnnecessaryParentheses"/>
|
|
|
|
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration"/>
|
|
|
|
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration"/>
|
|
|
|
<module name="UnnecessarySemicolonInEnumeration"/>
|
|
|
|
<module name="UnnecessarySemicolonInTryWithResources"/>
|
|
|
|
<module name="UnusedLocalVariable"/>
|
|
|
|
<module name="VariableDeclarationUsageDistance">
|
|
|
|
<property name="allowedDistance" value="3"/>
|
|
|
|
<property name="validateBetweenScopes" value="false"/>
|
|
|
|
</module>
|
|
|
|
<module name="VariableDeclarationUsageDistance">
|
|
|
|
<property name="allowedDistance" value="5"/>
|
|
|
|
<property name="validateBetweenScopes" value="true"/>
|
|
|
|
</module>
|
|
|
|
|
2023-09-06 15:26:00 +02:00
|
|
|
<!-- Imports -->
|
|
|
|
<module name="AvoidStarImport"/>
|
|
|
|
<module name="IllegalImport">
|
|
|
|
<property name="illegalPkgs" value="sun"/>
|
|
|
|
</module>
|
|
|
|
<module name="ImportOrder"/>
|
|
|
|
<module name="RedundantImport"/>
|
|
|
|
<module name="UnusedImports"/>
|
|
|
|
|
2023-09-06 13:57:36 +02:00
|
|
|
<!-- Javadoc Comments -->
|
2023-09-06 07:05:13 +02:00
|
|
|
<module name="AtclauseOrder"/>
|
|
|
|
<module name="InvalidJavadocPosition"/>
|
|
|
|
<module name="JavadocBlockTagLocation"/>
|
|
|
|
<module name="JavadocContentLocationCheck"/>
|
|
|
|
<module name="JavadocMethod">
|
|
|
|
<property name="accessModifiers" value="public, protected, package"/>
|
|
|
|
<property name="tokens" value="METHOD_DEF"/>
|
|
|
|
</module>
|
2011-12-12 16:33:29 +01:00
|
|
|
<module name="JavadocMethod">
|
2023-09-06 07:05:13 +02:00
|
|
|
<property name="accessModifiers" value="public"/>
|
2011-12-12 16:33:29 +01:00
|
|
|
</module>
|
2023-09-06 07:05:13 +02:00
|
|
|
<module name="JavadocMissingLeadingAsterisk"/>
|
|
|
|
<module name="JavadocMissingWhitespaceAfterAsterisk"/>
|
|
|
|
<module name="JavadocParagraph">
|
|
|
|
<property name="allowNewlineParagraph" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="JavadocStyle">
|
|
|
|
<property name="scope" value="package"/>
|
|
|
|
</module>
|
|
|
|
<module name="JavadocTagContinuationIndentation"/>
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="JavadocType"/>
|
2011-12-12 16:33:29 +01:00
|
|
|
<module name="JavadocVariable">
|
2023-09-06 07:05:13 +02:00
|
|
|
<property name="scope" value="package"/>
|
|
|
|
</module>
|
|
|
|
<module name="MissingJavadocMethod">
|
|
|
|
<property name="scope" value="public"/>
|
|
|
|
<property name="allowMissingPropertyJavadoc" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="MissingJavadocMethod">
|
|
|
|
<property name="scope" value="protected"/>
|
|
|
|
<property name="excludeScope" value="public"/>
|
|
|
|
<property name="allowMissingPropertyJavadoc" value="true"/>
|
|
|
|
<property name="minLineCount" value="2"/>
|
2011-12-12 16:33:29 +01:00
|
|
|
</module>
|
2023-09-06 07:05:13 +02:00
|
|
|
<module name="MissingJavadocType"/>
|
|
|
|
<module name="NonEmptyAtclauseDescription"/>
|
|
|
|
<module name="RequireEmptyLineBeforeBlockTagGroup"/>
|
|
|
|
<module name="SingleLineJavadoc"/>
|
|
|
|
<module name="SummaryJavadoc"/>
|
2011-12-12 16:31:04 +01:00
|
|
|
<module name="WriteTag">
|
|
|
|
<property name="tag" value="@author"/>
|
|
|
|
<property name="tagFormat" value="\S"/>
|
|
|
|
<property name="severity" value="ignore"/>
|
|
|
|
<property name="tagSeverity" value="warning"/>
|
|
|
|
</module>
|
2023-09-06 13:57:36 +02:00
|
|
|
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="ConstantName"/>
|
|
|
|
<module name="LocalVariableName"/>
|
|
|
|
<module name="MemberName"/>
|
|
|
|
<module name="MethodName"/>
|
|
|
|
<module name="PackageName"/>
|
|
|
|
<module name="ParameterName"/>
|
|
|
|
<module name="StaticVariableName"/>
|
|
|
|
<module name="TypeName"/>
|
2012-05-01 12:42:01 +02:00
|
|
|
<module name="MethodLength">
|
|
|
|
<property name="severity" value="warning"/>
|
|
|
|
<property name="countEmpty" value="false"/>
|
|
|
|
</module>
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="ParameterNumber"/>
|
|
|
|
<module name="EmptyForIteratorPad"/>
|
|
|
|
<module name="MethodParamPad"/>
|
2012-01-03 15:00:39 +01:00
|
|
|
<module name="NoWhitespaceAfter">
|
|
|
|
<property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
|
|
|
|
</module>
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="NoWhitespaceBefore"/>
|
|
|
|
<module name="OperatorWrap"/>
|
|
|
|
<module name="ParenPad"/>
|
|
|
|
<module name="TypecastParenPad"/>
|
|
|
|
<module name="WhitespaceAfter">
|
|
|
|
<property name="severity" value="warning"/>
|
|
|
|
</module>
|
|
|
|
<module name="WhitespaceAround">
|
|
|
|
<property name="severity" value="warning"/>
|
|
|
|
</module>
|
|
|
|
<module name="ModifierOrder"/>
|
|
|
|
<module name="RedundantModifier"/>
|
2011-12-12 16:58:19 +01:00
|
|
|
<module name="HiddenField">
|
|
|
|
<property name="tokens" value="VARIABLE_DEF"/><!-- We don't care if parameters hide fields. -->
|
|
|
|
</module>
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="ArrayTypeStyle"/>
|
2011-12-12 16:39:01 +01:00
|
|
|
<module name="TodoComment">
|
|
|
|
<property name="severity" value="info"/>
|
|
|
|
</module>
|
2011-12-11 01:44:11 +01:00
|
|
|
<module name="UpperEll"/>
|
2012-01-01 17:22:05 +01:00
|
|
|
<module name="Indentation"/>
|
2011-12-11 01:44:11 +01:00
|
|
|
</module>
|
|
|
|
</module>
|