mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-10 21:01:17 +01:00
198 lines
8.4 KiB
XML
198 lines
8.4 KiB
XML
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~ 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. ~
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
|
|
|
|
<!DOCTYPE module PUBLIC
|
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
|
<!-- Future reference: valid severity values are 'ignore', 'info', 'warning', 'error' -->
|
|
<module name="Checker">
|
|
<module name="LineLength">
|
|
<property name="fileExtensions" value="java"/>
|
|
<property name="max" value="160"/>
|
|
<property name="severity" value="warning"/>
|
|
</module>
|
|
<module name="JavadocPackage"/><!-- require package-info.java file -->
|
|
<module name="NewlineAtEndOfFile" />
|
|
<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 -->
|
|
<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"/>
|
|
</module>
|
|
<module name="SuppressionCommentFilter">
|
|
<property name="offCommentFormat" value="BEGIN CHECKSTYLE-SUPPRESSION\: ALL"/>
|
|
<property name="onCommentFormat" value="END CHECKSTYLE-SUPPRESSION\: ALL"/>
|
|
</module>
|
|
|
|
<!-- Actual checks -->
|
|
|
|
<!-- Annotations -->
|
|
<module name="AnnotationLocation"/>
|
|
<module name="AnnotationUseStyle"/>
|
|
<module name="MissingDeprecated"/>
|
|
<module name="MissingOverride"/>
|
|
|
|
<!-- 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"/>
|
|
|
|
<!-- 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>
|
|
|
|
<!-- Javadoc Comments -->
|
|
<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>
|
|
<module name="JavadocMethod">
|
|
<property name="accessModifiers" value="public"/>
|
|
</module>
|
|
<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"/>
|
|
<module name="JavadocType"/>
|
|
<module name="JavadocVariable">
|
|
<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"/>
|
|
</module>
|
|
<module name="MissingJavadocType"/>
|
|
<module name="NonEmptyAtclauseDescription"/>
|
|
<module name="RequireEmptyLineBeforeBlockTagGroup"/>
|
|
<module name="SingleLineJavadoc"/>
|
|
<module name="SummaryJavadoc"/>
|
|
<module name="WriteTag">
|
|
<property name="tag" value="@author"/>
|
|
<property name="tagFormat" value="\S"/>
|
|
<property name="severity" value="ignore"/>
|
|
<property name="tagSeverity" value="warning"/>
|
|
</module>
|
|
|
|
<module name="ConstantName"/>
|
|
<module name="LocalVariableName"/>
|
|
<module name="MemberName"/>
|
|
<module name="MethodName"/>
|
|
<module name="PackageName"/>
|
|
<module name="ParameterName"/>
|
|
<module name="StaticVariableName"/>
|
|
<module name="TypeName"/>
|
|
<module name="AvoidStarImport">
|
|
<property name="severity" value="warning"/>
|
|
<property name="excludes" value="com.onarandombox.MultiverseCore.utils,com.onarandombox.MultiverseCore.configuration,com.onarandombox.MultiverseCore.commands,com.onarandombox.MultiverseCore.destination"/>
|
|
</module>
|
|
<module name="IllegalImport"/>
|
|
<module name="RedundantImport"/>
|
|
<module name="UnusedImports">
|
|
<property name="processJavadoc" value="true"/>
|
|
</module>
|
|
<module name="MethodLength">
|
|
<property name="severity" value="warning"/>
|
|
<property name="countEmpty" value="false"/>
|
|
</module>
|
|
<module name="ParameterNumber"/>
|
|
<module name="EmptyForIteratorPad"/>
|
|
<module name="MethodParamPad"/>
|
|
<module name="NoWhitespaceAfter">
|
|
<property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/>
|
|
</module>
|
|
<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"/>
|
|
<module name="EmptyStatement"/>
|
|
<module name="EqualsHashCode"/>
|
|
<module name="HiddenField">
|
|
<property name="tokens" value="VARIABLE_DEF"/><!-- We don't care if parameters hide fields. -->
|
|
</module>
|
|
<module name="IllegalInstantiation"/>
|
|
<module name="InnerAssignment"/>
|
|
<module name="MagicNumber">
|
|
<property name="ignoreNumbers" value="-1, 0, 0.5, 1, 2, 3"/>
|
|
</module>
|
|
<module name="MissingSwitchDefault"/>
|
|
<module name="SimplifyBooleanExpression"/>
|
|
<module name="SimplifyBooleanReturn"/>
|
|
<module name="ArrayTypeStyle"/>
|
|
<!-- Don't like errors for `final` missing
|
|
<module name="FinalParameters"/>
|
|
-->
|
|
<module name="TodoComment">
|
|
<property name="severity" value="info"/>
|
|
</module>
|
|
<module name="UpperEll"/>
|
|
<module name="Indentation"/>
|
|
</module>
|
|
</module>
|