goniszewski / grimoire
Code health
Hotspots average 5.1, the place fixes pay off most.
Explore this codebase
- Code health map58hotspots across 542 files
- Ownership293sole-owned files: one author, no second reader
- Architecture6modules, 67 entry points
- Decisions13recorded, of which 0 in force and 13 background
- Refactoring30open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
4 things worth doing in the week to Aug 3, the last indexed commit, 1 of them now.
Worth planning
Start breaking up handleBackupCommand (CCN 45, 196 lines): first lift lines 742-755
daemon/src/cli.ts:742
handleBackupCommand nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 3 commits; its file is imported by 4 files, changed 8 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 45, 196 lines, nests 4 deep
- severity
- medium
Medium effort, worth a checkStart breaking up runPipeline (CCN 24, 213 lines): first lift lines 250-374
daemon/src/pipeline/pipeline.ts:250
runPipeline has many paths; easier to read and change once split, which also removes a duplicate; function changed in 11 commits; its file is imported by 5 files, changed 14 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 24, 213 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkAddress the finding in createBackupRoute
daemon/src/routes/backup.ts:616
createBackupRoute has a bumpy road finding; function changed in 16 commits; its file is imported by 7 files, changed 18 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Bumpy road
- size
- CCN 121, 722 lines, nests 6 deep
- severity
- high
Medium effort, worth a check
Improve what Repowise can see
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
- line coverage
- Unknown, no report
Small effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health670 open findingsCriticalUntested hotspot · daemon/src/settings.ts20 findings · 9.5 deducted
- Refactoring30 open opportunitiesMediumnextCronRunAt+1.5 health, S effort · daemon/src/lib/cron.ts
- Decisions0 drifting from the codeMediumsrc/pages/Settings.tsxHigh-churn file with no governing decision
- Ownership293 sole-owned filesMediumsrc/lib/api.tsOne author, no second reader
- Dead code54LowContextMenuPortalUnreachable variable (0 lines)