slaker19 / webkvm
Code health
Hotspots average 5.3, the place fixes pay off most.
Explore this codebase
- Code health map102hotspots across 1,132 files
- Ownership1,076sole-owned files: one author, no second reader
- Architecture6modules, 5 entry points
- Decisions44recorded, of which 0 in force and 44 background
- Refactoring220open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 4 · 1 setup step
4 things worth doing in the week to Nov 26, the last indexed commit · 1 setup step.
Worth planning
Tidy the code shape this week's commits left: 10 findings in 7 files
5 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
backend/internal/api/appliances.go(3 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 10
- files
- 7
- commits
- 5
Medium effortSimplify
executeInitHostDiskinbackend/internal/api/host_disks.go: tests reach it, and fixes keep landingChanged 18 times in 90 days; 6 of those were bug fixes that changed its code.
- commits in 90 days
- 18
- bug-fix commits in 90 days
- 6
- line coverage
- Unknown, no report
- tests that reach it
- 141 test files, inline(inferred)
Large effort, worth a checkSimplify
CreateVMinbackend/internal/api/vms.go: tests reach it, and fixes keep landingChanged 14 times in 90 days; 3 of those were bug fixes that changed its code.
- commits in 90 days
- 14
- bug-fix commits in 90 days
- 3
- line coverage
- Unknown, no report
- tests that reach it
- 141 test files, inline(inferred)
Large effort, worth a checkSimplify
DeployApplianceinbackend/internal/api/appliances.go: tests reach it, and fixes keep landingChanged 13 times in 90 days; 3 of those were bug fixes that changed its code.
- commits in 90 days
- 13
- bug-fix commits in 90 days
- 3
- line coverage
- Unknown, no report
- tests that reach it
- 141 test files, inline(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
6 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health2,337 open findingsCriticalChange entropy · backend/internal/api/host_disks.go64 findings · 11.8 deducted
- Refactoring220 open opportunitiesMediumRenderPrometheus+1.2 health, M effort · backend/internal/metrics/prometheus.go
- Doc drift2MediumAGENTS.mdDocument shows `make deb/rpm`, but no such target is declared.
- Decisions0 drifting from the codeMediumbackend/internal/libvirt/domain.goHigh-churn file with no governing decision
- Ownership1,076 sole-owned filesMediumfrontend/src/lib/i18n.svelte.jsOne author, no second reader
- Dead code1LowErrorResponseUnreachable struct (3 lines)