repowisetadanobutubutu/screeps

Code health of tadanobutubutu/screeps

Repowise scores tadanobutubutu/screeps at 7.8 out of 10 for code health, which reads as good, alongside maintainability 9.1 and static performance 9.9 on the same scale. There are 352 open findings across the three pillars, and the lowest-scoring file is ai_providers.py at 2.4. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

36 critical, 60 high, 125 medium, 130 low.

Hotspots

21 files are flagged as hotspots. The top 5:

  • main.js: 5,028 commits in the last 90 days from 2 contributors with 10,489 recent bug fixes
  • tests/spawnManager.test.js: 5 commits in the last 90 days from 5 contributors with 4 recent bug fixes
  • src/managers/roomManager.js: 7 commits in the last 90 days from 4 contributors with 5 recent bug fixes
  • utils.planning.js: 11 commits in the last 90 days from 4 contributors with 6 recent bug fixes
  • tests/src.roles.defender.test.js: 6 commits in the last 90 days from 5 contributors with 5 recent bug fixes

Lowest-scoring files

  • scripts/ai_providers.py: 2.4 out of 10 with 1 bug fix in the last 180 days
  • src/managers/roomManager.js: 2.5 out of 10 with 5 bug fixes in the last 180 days
  • src/roles/builder.js: 2.8 out of 10
  • src/roles/harvester.js: 2.9 out of 10 with 2 bug fixes in the last 180 days
  • src/roles/repairer.js: 3.0 out of 10 with 1 bug fix in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 19 had a bug fix in the last 180 days. Across all 340 scored files, 25.9% had a bug fix in that window.

Dead code and refactoring

Repowise found 97 unused exports. 33 refactoring targets across 33 files would raise the score.

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

Related guide: Best dead code detection tools by language