repowisemarvisak/victory

marvisak / victory

rustmain63bcca4103.6K linessynced on Nov 26, 2026

Code health

5.3out of 10Needs work

Hotspots average 3.6, the place fixes pay off most.

Explore this codebase

Do next · 4 · 1 setup step

4 things worth doing in the week to Nov 25, the last indexed commit · 1 setup step.

Worth planning

  • Start breaking up dispatch (CCN 42, 608 lines): first lift lines 2000-2017

    crates/victory-shader/src/emit/host.rs:2000

    dispatch has many paths; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; its file is imported by 13 files, changed 16 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 42, 608 lines, nests 4 deep
    severity
    high
    worth a check
  • Break up image_op (CCN 108, 627 lines)

    crates/victory-shader/src/emit/lower.rs:8817

    image_op nests deeply; easier to read and change once split; its file is imported by 11 files, changed 85 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 108, 627 lines, nests 5 deep
    severity
    high
    worth a check
  • Tidy the code shape this week's commits left: 13 findings in 8 files

    6 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with crates/victory-shader/src/emit/lower.rs (3 findings): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    13
    files
    8
    commits
    6
  • Start breaking up write (CCN 38, 271 lines): first lift lines 729-749

    crates/victory-shader/src/emit/bitcode.rs:729

    write has many paths; easier to read and change once split, which also removes a duplicate; function changed in 3 commits; its file is imported by 6 files, changed 9 times in 90 days.

    gain
    up to +0.2 health on this file(inferred)
    finding
    Complex method
    size
    CCN 38, 271 lines, nests 4 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