diff --git a/Cargo.toml b/Cargo.toml index 9237b585..9454472f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,9 +65,11 @@ image = { version = "0.25", default-features = false, features = ["png"] } unsafe_code = "forbid" [workspace.lints.clippy] +cognitive_complexity = "deny" +wildcard_imports = "deny" dbg_macro = "warn" todo = "warn" -too_many_arguments = "allow" +too_many_arguments = "deny" type_complexity = "allow" [profile.dev.package."*"] diff --git a/clippy.toml b/clippy.toml index 4b6c79f5..ea4e52e5 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 diff --git a/crates/au-host/Cargo.toml b/crates/au-host/Cargo.toml index af793163..122c4919 100644 --- a/crates/au-host/Cargo.toml +++ b/crates/au-host/Cargo.toml @@ -20,7 +20,9 @@ log.workspace = true unsafe_code = "deny" [lints.clippy] +cognitive_complexity = "deny" +wildcard_imports = "deny" dbg_macro = "warn" todo = "warn" -too_many_arguments = "allow" +too_many_arguments = "deny" type_complexity = "allow" diff --git a/crates/clap-host/Cargo.toml b/crates/clap-host/Cargo.toml index 96c7de7c..27eaf561 100644 --- a/crates/clap-host/Cargo.toml +++ b/crates/clap-host/Cargo.toml @@ -32,7 +32,9 @@ libloading = "0.9" unsafe_code = "deny" [lints.clippy] +cognitive_complexity = "deny" +wildcard_imports = "deny" dbg_macro = "warn" todo = "warn" -too_many_arguments = "allow" +too_many_arguments = "deny" type_complexity = "allow" diff --git a/crates/vst3-host/Cargo.toml b/crates/vst3-host/Cargo.toml index 00ace628..7a956118 100644 --- a/crates/vst3-host/Cargo.toml +++ b/crates/vst3-host/Cargo.toml @@ -54,7 +54,9 @@ harness = false unsafe_code = "deny" [lints.clippy] +cognitive_complexity = "deny" +wildcard_imports = "deny" dbg_macro = "warn" todo = "warn" -too_many_arguments = "allow" +too_many_arguments = "deny" type_complexity = "allow"