Skip to content

build: prevent unused imports#1363

Merged
joaodinissf merged 3 commits into
masterfrom
unusedImports
May 26, 2026
Merged

build: prevent unused imports#1363
joaodinissf merged 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

@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
Comment thread ddk-configuration/checkstyle/avaloq.xml Outdated
<property name="allowInSwitchCase" value="true"/>
</module>
<module name="AvoidStarImport"/>
<module name="UnusedImports"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is duplicated

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>
auto-merge was automatically disabled May 26, 2026 17:56

Pull request was closed

@joaodinissf joaodinissf reopened this May 26, 2026
@joaodinissf joaodinissf merged commit 0d51c2c into master May 26, 2026
4 checks passed
@joaodinissf joaodinissf deleted the unusedImports branch May 26, 2026 22:17
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