-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
67 lines (47 loc) · 1.52 KB
/
Copy pathclippy.toml
File metadata and controls
67 lines (47 loc) · 1.52 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# file: clippy.toml
# version: 1.1.0
# guid: 6f7a8b9c-0d1e-2345-f678-9abcdef01234
# Clippy configuration for Rust linting
# Following Rust best practices and performance guidelines
# Cognitive complexity threshold
cognitive-complexity-threshold = 25
# Cyclomatic complexity threshold
cyclomatic-complexity-threshold = 15
# Documentation requirements
missing-docs-in-crate-items = true
# Avoid certain patterns
avoid-breaking-exported-api = true
disallowed-methods = [
"std::env::set_var", # Prefer safer alternatives
"std::process::exit", # Use proper error handling
]
# Type complexity threshold
type-complexity-threshold = 250
# Vector initialization threshold
vec-box-size-threshold = 4096
# Arithmetic side effects
arithmetic-side-effects-allowed = ["Size", "Offset"]
# Enum variant size threshold
enum-variant-size-threshold = 200
# Large error types threshold
large-error-types-threshold = 128
# Large futures threshold
large-futures-threshold = 16384
# Large stack arrays threshold
large-stack-arrays-threshold = 512000
# Large types passed by value threshold
large-types-passed-by-value-threshold = 256
# Literal representation threshold
literal-representation-threshold = 10
# Maximum trait bounds
max-trait-bounds = 3
# Maximum function lines
max-fn-params-bools = 3
# String literal threshold
string-literal-chars-threshold = 120
# Trivial copy size threshold
trivial-copy-size-limit = 8
# Upper case acronyms aggressive
upper-case-acronyms-aggressive = false
# Verbose bit mask threshold
verbose-bit-mask-threshold = 1