Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

chore(clippy): enforce workspace lint rules

Dylan M. Taylor96c3190300a4
diff --git a/Cargo.toml b/Cargo.toml
index 42d4e5209..cd85d80f3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -122,9 +122,11 @@ web-sys = "0.3"
unsafe_code = "deny"
[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"
excessive_precision = "allow"
diff --git a/clippy.toml b/clippy.toml
index 287e14edc..3522a15b6 100644
--- a/clippy.toml
+++ b/clippy.toml
@@ -5,3 +5,4 @@ allow-indexing-slicing-in-tests = true
disallowed-types = [
{ path = "egui::ComboBox", reason = "use craft_ui::ComboBox: egui's combo box menu can't grow back while open (egui#5225)" },
]
+cognitive-complexity-threshold = 30