repowiseaffaan-m/ecc

affaan-m / ecc

javascriptmaind2ef268345.9K linessynced on Nov 10, 2026

Code health

5.7out of 10Fair

Hotspots average 3.6, the place fixes pay off most.

Explore this codebase

Do next · 8

9 things worth doing in the week to Oct 30, the last indexed commit, 1 of them now.

Worth planning

  • Start breaking up main (CCN 174, 1,464 lines): first lift lines 1911-1930

    ecc2/src/main.rs:1911

    main has many paths; easier to read and change once split, which also removes a duplicate; changed 6 times in 90 days.

    gain
    up to under +0.1 health on this file(inferred)
    finding
    Complex method
    size
    CCN 174, 1,464 lines
    severity
    high
    worth a check
  • Start breaking up selected_session_metrics_text (CCN 54, 416 lines)

    ecc2/src/tui/dashboard.rs:6298

    selected_session_metrics_text nests deeply; easier to read and change once split, which also removes a duplicate; its file is imported by 2 files, changed 3 times in 90 days.

    gain
    up to +0.5 health on this file(inferred)
    finding
    Nested complexity
    size
    CCN 54, 416 lines, nests 6 deep
    severity
    high
    worth a check
  • Tidy the code shape this week's commits left: 7 findings in 3 files

    6 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with ecc2/src/main.rs (2 findings): tidying it while the change is fresh costs less than after the next one.

    code-shape findings
    7
    files
    3
    commits
    6
  • Review why fixes keep landing in skills/skill-comply/scripts/runner.py: tests reach it

    Changed 12 times in 90 days, and 11 of those commits were bug fixes.

    commits in 90 days
    12
    bug-fix commits
    11
    line coverage
    Unknown, no report
    tests that reach it
    3 test files, call graph(inferred)
    worth a check
  • No test reaches scripts/hooks/gateguard-fact-force.js in the code graph: confirm it is tested before its next change

    Changed 57 times in 90 days, and 32 of those commits were bug fixes.

    commits in 90 days
    57
    bug-fix commits
    32
    line coverage
    Unknown, no report
    tests that reach it
    None in the code graph(inferred)
    worth a check

Everything we found

5 areas