routinemiku / apkstart
Code health
Hotspots average 2.1, the place fixes pay off most.
Explore this codebase
- Code health map17hotspots across 137 files
- Ownership97sole-owned files: one author, no second reader
- Architecture5modules, 3 entry points
- DecisionsNo decisions recorded yet
- Refactoring27open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4
4 things worth doing in the week to Nov 17, the last indexed commit.
Worth planning
Start breaking up bindSettings (CCN 178, 590 lines): first lift lines 1236-1439
src/ui/app.js:1236
bindSettings has many paths; easier to read and change once split, which also removes a duplicate; function changed in 25 commits; its file is imported by 1 file, changed 40 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 178, 590 lines
- severity
- high
Medium effort, worth a checkBreak up registerIpc (CCN 221, 902 lines)
src/main.js:2218
registerIpc has many paths; easier to read and change once split, which also removes a duplicate; function changed in 21 commits; changed 53 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 221, 902 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 83 findings in 23 files
35 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/ui/app.js(13 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 83
- files
- 23
- commits
- 35
Large effortStart breaking up start (CCN 69, 218 lines): first lift lines 1257-1286
src/core/emulator.js:1257
start has many paths; easier to read and change once split, which also removes a duplicate; function changed in 12 commits; its file is imported by 4 files, changed 26 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 69, 218 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
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health393 open findingsCriticalPrior defects · src/core/engine.js86 findings · 11.7 deducted
- Refactoring27 open opportunitiesMediumanalyze+1.3 health, M effort · src/core/layers.js
- Doc drift5Mediumdocs/fydeos.mdDocument names src/core/backends/fydeos.js, which no longer exists.
- Decisions0 drifting from the codeMediumsrc/main.jsHigh-churn file with no governing decision
- Ownership97 sole-owned filesMediumsrc/main.jsOne author, no second reader