From b9a170a148f2af1ca881571517b317bb5920e0f2 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 26 Oct 2026 20:09:25 -0400 Subject: [PATCH] chore(clippy): enforce coding standards via workspace lints --- Cargo.toml | 4 +++- clippy.toml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fe6d2ddcc..e591fb29e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -135,9 +135,11 @@ sys-locale = "0.3" unsafe_code = "forbid" [workspace.lints.clippy] +cognitive_complexity = "deny" +too_many_arguments = "deny" +wildcard_imports = "deny" dbg_macro = "warn" todo = "warn" -too_many_arguments = "allow" needless_range_loop = "allow" type_complexity = "allow" diff --git a/clippy.toml b/clippy.toml index 4b6c79f55..ea4e52e55 100644 --- a/clippy.toml +++ b/clippy.toml @@ -2,3 +2,4 @@ allow-unwrap-in-tests = true allow-expect-in-tests = true allow-panic-in-tests = true allow-indexing-slicing-in-tests = true +cognitive-complexity-threshold = 30