X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=README.md;h=2a30f5e8e530da555be5e391d62fff7d3665b96b;hb=ceea3c6a35bfada9536bac674fc6308831f1938c;hp=f2ffea7d23cf63f9c3bc53bc8e427ddd9164c6f1;hpb=219c94d02848c87db16c99ac2c6b30728713f58e;p=rust.git diff --git a/README.md b/README.md index f2ffea7d23c..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 356 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