-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
25 lines (22 loc) · 1.17 KB
/
Copy pathclippy.toml
File metadata and controls
25 lines (22 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
msrv = "1.95"
too-many-arguments-threshold = 12
type-complexity-threshold = 500
avoid-breaking-exported-api = false
# ConfigError::Parse carries miette diagnostic payloads (NamedSource +
# SourceSpan + boxed ConfigParseSource) that exceed the default 128-byte
# Result-err budget. Bumping the threshold keeps rich diagnostics without
# pushing the whole ConfigError behind a Box at every call site.
large-error-threshold = 512
# Tests are allowed to unwrap/expect/panic — assertions are how tests fail.
# Production code still denies these via workspace lints.
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
# Determinism: wall-clock time sources are forbidden in plumb-core.
# The CLI crate explicitly re-enables them via #[allow(clippy::disallowed_methods)]
# where telemetry or --verbose output legitimately needs them.
disallowed-methods = [
{ path = "std::time::SystemTime::now", reason = "nondeterministic; see docs/local/prd.md §9" },
{ path = "std::time::Instant::now", reason = "nondeterministic; see docs/local/prd.md §9" },
{ path = "std::env::temp_dir", reason = "nondeterministic path; use tempfile crate in tests only" },
]