Skip to content

Add dead-code gate (vulture) - #25

Merged
jonnyspicer merged 1 commit into
mainfrom
chore/dead-code-gate
Aug 11, 2026
Merged

Add dead-code gate (vulture)#25
jonnyspicer merged 1 commit into
mainfrom
chore/dead-code-gate

Conversation

@jonnyspicer

Copy link
Copy Markdown
Contributor

Completes the rollout: every Python repo in the org now has the same dead-code
gate. All ten copies of tools/check-dead-code.sh are byte-identical.

This repo had zero findings, so there is no vulture_whitelist.py — the
script treats the whitelist as optional. Nothing is suppressed here, and the
first entry anyone adds will have to justify itself.

The value is preventive rather than corrective: the gate stops dead code
arriving, which matters more in a small codebase where a stray helper is easy
to miss in review precisely because there is so little to look at.

Verified

  • Gate passes
  • Gate exits 1 on a newly added dead function — tested, since a gate that cannot fail is worthless
  • ruff check . clean

🤖 Generated with Claude Code

Adds tools/check-dead-code.sh and a CI step, matching the other eight Python
repos. No whitelist: this repo has zero findings, and the script treats the
whitelist as optional, so nothing is suppressed.

Preventive rather than corrective — the gate stops dead code arriving.
@jonnyspicer
jonnyspicer merged commit 5cac6c6 into main Aug 11, 2026
1 check passed
@jonnyspicer
jonnyspicer deleted the chore/dead-code-gate branch August 11, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant