mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-08 01:48:20 -10:00
chore(gates): lower the dead-code ceiling to 158
`session.resumed` made `SessionRecovery`'s `repaired_call_count`, `duplicate_result_count` and `orphan_result_count` live outside tests, so the three `#[cfg_attr(not(test), expect(dead_code))]` attributes went with it. The measured count is now 158 (allow 105, expect 53) against a ceiling of 162. The gate may go down freely; lowering it locks the win in so a later change cannot quietly re-add a suppression. Regenerated with `--update`. Verified: `python3 scripts/check-dead-code-budget.py` reports "158 suppressions (allow=105, expect=53), budget 158 (0 under)". Signed-off-by: CodeWhale Bot <[email protected]>
This commit is contained in:
1 parent
785f7d0d44
commit
ecd256c904
1 file changed
+4
-4
@@ -2,9 +2,9 @@
|
||||
"_comment": "Ceiling for dead-code suppressions across crates/, counting both `#[allow(dead_code)]` and `#[expect(dead_code)]`. `total` is the sum and is the ratcheted figure. It may go down freely; raising it needs a reviewer to say why in the PR. Regenerate with: python3 scripts/check-dead-code-budget.py --update",
|
||||
"_issue": "https://github.com/codewhale-hq/CodeWhale/issues/4785",
|
||||
"_expect_blind_spot": "Until #6241 this gate counted only the `allow` spelling, so rewriting an allow as an expect lowered the number without removing any dead code. The ceiling was re-based to the true combined count when that was fixed; it is not a regression.",
|
||||
"total": 162,
|
||||
"total": 158,
|
||||
"allow_total": 105,
|
||||
"expect_total": 57,
|
||||
"expect_total": 53,
|
||||
"per_crate": {
|
||||
"cli": {
|
||||
"allow": 0,
|
||||
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"runtime": {
|
||||
"allow": 9,
|
||||
"expect": 3
|
||||
"expect": 4
|
||||
},
|
||||
"sandbox": {
|
||||
"allow": 2,
|
||||
@@ -44,7 +44,7 @@
|
||||
},
|
||||
"tui": {
|
||||
"allow": 71,
|
||||
"expect": 51
|
||||
"expect": 46
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user