Skip to content

Commit 0f7809f

Browse files
Flossyclaude
andcommitted
fix: Exclude UnusedPrivateField PMD rule for Logger fields
Logger fields are added for consistency across utility classes even before active use. Closes #228. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b3c2169 commit 0f7809f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pmd-rules.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<exclude name="JUnitTestsShouldIncludeAssert"/>
2323
<!-- Project uses java.util.logging with its own LoggerUtil wrapper -->
2424
<exclude name="GuardLogStatement"/>
25+
<!-- Logger fields are added for consistency even before active use -->
26+
<exclude name="UnusedPrivateField"/>
2527
<!-- UseVarargs suggestions conflict with existing public API -->
2628
<exclude name="UseVarargs"/>
2729
<!-- Try-with-resources refactoring would change existing public API behavior -->

0 commit comments

Comments
 (0)