patrickvorgers / open-energy-planner
Code health
Hotspots average 6.0, the place fixes pay off most.
Explore this codebase
- Code health map105hotspots across 1,132 files
- Ownership980sole-owned files: one author, no second reader
- Architecture7modules, 5 entry points
- Decisions1recorded, of which 0 in force and 1 background
- Refactoring208open opportunities, one per file
- Tests85.3%line coverage from the latest report
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 6
7 things worth doing in the week to Nov 28, the last indexed commit, 1 of them now.
Worth planning
Review why fixes keep landing in
src/open_energy_planner/app.py: it is testedChanged 72 times in 90 days; 25 of those were bug fixes that changed its code.
- commits in 90 days
- 72
- bug-fix commits in 90 days
- 25
- line coverage
- 92%
Large effortReview why fixes keep landing in
src/open_energy_planner/solar/runtime.py: it is testedChanged 42 times in 90 days; 15 of those were bug fixes that changed its code.
- commits in 90 days
- 42
- bug-fix commits in 90 days
- 15
- line coverage
- 98%
Large effortTidy the code shape this week's commits left: 55 findings in 36 files
38 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
custom_components/open_energy_planner/coordinator.py(8 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 55
- files
- 36
- commits
- 38
Large effortNo test reaches
src/open_energy_planner/web/public/overview.jsin the code graph: confirm it is tested before its next changeChanged 95 times in 90 days; 52 of those were bug fixes that changed its code.
- commits in 90 days
- 95
- bug-fix commits in 90 days
- 52
- line coverage
- Unknown, not in the report
- tests that reach it
- None in the code graph(inferred)
Large effort, worth a checkReview why fixes keep landing in
custom_components/open_energy_planner/coordinator.py: tests reach itChanged 41 times in 90 days; 19 of those were bug fixes that changed its code.
- commits in 90 days
- 41
- bug-fix commits in 90 days
- 19
- line coverage
- Unknown, not in the report
- tests that reach it
- 1 test file, call 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,279 open findingsCriticalChange entropy · src/open_energy_planner/web/public/overview.js102 findings · 10.7 deducted
- Refactoring208 open opportunitiesMediumrefine+1.9 health, M effort · src/open_energy_planner/appliances/cycles/evidence.py
- Doc drift1Mediumdocs/development/DATABASE-SCHEMA.mdDocument names `active_advice()`, which was defined in code when this line was written and is defined nowhere now.
- Decisions0 drifting from the codeMediumsrc/open_energy_planner/web/public/overview.jsHigh-churn file with no governing decision
- Ownership980 sole-owned filesMediumsrc/open_energy_planner/web/public/overview.jsOne author, no second reader