repowiseknadh/listmonk

Code health of knadh/listmonk

Repowise scores knadh/listmonk at 7.4 out of 10 for code health, which reads as good, alongside maintainability 8.6 and static performance 9.9 on the same scale. There are 506 open findings across the three pillars, and the lowest-scoring file is subscribers.go at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

30 critical, 76 high, 123 medium, 273 low.

Hotspots

8 files are flagged as hotspots. The top 5:

  • cmd/handlers.go: 3 commits in the last 90 days from 9 contributors with 2 recent bug fixes
  • cmd/init.go: 5 commits in the last 90 days from 14 contributors with 3 recent bug fixes
  • cmd/bounce.go: 3 commits in the last 90 days from 8 contributors with 2 recent bug fixes
  • cmd/settings.go: 3 commits in the last 90 days from 10 contributors with 1 recent bug fix
  • internal/migrations/v6.2.0.go: 7 commits in the last 90 days from 2 contributors with 4 recent bug fixes

Lowest-scoring files

  • internal/core/subscribers.go: 1.0 out of 10 with 3 bug fixes in the last 180 days
  • cmd/handlers.go: 1.5 out of 10 with 2 bug fixes in the last 180 days
  • internal/manager/manager.go: 1.9 out of 10 with 3 bug fixes in the last 180 days
  • internal/subimporter/importer.go: 2.6 out of 10 with 1 bug fix in the last 180 days
  • cmd/bounce.go: 2.7 out of 10 with 2 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 16 had a bug fix in the last 180 days. Across all 238 scored files, 14.3% had a bug fix in that window.

Dead code and refactoring

Repowise found 29 unused exports.

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

Related guide: Best dead code detection tools by language