repowise-dev / repowise
Code health
Hotspots average 6.9, the place fixes pay off most.
Explore this codebase
- Code health map1,356hotspots across 7,102 files
- Ownership5,193sole-owned files: one author, no second reader
- Architecture8modules, 31 entry points
- Decisions276recorded, of which 41 accepted and 235 awaiting review
- Refactoring624open opportunities, one per file
- Tests93.2%line coverage from the latest report
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
9 things worth doing in the week to Nov 6, the last indexed commit.
Worth planning
Break up GraphFlow (CCN 261, 1,097 lines)
packages/ui/src/graph/graph-flow.tsx:791
GraphFlow has many paths; easier to read and change once split; function changed in 21 commits; its file is imported by 5 files, changed 9 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 261, 1,097 lines
- severity
- high
Medium effort, worth a checkStart breaking up BiomarkerDetails (CCN 143, 420 lines): first lift lines 151-168
packages/ui/src/health/biomarker-details.tsx:151
BiomarkerDetails has many paths; easier to read and change once split, which also removes a duplicate; function changed in 10 commits; its file is imported by 9 files, changed 7 times in 90 days.
- gain
- up to +1.3 health on this file(inferred)
- finding
- Complex method
- size
- CCN 143, 420 lines
- severity
- high
Medium effort, worth a checkReview why fixes keep landing in
packages/core/src/repowise/core/ingestion/call_resolver.py: it is testedChanged 112 times in 90 days, and 63 of those commits were bug fixes.
- commits in 90 days
- 112
- bug-fix commits
- 63
- line coverage
- 96%
Large effortReview why fixes keep landing in
packages/core/src/repowise/core/analysis/health/engine.py: it is testedChanged 104 times in 90 days, and 28 of those commits were bug fixes.
- commits in 90 days
- 104
- bug-fix commits
- 28
- line coverage
- 92%
Large effortTidy the code shape this week's commits left: 32 findings in 24 files
21 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
packages/ui/src/chat/chat-interface.tsx(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 32
- files
- 24
- commits
- 21
Large effort
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health12,440 open findingsCriticalChange entropy · packages/core/src/repowise/core/ingestion/graph_warmups.py41 findings · 11.9 deducted
- Refactoring624 open opportunitiesMediumdead_code_command+2.4 health, M effort · packages/cli/src/repowise/cli/commands/dead_code_cmd.py
- Doc drift10Mediumpackages/ui/COMPONENT_CONTRACTS.mdDocument names `useFileElkLayout`, which was defined in code when this line was written and is defined nowhere now.
- Decisions240 to reviewHighClassify build files once by type and read that everywhere235 awaiting review, 5 drifting from the code
- Ownership5,193 sole-owned filesMediumpackages/types/src/generated/http.tsOne author, no second reader