repowisepeeperlanguage/compiler

Code health of peeperlanguage/compiler

Repowise scores peeperlanguage/compiler at 8.0 out of 10 for code health, which reads as good, alongside maintainability 8.7 and static performance 9.8 on the same scale. There are 625 open findings across the three pillars, and the lowest-scoring file is declaration.rs at 2.1. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

45 critical, 79 high, 166 medium, 334 low.

Hotspots

33 files are flagged as hotspots. The top 5:

  • crates/middle/check/src/expression.rs: 76 commits in the last 90 days from 1 contributor with 3 recent bug fixes
  • crates/driver/compile/src/lib.rs: 89 commits in the last 90 days from 1 contributor with 3 recent bug fixes
  • crates/backend/llvm/src/function.rs: 63 commits in the last 90 days from 1 contributor with 2 recent bug fixes
  • crates/middle/check/src/statement.rs: 74 commits in the last 90 days from 1 contributor with 2 recent bug fixes
  • crates/driver/lsp/src/lib.rs: 56 commits in the last 90 days from 1 contributor with 6 recent bug fixes

Lowest-scoring files

  • crates/middle/check/src/declaration.rs: 2.1 out of 10
  • crates/middle/eval/tests/llvm_parity.rs: 3.1 out of 10 with 2 bug fixes in the last 180 days
  • crates/backend/llvm/src/function.rs: 3.6 out of 10 with 2 bug fixes in the last 180 days
  • crates/driver/peeper/tests/fixtures.rs: 4.1 out of 10
  • crates/driver/peeper/src/args.rs: 4.3 out of 10 with 2 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 9 had a bug fix in the last 180 days. Across all 137 scored files, 15.3% had a bug fix in that window.

Dead code and refactoring

27 refactoring targets across 27 files would raise the score.

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

Related guide: Best dead code detection tools by language