repowiseaffaan-m/ecc

Code health of affaan-m/ecc

Repowise scores affaan-m/ecc at 5.7 out of 10 for code health, which reads as fair, alongside maintainability 6.7 and static performance 9.3 on the same scale. There are 4,363 open findings across the three pillars, and the lowest-scoring file is instinct-cli.py at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

540 critical, 741 high, 1,996 medium, 1,086 low.

Hotspots

210 files are flagged as hotspots. The top 5:

  • ecc2/src/tui/dashboard.rs: 3 commits in the last 90 days from 3 contributors with 2 recent bug fixes
  • ecc2/src/main.rs: 6 commits in the last 90 days from 3 contributors with 2 recent bug fixes
  • tests/hooks/gateguard-fact-force.test.js: 75 commits in the last 90 days from 26 contributors with 61 recent bug fixes
  • ecc2/src/session/manager.rs: 15 commits in the last 90 days from 6 contributors with 13 recent bug fixes
  • scripts/hooks/gateguard-fact-force.js: 57 commits in the last 90 days from 25 contributors with 54 recent bug fixes

Lowest-scoring files

  • skills/continuous-learning-v2/scripts/instinct-cli.py: 1.0 out of 10 with 16 bug fixes in the last 180 days
  • scripts/hooks/gateguard-fact-force.js: 1.0 out of 10 with 54 bug fixes in the last 180 days
  • scripts/lib/context-selection.js: 1.0 out of 10 with 11 bug fixes in the last 180 days
  • tests/hooks/hooks.test.js: 1.0 out of 10 with 23 bug fixes in the last 180 days
  • scripts/lib/install/apply.js: 1.0 out of 10 with 41 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 17 had a bug fix in the last 180 days. Across all 1,314 scored files, 16.4% had a bug fix in that window.

Dead code and refactoring

Repowise found 115 unused exports. 283 refactoring targets across 283 files would raise the score.

More on ecc: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language