vanloctech / youwee
Code health
Hotspots average 4.0, the place fixes pay off most.
Explore this codebase
- Code health map74hotspots across 506 files
- Ownership334sole-owned files: one author, no second reader
- Architecture6modules, 20 entry points
- Decisions37recorded, of which 0 in force and 37 background
- Refactoring54open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
3 things worth doing in the week to Jul 29, the last indexed commit.
Worth planning
Start breaking up download_video (CCN 131, 974 lines): first lift lines 1191-1217
src-tauri/src/commands/download.rs:1191
download_video nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 43 commits; its file is imported by 3 files, changed 16 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 131, 974 lines, nests 12 deep
- severity
- high
Medium effort, worth a checkStart breaking up get_video_transcript (CCN 46, 405 lines): first lift lines 344-358
src-tauri/src/commands/video.rs:344
get_video_transcript nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 19 commits; its file is imported by 5 files, changed 7 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 46, 405 lines, nests 8 deep
- severity
- high
Medium effort, worth a checkStart breaking up execute_plugin (CCN 24, 392 lines): first lift lines 1405-1416
src-tauri/src/services/plugin.rs:1405
execute_plugin has many paths; easier to read and change once split, which also removes a duplicate; function changed in 14 commits; its file is imported by 9 files, changed 26 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 24, 392 lines, nests 3 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
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health1,285 open findingsCriticalUntested hotspot · src-tauri/src/lib.rs21 findings · 10.0 deducted
- Refactoring54 open opportunitiesMedium<anonymous@1>+1.5 health, M effort · extensions/youwee-webext/src/popup.js
- Decisions0 drifting from the codeMediumsrc/pages/SettingsPage.tsxHigh-churn file with no governing decision
- Ownership334 sole-owned filesMediumsrc/lib/types.tsOne author, no second reader
- Dead code30LowDialogCloseUnreachable variable (0 lines)