marvisak / victory
Code health
Hotspots average 3.6, the place fixes pay off most.
Explore this codebase
- Code health map41hotspots across 180 files
- Ownership70sole-owned files: one author, no second reader
- Architecture3modules, 12 entry points
- Decisions6recorded, of which 0 in force and 6 background
- Refactoring60open 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 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
Medium effort, worth a checkBreak 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
Medium effort, worth a checkTidy 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
Medium effortStart 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
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 health775 open findingsCriticalChange entropy · crates/victory-shader/src/emit/lower.rs218 findings · 14.2 deducted
- Refactoring60 open opportunitiesLowpsv+0.6 health, M effort · crates/victory-shader/src/emit/container.rs
- Decisions0 drifting from the codeMediumcrates/victory-shader/src/emit/lower.rsHigh-churn file with no governing decision
- Ownership70 sole-owned filesMediumcrates/victory-gpu/src/shadow.rsOne author, no second reader