repowisehexsleeves/codexbar

HexSleeves / CodexBar

swiftmain2cac844694.5K linessynced 1mo ago

Code health

7.5out of 10Good

Hotspots average 6.3, the place fixes pay off most.

Explore this codebase

Do next · 3

4 things worth doing in the week to Sep 2, the last indexed commit, 2 of them now.

Now

  • High

    Start breaking up fetchUsage (CCN 49, 269 lines): first lift lines 220-237

    Sources/CodexBarCore/Resources/Plugins/openai.js:220

    fetchUsage has a co change scatter finding; changed 4 times in 90 days.

    gain
    +0.8 health on this file(inferred)
    health recoverable
    +0.8(inferred)
    size
    CCN 49, 269 lines, nests 4 deep
    steps
    1 (1 mechanical)

Worth planning

  • Start breaking up fetchUsage (CCN 100, 349 lines): first lift lines 316-329

    Sources/CodexBarCore/Resources/Plugins/openrouter.js:316

    fetchUsage changes often and has low measured test coverage; function changed in 10 commits; changed 10 times in 90 days.

    gain
    +0.8 health on this file(inferred)
    health recoverable
    +0.8(inferred)
    size
    CCN 100, 349 lines, nests 6 deep
    steps
    1 (0 mechanical)
    worth a check
  • Start breaking up fetchUsage (CCN 36, 318 lines): first lift lines 345-353

    Sources/CodexBarCore/Resources/Plugins/synthetic.js:345

    fetchUsage has a co change scatter finding, which also removes a duplicate; changed 3 times in 90 days.

    gain
    +0.8 health on this file(inferred)
    health recoverable
    +0.8(inferred)
    size
    CCN 36, 318 lines
    steps
    1 (0 mechanical)
    worth a check

Improve what Repowise can see

  • Add a test coverage report

    Without one, Repowise cannot tell tested code from untested code, so every test-related action says “unknown”.

    line coverage
    Unknown, no report

Everything we found

5 areas