# `cargo-clippy` | | | | -------- | ------------------------------------------------------------------- | | Project | [cargo-clippy](https://doc.rust-lang.org/clippy/configuration.html) | | Fix | yes | | Binary | `cargo-clippy` | | Scope | [project](../linters.md#scope-project) | | Patterns | `*.rs` | `cargo-clippy` lints Rust code for common mistakes and opportunities for improvement. It starts when Rust files change, but Cargo cannot restrict Clippy to only those files. Flint therefore runs Clippy across all targets in the project and treats every warning as an error. Fix mode uses `cargo clippy --fix`, which may resolve only part of a failing run. Review the remaining diagnostics and the resulting diff before committing: ```bash flint run --fix cargo-clippy ```