forked from EpicGames/lore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
15 lines (15 loc) · 2.08 KB
/
Copy pathclippy.toml
File metadata and controls
15 lines (15 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
disallowed-methods = [
{ path = "dashmap::DashMap::entry", reason = "This function internally takes a write lock and returns it in the entry handle. This can potentially block worker threads and cause deadlocks if used incorrectly. If you're sure it's ok add #[allow(clippy::disallowed_methods)] with a comment explaining why its safe" },
{ path = "tokio::spawn", reason = "Use lore_base::lore_spawn! so LORE_CONTEXT is propagated to the spawned task." },
{ path = "tokio::task::spawn", reason = "Use lore_base::lore_spawn! so LORE_CONTEXT is propagated to the spawned task." },
{ path = "tokio::task::spawn_blocking", reason = "Use lore_base::lore_spawn_blocking! (or lore_spawn_blocking_nocontext!) so LORE_CONTEXT is propagated." },
{ path = "tokio::task::spawn_local", reason = "Use lore_base::lore_spawn! so LORE_CONTEXT is propagated to the spawned task." },
{ path = "tokio::runtime::Handle::spawn", reason = "Use lore_base::lore_spawn! so LORE_CONTEXT is propagated and the task runs on the shared lore runtime." },
{ path = "tokio::runtime::Handle::spawn_blocking", reason = "Use lore_base::lore_spawn_blocking! so LORE_CONTEXT is propagated and the task runs on the shared lore runtime." },
{ path = "tokio::task::JoinSet::spawn", reason = "Use lore_base::lore_spawn!(joinset, future) so the task runs on the shared lore runtime with LORE_CONTEXT propagated." },
{ path = "tokio::task::JoinSet::spawn_on", reason = "Use lore_base::lore_spawn!(joinset, future) so LORE_CONTEXT is propagated." },
{ path = "tokio::task::JoinSet::spawn_blocking", reason = "Use lore_base::lore_spawn_blocking!(joinset, closure) so LORE_CONTEXT is propagated." },
{ path = "tokio::task::JoinSet::spawn_blocking_on", reason = "Use lore_base::lore_spawn_blocking!(joinset, closure) so LORE_CONTEXT is propagated." },
{ path = "tokio::task::JoinSet::spawn_local", reason = "Use lore_base::lore_spawn!(joinset, future) so LORE_CONTEXT is propagated." },
{ path = "tokio::task::JoinSet::spawn_local_on", reason = "Use lore_base::lore_spawn!(joinset, future) so LORE_CONTEXT is propagated." }
]