-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
26 lines (20 loc) · 862 Bytes
/
clippy.toml
File metadata and controls
26 lines (20 loc) · 862 Bytes
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
cognitive-complexity-threshold = 25
excessive-nesting-threshold = 5
too-many-lines-threshold = 150
too-many-arguments-threshold = 8
type-complexity-threshold = 300
struct-field-name-threshold = 5
single-char-binding-names-threshold = 4
doc-valid-idents = ["GitHub", "API", "HTTP", "JSON", "UUID", "Ethereum", "EVM"]
disallowed-methods = [
{ path = "std::env::set_var", reason = "Library code should avoid modifying environment variables" },
{ path = "std::env::remove_var", reason = "Library code should avoid modifying environment variables" },
{ path = "std::mem::transmute", reason = "Extremely dangerous operation" },
]
pass-by-value-size-limit = 256
enum-variant-size-threshold = 200
allow-dbg-in-tests = true
allow-print-in-tests = true
allow-unwrap-in-tests = true
avoid-breaking-exported-api = true
literal-representation-threshold = 4