From 2b7bd0c315d320eb3ea0c571c1fb8e70bd48f2ea Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 26 Oct 2026 20:09:41 -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 e23c106e6..15abe3f59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,9 +67,11 @@ craft-window = { version = "0.1.0", git = "https://github.com/storytold/craft-li 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" type_complexity = "allow" [profile.dev.package."*"] diff --git a/clippy.toml b/clippy.toml index 8b8bc5a3a..ffee7936a 100644 --- a/clippy.toml +++ b/clippy.toml @@ -10,3 +10,4 @@ disallowed-methods = [ { path = "std::time::Instant::now", reason = "traps on wasm; read the clock only off wasm" }, { path = "std::time::SystemTime::now", reason = "traps on wasm; read the clock only off wasm" }, ] +cognitive-complexity-threshold = 30