Skip to main content

detect_dead_code

Function detect_dead_code 

Source
pub fn detect_dead_code(db: &GraphDb) -> Result<DeadCodeReport>
Expand description

Analyse the graph for dead code and return a categorised report.

Runs five SQL queries against the graph DB: unreferenced exports, unreachable private functions, unused variables, fully disconnected nodes, and zombie files. Framework hooks and common entry-point names are flagged with Confidence::Low to reduce noise.