circuitverse / circuitverse
Code health
Hotspots average 8.5, as healthy as the rest of the code.
Explore this codebase
- Code health map12hotspots across 1,541 files
- Ownership595sole-owned files: one author, no second reader
- Architecture12modules, 2 entry points
- Decisions53recorded, of which 0 accepted and 53 awaiting review
- Refactoring32open 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 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
Medium effort, worth a checkBreak 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
Medium effort, worth a checkFlatten 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
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
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health962 open findingsHighFunction hotspot · simulator/src/node.js19 findings · 5.4 deducted
- Refactoring32 open opportunitiesLowupdate+0.6 health, S effort · simulator/src/wire.js
- Doc drift4Mediuminstallation_docs/manual/windows-wsl.mdDocument names config/database.yml, which no longer exists.
- Decisions53 to reviewMediumdb/schema.rb53 awaiting review, 0 drifting from the code
- Ownership595 sole-owned filesMediumapp/controllers/organizations_controller.rbOne author, no second reader
- Dead code1LowgetKeyUnreachable function (1 lines)