chore: enable PMD GuardLogStatement rule#1284
Merged
Merged
Conversation
552a8ad to
f9540a3
Compare
f9540a3 to
8ce505d
Compare
3cf146e to
eb41fd2
Compare
eb41fd2 to
df80f66
Compare
df80f66 to
afcd414
Compare
rubenporras
requested changes
May 19, 2026
Member
rubenporras
left a comment
There was a problem hiding this comment.
you need rebase and resolve conflicts
827b3e1 to
cd33a62
Compare
Remove the GuardLogStatement exclusion and configure the rule for debug/trace levels. Also replace bare TODO comments on remaining excluded rules (PreserveStackTrace, UseTryWithResources) with actionable descriptions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cd33a62 to
3526d12
Compare
rubenporras
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables the
category/java/bestpractices.xml/GuardLogStatementPMD rule fortraceanddebuglevels withisTraceEnabled/isDebugEnabledas the recognised guard methods. The cluster of refactors that converted eager log-statement string concatenation to parameterized{}placeholders /Supplierlambdas (test utilities, DDK core, DDK builder/generator/UI) is what makes this rule pass without violations.🤖 Generated with Claude Code