-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
83 lines (60 loc) · 1.6 KB
/
clippy.toml
File metadata and controls
83 lines (60 loc) · 1.6 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Clippy Configuration for Singularity Analysis Engine
# This enforces strict code quality standards
# Cognitive complexity threshold for functions
cognitive-complexity-threshold = 15
# Maximum number of lines for a single function
too-many-lines-threshold = 100
# Maximum number of single char names
single-char-binding-names-threshold = 4
# Enum variant size difference threshold (in bytes)
enum-variant-size-threshold = 200
# Type complexity threshold
type-complexity-threshold = 250
# Disallowed names
disallowed-names = [
"foo",
"bar",
"baz",
"quux",
"tmp",
"temp",
"test",
"data",
"obj",
"object",
"val",
"value",
"var",
"variable"
]
# Minimum rust version
msrv = "1.91.0"
# Maximum trait bounds
max-trait-bounds = 3
# Maximum allowed size for arrays on stack
array-size-threshold = 512000
# Allow dbg! in tests
allow-dbg-in-tests = true
# Allow print statements in tests
allow-print-in-tests = true
# Allow unwrap in tests
allow-unwrap-in-tests = true
# Maximum struct bools
max-struct-bools = 3
# Allow certain attributes without reason
allowed-duplicate-crates = []
# Standard library includes threshold
standard-macro-braces = [
{ name = "format_args", brace = "{" },
{ name = "format_args_nl", brace = "{" },
{ name = "vec", brace = "[" },
{ name = "matches", brace = "{" }
]
# Avoid breaking public API
avoid-breaking-exported-api = true
# Upper case acronyms configuration
upper-case-acronyms-aggressive = true
# Maximum function parameters
max-fn-params-bools = 3
# Check private items documentation
check-private-items = false