-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
28 lines (25 loc) · 1.19 KB
/
Copy pathclippy.toml
File metadata and controls
28 lines (25 loc) · 1.19 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
26
27
28
# unwrap/expect/panic are denied in production code (workspace lints), but
# they are the idiomatic failure mode inside tests — a failing test SHOULD
# panic. These flags scope the denies to non-test code.
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
allow-indexing-slicing-in-tests = true
# `..` appends to clippy's built-in proper-noun list instead of replacing it.
doc-valid-idents = ["PyPI", "GOPROXY", ".."]
# Tests must assert equality with `test_util::sim_assert_eq!`, which requires
# `have:` and `want:` labels and delegates to `similar_asserts::assert_eq` for a
# readable diff. Import it from the test-util prelude
# (`use test_util::prelude::sim_assert_eq;`).
#
# Note: similar-asserts ships no `assert_ne`, so `std::assert_ne!` is kept as-is.
disallowed-macros = [
{ path = "std::assert_eq", reason = "use the labeled test-util macro `sim_assert_eq` (import `use test_util::prelude::sim_assert_eq;`)" },
{ path = "std::dbg", reason = "remove before commit" },
]
pass-by-value-size-limit = 64
stack-size-threshold = 131072
enum-variant-size-threshold = 128
too-large-for-stack = 4096
avoid-breaking-exported-api = false
accept-comment-above-attributes = true