mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
492 B
492 B
GitHub Actions
GitHub hosted runners using the latest stable version of Rust have Clippy pre-installed.
It is as simple as running cargo clippy to run lints against the codebase.
on: push
name: Clippy check
# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run Clippy
run: cargo clippy --all-targets --all-features