-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
30 lines (21 loc) · 947 Bytes
/
clippy.toml
File metadata and controls
30 lines (21 loc) · 947 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
30
# Clippy configuration for Photon Circus Curves.
# See: https://doc.rust-lang.org/clippy/lint_configuration.html
# Lint levels are defined in src/lib.rs; this file only stores configuration values.
# MSRV for this project (Rust 2024 edition)
msrv = "1.92.0"
# Allow slightly longer functions for driver code
too-many-lines-threshold = 150
# Hardware drivers often need many arguments for configuration
too-many-arguments-threshold = 10
# Embedded code often has deeper type nesting
type-complexity-threshold = 350
# Allow more struct fields for configuration structs
max-struct-bools = 4
# Max function bool parameters
max-fn-params-bools = 4
# Cognitive complexity threshold for functions
cognitive-complexity-threshold = 30
# Allow these short identifiers (common in embedded)
allowed-idents-below-min-chars = ["i", "n", "x", "y", "id", "ok", "rx", "tx"]
# Threshold for single char binding names
single-char-binding-names-threshold = 5