# Clippy

[**Clippy**](https://doc.rust-lang.org/clippy/) is a linter for Rust.

You can enable the Clippy linter with:

```shell
trunk check enable clippy
```

## Auto Enabling

Clippy will be auto-enabled if any *Rust* files are present.

## Settings

Clippy supports the following config files:

* `clippy.toml`
* `.clippy.toml`

You can move these files to `.trunk/configs` and `trunk check` will still find them. See [Moving Linters](https://docs.trunk.io/code-quality/overview/configure-linters#moving-linters) for more info.

## Usage Notes

Clippy is distributed with rust itself, so specify your rust version for your clippy version (for example `clippy@1.61.0`).

## Links

* [Clippy site](https://doc.rust-lang.org/clippy/)
* Clippy Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/clippy)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
