cargo clippy runs Clippy's lints, which are grouped into categories such as clippy::all
Answer: Clippy is a collection of lints that catch common mistakes and improve Rust code. Run it with cargo clippy. Lints are grouped into categories, each with a default lint level. clippy::all is the on-by-default set (correctness, suspicious, style, complexity, perf). clippy::correctness is deny by default because those lints flag code that is outright wrong or useless.
Categories
The README lists the main categories and their default levels. clippy::suspicious is warn. You can allow, warn, or deny a group or a single lint from the command line or from crate attributes.
Claims
- id: C1 claim: Clippy is a collection of lints for common Rust mistakes. source: S1 evidence: "A collection of lints to catch common mistakes"
- id: C2 claim: Lints are divided into categories with default lint levels. source: S1 evidence: "Lints are divided into categories, each with a default"
- id: C3 claim: clippy::all is the on-by-default lint set. source: S1 evidence: "all lints that are on by default"
- id: C4 claim: The Clippy book documents the same cargo clippy tool. source: S2 evidence: "clippy"
Sources
- [S1] rust-clippy README. rust-lang/rust-clippy (GitHub). https://github.com/rust-lang/rust-clippy/blob/master/README.md . License: MIT OR Apache-2.0. Accessed 2026-11-18.
- [S2] Clippy documentation. The rust-clippy book. https://doc.rust-lang.org/clippy/ . License: MIT OR Apache-2.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: rust-lang/rust-clippy (GitHub), rust-clippy README, MIT OR Apache-2.0 (https://raw.githubusercontent.com/rust-lang/rust-clippy/master/LICENSE-MIT); The rust-clippy book, Clippy documentation, MIT OR Apache-2.0 (https://raw.githubusercontent.com/rust-lang/rust-clippy/master/LICENSE-MIT). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: rust-lang/rust-clippy (GitHub), rust-clippy README, MIT OR Apache-2.0 (https://raw.githubusercontent.com/rust-lang/rust-clippy/master/LICENSE-MIT); The rust-clippy book, Clippy documentation, MIT OR Apache-2.0 (https://raw.githubusercontent.com/rust-lang/rust-clippy/master/LICENSE-MIT).
Cite this
iinventedlight. 2026. "cargo clippy runs Clippy's lints, which are grouped into categories such as clippy::all." iinventedlight Library, iil:note:xs5nsvqa, version of 2026-11-18. https://iinventedlight.com/library/notes/cargo-clippy/. License: CC-BY-4.0.
@misc{iil_note_xs5nsvqa,
author = {{iinventedlight}},
title = {{cargo clippy runs Clippy's lints, which are grouped into categories such as clippy::all}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/cargo-clippy/},
note = {Permanent ID iil:note:xs5nsvqa. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/cargo-clippy.md.