Skip to content

ci(clippy): deny unused code warnings#160

Merged
powderluv merged 1 commit intoROCm:mainfrom
shiv-tyagi:ci/deny-unused-warnings
May 8, 2026
Merged

ci(clippy): deny unused code warnings#160
powderluv merged 1 commit intoROCm:mainfrom
shiv-tyagi:ci/deny-unused-warnings

Conversation

@shiv-tyagi
Copy link
Copy Markdown
Member

Add -D unused to the CI clippy invocation so that dead code, unused imports, unused variables, and other unused-item warnings are promoted to hard errors. This prevents unused code from silently accumulating in the codebase over time through AI written code (it tends to forget cleanup a lot).

The codebase was cleaned up in PRs #155 through #159, so the lint group passes cleanly today and this gate can now be enforced going forward.

Add -D unused to the CI clippy invocation so that dead code, unused
imports, unused variables, and other unused-item warnings are promoted
to hard errors. This prevents unused code from silently accumulating in
the codebase over time through AI-assisted or manual contributions.

The codebase was cleaned up in PRs ROCm#155 through ROCm#159, so the lint group
passes cleanly today and this gate can now be enforced going forward.
@shiv-tyagi shiv-tyagi force-pushed the ci/deny-unused-warnings branch from 2777e32 to 9e694a7 Compare May 8, 2026 16:56
@shiv-tyagi shiv-tyagi requested a review from powderluv May 8, 2026 17:19
@powderluv powderluv merged commit ffe1282 into ROCm:main May 8, 2026
17 of 18 checks passed
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