repowise99designs/gqlgen

Code health of 99designs/gqlgen

Repowise scores 99designs/gqlgen at 7.3 out of 10 for code health, which reads as good. There are 593 open findings across the three pillars, and the lowest-scoring file is websocket.go at 2.3. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

69 critical, 111 high, 166 medium, 223 low.

Hotspots

65 files are flagged as hotspots. The top 5:

  • codegen/testserver/singlefile/generated.go: 8 commits in the last 90 days from 41 contributors with 6 recent bug fixes
  • integration/server/generated.go: 5 commits in the last 90 days from 23 contributors with 4 recent bug fixes
  • codegen/testserver/compliant-int/generated-compliant-strict/schema.go: 5 commits in the last 90 days from 16 contributors with 4 recent bug fixes
  • codegen/testserver/compliant-int/generated-default/schema.go: 5 commits in the last 90 days from 16 contributors with 4 recent bug fixes
  • codegen/testserver/usefunctionsyntaxforexecutioncontext/generated.go: 5 commits in the last 90 days from 18 contributors with 5 recent bug fixes

Lowest-scoring files

  • graphql/handler/transport/websocket.go: 2.3 out of 10 with 1 bug fix in the last 180 days
  • codegen/field.go: 2.3 out of 10 with 2 bug fixes in the last 180 days
  • codegen/templates/templates.go: 2.5 out of 10
  • codegen/config/binder.go: 2.5 out of 10 with 1 bug fix in the last 180 days
  • plugin/modelgen/models.go: 2.5 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 8 had a bug fix in the last 180 days. Across all 883 scored files, 6.0% had a bug fix in that window.

Dead code and refactoring

Repowise found 211 unused exports.

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

Related guide: Best dead code detection tools by language