-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
33 lines (23 loc) · 1.09 KB
/
clippy.toml
File metadata and controls
33 lines (23 loc) · 1.09 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
29
30
31
32
33
# Clippy Configuration
# This file provides fine-grained control over clippy lint behavior
# Raise the cyclomatic complexity threshold for complex protocol handlers
# Default is 25, we allow up to 30 for state machines and protocol logic
cognitive-complexity-threshold = 30
# Allow longer type names - rsync protocol has descriptive type names
type-complexity-threshold = 250
# Allow more than the default 7 arguments - protocol structures are complex
too-many-arguments-threshold = 8
# Don't warn about single-char variable names in these contexts
single-char-binding-names-threshold = 4
# Allow verbose bit mask names for clarity in protocol code
verbose-bit-mask-threshold = 1
# Accept longer function signatures for protocol handlers
max-fn-params-bools = 3
# Increase max suggested function length before warning
too-many-lines-threshold = 200
# Array size threshold for suggesting a reference instead of array copy
array-size-threshold = 512000
# Maximum number of bools in a struct before warning
max-struct-bools = 8
# Threshold for struct field names similarity
struct-field-name-threshold = 20