Skip to main content

Module dead

Module dead 

Source
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§

BornDeadEvidence
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.