belobug / victory-belobug-amd
Code health
Hotspots average 2.9, the place fixes pay off most.
Explore this codebase
- Code health map52hotspots across 234 files
- Ownership98sole-owned files: one author, no second reader
- Architecture3modules, 12 entry points
- Decisions16recorded, of which 0 in force and 16 background
- Refactoring93open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4 · 1 setup step
4 things worth doing in the week to Nov 26, the last indexed commit · 1 setup step.
Worth planning
Start breaking up unspill (CCN 84, 282 lines): first lift lines 609-619
crates/victory-shader/src/ir.rs:609
unspill 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 18 files, changed 13 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 84, 282 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkStart breaking up image (CCN 128, 722 lines): first lift lines 11049-11059
crates/victory-shader/src/emit/lower.rs:11049
image nests deeply; easier to read and change once split; its file is imported by 8 files, changed 60 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 128, 722 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 11 findings in 6 files
7 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
crates/victory-gpu/src/host.rs(6 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 11
- files
- 6
- commits
- 7
Medium effortBreak up write (CCN 51, 316 lines)
crates/victory-shader/src/emit/bitcode.rs:857
write 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 7 files, changed 8 times in 90 days.
- gain
- up to +0.6 health on this file(inferred)
- finding
- Complex method
- size
- CCN 51, 316 lines, nests 4 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
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health1,301 open findingsCriticalChange entropy · crates/victory-shader/src/emit/lower.rs240 findings · 15.0 deducted
- Refactoring93 open opportunitiesLowchange+0.4 health, S effort · crates/victory-gpu/src/replay/states.rs
- Decisions0 drifting from the codeMediumcrates/victory-gpu/src/host.rsHigh-churn file with no governing decision
- Ownership98 sole-owned filesMediumcrates/victory-gpu/src/replay/play.rsOne author, no second reader