Code health of kedacore/http-add-on
Repowise scores kedacore/http-add-on at 7.9 out of 10 for code health, which reads as good. There are 222 open findings across the three pillars, and the lowest-scoring file is queue_pinger.go at 3.6. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.
Findings by severity
16 critical, 41 high, 80 medium, 83 low.
Hotspots
40 files are flagged as hotspots. The top 5:
- pkg/routing/tablememory_test.go: 1 commit in the last 90 days from 5 contributors
- scaler/handlers_test.go: 4 commits in the last 90 days from 9 contributors with 3 recent bug fixes
- pkg/routing/table_test.go: 3 commits in the last 90 days from 6 contributors with 1 recent bug fix
- interceptor/handler/upstream_test.go: 4 commits in the last 90 days from 6 contributors with 3 recent bug fixes
- interceptor/main.go: 11 commits in the last 90 days from 13 contributors with 3 recent bug fixes
Lowest-scoring files
- scaler/queue_pinger.go: 3.6 out of 10 with 1 bug fix in the last 180 days
- pkg/routing/table.go: 4.0 out of 10
- operator/apis/http/v1beta1/interceptorroute_types.go: 4.5 out of 10
- pkg/routing/table_test.go: 4.6 out of 10 with 1 bug fix in the last 180 days
- interceptor/main.go: 4.6 out of 10 with 3 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 224 scored files, 19.6% had a bug fix in that window.
Dead code and refactoring
Repowise found 28 unused exports.
More on http-add-on: summary and FAQ, codebase overview, architecture.
Related guide: Best dead code detection tools by language