anomalyco / rune
Code health
Hotspots average 5.5, the place fixes pay off most.
Explore this codebase
- Code health map154hotspots across 2,707 files
- Ownership825sole-owned files: one author, no second reader
- Architecture10modules, 72 entry points
- Decisions72recorded, of which 0 in force and 72 background
- Refactoring258open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 6
6 things worth doing in the week to Nov 16, the last indexed commit.
Worth planning
Start breaking up build (CCN 547, 1,184 lines): first lift lines 9-42
crates/rune/src/runtime/paint/build.rs:9
build has many paths; easier to read and change once split, which also removes a duplicate; function changed in 24 commits; its file is imported by 1 file, changed 23 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 547, 1,184 lines, nests 9 deep
- severity
- high
Medium effort, worth a checkStart breaking up apply (CCN 440, 807 lines): first lift lines 67-81
crates/rune/src/runtime/commit/apply.rs:67
apply has many paths; easier to read and change once split; function changed in 15 commits; its file is imported by 2 files, changed 14 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 440, 807 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 36 findings in 22 files
19 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
crates/rune/src/runtime/frame.rs(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 36
- files
- 22
- commits
- 19
Large effortReview why fixes keep landing in
crates/rune/src/text/coretext_match.rs: tests reach itChanged 7 times in 90 days, and 3 of those commits were bug fixes.
- commits in 90 days
- 7
- bug-fix commits
- 3
- line coverage
- Unknown, no report
- tests that reach it
- 18 test files, call graph(inferred)
Medium effort, worth a checkSimplify
paint_contentincrates/rune/src/runtime/paint/content.rs: tests reach it, and fixes keep landingChanged 28 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 28
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- 278 test files, import 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 health2,208 open findingsCriticalChange entropy · crates/rune/src/runtime/frame.rs29 findings · 11.0 deducted
- Refactoring258 open opportunitiesMediumnode+1.3 health, S effort · crates/rune/src/a11y/dump.rs
- Doc drift15Mediumresearch/01-gpui-zed-warp.mdDocument names crates/gpui/src/key_dispatch.rs, which no longer exists.
- Decisions0 drifting from the codeMediumcrates/rune/src/tooling/interaction/watchdog_tests.rsHigh-churn file with no governing decision
- Ownership825 sole-owned filesMediumcrates/rune/src/text.rsOne author, no second reader