Skip to content

build: prevent unused imports#1363

Open
joaodinissf wants to merge 3 commits into
masterfrom
unusedImports
Open

build: prevent unused imports#1363
joaodinissf wants to merge 3 commits into
masterfrom
unusedImports

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

Promotes the unusedImports staging branch to master: enables the checkstyle UnusedImports rule and cleans up the Javadoc parse errors it surfaces.

Verified locally on macOS: mvn -T 3C clean verify checkstyle:check pmd:check pmd:cpd-check spotbugs:check -f ddk-parent/pom.xml passes with 357 tests, 0 checkstyle / PMD / SpotBugs violations.

— opened by Claude at João's request

rubenporras and others added 3 commits May 22, 2026 10:39
The maven-checkstyle UnusedImports check parses Javadoc to track
{@link} references, so malformed Javadoc tags abort the check. Three
files escaped the broader cleanup in this branch:

  - CheckValidator.java: @see {@link X} -> @see X
  - CheckCfgValidator.java: @see {@link X} -> @see X
  - TemplateVariableResolverTestHelper.java: stray @ in
    {@link TemplateVariableResolver@} typo, plus three
    @throws {@link X}\n   X} multilines normalized to single-line
    @throws X.

Verified locally on macOS: mvn -T 3C clean verify checkstyle:check
pmd:check pmd:cpd-check spotbugs:check -f ddk-parent/pom.xml passes
with 357 tests, 0 checkstyle / PMD / SpotBugs violations.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joaodinissf joaodinissf requested a review from rubenporras May 23, 2026 13:22
@joaodinissf joaodinissf marked this pull request as ready for review May 23, 2026 13:24
@joaodinissf joaodinissf enabled auto-merge (rebase) May 23, 2026 13:24
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