Skip to content

chore: enable PMD GuardLogStatement rule#1284

Merged
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/pmd-todo-cleanup
May 19, 2026
Merged

chore: enable PMD GuardLogStatement rule#1284
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/pmd-todo-cleanup

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

@joaodinissf joaodinissf commented Mar 7, 2026

Enables the category/java/bestpractices.xml/GuardLogStatement PMD rule for trace and debug levels with isTraceEnabled / isDebugEnabled as the recognised guard methods. The cluster of refactors that converted eager log-statement string concatenation to parameterized {} placeholders / Supplier lambdas (test utilities, DDK core, DDK builder/generator/UI) is what makes this rule pass without violations.

🤖 Generated with Claude Code

@joaodinissf joaodinissf marked this pull request as draft March 7, 2026 15:16
@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch 4 times, most recently from 552a8ad to f9540a3 Compare April 6, 2026 20:24
@joaodinissf joaodinissf changed the title chore: enable PMD GuardLogStatement rule and clean up TODO comments chore: enable PMD GuardLogStatement rule Apr 6, 2026
@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch from f9540a3 to 8ce505d Compare April 6, 2026 20:42
@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch 2 times, most recently from 3cf146e to eb41fd2 Compare April 20, 2026 08:21
@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch from eb41fd2 to df80f66 Compare May 6, 2026 23:55
@joaodinissf joaodinissf marked this pull request as ready for review May 6, 2026 23:55
@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch from df80f66 to afcd414 Compare May 6, 2026 23:56
Copy link
Copy Markdown
Member

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need rebase and resolve conflicts

@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch 2 times, most recently from 827b3e1 to cd33a62 Compare May 19, 2026 08:45
@joaodinissf joaodinissf enabled auto-merge (rebase) May 19, 2026 08:45
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>
@joaodinissf joaodinissf force-pushed the chore/pmd-todo-cleanup branch from cd33a62 to 3526d12 Compare May 19, 2026 12:19
@joaodinissf joaodinissf merged commit c843b00 into dsldevkit:master May 19, 2026
4 checks passed
@joaodinissf joaodinissf deleted the chore/pmd-todo-cleanup branch May 19, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants