-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclippy.toml
More file actions
36 lines (25 loc) · 955 Bytes
/
clippy.toml
File metadata and controls
36 lines (25 loc) · 955 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
31
32
33
34
35
36
# Clippy configuration for production-ready code
# https://rust-lang.github.io/rust-clippy/master/
# Cognitive complexity threshold
cognitive-complexity-threshold = 25
# Documentation style
doc-valid-idents = ["HTTP", "IPC", "JSON", "API", "TCP", "UDP", "URL", "UUID", "CPU", "GPU", "CLI", "TTL", "LRU"]
# Too many arguments threshold
too-many-arguments-threshold = 10
# Too many lines threshold
too-many-lines-threshold = 100
# Type complexity threshold
type-complexity-threshold = 250
# Trivially copy pass by value size threshold
trivial-copy-size-limit = 64
# Enum variant size difference threshold
enum-variant-size-threshold = 200
# Large types passed by value threshold
pass-by-value-size-limit = 256
# Large stack arrays threshold
array-size-threshold = 512
# Vector initialization with new allocation threshold
vec-box-size-threshold = 4096
# Allow certain lints for flexibility
allow-print-in-tests = true
allow-unwrap-in-tests = true