FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Enforce workspace Clippy standards and document lint policy
Dylan M. Taylor6a5dacb0e99a
diff --git a/CLAUDE.md b/CLAUDE.mdindex d28a9b06b..270d1cf8d 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -20,6 +20,7 @@ FilmCraft is a clean-room, open-source, pure-Rust non-linear video editor target- **Everything is a command** (`crates/engine`): id, label, menu path, shortcut, params, enabled(), run(). UI, CLI, control channel and MCP all dispatch by id.- **Everything is agent-drivable:** every interactive widget registers an automation id; UI state is serde so the control channel can read/set it.- **Quality gates** before every commit: `cargo fmt --check`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace`, `cargo xtask layers`, `cargo xtask assets`, `cargo xtask wasm` (checks L0–L4 crates). `cargo xtask ci` runs them all.+- **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 (`M2.4: CABAC residual decoding`). Only green states. End messages with the attribution line required by the environment.## Running and looking at the appdiff --git a/Cargo.toml b/Cargo.tomlindex e57cd803b..65aff9cab 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -91,9 +91,11 @@ rfd = "0.17"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 6244ea8cd..2a016f248 100644--- a/clippy.toml+++ b/clippy.toml@@ -6,3 +6,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 78230cad7..acef8f68f 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 }filmcraft-testkit = { workspace = true }