From 44b2b264466c112c148142e6b3233d3c6f1b1b76 Mon Sep 17 00:00:00 2001 From: Emanuel Czirai Date: Mon, 9 Nov 2015 06:49:44 +0100 Subject: [PATCH] update readme to specify both lint groups are needed for the whole set As a new user and newbie to rust, after reading this part of the readme("whole set"), I thought I was seeing a bug when I used `#![deny(clippy)]` but also had to add `#![deny(shadow_unrelated)]`. But this explained it: https://github.com/Manishearth/rust-clippy/blob/3322ffa8a048ef5369d3cdd914869fdf383473a4/src/lib.rs#L108 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a2ea945349..6a9a213af48 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ if let Some(y) = x { println!("{:?}", y) } ``` You can add options to `allow`/`warn`/`deny`: -- the whole set using the `clippy` lint group (`#![deny(clippy)]`, etc) +- the whole set using the `clippy` and `clippy_pedantic` lint groups (`#![deny(clippy)]`, `#![deny(clippy_pedantic)]`, etc) - only some lints (`#![deny(single_match, box_vec)]`, etc) - `allow`/`warn`/`deny` can be limited to a single function or module using `#[allow(...)]`, etc