coleleavitt / niri-activity-rs
Code health
Hotspots average 3.7, the place fixes pay off most.
Explore this codebase
- Code health map14hotspots across 79 files
- Ownership58sole-owned files: one author, no second reader
- Architecture4modules, 4 entry points
- Decisions38recorded, of which 0 in force and 38 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 · 1 setup step
3 things worth doing in the week to Nov 28, the last indexed commit · 1 setup step.
Worth planning
Tidy the code shape this week's commits left: 6 findings in 4 files
2 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/report/display.rs(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 6
- files
- 4
- commits
- 2
Medium effortSimplify
run_migrationsinsrc/db.rs: tests reach it, and fixes keep landingChanged 11 times in 90 days; 8 of those were bug fixes that changed its code.
- commits in 90 days
- 11
- bug-fix commits in 90 days
- 8
- line coverage
- Unknown, no report
- tests that reach it
- 1 test file, call graph(inferred)
Large effort, worth a checkReview why fixes keep landing in
src/config.rs: tests reach itChanged 10 times in 90 days; 7 of those were bug fixes that changed its code.
- commits in 90 days
- 10
- bug-fix commits in 90 days
- 7
- line coverage
- Unknown, no report
- tests that reach it
- 1 test file, call graph(inferred)
Large 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 health224 open findingsCriticalPrior defects · src/report/query.rs40 findings · 8.1 deducted
- Refactoring15 open opportunitiesLowrender_apps+0.5 health, M effort · src/tui.rs
- Doc drift7Medium.sisyphus/plans/input-architecture-refactor.mdDocument names `last_meaningful_input_ms`, which was defined in code when this line was written and is defined nowhere now.
- Decisions0 drifting from the codeMediumsrc/watcher.rsHigh-churn file with no governing decision
- Ownership58 sole-owned filesMediumsrc/watcher.rsOne author, no second reader