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

140 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
  • plugin/federation/testdata/explicitrequires/generated/exec.go: 6 commits in the last 90 days from 24 contributors with 6 recent bug fixes
  • codegen/testserver/followschema/schema.generated.go: 6 commits in the last 90 days from 34 contributors with 5 recent bug fixes
  • _examples/batchresolver/generated.go: 8 commits in the last 90 days from 8 contributors with 4 recent bug fixes
  • plugin/federation/testdata/computedrequires/generated/exec.go: 6 commits in the last 90 days from 19 contributors with 6 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.