@@ -7,28 +7,22 @@ A collection of lints to catch common mistakes and improve your [Rust](https://g
7
7
8
8
[ There are over 400 lints included in this crate!] ( https://rust-lang.github.io/rust-clippy/master/index.html )
9
9
10
- We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~ annoy~~ help you:
11
-
12
- * ` clippy::all ` (everything that is on by default: all the categories below except for ` nursery ` , ` pedantic ` , and ` cargo ` )
13
- * ` clippy::correctness ` (code that is just ** outright wrong** or ** very very useless** , causes hard errors by default)
14
- * ` clippy::style ` (code that should be written in a more idiomatic way)
15
- * ` clippy::complexity ` (code that does something simple but in a complex way)
16
- * ` clippy::perf ` (code that can be written in a faster way)
17
- * ` clippy::pedantic ` (lints which are rather strict, off by default)
18
- * ` clippy::nursery ` (new lints that aren't quite ready yet, off by default)
19
- * ` clippy::cargo ` (checks against the cargo manifest, off by default)
10
+ Lints are divided into categories, each with a default [ lint level] ( https://doc.rust-lang.org/rustc/lints/levels.html ) .
11
+ You can choose how much Clippy is supposed to ~~ annoy~~ help you by changing the lint level by category.
12
+
13
+ Category | Description | Default level
14
+ -- | -- | --
15
+ ` clippy::all ` | all lints that are on by default (correctness, style, complexity, perf) | ** warn/deny**
16
+ ` clippy::correctness ` | code that is outright wrong or very useless | ** deny**
17
+ ` clippy::style ` | code that should be written in a more idiomatic way | ** warn**
18
+ ` clippy::complexity ` | code that does something simple but in a complex way | ** warn**
19
+ ` clippy::perf ` | code that can be written to run faster | ** warn**
20
+ ` clippy::pedantic ` | lints which are rather strict or might have false positives | allow
21
+ ` clippy::nursery ` | new lints that are still under development | allow
22
+ ` clippy::cargo ` | lints for the cargo manifest | allow
20
23
21
24
More to come, please [ file an issue] ( https://github.com/rust-lang/rust-clippy/issues ) if you have ideas!
22
25
23
- Only the following of those categories are enabled by default:
24
-
25
- * ` clippy::style `
26
- * ` clippy::correctness `
27
- * ` clippy::complexity `
28
- * ` clippy::perf `
29
-
30
- Other categories need to be enabled in order for their lints to be executed.
31
-
32
26
The [ lint list] ( https://rust-lang.github.io/rust-clippy/master/index.html ) also contains "restriction lints", which are
33
27
for things which are usually not considered "bad", but may be useful to turn on in specific cases. These should be used
34
28
very selectively, if at all.
0 commit comments