-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
20 lines (15 loc) · 651 Bytes
/
clippy.toml
File metadata and controls
20 lines (15 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Cognitive complexity threshold for functions
cognitive-complexity-threshold = 30
# Maximum allowed nesting depth
excessive-nesting-threshold = 6
# Disallowed methods (security-sensitive)
disallowed-methods = [
{ path = "std::env::set_var", reason = "Environment manipulation should be avoided in library code" },
{ path = "std::env::remove_var", reason = "Environment manipulation should be avoided in library code" },
]
# Type complexity threshold
type-complexity-threshold = 300
# Maximum number of lines in a single expression
single-char-binding-names-threshold = 4
# Avoid panics in library code
avoid-breaking-exported-api = true