diff --git a/cortex-tui-framework/Cargo.toml b/cortex-tui-framework/Cargo.toml index 294184b1..5d8ec37b 100644 --- a/cortex-tui-framework/Cargo.toml +++ b/cortex-tui-framework/Cargo.toml @@ -7,6 +7,9 @@ description = "A high-performance terminal UI framework for Rust" repository = "https://github.com/example/cortex-tui-framework" authors = ["Cortex TUI Contributors"] +[lints] +workspace = true + [dependencies] cortex-tui-core = { path = "crates/cortex-tui-core" } cortex-tui-buffer = { path = "crates/cortex-tui-buffer" } diff --git a/cortex-tui-framework/crates/cortex-tui-buffer/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-buffer/Cargo.toml index d2cda942..7928ee2c 100644 --- a/cortex-tui-framework/crates/cortex-tui-buffer/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-buffer/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Double-buffered terminal rendering for Cortex TUI" +[lints] +workspace = true + [dependencies] cortex-tui-core = { path = "../cortex-tui-core" } smallvec = { workspace = true } diff --git a/cortex-tui-framework/crates/cortex-tui-core/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-core/Cargo.toml index f9c8fffa..82fae0df 100644 --- a/cortex-tui-framework/crates/cortex-tui-core/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-core/Cargo.toml @@ -12,6 +12,9 @@ cast_lossless = "allow" float_cmp = "allow" missing_errors_doc = "allow" uninlined_format_args = "allow" +# Include workspace-level lint allows +unnecessary_sort_by = "allow" +iter_without_into_iter = "allow" [dependencies] bitflags = { workspace = true } diff --git a/cortex-tui-framework/crates/cortex-tui-input/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-input/Cargo.toml index 05c82903..a38e9998 100644 --- a/cortex-tui-framework/crates/cortex-tui-input/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-input/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Input handling for Cortex TUI" +[lints] +workspace = true + [dependencies] crossterm = { workspace = true } bitflags = { workspace = true } diff --git a/cortex-tui-framework/crates/cortex-tui-layout/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-layout/Cargo.toml index 3bf55b11..0c2696ad 100644 --- a/cortex-tui-framework/crates/cortex-tui-layout/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-layout/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Flexbox layout engine for Cortex TUI" +[lints] +workspace = true + [dependencies] taffy = { workspace = true } slotmap = { workspace = true } diff --git a/cortex-tui-framework/crates/cortex-tui-syntax/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-syntax/Cargo.toml index fc59ecaf..3f820a25 100644 --- a/cortex-tui-framework/crates/cortex-tui-syntax/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-syntax/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Syntax highlighting for Cortex TUI" +[lints] +workspace = true + [dependencies] cortex-tui-text = { path = "../cortex-tui-text" } tree-sitter = { workspace = true } diff --git a/cortex-tui-framework/crates/cortex-tui-terminal/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-terminal/Cargo.toml index 4572a881..a5eb4f2b 100644 --- a/cortex-tui-framework/crates/cortex-tui-terminal/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-terminal/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Terminal backend for Cortex TUI" +[lints] +workspace = true + [dependencies] cortex-tui-core = { path = "../cortex-tui-core" } cortex-tui-buffer = { path = "../cortex-tui-buffer" } diff --git a/cortex-tui-framework/crates/cortex-tui-text/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-text/Cargo.toml index b93ccdff..b2cbcc4b 100644 --- a/cortex-tui-framework/crates/cortex-tui-text/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-text/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Text rendering and Unicode handling for Cortex TUI" +[lints] +workspace = true + [dependencies] unicode-width = { workspace = true } unicode-segmentation = { workspace = true } diff --git a/cortex-tui-framework/crates/cortex-tui-widgets/Cargo.toml b/cortex-tui-framework/crates/cortex-tui-widgets/Cargo.toml index 926e3478..acb41bf9 100644 --- a/cortex-tui-framework/crates/cortex-tui-widgets/Cargo.toml +++ b/cortex-tui-framework/crates/cortex-tui-widgets/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" license = "MIT" description = "Widget library for Cortex TUI" +[lints] +workspace = true + [dependencies] cortex-tui-core = { path = "../cortex-tui-core" } cortex-tui-buffer = { path = "../cortex-tui-buffer" } diff --git a/src/cortex-agents/Cargo.toml b/src/cortex-agents/Cargo.toml index 48c9e3db..696c347b 100644 --- a/src/cortex-agents/Cargo.toml +++ b/src/cortex-agents/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Multi-agent system for Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-batch/Cargo.toml b/src/cortex-batch/Cargo.toml index 04ef5792..4bc20bd5 100644 --- a/src/cortex-batch/Cargo.toml +++ b/src/cortex-batch/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Batch operations and MultiEdit tools for Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true, features = ["fs", "time", "sync"] } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-compact/Cargo.toml b/src/cortex-compact/Cargo.toml index c10899b2..b58886a9 100644 --- a/src/cortex-compact/Cargo.toml +++ b/src/cortex-compact/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Auto-compaction for Cortex CLI conversations" +[lints] +workspace = true + [dependencies] serde = { version = "1", features = ["derive"] } tracing = "0.1" diff --git a/src/cortex-experimental/Cargo.toml b/src/cortex-experimental/Cargo.toml index a6a5d808..bd969a36 100644 --- a/src/cortex-experimental/Cargo.toml +++ b/src/cortex-experimental/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Experimental features management for Cortex CLI" +[lints] +workspace = true + [dependencies] serde = { version = "1", features = ["derive"] } tokio = { version = "1", features = ["fs"] } diff --git a/src/cortex-ghost/Cargo.toml b/src/cortex-ghost/Cargo.toml index a86e7c08..49b84d15 100644 --- a/src/cortex-ghost/Cargo.toml +++ b/src/cortex-ghost/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Ghost commits for automatic undo in Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true, features = ["process"] } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-gui/cli/Cargo.toml b/src/cortex-gui/cli/Cargo.toml index 696dfae7..c08eb93e 100755 --- a/src/cortex-gui/cli/Cargo.toml +++ b/src/cortex-gui/cli/Cargo.toml @@ -11,6 +11,9 @@ edition = "2021" name = "cortex" path = "src/main.rs" +[lints] +workspace = true + [dependencies] # CLI argument parsing clap = { version = "4", features = ["derive", "wrap_help", "string"] } diff --git a/src/cortex-hooks/Cargo.toml b/src/cortex-hooks/Cargo.toml index d86b88be..b28b6512 100644 --- a/src/cortex-hooks/Cargo.toml +++ b/src/cortex-hooks/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Hook system for Cortex CLI (formatters, post-edit actions)" +[lints] +workspace = true + [dependencies] tokio = { workspace = true, features = ["process", "sync"] } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-linux-sandbox/Cargo.toml b/src/cortex-linux-sandbox/Cargo.toml index 7edf655c..1588ba52 100644 --- a/src/cortex-linux-sandbox/Cargo.toml +++ b/src/cortex-linux-sandbox/Cargo.toml @@ -13,6 +13,9 @@ path = "src/main.rs" name = "cortex_linux_sandbox" path = "src/lib.rs" +[lints] +workspace = true + [dependencies] # CLI parsing clap = { version = "4", features = ["derive"] } diff --git a/src/cortex-lsp/Cargo.toml b/src/cortex-lsp/Cargo.toml index 6d7c20aa..8a126b9a 100644 --- a/src/cortex-lsp/Cargo.toml +++ b/src/cortex-lsp/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "LSP (Language Server Protocol) support for Cortex CLI" +[lints] +workspace = true + [dependencies] # Internal diff --git a/src/cortex-migrations/Cargo.toml b/src/cortex-migrations/Cargo.toml index 2575af41..4ea544ac 100644 --- a/src/cortex-migrations/Cargo.toml +++ b/src/cortex-migrations/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Model migration warnings and deprecation notices for Cortex CLI" +[lints] +workspace = true + [dependencies] serde = { version = "1", features = ["derive"] } chrono = { version = "0.4", features = ["serde"] } diff --git a/src/cortex-plugins/Cargo.toml b/src/cortex-plugins/Cargo.toml index f16f6564..0bffcf24 100644 --- a/src/cortex-plugins/Cargo.toml +++ b/src/cortex-plugins/Cargo.toml @@ -8,6 +8,9 @@ license.workspace = true repository.workspace = true description = "Complete WASM-based plugin system for Cortex CLI" +[lints] +workspace = true + [dependencies] # Async runtime tokio = { workspace = true } diff --git a/src/cortex-ratelimits/Cargo.toml b/src/cortex-ratelimits/Cargo.toml index 476ec2f1..a9babbc1 100644 --- a/src/cortex-ratelimits/Cargo.toml +++ b/src/cortex-ratelimits/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Rate limits display for Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-resume/Cargo.toml b/src/cortex-resume/Cargo.toml index f4927694..d44d4e07 100644 --- a/src/cortex-resume/Cargo.toml +++ b/src/cortex-resume/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Session resume functionality for Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true, features = ["fs", "time", "sync"] } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-review/Cargo.toml b/src/cortex-review/Cargo.toml index ee46cc91..15d19e9b 100644 --- a/src/cortex-review/Cargo.toml +++ b/src/cortex-review/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Code review functionality for Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true, features = ["process"] } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-share/Cargo.toml b/src/cortex-share/Cargo.toml index 00ea3e65..8c094289 100644 --- a/src/cortex-share/Cargo.toml +++ b/src/cortex-share/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Session sharing functionality for Cortex CLI" +[lints] +workspace = true + [dependencies] cortex-common = { path = "../cortex-common" } tokio = { workspace = true } diff --git a/src/cortex-snapshot/Cargo.toml b/src/cortex-snapshot/Cargo.toml index 866fb50d..ccc8ff7f 100644 --- a/src/cortex-snapshot/Cargo.toml +++ b/src/cortex-snapshot/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Snapshot and revert functionality for Cortex CLI" +[lints] +workspace = true + [dependencies] tokio = { workspace = true, features = ["process"] } serde = { version = "1", features = ["derive"] } diff --git a/src/cortex-storage/Cargo.toml b/src/cortex-storage/Cargo.toml index d56c81fb..2d61611f 100644 --- a/src/cortex-storage/Cargo.toml +++ b/src/cortex-storage/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" description = "Centralized storage for Cortex - OS-aware paths and session persistence" license = "MIT" +[lints] +workspace = true + [dependencies] # Path detection dirs = "5" diff --git a/src/cortex-update/Cargo.toml b/src/cortex-update/Cargo.toml index 7327f987..49d33f49 100644 --- a/src/cortex-update/Cargo.toml +++ b/src/cortex-update/Cargo.toml @@ -9,6 +9,9 @@ description = "Auto-update system for Cortex CLI" name = "cortex_update" path = "src/lib.rs" +[lints] +workspace = true + [dependencies] # Internal cortex-engine = { workspace = true } diff --git a/src/cortex-windows-sandbox/Cargo.toml b/src/cortex-windows-sandbox/Cargo.toml index fc9744d5..a83e65ce 100644 --- a/src/cortex-windows-sandbox/Cargo.toml +++ b/src/cortex-windows-sandbox/Cargo.toml @@ -14,6 +14,9 @@ windows = { version = "0.58", features = [ "Win32_System_Memory", ] } +[lints] +workspace = true + [dependencies] serde = { version = "1", features = ["derive"] } tracing = "0.1"