ccch1mneyyy / dsh-go
Code health
Hotspots average 6.5, the place fixes pay off most.
Explore this codebase
- Code health map241hotspots across 3,293 files
- Ownership2,250sole-owned files: one author, no second reader
- Architecture11modules, 29 entry points
- Decisions16recorded, of which 0 accepted and 16 awaiting review
- Refactoring92open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
13 things worth doing in the week to Nov 8, the last indexed commit, 4 of them now.
Worth planning
Break up build (CCN 130, 565 lines)
app/lib/ui/chat/chat_screen.dart:1501
build has many paths; easier to read and change once split, which also removes a duplicate; function changed in 12 commits; its file is imported by 65 files, changed 24 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 130, 565 lines
- severity
- high
Medium effort, worth a checkBreak up scheduleArchive (CCN 43, 145 lines)
app/lib/state/sessions_state.dart:677
scheduleArchive has many paths; easier to read and change once split, which also removes a duplicate; function changed in 2 commits; its file is imported by 169 files, changed 11 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 43, 145 lines
- severity
- high
Medium effort, worth a checkReview why fixes keep landing in
app/android/app/src/main/kotlin/io/github/ccch1mneyyy/dsh_app/phone/background/BackgroundDisplay.kt: tests reach itChanged 15 times in 90 days, and 10 of those commits were bug fixes.
- commits in 90 days
- 15
- bug-fix commits
- 10
- line coverage
- Unknown, no report
- tests that reach it
- 1 test file, call graph(inferred)
Medium effort, worth a checkTidy the code shape this week's commits left: 39 findings in 20 files
16 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
app/lib/ui/chat/chat_screen.dart(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 39
- files
- 20
- commits
- 16
Large effortReview why fixes keep landing in
app/android/app/src/main/kotlin/io/github/ccch1mneyyy/dsh_app/phone/background/BackgroundControl.kt: tests reach itChanged 26 times in 90 days, and 16 of those commits were bug fixes.
- commits in 90 days
- 26
- bug-fix commits
- 16
- line coverage
- Unknown, no report
- tests that reach it
- 9 test files, call graph(inferred)
Large effort, worth a check
Everything we found
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health5,168 open findingsCriticalChange entropy · app/lib/ui/chat/chat_list.dart46 findings · 12.6 deducted
- Refactoring92 open opportunitiesMediummain+1.7 health, M effort · services/share-worker/scripts/stats-report.py
- Doc drift30MediumTHIRD_PARTY_NOTICES.mdDocument names packages/plugin/src/harness-remote-bridge.ts, which no longer exists.
- Decisions16 to reviewMediumapp/lib/l10n/gen/app_localizations.dart16 awaiting review, 0 drifting from the code
- Ownership2,250 sole-owned filesMediumapp/lib/ui/companion/companion_page.dartOne author, no second reader
- Dead code1LowKEY_ALPHABETUnreachable constant (1 lines)