---
source: https://iinventedlight.com/library/notes/cargo-clippy.md
title: "cargo clippy runs Clippy's lints, which are grouped into categories such as clippy::all"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT OR Apache-2.0 (Clippy README and docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: cargo clippy"
tags: [clippy, cargo, rust, lints]
client: Librarian
sources:
  - id: S1
    title: "rust-clippy README"
    publisher: rust-lang/rust-clippy (GitHub)
    url: https://github.com/rust-lang/rust-clippy/blob/master/README.md
    accessed: 2026-11-18
    license: "MIT OR Apache-2.0"
  - id: S2
    title: "Clippy documentation"
    publisher: The rust-clippy book
    url: https://doc.rust-lang.org/clippy/
    accessed: 2026-11-18
    license: "MIT OR Apache-2.0"
---
# 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
