X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=README.md;h=2a30f5e8e530da555be5e391d62fff7d3665b96b;hb=ceea3c6a35bfada9536bac674fc6308831f1938c;hp=628133a8a6684bf295a6fbf957aeffb27d69ba7c;hpb=06f0ab03ef63869eb159cf7d57d5d5e826ff10ca;p=rust.git diff --git a/README.md b/README.md index 628133a8a66..2a30f5e8e53 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code. -[There are 355 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html) +[There are over 350 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: @@ -175,6 +175,8 @@ If you do not want to include your lint levels in your code, you can globally en flags to Clippy during the run: `cargo clippy -- -A clippy::lint_name` will run Clippy with `lint_name` disabled and `cargo clippy -- -W clippy::lint_name` will run it with that enabled. This also works with lint groups. For example you can run Clippy with warnings for all lints enabled: `cargo clippy -- -W clippy::pedantic` +If you care only about a single lint, you can allow all others and then explicitly reenable +the lint(s) you are interested in: `cargo clippy -- -Aclippy::all -Wclippy::useless_format -Wclippy::...` ## Contributing @@ -182,7 +184,7 @@ If you want to contribute to Clippy, you can find more information in [CONTRIBUT ## License -Copyright 2014-2019 The Rust Project Developers +Copyright 2014-2020 The Rust Project Developers Licensed under the Apache License, Version 2.0 or the MIT license