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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# rustqual.toml — Configuration for the rustqual code quality analyzer
#
# Place this file in your project root.
# Function names (or patterns with trailing *) to exclude from analysis.
= [
"main",
"run",
"test_*",
"visit_*",
]
# Glob patterns for files to exclude.
= []
# If true, closures count as "logic" even when passed to iterator adaptors.
# Default: false (lenient — closures inside .map()/.filter() are ignored).
= false
# If true, iterator chains (.map, .filter, .fold, ...) count as logic.
# Default: false.
= false
# If true, recursive calls (function calling itself) are allowed and don't
# count as IOSP violations. Default: false.
= false
# If true, the ? operator counts as logic (implicit control flow).
# Default: false.
= false
# Maximum ratio of all allow suppressions (qual:allow + #[allow]) before a warning is emitted.
= 0.10
# ── Complexity Analysis ──────────────────────────────────────────────────
[]
= true
# max_cognitive = 15
# max_cyclomatic = 10
# max_nesting_depth = 4
# max_function_lines = 60
# detect_unsafe = true
# detect_error_handling = true
= true
# ── DRY / Duplicate Detection ───────────────────────────────────────────
[]
= true
# ── Boilerplate Detection ───────────────────────────────────────────────
[]
= true
# ── SRP (Single Responsibility) ─────────────────────────────────────────
[]
= true
# ── Coupling Analysis ───────────────────────────────────────────────────
[]
= true
# ── Structural Binary Checks ───────────────────────────────────────────
[]
= true
# ── Test Quality Analysis ──────────────────────────────────────────────
[]
= true
# Extra macro names (beyond assert*/debug_assert*) to recognize as assertions in TQ-001.
# Example: extra_assertion_macros = ["verify", "check", "expect_that"]
# extra_assertion_macros = []
# ── Quality Score Weights ──────────────────────────────────────────────
[]
= 0.25
= 0.20
= 0.15
= 0.20
= 0.10
= 0.10