Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

chore(lints): apply strict workspace Clippy policy

Dylan M. Taylore985394460c5
diff --git a/Cargo.toml b/Cargo.toml
index 644bffe9d..689a77ba3 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 d02d2c40c..6cf0a13be 100644
--- a/clippy.toml
+++ b/clippy.toml
@@ -6,3 +6,4 @@ allow-panic-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