murtaza-nasir / speakr
Code health
Hotspots average 4.5, the place fixes pay off most.
Explore this codebase
- Code health map41hotspots across 415 files
- Ownership266sole-owned files: one author, no second reader
- Architecture7modules, 1 entry points
- Decisions18recorded, of which 0 in force and 18 background
- Refactoring82open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
10 things worth doing in the week to Aug 7, the last indexed commit, 7 of them now.
Worth planning
Start breaking up useAudio (CCN 319, 1,254 lines): first lift lines 83-124
static/js/modules/composables/audio.js:83
useAudio nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 22 commits; its file is imported by 3 files, changed 21 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 319, 1,254 lines, nests 8 deep
- severity
- high
Medium effort, worth a checkStart breaking up initialize_database (CCN 180, 699 lines): first lift lines 79-865
src/init_db.py:79
initialize_database nests deeply; easier to read and change once split, which also removes a duplicate; function changed in 22 commits; its file is imported by 5 files, changed 18 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 180, 699 lines, nests 8 deep
- severity
- high
Medium effort, worth a checkStart breaking up transcribe_with_connector (CCN 120, 414 lines)
src/tasks/processing.py:2299
transcribe_with_connector nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 13 files, changed 22 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 120, 414 lines, nests 8 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,445 open findingsCriticalChange entropy · src/tasks/processing.py95 findings · 10.0 deducted
- Refactoring82 open opportunitiesMedium<anonymous>+1.5 health, S effort · static/js/account-webhooks.js
- Decisions0 drifting from the codeMediumstatic/js/app.modular.jsHigh-churn file with no governing decision
- Ownership266 sole-owned filesMediumstatic/js/app.modular.jsOne author, no second reader
- Dead code17Lowget_speaker_voice_profile_summaryUnreachable function (23 lines)