Skip to content

Commit

Permalink
update readme to specify both lint groups are needed for the whole set
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Emanuel Czirai committed Nov 9, 2015
1 parent 140c34f commit 44b2b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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

Expand Down

0 comments on commit 44b2b26

Please sign in to comment.