mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-03 00:58:30 +00:00
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:
1 parent
6d5e96ffe8
commit
d39702deeb
3 files changed
+8
No files matched your search
@@ -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.
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user