-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathclippy.toml
More file actions
81 lines (66 loc) · 1.59 KB
/
clippy.toml
File metadata and controls
81 lines (66 loc) · 1.59 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
# Clippy configuration
# https://doc.rust-lang.org/clippy/configuration.html
# Maximum cognitive complexity for functions
cognitive-complexity-threshold = 25
# Maximum allowed nesting depth
excessive-nesting-threshold = 4
# Maximum number of lines in a function
too-many-lines-threshold = 100
# Maximum number of arguments a function or method can have
too-many-arguments-threshold = 7
# Maximum number of struct fields
max-struct-bools = 3
# Warn on large types passed by value
pass-by-value-size-limit = 256
# Types that are allowed to have a large size difference in variants
large-error-threshold = 128
# Minimum length for string slice to be considered as potential constant
single-char-binding-names-threshold = 4
# Allow certain patterns in test code
allow-dbg-in-tests = true
allow-expect-in-tests = true
allow-unwrap-in-tests = true
allow-print-in-tests = true
# MSRV for lint behavior
msrv = "1.88"
# Type complexity threshold
type-complexity-threshold = 250
# Avoid false positives for doc comments
doc-valid-idents = [
"GitHub",
"GitLab",
"JavaScript",
"TypeScript",
"PostgreSQL",
"MongoDB",
"WebAssembly",
"WebSocket",
"OAuth",
"OpenAPI",
"GraphQL",
"README",
"API",
"APIs",
"CLI",
"HTTP",
"HTTPS",
"JSON",
"YAML",
"TOML",
"XML",
"SQL",
"UUID",
"UTF",
"ASCII",
"macOS",
"iOS",
"FreeBSD",
"OpenBSD",
"NetBSD",
]
# Allowed wildcard imports
allowed-wildcard-imports = []
# Trivial copy size
trivial-copy-size-limit = 16
# Enum variant size threshold
enum-variant-size-threshold = 200