morluto / rea
Code health
Hotspots average 7.1, the place fixes pay off most.
Explore this codebase
- Code health map729hotspots across 7,098 files
- Ownership2,423sole-owned files: one author, no second reader
- Architecture9modules, 6 entry points
- Decisions131recorded, of which 0 accepted and 131 awaiting review
- Refactoring955open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 8
8 things worth doing in the week to Nov 8, the last indexed commit.
Worth planning
Break up createGhidraProviderClient (CCN 147, 805 lines)
src/ghidra/GhidraProviderClient.ts:1056
createGhidraProviderClient has many paths; easier to read and change once split; function changed in 11 commits; its file is imported by 7 files, changed 20 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 147, 805 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkStart breaking up collectDefinitionsSteps (CCN 113, 349 lines): first lift lines 1449-1460
src/domain/javascript/javascriptSemanticAnalysis.ts:1449
collectDefinitionsSteps 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 100 files, changed 6 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 113, 349 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 31 findings in 21 files
14 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
bridge/ghidra/ReaGhidraBridge.java(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 31
- files
- 21
- commits
- 14
Large effortNo test reaches
bridge/ghidra/ReaGhidraBridge.javain the code graph: confirm it is tested before its next changeChanged 17 times in 90 days, and 11 of those commits were bug fixes.
- commits in 90 days
- 17
- bug-fix commits
- 11
- line coverage
- Unknown, no report
- tests that reach it
- None in the code graph(inferred)
Large effort, worth a checkReview why fixes keep landing in
src/kuna/KunaSessionClient.ts: tests reach itChanged 17 times in 90 days, and 10 of those commits were bug fixes.
- commits in 90 days
- 17
- bug-fix commits
- 10
- line coverage
- Unknown, no report
- tests that reach it
- 2 test files, call graph(inferred)
Large effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health11,069 open findingsCriticalChange entropy · src/gdb/GdbSessionManager.ts59 findings · 13.1 deducted
- Refactoring955 open opportunitiesMedium#append+1.2 health, M effort · src/domain/analysisView/WebNetworkApiSurfaceAccumulator.ts
- Doc drift17Mediumdocs/development/releasing.mdDocument names docs/releases/VERSION.contributions.json, which no longer exists.
- Decisions131 to reviewMediumsrc/ghidra/GhidraProvider.behavior.test.ts131 awaiting review, 0 drifting from the code
- Ownership2,423 sole-owned filesMediumsrc/kuna/KunaSessionClient.tsOne author, no second reader