rust/book/src
Philipp Krones 0266a9e9a3
Fix links in Clippy book
Links to README.md files must actually be links to index.md files,
because of the inner workings of `mdbook`.

Also use the latest mdbook version in CI.
2023-04-11 14:43:47 +02:00
..
continuous_integration Merge commit '3c7e7dbc15' into clippyup 2022-07-28 19:08:22 +02:00
development Fix links in Clippy book 2023-04-11 14:43:47 +02:00
configuration.md Auto merge of #10229 - danielparks:doc-feature-cargo-clippy, r=flip1995 2023-04-03 12:12:17 +00:00
installation.md Gramar, and spelin kleanup 2023-03-30 15:31:14 -04:00
lint_configuration.md Gramar, and spelin kleanup 2023-03-30 15:31:14 -04:00
lints.md Gramar, and spelin kleanup 2023-03-30 15:31:14 -04:00
README.md Gramar, and spelin kleanup 2023-03-30 15:31:14 -04:00
SUMMARY.md New chapter: "Type Checking" 2023-04-07 13:11:18 +02:00
usage.md Fix links in Clippy book 2023-04-11 14:43:47 +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 600 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.