diff options
| author | aur-build <aur-build@localhost> | 2026-11-21 13:04:12 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-21 13:04:12 +0000 |
| commit | a200edaac2056dd9c85d6bddff3ca181f0cc277e (patch) | |
| tree | a6410e70621809e6f1ded86ef9db3d178d3aef62 /src/config.rs | |
| parent | 4aaa0b87618ab3f41049a4da587421b758449f6f (diff) | |
| download | aur-build-a200edaac2056dd9c85d6bddff3ca181f0cc277e.tar.gz aur-build-a200edaac2056dd9c85d6bddff3ca181f0cc277e.zip | |
tools: the census names its dead items, and the budget argues its survivors
A count cannot be acted on. `db: 8 dead-only` tells a module is wide and sends
the reader back to grep for which eight, so the census now records where every
dead item is declared and `--list-dead` prints them: 35 named by nobody, 49
named only by tests.
What is *accepted* moves into the one file the ratchet already reads, under a
`dead_code` section — the accepted `deadonly` count per module, and an allowlist
of `module.item` to a one-line reason. `--budget` now fails three ways: a module
over its accepted count, a dead item no one argued for, and an allowlist entry
that no longer names a dead item. The third is the one that matters, because a
stale permission is how a deleted item comes back: the excuse is still on the
books, so nobody notices the new one. `--write-budget` writes the counts and
preserves the allowlist, the same way it already preserves the section
tools/test-surface.py owns — two writers of one file may not erase each other.
All 35 are unargued today, which is the point: the check is the worklist.
Diffstat (limited to 'src/config.rs')
0 files changed, 0 insertions, 0 deletions
