repowisedundee/gdu

Code health of dundee/gdu

Repowise scores dundee/gdu at 6.7 out of 10 for code health, which reads as fair. There are 273 open findings across the three pillars, and the lowest-scoring file is parallel_stable.go at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

29 critical, 81 high, 90 medium, 58 low.

Hotspots

28 files are flagged as hotspots. The top 5:

  • pkg/analyze/sqlite.go: 9 commits in the last 90 days from 2 contributors with 5 recent bug fixes
  • pkg/analyze/parallel_top_dir.go: 7 commits in the last 90 days from 1 contributor with 3 recent bug fixes
  • stdout/stdout_test.go: 3 commits in the last 90 days from 8 contributors with 3 recent bug fixes
  • pkg/analyze/sqlite_test.go: 7 commits in the last 90 days from 2 contributors with 3 recent bug fixes
  • pkg/analyze/stored.go: 5 commits in the last 90 days from 7 contributors with 3 recent bug fixes

Lowest-scoring files

  • pkg/analyze/parallel_stable.go: 1.0 out of 10 with 1 bug fix in the last 180 days
  • pkg/analyze/stored.go: 1.9 out of 10 with 3 bug fixes in the last 180 days
  • pkg/analyze/parallel.go: 2.1 out of 10 with 1 bug fix in the last 180 days
  • pkg/analyze/sequential.go: 2.1 out of 10 with 1 bug fix in the last 180 days
  • pkg/analyze/parallel_top_dir.go: 2.3 out of 10 with 3 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 15 had a bug fix in the last 180 days. Across all 158 scored files, 32.9% had a bug fix in that window.

Dead code and refactoring

Repowise found 14 unused exports.

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

Related guide: Best dead code detection tools by language