rapt0p7 / scenegrid-console
Code health
Hotspots average 9.0, the place fixes pay off most.
Explore this codebase
- Code health map13hotspots across 782 files
- Ownership372sole-owned files: one author, no second reader
- Architecture4modules, 2 entry points
- Decisions29recorded, of which 21 in force and 8 background
- Refactoring19open opportunities, one per file
- Tests99.5%line coverage from the latest report
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
3 things worth doing in the week to Nov 8, the last indexed commit.
Worth planning
Break up SimulatorDrawer (CCN 39, 542 lines)
packages/inspector/src/ui/SimulatorDrawer.tsx:35
SimulatorDrawer has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 1 file.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 39, 542 lines
- severity
- high
Medium effort, worth a checkStart breaking up validate (CCN 79, 246 lines): first lift lines 65-94
packages/engine/src/Domain/Validation/Rules/EventsRule.ts:65
validate has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 1 file, changed 1 time in 90 days.
- gain
- up to +2.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 79, 246 lines, nests 7 deep
- severity
- high
Medium effort, worth a checkBreak up RawLogger (CCN 40, 150 lines)
packages/inspector/src/ui/RawLogger.tsx:19
RawLogger has many paths; easier to read and change once split; function changed in 6 commits; its file is imported by 1 file.
- gain
- up to +1.9 health on this file(inferred)
- finding
- Complex method
- size
- CCN 40, 150 lines
- severity
- high
Medium effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health207 open findingsHighComplex method · packages/engine/src/Domain/Validation/Rules/EventsRule.ts4 findings · 5.3 deducted
- Refactoring19 open opportunitiesLowprocessMermaidGraph+0.5 health, S effort · scripts/generate-graph.mjs
- Doc drift22Medium.agents/skills/keep-the-why/references/migrations.mdDocument names context/config-format.md, which no longer exists.
- Decisions0 drifting from the codeMediumpackages/engine/src/Domain/Validation/__tests__/ConsistencyChecker.test.tsHigh-churn file with no governing decision
- Ownership372 sole-owned filesMediumpackages/engine/src/Application/AudioEngine.tsOne author, no second reader