affaan-m / ecc
Code health
Hotspots average 3.6, the place fixes pay off most.
Explore this codebase
- Code health map210hotspots across 4,510 files
- Ownership804sole-owned files: one author, no second reader
- Architecture21modules, 37 entry points
- Decisions50recorded, of which 0 accepted and 50 awaiting review
- Refactoring283open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 8
9 things worth doing in the week to Oct 30, the last indexed commit, 1 of them now.
Worth planning
Start breaking up main (CCN 174, 1,464 lines): first lift lines 1911-1930
ecc2/src/main.rs:1911
main has many paths; easier to read and change once split, which also removes a duplicate; changed 6 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Complex method
- size
- CCN 174, 1,464 lines
- severity
- high
Medium effort, worth a checkStart breaking up selected_session_metrics_text (CCN 54, 416 lines)
ecc2/src/tui/dashboard.rs:6298
selected_session_metrics_text nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 2 files, changed 3 times in 90 days.
- gain
- up to +0.5 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 54, 416 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 7 findings in 3 files
6 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
ecc2/src/main.rs(2 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 7
- files
- 3
- commits
- 6
Medium effortReview why fixes keep landing in
skills/skill-comply/scripts/runner.py: tests reach itChanged 12 times in 90 days, and 11 of those commits were bug fixes.
- commits in 90 days
- 12
- bug-fix commits
- 11
- line coverage
- Unknown, no report
- tests that reach it
- 3 test files, call graph(inferred)
Medium effort, worth a checkNo test reaches
scripts/hooks/gateguard-fact-force.jsin the code graph: confirm it is tested before its next changeChanged 57 times in 90 days, and 32 of those commits were bug fixes.
- commits in 90 days
- 57
- bug-fix commits
- 32
- line coverage
- Unknown, no report
- tests that reach it
- None in the code 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 health4,363 open findingsCriticalChange entropy · skills/continuous-learning-v2/scripts/instinct-cli.py62 findings · 13.8 deducted
- Refactoring283 open opportunitiesMediummain+2.0 health, M effort · skills/taste-application/scripts/pipeline.py
- Doc drift227Mediumdocs/ja-JP/skills/videodb/reference/api-reference.mdLink points at #caption-overlays, which editor.md no longer declares.
- Decisions50 to reviewMediumecc2/src/tui/dashboard.rs50 awaiting review, 0 drifting from the code
- Ownership804 sole-owned filesMediumtests/scripts/validate-carrier-closure.test.jsOne author, no second reader