dietrichmax / colota
Code health
Hotspots average 4.6, the place fixes pay off most.
Explore this codebase
- Code health map25hotspots across 377 files
- Ownership302sole-owned files: one author, no second reader
- Architecture3modules, 3 entry points
- Decisions31recorded, of which 0 in force and 31 background
- Refactoring15open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 3
6 things worth doing in the week to Aug 18, the last indexed commit, 3 of them now.
Worth planning
Start breaking up validateConfig (CCN 129, 247 lines): first lift lines 84-265
apps/mobile/src/utils/setupConfig.ts:84
validateConfig has many paths; easier to read and change once split, which also removes a duplicate; its file is imported by 2 files, changed 1 time in 90 days.
- gain
- up to +3.3 health on this file(inferred)
- finding
- Complex method
- size
- CCN 129, 247 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkStart breaking up useMemo callback (CCN 63, 95 lines): first lift lines 113-184
apps/docs/src/components/DeepLinkGenerator.tsx:113
useMemo callback has many paths; easier to read and change once split, which also removes a duplicate; function changed in 5 commits; changed 1 time in 90 days.
- gain
- up to +2.6 health on this file(inferred)
- finding
- Complex method
- size
- CCN 63, 95 lines, nests 3 deep
- severity
- high
Medium effort, worth a checkAddress the finding in useLocationTracking
apps/mobile/src/hooks/useLocationTracking.ts:32
useLocationTracking has a bumpy road finding; function changed in 11 commits; its file is imported by 2 files, changed 2 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Bumpy road
- size
- CCN 32, 241 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 health420 open findingsCriticalUntested hotspot · apps/mobile/android/app/src/main/java/com/colota/service/LocationForegroundService.kt31 findings · 10.0 deducted
- Refactoring15 open opportunitiesMediumuseCallback callback+1.5 health, S effort · apps/mobile/src/screens/AutoExportScreen.tsx
- Decisions0 drifting from the codeMediumapps/mobile/android/app/src/test/java/com/Colota/service/LocationForegroundServiceTest.ktHigh-churn file with no governing decision
- Ownership302 sole-owned filesMediumapps/mobile/android/app/src/main/java/com/colota/service/LocationForegroundService.ktOne author, no second reader
- Dead code17LowTrackingPresetConfigUnreachable interface (8 lines)