Upgrade checkstyle to version 10.12.2.

This commit is contained in:
Jeremy Wood 2023-09-05 23:52:20 -04:00
parent 6a309f04dc
commit e04b0faa85
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B
2 changed files with 20 additions and 20 deletions

View File

@ -161,7 +161,7 @@ processResources {
checkstyle {
toolVersion = '6.1.1'
toolVersion = '10.12.2'
configFile file('config/mv_checks.xml')
ignoreFailures = true
}

View File

@ -10,6 +10,11 @@
"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">
<property name="allowLegacy" value="true"/>
</module>
@ -23,6 +28,8 @@
<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"/>
@ -36,16 +43,9 @@
<property name="offCommentFormat" value="BEGIN CHECKSTYLE-SUPPRESSION\: ALL"/>
<property name="onCommentFormat" value="END CHECKSTYLE-SUPPRESSION\: ALL"/>
</module>
<module name="TreeWalker">
<!-- Make suppression possible -->
<module name="FileContentsHolder"/>
<!-- Actual checks -->
<module name="LineLength">
<property name="max" value="160"/>
<property name="severity" value="warning"/>
</module>
<module name="JavadocMethod">
<property name="scope" value="package"/><!-- We don't need javadoc for private methods -->
<property name="accessModifiers" value="public, protected, package"/><!-- We don't need javadoc for private methods -->
<property name="tokens" value="METHOD_DEF"/><!-- We don't need javadoc for constructors -->
</module>
<module name="JavadocType"/>