Skip to content

Commit cace37e

Browse files
authored
fix(clippy): inherit workspace lints in all crates (#556)
Add [lints] workspace = true to all workspace members to properly inherit the workspace-level Clippy lint configuration. For cortex-tui-core which has custom lints, add the workspace lint allows directly since Cargo doesn't support inheriting and overriding at the same time.
1 parent 08439a4 commit cace37e

File tree

28 files changed

+84
-0
lines changed

28 files changed

+84
-0
lines changed

cortex-tui-framework/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ description = "A high-performance terminal UI framework for Rust"
77
repository = "https://github.com/example/cortex-tui-framework"
88
authors = ["Cortex TUI Contributors"]
99

10+
[lints]
11+
workspace = true
12+
1013
[dependencies]
1114
cortex-tui-core = { path = "crates/cortex-tui-core" }
1215
cortex-tui-buffer = { path = "crates/cortex-tui-buffer" }

cortex-tui-framework/crates/cortex-tui-buffer/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Double-buffered terminal rendering for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
cortex-tui-core = { path = "../cortex-tui-core" }
1013
smallvec = { workspace = true }

cortex-tui-framework/crates/cortex-tui-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ cast_lossless = "allow"
1212
float_cmp = "allow"
1313
missing_errors_doc = "allow"
1414
uninlined_format_args = "allow"
15+
# Include workspace-level lint allows
16+
unnecessary_sort_by = "allow"
17+
iter_without_into_iter = "allow"
1518

1619
[dependencies]
1720
bitflags = { workspace = true }

cortex-tui-framework/crates/cortex-tui-input/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Input handling for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
crossterm = { workspace = true }
1013
bitflags = { workspace = true }

cortex-tui-framework/crates/cortex-tui-layout/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Flexbox layout engine for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
taffy = { workspace = true }
1013
slotmap = { workspace = true }

cortex-tui-framework/crates/cortex-tui-syntax/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Syntax highlighting for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
cortex-tui-text = { path = "../cortex-tui-text" }
1013
tree-sitter = { workspace = true }

cortex-tui-framework/crates/cortex-tui-terminal/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Terminal backend for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
cortex-tui-core = { path = "../cortex-tui-core" }
1013
cortex-tui-buffer = { path = "../cortex-tui-buffer" }

cortex-tui-framework/crates/cortex-tui-text/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Text rendering and Unicode handling for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
unicode-width = { workspace = true }
1013
unicode-segmentation = { workspace = true }

cortex-tui-framework/crates/cortex-tui-widgets/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ edition = "2021"
55
license = "MIT"
66
description = "Widget library for Cortex TUI"
77

8+
[lints]
9+
workspace = true
10+
811
[dependencies]
912
cortex-tui-core = { path = "../cortex-tui-core" }
1013
cortex-tui-buffer = { path = "../cortex-tui-buffer" }

src/cortex-agents/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.1.0"
44
edition = "2021"
55
description = "Multi-agent system for Cortex CLI"
66

7+
[lints]
8+
workspace = true
9+
710
[dependencies]
811
tokio = { workspace = true }
912
serde = { version = "1", features = ["derive"] }

0 commit comments

Comments
 (0)