rmvdesi / obsidian-prism
Code health
Hotspots average 2.1, the place fixes pay off most.
Explore this codebase
- Code health map24hotspots across 157 files
- Ownership192sole-owned files: one author, no second reader
- Architecture8modules, 7 entry points
- Decisions16recorded, of which 0 in force and 16 background
- Refactoring67open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4 · 1 setup step
4 things worth doing in the week to Nov 26, the last indexed commit · 1 setup step.
Worth planning
Break up _verifyAndHealEntryUnlocked (CCN 490, 985 lines)
sidecars/daemon/main.mjs:10314
_verifyAndHealEntryUnlocked has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 28 files, changed 25 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 490, 985 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkStart breaking up mangleSafeLocals (CCN 467, 722 lines): first lift lines 5895-5905
cdp.js:5895
mangleSafeLocals has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 12 files, changed 24 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 467, 722 lines, nests 5 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 4 findings in 3 files
2 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
sidecars/daemon/main.mjs(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 4
- files
- 3
- commits
- 2
Medium effortBreak up refreshUsageRollup (CCN 184, 163 lines)
home-studio-panel.js:606
refreshUsageRollup has many paths; easier to read and change once split; function changed in 4 commits; its file is imported by 2 files, changed 11 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 184, 163 lines, nests 5 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
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health2,404 open findingsCriticalChange entropy · cdp.js509 findings · 15.7 deducted
- Refactoring67 open opportunitiesLowbuildTarBuffer+0.3 health, S effort · scripts/build-linux.mjs
- Decisions0 drifting from the codeMediumvendor/effort-slider/upstream-client.jsHigh-churn file with no governing decision
- Ownership192 sole-owned filesMediumsidecars/daemon/main.mjsOne author, no second reader