itsnotrexed / leonida
Code health
Hotspots average 4.4, the place fixes pay off most.
Explore this codebase
- Code health map8hotspots across 389 files
- Ownership153sole-owned files: one author, no second reader
- Architecture7modules, 2 entry points
- Decisions23recorded, of which 0 in force and 23 background
- Refactoring86open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 5
5 things worth doing in the week to Nov 22, the last indexed commit.
Worth planning
Break up prepare (CCN 75, 113 lines)
runtime/src/vulkan_replay.h:994
prepare has many paths; easier to read and change once split; function changed in 5 commits; its file is imported by 7 files, changed 11 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 75, 113 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkBreak up parse_rts0_payload (CCN 74, 156 lines)
runtime/src/root_signature.cpp:358
parse_rts0_payload has many paths; easier to read and change once split; function changed in 5 commits; its file is imported by 3 files, changed 6 times in 90 days.
- gain
- up to +0.7 health on this file(inferred)
- finding
- Complex method
- size
- CCN 74, 156 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 24 findings in 13 files
11 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
runtime/src/vulkan_replay.h(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 24
- files
- 13
- commits
- 11
Large effortNo test reaches
scripts/run_gpu_tests.pyin the code graph: confirm it is tested before its next changeChanged 53 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 53
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- None in the code graph(inferred)
Large effort, worth a checkBreak up allocation (CCN 51, 59 lines)
runtime/shims/d3d12_vulkan_device.cpp:1448
allocation has many paths; easier to read and change once split; its file is imported by 10 files, changed 14 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 51, 59 lines
- severity
- high
Medium effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health1,321 open findingsCriticalChange entropy · tools/rdna2spirv.py102 findings · 13.0 deducted
- Refactoring86 open opportunitiesLowbuild_graph+0.8 health, M effort · tools/gamedata_graph.py
- Doc drift19Mediumdocs/d3d12_xs_surface.mdDocument names tools/gen_def.py, which no longer exists.
- Decisions0 drifting from the codeMediumtools/rdna2spirv.pyHigh-churn file with no governing decision
- Ownership153 sole-owned filesMediumruntime/test/bvh_builder_test.cppOne author, no second reader