Code health
This codebase scores 5.8 out of 10 for code health, which we rate fair. It also scores maintainability 7.7 and static performance 9.6 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 74 of 506 files are git hotspots, and they average 4.0 — which is where the fixes pay off most.
3 things worth doing in the week to Jul 29, the last indexed commit.
Break up download_video (CCN 131, 974 lines)
src-tauri/src/commands/download.rs:1191
download_video nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 3 files import it, changed 16 times in 90 days.
Break up get_video_transcript (CCN 46, 405 lines)
src-tauri/src/commands/video.rs:344
get_video_transcript nests its control flow deeply, and part of it is duplicated, so splitting it also removes a copy; 5 files import it, changed 7 times in 90 days.
Break up execute_plugin (CCN 24, 392 lines)
src-tauri/src/services/plugin.rs:1405
execute_plugin is long, branchy and widely depended on, and part of it is duplicated, so splitting it also removes a copy; 9 files import it, changed 26 times in 90 days.
Add a test coverage report
Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.
Every detector's open count by area, each with its worst example. An inventory, not a to-do list: the actions above are the part worth doing.