l0ng-ai / openidea
Code health
Hotspots average 5.9, the place fixes pay off most.
Explore this codebase
- Code health map207hotspots across 3,417 files
- Ownership1,266sole-owned files: one author, no second reader
- Architecture12modules, 74 entry points
- Decisions94recorded, of which 0 in force and 94 background
- Refactoring303open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 9
9 things worth doing in the week to Nov 11, the last indexed commit.
Worth planning
Break up DiffEditor (CCN 274, 1,019 lines)
src/features/vcs/DiffEditor.tsx:620
DiffEditor has many paths; easier to read and change once split, which also removes a duplicate; function changed in 7 commits; its file is imported by 12 files, changed 6 times in 90 days.
- gain
- up to +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 274, 1,019 lines, nests 4 deep
- severity
- high
Medium effort, worth a checkBreak up Tree (CCN 191, 502 lines)
src/ui/Tree.tsx:281
Tree has many paths; easier to read and change once split; function changed in 5 commits; its file is imported by 6 files, changed 3 times in 90 days.
- gain
- up to +0.8 health on this file(inferred)
- finding
- Complex method
- size
- CCN 191, 502 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 81 findings in 51 files
42 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/features/project-tree/ProjectView.tsx(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 81
- files
- 51
- commits
- 42
Large effortReview why fixes keep landing in
crates/ide-agent/src/lib.rs: tests reach itChanged 23 times in 90 days, and 12 of those commits were bug fixes.
- commits in 90 days
- 23
- bug-fix commits
- 12
- line coverage
- Unknown, no report
- tests that reach it
- 1 test file, call graph(inferred)
Large effort, worth a checkSimplify
Streaminsrc/features/agents/SessionEditor.tsx: tests reach it, and fixes keep landingChanged 19 times in 90 days, and 11 of those commits were bug fixes.
- commits in 90 days
- 19
- bug-fix commits
- 11
- line coverage
- Unknown, no report
- tests that reach it
- 5 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 health7,595 open findingsCriticalDeep nesting · crates/ide-vcs/src/history.rs39 findings · 10.3 deducted
- Refactoring303 open opportunitiesMediumprefsExtension+1.1 health, M effort · src/editor/core/cm/prefs.ts
- Doc drift4Mediumjava/lombok/README.mdDocument names src/core/lombok/eclipse/handlers/HandleBuilder.java, which no longer exists.
- Decisions0 drifting from the codeMediumcrates/ide-host/tests/plugins.rsHigh-churn file with no governing decision
- Ownership1,266 sole-owned filesMediumcrates/ide-host/src/ops/run.rsOne author, no second reader