From 06390342a6b60341910c666c4c6d47161e664f97 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Tue, 18 Nov 2025 09:24:53 +0100 Subject: [PATCH] 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 On-behalf-of: SAP philipp.schuster@sap.com --- Cargo.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fa15483fe..94329850d 100644 --- a/Cargo.toml +++ b/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"