Skip to content

Commit 465c0ac

Browse files
committed
Updated checkstyle rules
1 parent bed50b6 commit 465c0ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎buildSrc/src/main/groovy/base.checkstyle.gradle‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
checkstyle {
6-
toolVersion = "14.1.0"
6+
toolVersion = "14.3.0"
77
configProperties = [
88
javaVersion: java.toolchain.languageVersion.get().asInt(),
99
typeParameterNameFormat: "^[A-Z0-9_]+\$",
@@ -207,7 +207,9 @@ checkstyle {
207207
<property name="protectedAllowed" value="true"/>
208208
</module>
209209
${configProperties.javaVersion >= 21 ? '<module name="WhenShouldBeUsed"/>' : ''}
210-
<module name="WhitespaceAfter"/>
210+
<module name="WhitespaceAfter">
211+
<property name="tokens" value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE, LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, LITERAL_FINALLY, LITERAL_RETURN, LITERAL_YIELD, LITERAL_CATCH, DO_WHILE, ELLIPSIS, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_CASE, LAMBDA, LITERAL_WHEN, ANNOTATIONS, SINGLE_LINE_COMMENT"/>
212+
</module>
211213
<module name="WhitespaceAround">
212214
<property name="ignoreEnhancedForColon" value="false"/>
213215
</module>

0 commit comments

Comments
 (0)