You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/06/02 11:11:18 UTC
(maven-shared-resources) 01/01: [MSHARED-1401] Checkstyle add UnusedLocalVariable
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch MSHARED-1401-unused-variable
in repository https://gitbox.apache.org/repos/asf/maven-shared-resources.git
commit 7d3c2893a2eb7db948759c02b2ea84c76e1e75fe
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Sun Jun 2 13:11:09 2024 +0200
[MSHARED-1401] Checkstyle add UnusedLocalVariable
---
src/main/resources/config/maven_checks.xml | 1 +
src/main/resources/config/maven_checks_nocodestyle.xml | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/main/resources/config/maven_checks.xml b/src/main/resources/config/maven_checks.xml
index 240f595..07bb925 100644
--- a/src/main/resources/config/maven_checks.xml
+++ b/src/main/resources/config/maven_checks.xml
@@ -180,6 +180,7 @@ under the License.
<module name="MissingSwitchDefault"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
+ <module name="UnusedLocalVariable"/>
<!-- Checks for class design -->
<!-- See https://checkstyle.org/checks/design/index.html -->
diff --git a/src/main/resources/config/maven_checks_nocodestyle.xml b/src/main/resources/config/maven_checks_nocodestyle.xml
index 70e68e8..115475d 100644
--- a/src/main/resources/config/maven_checks_nocodestyle.xml
+++ b/src/main/resources/config/maven_checks_nocodestyle.xml
@@ -123,6 +123,7 @@ under the License.
<module name="MissingSwitchDefault"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
+ <module name="UnusedLocalVariable"/>
<!-- Checks for class design -->
<!-- See https://checkstyle.org/checks/design/index.html -->