Code health of gin-gonic/gin
Repowise scores gin-gonic/gin at 6.4 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 585 open findings across the three pillars, and the lowest-scoring file is tree.go at 1.8. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
14 critical, 22 high, 37 medium, 449 low.
Hotspots
1 file is flagged as hotspots. The top one:
- context.go: 4 commits in the last 90 days from 60 contributors with 3 recent bug fixes
Lowest-scoring files
- tree.go: 1.8 out of 10
- binding/form_mapping.go: 2.0 out of 10
- gin.go: 2.5 out of 10
- context.go: 3.2 out of 10 with 3 bug fixes in the last 180 days
- context_test.go: 3.7 out of 10 with 3 bug fixes in the last 180 days
Checked against bug fixes
Of the 20 files Repowise scores lowest, 6 had a bug fix in the last 180 days. Across all 99 scored files, 8.1% had a bug fix in that window.
Dead code and refactoring
Repowise found 11 unused exports. 7 refactoring targets across 7 files would raise the score.
More on gin: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language