-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathclippy.toml
More file actions
11 lines (11 loc) · 830 Bytes
/
Copy pathclippy.toml
File metadata and controls
11 lines (11 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
# Configuration for `cargo clippy`.
# https://doc.rust-lang.org/clippy/configuration.html
#
# `src/env.rs` does `pub use std::env::*`, so a bare `env::vars()` anywhere in
# the crate is std's panicking version rather than a mise helper. These entries
# match on the resolved DefId, so the re-exported spelling is caught too.
disallowed-methods = [
{ path = "std::env::vars", reason = "panics on non-UTF-8 environment variables (jdx/mise#5370); use crate::env::vars_safe(), or std::env::vars_os() when values must not be dropped" },
{ path = "std::env::args", reason = "panics on non-UTF-8 arguments (jdx/mise#10056); use crate::env::args_safe(), or std::env::args_os()" },
{ path = "std::process::exit", reason = "skips destructors; propagate the status to the binary's outermost boundary and allow only that boundary" },
]