-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
30 lines (22 loc) · 911 Bytes
/
clippy.toml
File metadata and controls
30 lines (22 loc) · 911 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
27
28
29
30
# Clippy configuration for SPECTRE
# See: https://doc.rust-lang.org/clippy/configuration.html
# Cognitive complexity threshold
cognitive-complexity-threshold = 25
# Maximum lines in a function
too-many-lines-threshold = 100
# Maximum arguments in a function
too-many-arguments-threshold = 7
# Type complexity threshold
type-complexity-threshold = 250
# Allowed names for variables that might otherwise trigger warnings
allowed-idents-below-min-chars = ["i", "j", "k", "n", "x", "y", "z", "ip", "id"]
# MSRV for compatibility lints
msrv = "1.92"
# Disallowed methods (security-sensitive)
disallowed-methods = [
# Prefer proper error handling
{ path = "std::result::Result::unwrap", reason = "Use expect() or proper error handling" },
{ path = "std::option::Option::unwrap", reason = "Use expect() or proper error handling" },
]
# Documentation requirements
missing-docs-in-crate-items = true