A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
-[There are over 400 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
+[There are over 450 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
Lints are divided into categories, each with a default [lint level](https://doc.rust-lang.org/rustc/lints/levels.html).
You can choose how much Clippy is supposed to ~~annoy~~ help you by changing the lint level by category.
cargo clippy -p example -- --no-deps
```
-### Running Clippy from the command line without installing it
+### As a rustc replacement (`clippy-driver`)
-To have cargo compile your crate with Clippy without Clippy installation
-in your code, you can use:
+Clippy can also be used in projects that do not use cargo. To do so, you will need to replace
+your `rustc` compilation commands with `clippy-driver`. For example, if your project runs:
```terminal
-cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml
+rustc --edition 2018 -Cpanic=abort foo.rs
```
-*Note:* Be sure that Clippy was compiled with the same version of rustc that cargo invokes here!
+Then, to enable Clippy, you will need to call:
+
+```terminal
+clippy-driver --edition 2018 -Cpanic=abort foo.rs
+```
+
+Note that `rustc` will still run, i.e. it will still emit the output files it normally does.
### Travis CI