#1462: Fix broken links and minor improvement for checkstyle.xml

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2024-08-12 21:26:49 +10:00
parent 921fbc5f60
commit 3a8b574f16

View file

@ -4,40 +4,39 @@
"https://checkstyle.org/dtds/configuration_1_3.dtd"> "https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker"> <module name="Checker">
<!-- See http://checkstyle.sourceforge.net/config_misc.html#NewlineAtEndOfFile --> <!-- See https://checkstyle.org/checks/misc/newlineatendoffile.html#NewlineAtEndOfFile -->
<module name="NewlineAtEndOfFile"> <module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf_cr_crlf"/> <property name="lineSeparator" value="lf_cr_crlf"/>
</module> </module>
<!-- See http://checkstyle.sourceforge.net/config_whitespace.html --> <!-- See https://checkstyle.org/checks/whitespace/filetabcharacter.html#FileTabCharacter -->
<module name="FileTabCharacter"/> <module name="FileTabCharacter"/>
<!-- See http://checkstyle.sourceforge.net/config_misc.html --> <!-- See https://checkstyle.org/checks/regexp/regexpsingleline.html -->
<module name="RegexpSingleline"> <module name="RegexpSingleline">
<property name="format" value="\s+$"/> <property name="format" value="\s+$"/>
<property name="minimum" value="0"/> <property name="minimum" value="0"/>
<property name="maximum" value="0"/> <property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/> <property name="message" value="Line has trailing spaces."/>
</module> </module>
<!-- 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>
<!-- See http://checkstyle.sourceforge.net/config_filters.html --> <!-- See https://checkstyle.org/filters/suppressionsinglefilter.html#SuppressionSingleFilter -->
<module name="SuppressionSingleFilter"> <module name="SuppressionSingleFilter">
<property name="checks" value="UnusedImports"/> <property name="checks" value="UnusedImports"/>
<property name="files" value=".*[/\\]net[/\\]minecraft[/\\].*"/> <property name="files" value=".*[/\\]net[/\\]minecraft[/\\].*"/>
</module> </module>
<!-- 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>
<module name="TreeWalker"> <module name="TreeWalker">
<!-- See https://checkstyle.org/config_javadoc.html --> <!-- See https://checkstyle.org/checks/javadoc/index.html -->
<module name="AtclauseOrder"/> <module name="AtclauseOrder"/>
<module name="InvalidJavadocPosition"/> <module name="InvalidJavadocPosition"/>
<module name="JavadocBlockTagLocation"/> <module name="JavadocBlockTagLocation"/>
@ -47,7 +46,7 @@
<module name="MissingJavadocPackage"/> <module name="MissingJavadocPackage"/>
<!--<module name="NonEmptyAtclauseDescription"/>--> <!--<module name="NonEmptyAtclauseDescription"/>-->
<!-- See http://checkstyle.sourceforge.net/config_filters.html --> <!-- See https://checkstyle.org/filters/index.html -->
<module name="SuppressionCommentFilter"/> <module name="SuppressionCommentFilter"/>
<module name="SuppressionCommentFilter"> <module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CraftBukkit start"/> <property name="offCommentFormat" value="CraftBukkit start"/>
@ -57,7 +56,7 @@
<property name="commentFormat" value="CraftBukkit"/> <property name="commentFormat" value="CraftBukkit"/>
</module> </module>
<!-- See http://checkstyle.sourceforge.net/config_imports.html --> <!-- See https://checkstyle.org/checks/imports/index.html -->
<module name="AvoidStarImport"> <module name="AvoidStarImport">
<property name="allowStaticMemberImports" value="true"/> <property name="allowStaticMemberImports" value="true"/>
</module> </module>
@ -70,7 +69,7 @@
<module name="RedundantImport"/> <module name="RedundantImport"/>
<module name="UnusedImports"/> <module name="UnusedImports"/>
<!-- See https://checkstyle.org/config_whitespace.html --> <!-- See https://checkstyle.org/checks/whitespace/index.html -->
<module name="GenericWhitespace"/> <module name="GenericWhitespace"/>
<module name="MethodParamPad"/> <module name="MethodParamPad"/>
<module name="NoLineWrap"/> <module name="NoLineWrap"/>
@ -90,19 +89,19 @@
<property name="allowEmptyTypes" value="true"/> <property name="allowEmptyTypes" value="true"/>
</module> </module>
<!-- See http://checkstyle.sourceforge.net/config_modifiers.html --> <!-- See https://checkstyle.org/checks/modifier/index.html -->
<module name="ModifierOrder"/> <module name="ModifierOrder"/>
<!-- See https://checkstyle.org/config_blocks.html --> <!-- See https://checkstyle.org/checks/blocks/index.html -->
<!--<module name="AvoidNestedBlocks"/>--> <!--<module name="AvoidNestedBlocks"/>-->
<module name="LeftCurly"/> <module name="LeftCurly"/>
<module name="RightCurly"/> <module name="RightCurly"/>
<!-- See http://checkstyle.sourceforge.net/config_design.html --> <!-- See https://checkstyle.org/checks/design/index.html -->
<!--<module name="FinalClass"/>--> <!--<module name="FinalClass"/>-->
<!--<module name="InterfaceIsType"/>--> <!--<module name="InterfaceIsType"/>-->
<!-- See http://checkstyle.sourceforge.net/config_misc.html --> <!-- See https://checkstyle.org/checks/misc/index.html -->
<module name="ArrayTypeStyle"/> <module name="ArrayTypeStyle"/>
<module name="UpperEll"/> <module name="UpperEll"/>
</module> </module>