-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
29 lines (20 loc) · 919 Bytes
/
clippy.toml
File metadata and controls
29 lines (20 loc) · 919 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
# Clippy linting configuration
# https://doc.rust-lang.org/clippy/lint_configuration.html
# Cognitive complexity threshold (default: 25)
cognitive-complexity-threshold = 25
# Maximum number of single-char bindings a scope may have
single-char-binding-names-threshold = 4
# Maximum number of function arguments
too-many-arguments-threshold = 7
# Size in bytes of the smallest value to consider for pass-by-value
trivial-copy-size-limit = 128
# Maximum size of a value to consider for pass-by-value instead of by-reference
pass-by-value-size-limit = 256
# Size in bytes above which enum variants trigger large_enum_variant lint
enum-variant-size-threshold = 200
# Maximum type complexity score
type-complexity-threshold = 250
# Allow breaking exported API for stricter linting
avoid-breaking-exported-api = false
# Disallowed identifier names (placeholder names)
disallowed-names = ["foo", "bar", "baz", "quux"]