krisgfx9 / wireless-device-battery-monitor
Code health
Hotspots average 3.2, the place fixes pay off most.
Explore this codebase
- Code health map20hotspots across 129 files
- Ownership71sole-owned files: one author, no second reader
- Architecture4modules, 1 entry points
- Decisions9recorded, of which 0 in force and 9 background
- Refactoring48open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 5
5 things worth doing in the week to Nov 18, the last indexed commit.
Worth planning
Start breaking up PollKysona (CCN 32, 56 lines): first lift lines 97-110
src/drivers/kysona.cpp:97
PollKysona has many paths; easier to read and change once split, which also removes a duplicate; function changed in 8 commits; changed 12 times in 90 days.
- gain
- up to +0.9 health on this file(inferred)
- finding
- Complex method
- size
- CCN 32, 56 lines, nests 6 deep
- severity
- high
Medium effort, worth a checkTidy the code shape this week's commits left: 67 findings in 38 files
46 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
src/drivers/misc_mice.cpp(7 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 67
- files
- 38
- commits
- 46
Large effortStart breaking up PollXenta (CCN 64, 91 lines): first lift lines 200-239
src/drivers/misc_mice.cpp:200
PollXenta nests deeply; easier to read and change once split; function changed in 7 commits; changed 16 times in 90 days.
- gain
- up to under +0.1 health on this file(inferred)
- finding
- Nested complexity
- size
- CCN 64, 91 lines, nests 7 deep
- severity
- high
Medium effort, worth a checkNo test reaches
src/widget.cppin the code graph: confirm it is tested before its next changeChanged 15 times in 90 days, and 4 of those commits were bug fixes.
- commits in 90 days
- 15
- bug-fix commits
- 4
- line coverage
- Unknown, no report
- tests that reach it
- None in the code graph(inferred)
Large effort, worth a checkStart breaking up PollBluetooth (CCN 45, 85 lines): first lift lines 255-265
src/drivers/generic.cpp:255
PollBluetooth has many paths; easier to read and change once split; function changed in 6 commits; changed 8 times in 90 days.
- gain
- up to +1.4 health on this file(inferred)
- finding
- Complex method
- size
- CCN 45, 85 lines
- severity
- high
Medium effort, worth a check
Everything we found
4 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health442 open findingsCriticalChange entropy · src/drivers/misc_mice.cpp32 findings · 12.1 deducted
- Refactoring48 open opportunitiesLowPollRongyuan+0.5 health, S effort · src/drivers/rongyuan.cpp
- Decisions0 drifting from the codeMediumsrc/widget.cppHigh-churn file with no governing decision
- Ownership71 sole-owned filesMediumsrc/drivers/wlmouse.cppOne author, no second reader