Code health
This codebase scores 6.8 out of 10 for code health, which we rate fair. It also scores maintainability 8.2 and static performance 9.9 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 25 of 2,110 files are git hotspots, and they average 4.0 — which is where the fixes pay off most.
4 things worth doing this quarter.
Break up handleEvents (CCN 87, 268 lines)
commands/hugobuilder.go:696
handleEvents nests its control flow deeply; 3 files import it, changed 1 time in 90 days.
Break up Sort (CCN 26, 97 lines)
tpl/collections/sort.go:61
Sort nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 2 files import it.
Delete 11 unused symbols and files (52 lines)
Nothing in the graph reaches them, across 8 files; every reader and agent pays to skip them.
Flatten the nesting in DoArithmetic
common/math/math.go:42
DoArithmetic nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 2 files import it.
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
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.