repowisepyalwin/codemesh

pyalwin / codemesh

typescriptmaind1c37b59.5K linessynced 1d ago

Code health

6.9out of 10Fair

This codebase scores 6.9 out of 10 for code health, which we rate fair. It also scores maintainability 7.3 and static performance 9.5 out of 10. The three are scored separately and never blended into one number. Risk is concentrated, as it usually is: 23 of 71 files are git hotspots, and they average 5.4 — which is where the fixes pay off most.

Do next

2 suggested

2 things worth doing in the week to Apr 20, the last indexed commit, 1 of them now.

Now

  • High

    Simplify parseWithQuery in src/indexer/query-parser.ts while the change is fresh

    1 commit in the last 7 days added or worsened 2 critical or high findings here, still open. Fixing now costs less than after the next change.

    serious findings
    2
    critical
    0
    latest commit
    feat(parser): QueryParser infrastructure + Swift .scm queries

Worth planning

  • Start breaking up index (CCN 74, 516 lines): first lift lines 152-176

    src/indexer/indexer.ts:152

    index nests deeply; easier to read and change once split; function changed in 16 commits; its file is imported by 6 files, changed 17 times in 90 days.

    gain
    up to +1.3 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 74, 516 lines, nests 5 deep
    severity
    high
    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
Lines of code
9.5K

Recent activity

All commits

Everything we found

400 open
  • typescript82%
  • python11%
  • shell7%

Explore this codebase