repowiseshinkuan/akagi

shinkuan / akagi

rusttypescriptv397478d076.2K linessynced on Aug 14, 2026

Code health

5.9out of 10Fair

Hotspots average 3.7, the place fixes pay off most.

Explore this codebase

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
    worth a check
  • Flatten 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
    worth a check
  • Start 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
    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

5 areas