Skip to content

Commit a9e09bf

Browse files
apply EmptyStatement
1 parent e59c700 commit a9e09bf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

buildSrc/config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>
2121
<!-- Best Practice -->
2222
<module name="UnusedLocalVariable"/>
23-
<!-- <module name="EmptyStatement"/>-->
23+
<module name="EmptyStatement"/>
2424
<!-- <module name="UnusedLocalMethod"/> wait for https://github.com/checkstyle/checkstyle/issues/16375 -->
2525
<module name="VariableDeclarationUsageDistance"/>
2626
</module>

src/checkstyle/checkstyle.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
</module>
5656
<!-- Coding -->
5757
<module name="com.puppycrawl.tools.checkstyle.checks.coding.CovariantEqualsCheck"/>
58-
<module name="com.puppycrawl.tools.checkstyle.checks.coding.EmptyStatementCheck"/>
5958
<module name="com.puppycrawl.tools.checkstyle.checks.coding.EqualsHashCodeCheck"/>
6059
<module name="com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanExpressionCheck"/>
6160
<module name="com.puppycrawl.tools.checkstyle.checks.coding.SimplifyBooleanReturnCheck"/>
@@ -251,7 +250,7 @@
251250
<module name="io.spring.javaformat.checkstyle.check.SpringJUnit5Check"/>
252251
<!-- Best Practice -->
253252
<module name="UnusedLocalVariable"/>
254-
<!-- <module name="EmptyStatement"/>-->
253+
<module name="EmptyStatement"/>
255254
<!-- <module name="UnusedLocalMethod"/> wait for https://github.com/checkstyle/checkstyle/issues/16375 -->
256255
<!-- <module name="VariableDeclarationUsageDistance"/> wait for https://github.com/openrewrite/rewrite-static-analysis/issues/469 -->
257256
</module>

0 commit comments

Comments
 (0)