repowisekrisgfx9/wireless-device-battery-monitor

krisgfx9 / wireless-device-battery-monitor

cppmain132a40d15.3K linessynced on Nov 18, 2026

Code health

5.9out of 10Fair

Hotspots average 3.2, the place fixes pay off most.

Explore this codebase

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
    worth a check
  • Tidy 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
  • Start 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
    worth a check
  • No test reaches src/widget.cpp in the code graph: confirm it is tested before its next change

    Changed 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)
    worth a check
  • Start 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
    worth a check

Everything we found

4 areas