repowisecoleleavitt/niri-activity-rs

Code health of coleleavitt/niri-activity-rs

Repowise scores coleleavitt/niri-activity-rs at 6.0 out of 10 for code health, which reads as fair, alongside maintainability 7.2 and static performance 9.9 on the same scale. There are 224 open findings across the three pillars, and the lowest-scoring file is query.rs at 1.9. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

29 critical, 21 high, 151 medium, 23 low.

Hotspots

14 files are flagged as hotspots. The top 5:

  • src/watcher.rs: 13 commits in the last 90 days from 1 contributor with 8 recent bug fixes
  • src/config.rs: 10 commits in the last 90 days from 1 contributor with 9 recent bug fixes
  • src/db.rs: 11 commits in the last 90 days from 1 contributor with 8 recent bug fixes
  • src/input.rs: 4 commits in the last 90 days from 1 contributor with 4 recent bug fixes
  • src/main.rs: 9 commits in the last 90 days from 1 contributor with 6 recent bug fixes

Lowest-scoring files

  • src/report/query.rs: 1.9 out of 10 with 6 bug fixes in the last 180 days
  • src/db.rs: 2.0 out of 10 with 8 bug fixes in the last 180 days
  • crates/harness/src/history.rs: 2.2 out of 10 with 5 bug fixes in the last 180 days
  • src/watcher.rs: 2.8 out of 10 with 8 bug fixes in the last 180 days
  • src/input.rs: 2.9 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 11 had a bug fix in the last 180 days. Across all 57 scored files, 19.3% had a bug fix in that window.

Dead code and refactoring

Repowise found 1 unused export. 15 refactoring targets across 15 files would raise the score.

More on niri-activity-rs: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language