shinkuan / akagi
Code health
Hotspots average 3.7, the place fixes pay off most.
Explore this codebase
- Code health map47hotspots across 352 files
- Ownership287sole-owned files: one author, no second reader
- Architecture8modules, 7 entry points
- Decisions20recorded, of which 0 in force and 20 background
- Refactoring56open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
3 things worth doing in the week to Aug 13, the last indexed commit.
Worth planning
Start breaking up load_config (CCN 13, 60 lines): first lift lines 167-187
src/config/mod.rs:167
load_config nests deeply; easier to read and change once split; function changed in 5 commits; its file is imported by 36 files, changed 11 times in 90 days.
- gain
- up to +2.9 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 13, 60 lines, nests 8 deep
- severity
- high
Medium effort, worth a checkFlatten the nesting in plan
src/autoplay/majsoul/mod.rs:48
plan nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 6 commits; its file is imported by 7 files, changed 20 times in 90 days.
- gain
- up to +0.6 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 27, 129 lines, nests 5 deep
- severity
- high
Medium effort, worth a checkStart breaking up handle_bot_response (CCN 40, 262 lines): first lift lines 463-497
src/autoplay/manager.rs:463
handle_bot_response nests deeply; easier to read and change once split; function changed in 12 commits; its file is imported by 6 files, changed 12 times in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 40, 262 lines, nests 6 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 health1,017 open findingsCriticalUntested hotspot · src/lib.rs12 findings · 9.6 deducted
- Refactoring56 open opportunitiesMediummain+1.5 health, S effort · native_bot/src/bin/extract.rs
- Decisions0 drifting from the codeMediumsrc/autoplay/majsoul/mod.rsHigh-churn file with no governing decision
- Ownership287 sole-owned filesMediumfrontend/src/types.tsOne author, no second reader
- Dead code35LowCardFooterUnreachable function (11 lines)