Enforce Rust coding standards via Clippy (#927)

* chore(clippy): apply strict workspace lint settings

* docs: require workspace lint inheritance for new crates

* docs: clarify crate lint placement
This commit is contained in:
Dylan M. Taylor
2026-10-27 14:29:32 -04:00
committed by GitHub
parent 6d5e96ffe8
commit d39702deeb
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -1 +1,5 @@
Read [AGENTS.md](AGENTS.md) first: it is the guide for every agent and contributor working in this repository.
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.
+3
View File
@@ -13,6 +13,9 @@ repository = "https://github.com/storytold/craft-launcher"
unsafe_code = "forbid"
[workspace.lints.clippy]
cognitive_complexity = "deny"
too_many_arguments = "deny"
wildcard_imports = "deny"
dbg_macro = "warn"
todo = "warn"
+1
View File
@@ -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