diff --git a/Cargo.toml b/Cargo.toml index 5c411d256..3c1518125 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,6 +116,9 @@ webbrowser = "1" unsafe_code = "deny" [workspace.lints.clippy] +cognitive_complexity = "deny" +too_many_arguments = "deny" +wildcard_imports = "deny" dbg_macro = "warn" # VectorCraft never crashes: shipped code returns `Result`/`Option` instead of panicking (see # AGENTS.md › Robustness). Tests may unwrap (clippy.toml). diff --git a/clippy.toml b/clippy.toml index 0369326bc..c19914422 100644 --- a/clippy.toml +++ b/clippy.toml @@ -3,3 +3,4 @@ allow-unwrap-in-tests = true allow-expect-in-tests = true allow-panic-in-tests = true +cognitive-complexity-threshold = 30