gemu404 / livenyan
Code health
Hotspots average 3.4, the place fixes pay off most.
Explore this codebase
- Code health map15hotspots across 136 files
- Ownership19sole-owned files: one author, no second reader
- Architecture4modules, 2 entry points
- DecisionsNo decisions recorded yet
- Refactoring28open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 5
5 things worth doing in the week to Oct 31, the last indexed commit.
Worth planning
Start breaking up run (CCN 197, 1,115 lines): first lift lines 273-297
src/app/mod.rs:273
run has many paths; easier to read and change once split, which also removes a duplicate; function changed in 5 commits; its file is imported by 6 files, changed 5 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 197, 1,115 lines, nests 8 deep
- severity
- high
Medium effort, worth a checkStart breaking up draw_scene (CCN 121, 929 lines): first lift lines 1609-1619
src/app/scene.rs:1609
draw_scene has many paths; easier to read and change once split, which also removes a duplicate; function changed in 4 commits; its file is imported by 1 file, changed 5 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 121, 929 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 55 findings in 23 files
18 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/gal.rs(9 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 55
- files
- 23
- commits
- 18
Large effortReview why fixes keep landing in
src/scene.rs: tests reach itChanged 14 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 14
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- 3 test files, call graph(inferred)
Large effort, worth a checkStart breaking up system_text_event (CCN 90, 487 lines): first lift lines 450-467
src/vm/sysevent.rs:450
system_text_event has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 1 file, changed 3 times in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Complex method
- size
- CCN 90, 487 lines
- severity
- high
Medium effort, worth a check
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health379 open findingsCriticalChange entropy · src/gal.rs54 findings · 12.8 deducted
- Refactoring28 open opportunitiesLowstep_obj_new+0.6 health, M effort · src/vm/step_obj.rs
- Decisions0 to reviewMediumsrc/gal.rs0 awaiting review, 0 drifting from the code
- Ownership19 sole-owned filesMediumtests/cli.rsOne author, no second reader