Code health of itsnotrexed/leonida
Repowise scores itsnotrexed/leonida at 5.9 out of 10 for code health, which reads as fair, alongside maintainability 7.1 and static performance 9.9 on the same scale. There are 8,657 open findings across the three pillars, and the lowest-scoring file is rdna2spirv.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
1,078 critical, 1,658 high, 4,530 medium, 1,391 low.
Hotspots
31 files are flagged as hotspots. The top 5:
- runtime/shims/d3d12_vulkan_device.cpp: 340 commits in the last 90 days from 104 contributors with 45 recent bug fixes
- runtime/src/vulkan_replay.h: 125 commits in the last 90 days from 54 contributors with 18 recent bug fixes
- make_game.py: 158 commits in the last 90 days from 87 contributors with 11 recent bug fixes
- runtime/src/vulkan_backend.h: 91 commits in the last 90 days from 40 contributors with 10 recent bug fixes
- runtime/src/xdxr_build.inc: 14 commits in the last 90 days from 6 contributors
Lowest-scoring files
- tools/rdna2spirv.py: 1.0 out of 10 with 70 bug fixes in the last 180 days
- runtime/shims/d3d12_vulkan_device.cpp: 1.0 out of 10 with 45 bug fixes in the last 180 days
- tools/ttpf_mips.py: 1.0 out of 10 with 3 bug fixes in the last 180 days
- tools/dds_png.py: 1.0 out of 10 with 5 bug fixes in the last 180 days
- runtime/src/vulkan_replay.h: 1.0 out of 10 with 18 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 1,681 scored files, 12.0% had a bug fix in that window.
Dead code and refactoring
Repowise found 8 unused exports. 448 refactoring targets across 448 files would raise the score.
More on leonida: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language