repowiseaannoo/hcom

aannoo / hcom

rustmainde33e31152.5K linessynced 1d ago

Code health

5.1out of 10Needs work

Hotspots average 3.6, the place fixes pay off most.

Explore this codebase

Do next · 3

4 things worth doing this week, 1 of them now.

Worth planning

  • Break up run (CCN 114, 516 lines)

    src/pty/mod.rs:1191

    run nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 23 commits; its file is imported by 4 files, changed 16 times in 90 days.

    gain
    up to +1.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 114, 516 lines, nests 8 deep
    severity
    high
    worth a check
  • Break up run (CCN 54, 218 lines)

    src/relay/client.rs:423

    run nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 9 commits; its file is imported by 5 files, changed 6 times in 90 days.

    gain
    up to +1.2 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 54, 218 lines, nests 6 deep
    severity
    high
    worth a check
  • Start breaking up run_delivery_loop (CCN 125, 889 lines): first lift lines 1759-1769

    src/delivery.rs:1759

    run_delivery_loop nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 6 files, changed 34 times in 90 days.

    gain
    up to +2.5 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 125, 889 lines, nests 10 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

4 areas