---
name: clippy
description: "Use when adopting Clippy to assess this standard: Catch unidiomatic Rust and common bugs"
---

# Apply Clippy

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

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Clippy.
2. 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.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://doc.rust-lang.org/clippy/) for configuration and prerequisites.

## Tool invocation

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