2019-04-23 06:00:20 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE module PUBLIC
|
2024-08-12 13:26:44 +02:00
|
|
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
|
|
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
2019-04-23 06:00:20 +02:00
|
|
|
|
|
|
|
<module name="Checker">
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/misc/newlineatendoffile.html#NewlineAtEndOfFile -->
|
2019-04-23 13:22:32 +02:00
|
|
|
<module name="NewlineAtEndOfFile">
|
|
|
|
<property name="lineSeparator" value="lf_cr_crlf"/>
|
|
|
|
</module>
|
2019-04-23 06:00:20 +02:00
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/whitespace/filetabcharacter.html#FileTabCharacter -->
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="FileTabCharacter"/>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/regexp/regexpsingleline.html -->
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="RegexpSingleline">
|
2020-01-05 01:25:06 +01:00
|
|
|
<property name="format" value="\s+$"/>
|
|
|
|
<property name="minimum" value="0"/>
|
|
|
|
<property name="maximum" value="0"/>
|
|
|
|
<property name="message" value="Line has trailing spaces."/>
|
2019-04-23 06:00:20 +02:00
|
|
|
</module>
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See SPIGOT-7676: Enforce Locale, to prevent issues with turkish 'I' and similar -->
|
|
|
|
<module name="RegexpSingleline">
|
|
|
|
<property name="format" value="\.toUpperCase\(\s*\)"/>
|
|
|
|
<property name="message" value="Use toUpperCase(Locale.ROOT) instead of toUpperCase()"/>
|
|
|
|
</module>
|
|
|
|
<module name="RegexpSingleline">
|
|
|
|
<property name="format" value="\.toLowerCase\(\s*\)"/>
|
|
|
|
<property name="message" value="Use toLowerCase(Locale.ROOT) instead of toLowerCase()"/>
|
|
|
|
</module>
|
2019-04-23 06:00:20 +02:00
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/javadoc/javadocpackage.html#JavadocPackage -->
|
2022-02-18 23:33:06 +01:00
|
|
|
<module name="JavadocPackage"/>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/filters/suppressionsinglefilter.html#SuppressionSingleFilter -->
|
2023-04-07 01:41:58 +02:00
|
|
|
<module name="SuppressionSingleFilter">
|
|
|
|
<property name="message" value="'(implNote|implSpec|apiNote)'\."/>
|
|
|
|
</module>
|
2023-12-17 00:26:44 +01:00
|
|
|
<!-- Don't check for missing package-info in tests -->
|
|
|
|
<module name="SuppressionSingleFilter">
|
|
|
|
<property name="checks" value="JavadocPackage"/>
|
|
|
|
<property name="files" value=".*[\\/]src[\\/]test[\\/].*\.java$"/>
|
|
|
|
</module>
|
2023-04-07 01:41:58 +02:00
|
|
|
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="TreeWalker">
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/javadoc/index.html -->
|
2019-12-21 23:56:28 +01:00
|
|
|
<module name="AtclauseOrder"/>
|
|
|
|
<module name="InvalidJavadocPosition"/>
|
|
|
|
<module name="JavadocBlockTagLocation"/>
|
|
|
|
<module name="JavadocContentLocationCheck"/>
|
|
|
|
<module name="JavadocMethod"/>
|
|
|
|
<module name="JavadocType"/>
|
|
|
|
<module name="MissingJavadocPackage"/>
|
|
|
|
<module name="NonEmptyAtclauseDescription"/>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/filters/index.html -->
|
2019-04-23 06:33:57 +02:00
|
|
|
<module name="SuppressionCommentFilter"/>
|
2013-06-02 02:36:24 +02:00
|
|
|
<module name="SuppressionCommentFilter">
|
|
|
|
<property name="offCommentFormat" value="Spigot start"/>
|
|
|
|
<property name="onCommentFormat" value="Spigot end"/>
|
|
|
|
</module>
|
2019-04-23 06:33:57 +02:00
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/imports/index.html -->
|
2019-04-23 06:33:57 +02:00
|
|
|
<module name="AvoidStarImport">
|
|
|
|
<property name="allowStaticMemberImports" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="ImportOrder">
|
|
|
|
<property name="option" value="above"/>
|
|
|
|
<property name="ordered" value="true"/>
|
|
|
|
<property name="separatedStaticGroups" value="true"/>
|
|
|
|
<property name="sortStaticImportsAlphabetically" value="true"/>
|
|
|
|
</module>
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="RedundantImport"/>
|
2019-04-23 06:33:57 +02:00
|
|
|
<module name="UnusedImports"/>
|
2019-04-23 06:00:20 +02:00
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/whitespace/index.html -->
|
2020-01-24 07:37:30 +01:00
|
|
|
<module name="GenericWhitespace"/>
|
|
|
|
<module name="MethodParamPad"/>
|
|
|
|
<module name="NoLineWrap"/>
|
|
|
|
<module name="NoWhitespaceAfter"/>
|
|
|
|
<module name="NoWhitespaceBefore">
|
|
|
|
<property name="allowLineBreaks" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="OperatorWrap"/>
|
|
|
|
<module name="ParenPad"/>
|
|
|
|
<module name="SingleSpaceSeparator"/>
|
|
|
|
<module name="TypecastParenPad"/>
|
|
|
|
<module name="WhitespaceAfter"/>
|
|
|
|
<module name="WhitespaceAround">
|
|
|
|
<property name="allowEmptyCatches" value="true"/>
|
|
|
|
<property name="allowEmptyConstructors" value="true"/>
|
|
|
|
<property name="allowEmptyMethods" value="true"/>
|
|
|
|
<property name="allowEmptyTypes" value="true"/>
|
|
|
|
</module>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/modifier/index.html -->
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="ModifierOrder"/>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/blocks/index.html -->
|
2020-01-24 07:37:30 +01:00
|
|
|
<module name="AvoidNestedBlocks"/>
|
|
|
|
<module name="LeftCurly"/>
|
|
|
|
<module name="RightCurly"/>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/design/index.html -->
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="FinalClass"/>
|
|
|
|
|
2024-08-12 13:26:44 +02:00
|
|
|
<!-- See https://checkstyle.org/checks/misc/index.html -->
|
2019-04-23 06:00:20 +02:00
|
|
|
<module name="ArrayTypeStyle"/>
|
|
|
|
<module name="UpperEll"/>
|
|
|
|
</module>
|
|
|
|
</module>
|