Code health of gioui/gio
Repowise scores gioui/gio at 6.2 out of 10 for code health, which reads as fair, alongside maintainability 7.4 and static performance 9.9 on the same scale. There are 735 open findings across the three pillars, and the lowest-scoring file is gpu.go at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
38 critical, 150 high, 189 medium, 334 low.
Hotspots
6 files are flagged as hotspots. The top 5:
- app/os_windows.go: 13 commits in the last 90 days from 13 contributors
- gpu/gpu.go: 5 commits in the last 90 days from 6 contributors with 1 recent bug fix
- widget/editor.go: 3 commits in the last 90 days from 7 contributors
- gpu/internal/metal/metal_darwin.go: 3 commits in the last 90 days from 2 contributors
- app/internal/windows/windows.go: 9 commits in the last 90 days from 6 contributors
Lowest-scoring files
- gpu/gpu.go: 1.0 out of 10 with 1 bug fix in the last 180 days
- widget/index_test.go: 1.6 out of 10
- text/shaper_test.go: 1.6 out of 10
- widget/editor.go: 1.8 out of 10
- widget/selectable.go: 2.0 out of 10
Checked against bug fixes
Of the 20 files Repowise scores lowest, 3 had a bug fix in the last 180 days. Across all 237 scored files, 11.4% had a bug fix in that window.
Dead code and refactoring
Repowise found 110 unused exports. 55 refactoring targets across 55 files would raise the score.
More on gio: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language