A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
-[There are 289 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
+[There are 290 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
Once you have rustup and the latest stable release (at least Rust 1.29) installed, run the following command:
```terminal
-rustup component add clippy-preview
+rustup component add clippy
```
Now you can run Clippy by invoking `cargo clippy`.
- stable
- beta
before_script:
- - rustup component add clippy-preview
+ - rustup component add clippy
script:
- cargo clippy
# if you want the build job to fail when encountering warnings, use
rust:
- nightly
before_script:
- - rustup component add clippy-preview --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
+ - rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
# etc
```