mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-20 09:04:51 +00:00
Enforce workspace Clippy standards and document lint policy
This commit is contained in:
1 parent
db245a7029
commit
6ddd2fb869
4 files changed
+11
-1
No files matched your search
@@ -3,6 +3,10 @@
|
|||||||
Read [AGENTS.md](AGENTS.md) first: its rules (asset policy, clean room, never crash) bind you and
|
Read [AGENTS.md](AGENTS.md) first: its rules (asset policy, clean room, never crash) bind you and
|
||||||
win over anything here.
|
win over anything here.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
## Start every session
|
## Start every session
|
||||||
1. Read `plan/STATUS.md`, then the current milestone in `plan/execution-plan.md`.
|
1. Read `plan/STATUS.md`, then the current milestone in `plan/execution-plan.md`.
|
||||||
2. Read `../../craftrules/AGENTS.md` and the standards it lists for your task.
|
2. Read `../../craftrules/AGENTS.md` and the standards it lists for your task.
|
||||||
|
|||||||
+3
-1
@@ -80,9 +80,11 @@ arboard = { version = "3.6", default-features = false }
|
|||||||
unsafe_code = "forbid"
|
unsafe_code = "forbid"
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
|
cognitive_complexity = "deny"
|
||||||
|
too_many_arguments = "deny"
|
||||||
|
wildcard_imports = "deny"
|
||||||
dbg_macro = "warn"
|
dbg_macro = "warn"
|
||||||
todo = "warn"
|
todo = "warn"
|
||||||
too_many_arguments = "allow"
|
|
||||||
type_complexity = "allow"
|
type_complexity = "allow"
|
||||||
self_named_constructors = "allow"
|
self_named_constructors = "allow"
|
||||||
large_enum_variant = "allow"
|
large_enum_variant = "allow"
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ allow-indexing-slicing-in-tests = true
|
|||||||
disallowed-types = [
|
disallowed-types = [
|
||||||
{ path = "egui::ComboBox", reason = "use craft_ui::ComboBox: egui's combo box menu can't grow back while open (egui#5225)" },
|
{ 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
|
||||||
@@ -5,5 +5,8 @@ edition.workspace = true
|
|||||||
license.workspace = true
|
license.workspace = true
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
Reference in new issue
Block a user