24 lines
756 B
TOML
24 lines
756 B
TOML
# file: templates/rust-cargo/clippy.toml
|
|
# version: 1
|
|
|
|
# Baseline shared by the KSP and Games projects; adapt thresholds per project.
|
|
too-many-arguments-threshold = 16
|
|
type-complexity-threshold = 250
|
|
single-char-binding-names-threshold = 3
|
|
trivial-copy-size-limit = 16
|
|
pass-by-value-size-limit = 256
|
|
stack-size-threshold = 512000
|
|
vec-box-size-threshold = 4096
|
|
max-fn-params-bools = 2
|
|
max-include-file-size = 1048576
|
|
cognitive-complexity-threshold = 25
|
|
too-large-for-stack = 2048
|
|
enum-variant-size-threshold = 200
|
|
large-error-threshold = 128
|
|
avoid-breaking-exported-api = true
|
|
allow-unwrap-in-tests = true
|
|
allow-expect-in-tests = true
|
|
allow-useless-vec-in-tests = true
|
|
disallowed-names = ["foo", "bar", "baz", "tmp"]
|
|
allowed-idents-below-min-chars = ["id"]
|