Expand description
Born-dead detection for bugbot
Detects new functions (added in the current changeset) that have zero references anywhere in the codebase. Zero false positives by construction: if you just wrote a function and nothing calls it, it is dead.
Uses the reference-counting approach from the dead command (single-pass
identifier scan via tree-sitter) rather than the full call graph.
Structs§
- Born
Dead Evidence - Evidence payload for a born-dead finding.
Functions§
- compose_
born_ dead - Check inserted functions for zero references (born dead).
- compose_
born_ dead_ scoped - Scoped born-dead detection: only scan changed files + their importers.
- compose_
born_ dead_ with_ refcounts - Inner implementation that accepts pre-computed refcounts.
- is_
test_ function - Check if a function name looks like a test function.