Skip to content

ci: add clippy lint gate, remove obsolete clippy dev-dependency#306

Open
allamiro wants to merge 1 commit into
lixmal:masterfrom
allamiro:ci/lint-gates
Open

ci: add clippy lint gate, remove obsolete clippy dev-dependency#306
allamiro wants to merge 1 commit into
lixmal:masterfrom
allamiro:ci/lint-gates

Conversation

@allamiro

@allamiro allamiro commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #291.

Changes

  • Removed clippy = "0.0.302" from dev-dependencies — clippy has shipped as a rustup component for years and cargo warns it is an invalid dependency (missing a lib target). Lockfile updated accordingly.
  • New lint job in the test workflow: cargo clippy --all-targets -- -D clippy::correctness -D clippy::suspicious.

Why not -D warnings / cargo fmt --check?

The codebase currently has 22 clippy style warnings and ~170 rustfmt diffs. Fixing those touches nearly every file and would conflict with the open PR queue — better done as a dedicated cleanup afterwards, at which point the gate can be tightened. The chosen lint groups pass today and catch actual bugs, so the gate is meaningful immediately.

Testing

  • the exact CI clippy command passes locally (rust 1.83)
  • cargo test: 9/9 pass with the updated lockfile

Summary by cubic

Add a CI lint job running cargo clippy --all-targets -- -D clippy::correctness -D clippy::suspicious to gate on bug-catching lints. Remove the obsolete clippy dev-dependency and prune Cargo.lock.

Written for commit 4095d4e. Summary will update on new commits.

Review in cubic

The clippy 0.0.302 crate is a years-old relic (clippy ships as a
rustup component); cargo itself warns it is an invalid dependency.
The new CI job gates on the bug-catching lint groups (correctness,
suspicious); style lints are left for a dedicated cleanup.
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.

CI: add clippy/rustfmt gates; remove obsolete clippy dev-dependency

1 participant