msrv = "1.92"
cognitive-complexity-threshold = 25
too-many-arguments-threshold = 7
[[disallowed-methods]]
path = "std::thread::spawn"
reason = "Use std::thread::Builder::new().name(...).spawn() for fallible thread creation (Bug 7 post-mortem)"
[[disallowed-methods]]
path = "std::process::exit"
reason = "Use proper error propagation. process::exit skips Drop impls and loses data (LAW-001)"
[[disallowed-methods]]
path = "std::mem::forget"
reason = "Leaking resources is a bug, not a feature. Use ManuallyDrop if truly needed (BANNED-002)"
[[disallowed-methods]]
path = "std::env::set_var"
reason = "Not thread-safe — UB in multi-threaded context. Use constructor injection or config structs (BANNED-003)"
[[disallowed-methods]]
path = "std::env::remove_var"
reason = "Not thread-safe — UB in multi-threaded context. Use constructor injection or config structs (BANNED-003)"