Skip to content

chore: enable the PMD UnnecessaryImport rule#1383

Merged
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/enable-pmd-unnecessary-import
Jun 1, 2026
Merged

chore: enable the PMD UnnecessaryImport rule#1383
joaodinissf merged 1 commit into
dsldevkit:masterfrom
joaodinissf:chore/enable-pmd-unnecessary-import

Conversation

@joaodinissf

Copy link
Copy Markdown
Collaborator

Re-enables the UnnecessaryImport PMD rule (previously excluded with "too many false positives after PMD 7").

Blast radius: zero. mvn pmd:check across the full reactor reports 0 UnnecessaryImport violations on current master. Generated roots (src-gen, src-model, xtend-gen) are already excluded from PMD, so only hand-written src/ is scanned — and it's clean. The exclusion comment is stale.

Going forward this catches unused imports in hand-written source (nothing else in CI does — checkstyle has no unused-import rule; it would have caught e.g. the Javadoc-only imports recently cleaned up in the Xtend→Java migrations).

🤖 Generated with Claude Code

Re-enables the previously-excluded UnnecessaryImport rule. Blast radius is
zero: `mvn pmd:check` across the whole reactor reports 0 UnnecessaryImport
violations on current master. Generated code (src-gen, src-model, xtend-gen)
is already excluded from PMD via excludeRoots, so only hand-written src/ is
scanned. The "too many false positives after PMD 7" exclusion comment is
stale for the current codebase.

Catches unused imports in hand-written source going forward (nothing else in
CI does — checkstyle has no unused-import rule).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@joaodinissf joaodinissf marked this pull request as ready for review May 30, 2026 15:56
@joaodinissf joaodinissf enabled auto-merge (rebase) May 30, 2026 15:56
@joaodinissf joaodinissf merged commit 3c97b8a into dsldevkit:master Jun 1, 2026
4 checks passed
@joaodinissf joaodinissf deleted the chore/enable-pmd-unnecessary-import branch June 1, 2026 07:34
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