misc: clippy: add default clippy lint groups
This is the first commit in a series of commits to improve the Code Quality in Cloud Hypervisor in a sustainable way. These are the default rules from `clippy::all` but written here to be more explicit. `clippy::all` refers to all "default sensible" lints, not all existing lints. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
parent
11d17fbf79
commit
06390342a6
1 changed files with 11 additions and 1 deletions
12
Cargo.toml
12
Cargo.toml
|
|
@ -158,8 +158,18 @@ wait-timeout = "0.2.1"
|
|||
zerocopy = { version = "0.8.27", default-features = false }
|
||||
|
||||
[workspace.lints.clippy]
|
||||
# Any clippy lint in alphabetical order, including lint groups:
|
||||
# Any clippy lint (group) in alphabetical order:
|
||||
# https://rust-lang.github.io/rust-clippy/master/index.html
|
||||
|
||||
# Groups
|
||||
all = "deny" # shorthand for the other groups but here for compleness
|
||||
complexity = "deny"
|
||||
correctness = "deny"
|
||||
perf = "deny"
|
||||
style = "deny"
|
||||
suspicious = "deny"
|
||||
|
||||
# Individual Lints
|
||||
assertions_on_result_states = "deny"
|
||||
undocumented_unsafe_blocks = "deny"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue