-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clippy.toml
More file actions
29 lines (20 loc) · 824 Bytes
/
.clippy.toml
File metadata and controls
29 lines (20 loc) · 824 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 configuration for VeridianOS kernel
# Updated for Rust 1.93.0-nightly
# Maximum cognitive complexity
cognitive-complexity-threshold = 30
# Maximum number of lines in a function
too-many-lines-threshold = 150
# Maximum number of arguments
too-many-arguments-threshold = 8
# Maximum single literal prefix for type complexity
type-complexity-threshold = 300
# Enforce MSRV (nightly-2025-11-15)
msrv = "1.93.0"
# Allow longer literal values without separators (common in crypto/OS code)
literal-representation-threshold = 16
# Kernel code often has legitimate large enum variants
single-char-binding-names-threshold = 4
# Disable some pedantic lints that are too noisy for kernel code
avoid-breaking-exported-api = true
# Allow doc comments on private items for kernel documentation
check-private-items = false