repowisermvdesi/obsidian-prism

rmvdesi / obsidian-prism

javascriptmain41cc481191.1K linessynced on Nov 27, 2026

Code health

4.0out of 10Needs work

Hotspots average 2.1, the place fixes pay off most.

Explore this codebase

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
    worth a check
  • Start 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
    worth a check
  • Tidy 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
  • Break 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
    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

Everything we found

4 areas