Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
chore: update checkstyle config
Dieser Commit ist enthalten in:
Ursprung
d7799eaf60
Commit
53923ed857
@ -25,11 +25,11 @@
|
|||||||
|
|
||||||
<property name="fileExtensions" value="java, properties, xml"/>
|
<property name="fileExtensions" value="java, properties, xml"/>
|
||||||
<!-- Excludes all 'module-info.java' files -->
|
<!-- Excludes all 'module-info.java' files -->
|
||||||
<!-- See https://checkstyle.org/config_filefilters.html -->
|
<!-- See https://checkstyle.org/filefilters/index.html -->
|
||||||
<module name="BeforeExecutionExclusionFileFilter">
|
<module name="BeforeExecutionExclusionFileFilter">
|
||||||
<property name="fileNamePattern" value="module\-info\.java$"/>
|
<property name="fileNamePattern" value="module\-info\.java$"/>
|
||||||
</module>
|
</module>
|
||||||
<!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
|
<!-- https://checkstyle.org/filters/suppressionfilter.html -->
|
||||||
<module name="SuppressionFilter">
|
<module name="SuppressionFilter">
|
||||||
<property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
|
<property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
|
||||||
default="checkstyle-suppressions.xml" />
|
default="checkstyle-suppressions.xml" />
|
||||||
@ -37,14 +37,14 @@
|
|||||||
</module>
|
</module>
|
||||||
|
|
||||||
<!-- Checks for whitespace -->
|
<!-- Checks for whitespace -->
|
||||||
<!-- See http://checkstyle.org/config_whitespace.html -->
|
<!-- See http://checkstyle.org/checks/whitespace/index.html -->
|
||||||
<module name="FileTabCharacter">
|
<module name="FileTabCharacter">
|
||||||
<property name="eachLine" value="true"/>
|
<property name="eachLine" value="true"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module name="LineLength">
|
<module name="LineLength">
|
||||||
<property name="fileExtensions" value="java"/>
|
<property name="fileExtensions" value="java"/>
|
||||||
<property name="max" value="100"/>
|
<property name="max" value="150"/>
|
||||||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
@ -96,7 +96,7 @@
|
|||||||
<property name="tokens"
|
<property name="tokens"
|
||||||
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
|
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
|
||||||
INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
|
INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
|
||||||
COMPACT_CTOR_DEF"/>
|
COMPACT_CTOR_DEF, LITERAL_SWITCH"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="SuppressionXpathSingleFilter">
|
<module name="SuppressionXpathSingleFilter">
|
||||||
<!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
|
<!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
|
||||||
@ -353,7 +353,7 @@
|
|||||||
<module name="CommentsIndentation">
|
<module name="CommentsIndentation">
|
||||||
<property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
|
<property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
|
||||||
</module>
|
</module>
|
||||||
<!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
|
<!-- https://checkstyle.org/filters/suppressionxpathfilter.html -->
|
||||||
<module name="SuppressionXpathFilter">
|
<module name="SuppressionXpathFilter">
|
||||||
<property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
|
<property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
|
||||||
default="checkstyle-xpath-suppressions.xml" />
|
default="checkstyle-xpath-suppressions.xml" />
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren