返回 CodeWhale
dead-code-budget.json
根目录 / scripts / dead-code-budget.json
1 {
2 "_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",
3 "_issue": "https://github.com/codewhale-hq/CodeWhale/issues/4785",
4 "_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.",
5 "total": 258,
6 "allow_total": 175,
7 "expect_total": 83,
8 "per_crate": {
9 "app-server": {
10 "allow": 1,
11 "expect": 0
12 },
13 "cli": {
14 "allow": 0,
15 "expect": 1
16 },
17 "core": {
18 "allow": 5,
19 "expect": 0
20 },
21 "localization": {
22 "allow": 2,
23 "expect": 0
24 },
25 "models": {
26 "allow": 5,
27 "expect": 0
28 },
29 "palette": {
30 "allow": 20,
31 "expect": 0
32 },
33 "runtime": {
34 "allow": 9,
35 "expect": 2
36 },
37 "tools": {
38 "allow": 2,
39 "expect": 0
40 },
41 "tui": {
42 "allow": 131,
43 "expect": 80
44 }
45 }
46 }
47
47 lines JSON