Skip to content

feat(ci): enforce Clippy + rustfmt on every Rust PR#223

Open
Macnelson9 wants to merge 1 commit into
Dgetsylver:mainfrom
Macnelson9:feat/f3-rust-lint-ci
Open

feat(ci): enforce Clippy + rustfmt on every Rust PR#223
Macnelson9 wants to merge 1 commit into
Dgetsylver:mainfrom
Macnelson9:feat/f3-rust-lint-ci

Conversation

@Macnelson9
Copy link
Copy Markdown

Summary

  • Adds .github/workflows/rust-lint.yml with two CI jobs:
    • clippy: runs cargo clippy -- -D warnings (fails on any warning)
    • rustfmt: runs cargo fmt --all -- --check (fails on any formatting diff)
  • Triggers on push/PR touching src/**, Cargo.toml, or Cargo.lock
  • Uses Swatinem/rust-cache to keep CI fast

Test plan

  • Push a Rust file with a Clippy warning → rust-lint.yml / clippy job fails
  • Push a Rust file with a formatting diff → rustfmt job fails
  • Clean Rust push → both jobs pass

Closes #70

🤖 Generated with Claude Code

Adds `.github/workflows/rust-lint.yml` with two jobs:
- `clippy`: runs `cargo clippy -- -D warnings`
- `rustfmt`: runs `cargo fmt --all -- --check`
Triggers on push/PR touching `src/**`, `Cargo.toml`, or `Cargo.lock`.
Uses `Swatinem/rust-cache` for fast CI.

Closes Dgetsylver#70

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

F3: Clippy + rustfmt enforced in CI

1 participant