rust-clippy/book/src
2022-06-06 16:15:53 +02:00
..
continuous_integration Book: add a ci chapter 2022-06-06 16:15:52 +02:00
development Move internal documentation to book 2022-06-06 16:15:53 +02:00
infrastructure Move syncing doc to book 2022-06-06 16:15:53 +02:00
lints Initial commit for the Clippy Book 2022-06-06 16:15:52 +02:00
roadmap Initial commit for the Clippy Book 2022-06-06 16:15:52 +02:00
configuration.md Initial commit for the Clippy Book 2022-06-06 16:15:52 +02:00
installation_and_usage.md Book: add a ci chapter 2022-06-06 16:15:52 +02:00
README.md Initial commit for the Clippy Book 2022-06-06 16:15:52 +02:00
SUMMARY.md Move syncing doc to book 2022-06-06 16:15:53 +02:00

Clippy

Clippy Test License: MIT OR Apache-2.0

A collection of lints to catch common mistakes and improve your Rust code.

There are over 500 lints included in this crate!

Lints are divided into categories, each with a default lint level. You can choose how much Clippy is supposed to annoy help you by changing the lint level by category.

Category Description Default level
clippy::all all lints that are on by default (correctness, suspicious, style, complexity, perf) warn/deny
clippy::correctness code that is outright wrong or useless deny
clippy::suspicious code that is most likely wrong or useless warn
clippy::complexity code that does something simple but in a complex way warn
clippy::perf code that can be written to run faster warn
clippy::style code that should be written in a more idiomatic way warn
clippy::pedantic lints which are rather strict or might have false positives allow
clippy::nursery new lints that are still under development allow
clippy::cargo lints for the cargo manifest allow

More to come, please file an issue if you have ideas!

The lint list also contains "restriction lints", which are for things which are usually not considered "bad", but may be useful to turn on in specific cases. These should be used very selectively, if at all.