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 { checkstyle {
toolVersion = '6.1.1' toolVersion = '10.12.2'
configFile file('config/mv_checks.xml') configFile file('config/mv_checks.xml')
ignoreFailures = true ignoreFailures = true
} }

View File

@ -10,6 +10,11 @@
"https://checkstyle.org/dtds/configuration_1_3.dtd"> "https://checkstyle.org/dtds/configuration_1_3.dtd">
<!-- Future reference: valid severity values are 'ignore', 'info', 'warning', 'error' --> <!-- Future reference: valid severity values are 'ignore', 'info', 'warning', 'error' -->
<module name="Checker"> <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"> <module name="JavadocPackage">
<property name="allowLegacy" value="true"/> <property name="allowLegacy" value="true"/>
</module> </module>
@ -23,6 +28,8 @@
<property name="message" value="Line has trailing spaces."/> <property name="message" value="Line has trailing spaces."/>
<property name="format" value="\s+$"/> <property name="format" value="\s+$"/>
</module> </module>
<module name="TreeWalker">
<!-- Make suppression possible -->
<module name="SuppressWithNearbyCommentFilter"> <module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="SUPPRESS CHECKSTYLE: (\w+)"/> <property name="commentFormat" value="SUPPRESS CHECKSTYLE: (\w+)"/>
<property name="checkFormat" value="$1"/> <property name="checkFormat" value="$1"/>
@ -36,16 +43,9 @@
<property name="offCommentFormat" value="BEGIN CHECKSTYLE-SUPPRESSION\: ALL"/> <property name="offCommentFormat" value="BEGIN CHECKSTYLE-SUPPRESSION\: ALL"/>
<property name="onCommentFormat" value="END CHECKSTYLE-SUPPRESSION\: ALL"/> <property name="onCommentFormat" value="END CHECKSTYLE-SUPPRESSION\: ALL"/>
</module> </module>
<module name="TreeWalker">
<!-- Make suppression possible -->
<module name="FileContentsHolder"/>
<!-- Actual checks --> <!-- Actual checks -->
<module name="LineLength">
<property name="max" value="160"/>
<property name="severity" value="warning"/>
</module>
<module name="JavadocMethod"> <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 --> <property name="tokens" value="METHOD_DEF"/><!-- We don't need javadoc for constructors -->
</module> </module>
<module name="JavadocType"/> <module name="JavadocType"/>