GS/BS
← Standards directory
Code quality

Clippy.

Catch unidiomatic Rust and common bugs

Evaluate compiler-aware lints across supported targets. Set the lint policy in the crate or workspace and explain local allowances beside the affected code.

Rust

Community rubric · v1

The evidence

Evidence coverage6 / 8
6 supported · 2 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    Clippy divides lints into groups and documents which findings imply incorrect code, which flag suspicious constructs and which depend on project preferences.

    Cited source ↗
  • Measurement

    Verified

    Running cargo clippy with warnings denied turns emitted lint warnings into compilation failures using the project's Rust toolchain.

    Cited source ↗
  • Conformance

    Verified

    Clippy's UI fixture for eq_op includes annotated expressions that should trigger a diagnostic and counterexamples that should compile without it. This tests one lint.

    Cited source ↗
  • CI enforcement

    Verified

    The Clippy book recommends a CI invocation with -Dwarnings to prevent a job from passing while lint warnings remain.

    Cited source ↗
  • Getting started

    Verified

    The Cargo usage guide points to installation, runs cargo clippy on a crate with the default lint group, and demonstrates promoting warnings to errors.

    Cited source ↗
  • Real-world adoption

    Verified

    Seikika's own CI runs Clippy with warnings denied across build targets. This is evidence of one Rust workspace applying the policy.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

cargo clippy --all-targets -- -D warnings

Agent prompt

Use Clippy in this repository to meet this standard: Catch unidiomatic Rust and common bugs. Evaluate compiler-aware lints across supported targets. Set the lint policy in the crate or workspace and explain local allowances beside the affected code. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

Clippy documentation ↗