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:
Philipp Schuster 2025-11-18 09:24:53 +01:00 committed by Rob Bradford
parent 11d17fbf79
commit 06390342a6

View file

@ -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"