← All notes

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

Sources

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

Permanent ID: iil:note:xs5nsvqa

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.},
}

Markdown

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.