odal-node / dpp-engine
Code health
Hotspots average 7.1, the place fixes pay off most.
Explore this codebase
- Code health map119hotspots across 1,006 files
- Ownership381sole-owned files: one author, no second reader
- Architecture5modules, 29 entry points
- Decisions98recorded, of which 0 accepted and 98 awaiting review
- Refactoring30open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 7
11 things worth doing in the week to Nov 4, the last indexed commit, 4 of them now.
Worth planning
Start breaking up render_seal_status (CCN 36, 243 lines): first lift lines 852-935
cli/src/stateless/render.rs:852
render_seal_status has many paths; easier to read and change once split; function changed in 3 commits; its file is imported by 25 files, changed 12 times in 90 days.
- gain
- up to +0.3 health on this file(inferred)
- finding
- Complex method
- size
- CCN 36, 243 lines
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 7 findings in 5 files
4 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
crates/dpp-integrator/src/handlers/import.rs(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 7
- files
- 5
- commits
- 4
Medium effortBreak up import_file (CCN 25, 256 lines)
crates/dpp-integrator/src/handlers/import.rs:291
import_file has many paths; easier to read and change once split; function changed in 11 commits; its file is imported by 8 files, changed 15 times in 90 days.
- gain
- up to +0.2 health on this file(inferred)
- finding
- Complex method
- size
- CCN 25, 256 lines
- severity
- high
Medium effort, worth a checkNo test reaches
crates/dpp-node/src/main.rsin the code graph: confirm it is tested before its next changeChanged 31 times in 90 days, and 6 of those commits were bug fixes.
- commits in 90 days
- 31
- bug-fix commits
- 6
- line coverage
- Unknown, no report
- tests that reach it
- None in the code graph(inferred)
Medium effort, worth a checkReview why fixes keep landing in
crates/dpp-dal/src/pg/repo_passport.rs: tests reach itChanged 12 times in 90 days, and 5 of those commits were bug fixes.
- commits in 90 days
- 12
- bug-fix commits
- 5
- line coverage
- Unknown, no report
- tests that reach it
- 17 test files, call graph(inferred)
Medium 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 health1,484 open findingsCriticalPrior defects · cli/src/stateless/render.rs18 findings · 7.7 deducted
- Refactoring30 open opportunitiesLowspawn_seal_audit+0.9 health, M effort · crates/dpp-node/src/boot/tasks.rs
- Doc drift6Mediumdocs/governance/RELEASE.mdDocument names docs/governance/releases/vX.Y.Z.md, which no longer exists.
- Decisions98 to reviewMediumcrates/dpp-node/tests/smoke.rs98 awaiting review, 0 drifting from the code
- Ownership381 sole-owned filesMediumcrates/dpp-node/tests/openapi_contract.rsOne author, no second reader