# 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.

Category: Code quality
Languages: Rust

## Standard evidence

Rubric v1 · 6/8 verified · 2 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — Clippy divides lints into groups and documents which findings imply incorrect code, which flag suspicious constructs and which depend on project preferences. Reviewed 2026-11-28. [Source](https://doc.rust-lang.org/clippy/lints.html)
- **Measurement** (verified) — Running cargo clippy with warnings denied turns emitted lint warnings into compilation failures using the project's Rust toolchain. Reviewed 2026-11-28. [Source](https://doc.rust-lang.org/clippy/continuous_integration/index.html)
- **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. Reviewed 2026-11-28. [Source](https://github.com/rust-lang/rust-clippy/blob/master/tests/ui/eq_op.rs)
- **CI enforcement** (verified) — The Clippy book recommends a CI invocation with -Dwarnings to prevent a job from passing while lint warnings remain. Reviewed 2026-11-28. [Source](https://doc.rust-lang.org/clippy/continuous_integration/index.html)
- **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. Reviewed 2026-11-28. [Source](https://doc.rust-lang.org/clippy/usage.html)
- **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. Reviewed 2026-11-28. [Source](https://github.com/seikika/seikika/blob/89eb0a2fcd2ffe67151df43f2a062ebc8a1e497c/.github/workflows/ci.yml)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

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.

### Tool command

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

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://doc.rust-lang.org/clippy/)
- [Agent skill](/skills/clippy/SKILL.md)
