-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclippy.toml
More file actions
64 lines (51 loc) · 1.27 KB
/
clippy.toml
File metadata and controls
64 lines (51 loc) · 1.27 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
# RustIRC Clippy Configuration
# Set MSRV for clippy
msrv = "1.75.0"
# Lint configuration
avoid-breaking-exported-api = true
allow-expect-in-tests = true
allow-unwrap-in-tests = true
allow-dbg-in-tests = true
allow-print-in-tests = true
# Allow some format! warnings for now during Phase 1 completion
allow-mixed-uninlined-format-args = true
# Cognitive complexity threshold
cognitive-complexity-threshold = 30
# Function size thresholds
too-many-arguments-threshold = 7
too-many-lines-threshold = 100
type-complexity-threshold = 250
# Documentation
missing-docs-in-crate-items = true
# Disallowed types/methods for security
disallowed-types = [
"std::process::Command", # Use controlled execution
]
disallowed-methods = [
"std::env::set_var", # Can cause race conditions
]
# Cargo configuration
cargo-ignore-publish = false
# Error message improvements
verbose-bit-mask-threshold = 1
enum-variant-name-threshold = 3
# Style preferences
doc-valid-idents = [
"RustIRC",
"IRC",
"IRCv3",
"SASL",
"DCC",
"CTCP",
"TLS",
"SSL",
"UTF-8",
"GUI",
"TUI",
"PyO3",
"mlua",
]
# Module inception is fine for our architecture
allow-private-module-inception = true
# Large errors are ok for our error types
large-error-threshold = 128