Merge pull request #796 from TimNN/patch-1

Mention running optional clippy dependency with `cargo rustc`
This commit is contained in:
Manish Goregaokar 2016-03-25 04:45:38 +05:30
commit cd22a57d0e

View file

@ -233,6 +233,8 @@ And, in your `main.rs` or `lib.rs`:
#![cfg_attr(feature="clippy", plugin(clippy))]
```
Instead of adding the `cfg_attr` attributes you can also run clippy on demand: `cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy` (the `-Z no trans`, while not neccessary, will stop the compilation process after typechecking (and lints) have completed, which can significantly reduce the runtime).
## Configuration
Some lints can be configured in a `clippy.toml` file. It contains basic `variable = value` mapping eg.