]> git.lizzy.rs Git - rust.git/commitdiff
update readme to specify both lint groups are needed for the whole set
authorEmanuel Czirai <zazdxscf@gmail.com>
Mon, 9 Nov 2015 05:49:44 +0000 (06:49 +0100)
committerEmanuel Czirai <zazdxscf@gmail.com>
Mon, 9 Nov 2015 05:49:44 +0000 (06:49 +0100)
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

index 5a2ea945349326bd08a02835ad0f24c44bbb624b..6a9a213af48250052a5f533c712190acd698698c 100644 (file)
--- 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