EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Enforce workspace Clippy standards and document lint policy
Dylan M. Taylor51a22210deef
diff --git a/CLAUDE.md b/CLAUDE.mdindex e52386942..21f2df36b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -22,6 +22,7 @@ EffectCraft is a clean-room, open-source, pure-Rust motion graphics and visual e- **Everything is agent-drivable:** every interactive widget registers an automation id; UI state is serde.- **Community links** (Help menu, About, header Discord button): https://discord.gg/artcraft, https://getartcraft.com, https://getartcraft.com/apps/effectcraft, https://github.com/storytold/effectcraft.- **Quality gates** before every commit: `cargo xtask ci` (fmt, clippy -D warnings, tests, layers, assets, wasm).+- **New workspace crates** must include `[lints] workspace = true` in `Cargo.toml` to inherit `[workspace.lints]`. Production crate roots must declare the required crate-level lint attributes before modules or other crate items; crate-level `//!` documentation may precede them.- **Commits:** one task id per commit (`M6.3: trim paths`). Only green states.## Running and looking at the appdiff --git a/Cargo.toml b/Cargo.tomlindex 79ec24655..8c82c7281 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -135,9 +135,11 @@ sys-locale = "0.3"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"needless_range_loop = "allow"type_complexity = "allow"diff --git a/clippy.toml b/clippy.tomlindex 287e14edc..3522a15b6 100644--- a/clippy.toml+++ b/clippy.toml@@ -5,3 +5,4 @@ allow-indexing-slicing-in-tests = truedisallowed-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 = 30diff --git a/xtask/Cargo.toml b/xtask/Cargo.tomlindex b9c781bce..afc767de2 100644--- a/xtask/Cargo.toml+++ b/xtask/Cargo.toml@@ -5,6 +5,9 @@ edition.workspace = truelicense.workspace = truepublish = false+[lints]+workspace = true+[dependencies]serde_json = { workspace = true }