---
title: "Rust clippy lints"
description: "Runs `cargo clippy` over Rust crates and workspaces. NOT safe on untrusted code: clippy compiles the crate, so it runs build.rs scripts, proc-macros and any .cargo/config.toml hooks of the target, which is why it is opt-in. Runs with --locked --offline (needs a committed Cargo.lock and already vendored or cached dependencies; nothing is downloaded) and a throwaway target dir. clippy::correctness findings are high, suspicious medium, perf and complexity low, style info; compile errors are reported with low confidence."
url: https://openaudit.se/auditors/code.clippy/
---

# Rust clippy lints

`code.clippy`

Runs `cargo clippy` over Rust crates and workspaces. NOT safe on untrusted code: clippy compiles the crate, so it runs build.rs scripts, proc-macros and any .cargo/config.toml hooks of the target, which is why it is opt-in. Runs with --locked --offline (needs a committed Cargo.lock and already vendored or cached dependencies; nothing is downloaded) and a throwaway target dir. clippy::correctness findings are high, suspicious medium, perf and complexity low, style info; compile errors are reported with low confidence.

- **Engine:** Wrapped scanner
- **Wraps:** `cargo`
- **Targets:** Codebase
- **Areas:** Reliability, Maintainability, Performance, Security
- **Runs:** Opt-in: only when selected with --only
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.clippy
```

Wraps cargo. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More reliability auditors

- [TypeScript type-check (tsc)](https://openaudit.se/auditors/code.typecheck/) (`code.typecheck`)
- [Ruff Python lints](https://openaudit.se/auditors/code.ruff/) (`code.ruff`)
- [staticcheck Go lints](https://openaudit.se/auditors/code.staticcheck/) (`code.staticcheck`)
- [ShellCheck](https://openaudit.se/auditors/code.shellcheck/) (`code.shellcheck`)
- [mypy type check](https://openaudit.se/auditors/code.mypy/) (`code.mypy`)
- [golangci-lint](https://openaudit.se/auditors/code.golangci-lint/) (`code.golangci-lint`)
- [PHPStan PHP static analysis](https://openaudit.se/auditors/code.phpstan/) (`code.phpstan`)
- [PMD Java analysis](https://openaudit.se/auditors/code.pmd/) (`code.pmd`)
