Code health
This codebase scores 7.0 out of 10 for code health, which we rate good. It also scores maintainability 7.8 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: 131 of 1,077 files are git hotspots, and they average 5.7 — which is where the fixes pay off most.
14 things worth doing this quarter.
Break up filterRules (CCN 84, 355 lines)
src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts:832
filterRules nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 2 files import it, changed 9 times in 90 days.
Break up run (CCN 26, 320 lines)
src/documents/consumer.py:666
run is long, branchy and widely depended on; 7 files import it, changed 7 times in 90 days.
Fix 204 broken references in docs/configuration.md
The document points readers and agents at paths this repository no longer has.
Fix 40 broken references in docs/advanced_usage.md
The document points readers and agents at paths this repository no longer has.
Flatten the nesting in run_workflows
src/documents/signals/handlers.py:1016
run_workflows nests its control flow deeply; 11 files import it, changed 9 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.