Code health
This codebase scores 5.4 out of 10 for code health, which we rate needs work. It also scores maintainability 6.8 and static performance 9.6 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 74 of 538 files are git hotspots, and they average 3.4 — which is where the fixes pay off most.
5 things worth doing this quarter.
Break up main (CCN 292, 1,676 lines)
src/bin/codegraph.ts:157
main nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 4 files import it, changed 61 times in 90 days.
Flatten the nesting in runInstallerWithOptions
src/installer/index.ts:104
runInstallerWithOptions nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 3 files import it, changed 17 times in 90 days.
Update the decision “Unwrap hard-wrapped CHANGELOG bullets for GitHub release Markdown”: the code it governs has moved on
Agents and reviewers still follow it, so they are steered by a rule the code no longer keeps.
Delete 109 unused symbols and files (1,154 lines)
Nothing in the graph reaches them, across 24 files; every reader and agent pays to skip them.
Break up flush_value_refs (CCN 29, 102 lines)
codegraph-kernel/src/python.rs:867
flush_value_refs nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 1 file imports it, changed 2 times in 90 days.
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.