Repository navigation
Expand file tree
/
Copy pathclippy.toml
More file actions
22 lines (19 loc) · 2.52 KB
/
Copy pathclippy.toml
File metadata and controls
22 lines (19 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Allow concise unwrap() in #[cfg(test)] targets while dbg!() stays denied everywhere (agents.md §Async, Concurrency & Error Handling).
allow-unwrap-in-tests = true
# Fold long parameter lists into named structs (agents.md §Module Architecture & Organization).
too-many-arguments-threshold = 7
# Accommodate boxed UI/reactive callback signatures while catching extreme nesting.
type-complexity-threshold = 600
# Tokio runtime ownership and task spawning boundaries (agents.md §Dependencies & Runtime Boundaries).
disallowed-methods = [
{ path = "tokio::spawn", reason = "spawn tasks through task_manager::Scope instead of calling tokio::spawn directly (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::task::spawn", reason = "spawn tasks through task_manager::Scope instead of calling tokio::task::spawn directly (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::task::spawn_local", reason = "spawn tasks through task_manager::Scope instead of calling tokio::task::spawn_local directly (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::task::spawn_blocking", reason = "spawn blocking work through task_manager::Scope instead of calling tokio::task::spawn_blocking directly (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::runtime::Handle::spawn_blocking", reason = "spawn blocking work through task_manager::Scope instead of calling tokio::runtime::Handle::spawn_blocking directly (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::runtime::Runtime::new", reason = "GUI applications own a single Tokio runtime in service::task_manager::Supervisor (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::runtime::Builder::new_multi_thread", reason = "GUI applications own a single Tokio runtime in service::task_manager::Supervisor (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::runtime::Builder::new_current_thread", reason = "GUI applications own a single Tokio runtime in service::task_manager::Supervisor (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::runtime::Handle::current", reason = "pass a task_manager::Scope into services instead of looking up a global Tokio runtime handle (see agents.md §Dependencies & Runtime Boundaries)" },
{ path = "tokio::runtime::Handle::try_current", reason = "pass a task_manager::Scope into services instead of looking up a global Tokio runtime handle (see agents.md §Dependencies & Runtime Boundaries)" },
]