repowisecircuitverse/circuitverse

circuitverse / circuitverse

rubymaster6f725c554.8K linessynced on Oct 17, 2026

Code health

8.3out of 10Good

Hotspots average 8.5, as healthy as the rest of the code.

Explore this codebase

Do next · 3

4 things worth doing in the week to Sep 27, the last indexed commit, 1 of them now.

Worth planning

  • Start breaking up update (CCN 73, 152 lines): first lift lines 567-588

    simulator/src/node.js:567

    update has many paths; easier to read and change once split, which also removes a duplicate; function changed in 2 commits; its file is imported by 67 files.

    gain
    up to +0.2 health on this file(inferred)
    finding
    Complex method
    size
    CCN 73, 152 lines, nests 5 deep
    severity
    high
    worth a check
  • Break up startListeners (CCN 107, 445 lines)

    simulator/src/listeners.js:527

    startListeners has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 5 files.

    gain
    up to +0.4 health on this file(inferred)
    finding
    Complex method
    size
    CCN 107, 445 lines, nests 4 deep
    severity
    high
    worth a check
  • Flatten the nesting in render

    simulator/src/plotArea.js:298

    render nests deeply; easier to read and change once split; its file is imported by 9 files.

    gain
    up to +0.6 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 26, 143 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

6 areas