Skip to content

Commit da28f5e

Browse files
author
Vincent Potucek
committed
Pull #34816: Add checkstyle rule UnusedLocalVariable
Signed-off-by: Vincent Potucek <[email protected]>
1 parent 838b4d6 commit da28f5e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

buildSrc/config/checkstyle/checkstyle.xml

+3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
<!-- Imports -->
1818
<module name="AvoidStarImport"/>
19+
<!-- Unused -->
1920
<module name="UnusedImports"/>
21+
<module name="UnusedLocalVariable"/>
22+
<!-- <module name="UnusedLocalMethodCheck"/> https://github.com/checkstyle/checkstyle/pull/16894 -->
2023
<module name="RedundantImport"/>
2124
<!-- Modifiers -->
2225
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>

src/checkstyle/checkstyle.xml

+3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090

9191
<!-- Imports -->
9292
<module name="AvoidStarImport"/>
93+
<!-- Unused -->
9394
<module name="UnusedImports"/>
95+
<module name="UnusedLocalVariable"/>
96+
<!-- <module name="UnusedLocalMethodCheck"/> https://github.com/checkstyle/checkstyle/pull/16894 -->
9497
<module name="RedundantImport"/>
9598
<module name="com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck">
9699
<property name="groups" value="java,javax,*,org.springframework"/>

0 commit comments

Comments
 (0)