From 4a78eb0c9be84793df821616b4ebfa4bfb42a49c Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Tue, 6 Jun 2023 20:29:15 -0400 Subject: [PATCH] minor cleaning: fix some stricter lint rule warnings (#2665) * Add Changelog notes Signed-off-by: Steve Coffman * Some spring cleaning Signed-off-by: Steve Coffman * Update golangci-lint to latest Signed-off-by: Steve Coffman --------- Signed-off-by: Steve Coffman --- .github/workflows/lint.yml | 2 +- .golangci.yml | 4 - CHANGELOG.md | 124 +- _examples/chat/generated.go | 12 +- _examples/config/generated.go | 8 +- _examples/dataloader/generated.go | 10 +- .../embedding/subdir/gendir/generated.go | 6 +- .../embedding/subdir/prelude.generated.go | 4 +- _examples/embedding/subdir/root.generated.go | 2 +- .../federation/accounts/graph/generated.go | 12 +- .../federation/products/graph/generated.go | 16 +- .../federation/reviews/graph/generated.go | 12 +- _examples/fileupload/generated.go | 14 +- _examples/scalars/generated.go | 12 +- _examples/selection/generated.go | 6 +- _examples/starwars/generated/exec.go | 30 +- _examples/todo/generated.go | 12 +- _examples/type-system-extension/generated.go | 10 +- _examples/websocket-initfunc/server/server.go | 4 +- client/websocket.go | 2 +- codegen/args.go | 10 +- codegen/config/binder.go | 74 +- codegen/config/binder_test.go | 1 - codegen/field.gotpl | 2 +- .../followschema/defaults.generated.go | 8 +- .../followschema/fields_order_test.go | 2 +- .../followschema/panics.generated.go | 4 +- .../followschema/prelude.generated.go | 4 +- .../followschema/ptr_to_ptr_input_test.go | 2 +- .../followschema/schema.generated.go | 50 +- .../followschema/validtypes.generated.go | 4 +- .../followschema/variadic.generated.go | 2 +- .../followschema/wrapped_type.generated.go | 4 +- codegen/testserver/singlefile/generated.go | 76 +- .../singlefile/ptr_to_ptr_input_test.go | 2 +- graphql/cache.go | 8 +- graphql/coercion_test.go | 2 - graphql/handler/extension/complexity.go | 8 +- graphql/handler/server_test.go | 2 +- graphql/handler/transport/sse_test.go | 2 +- graphql/handler/transport/websocket_test.go | 1 - integration/generated.go | 14 +- internal/code/compare.go | 16 +- internal/code/imports.go | 4 +- internal/code/packages.go | 6 +- internal/code/util.go | 2 +- internal/rewrite/rewriter.go | 6 +- lint.txt | 1167 ----------------- .../testdata/entityresolver/generated/exec.go | 38 +- plugin/modelgen/internal/extrafields/types.go | 3 +- 50 files changed, 384 insertions(+), 1442 deletions(-) delete mode 100644 lint.txt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 86b2f38367c..a53bb83b911 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -46,7 +46,7 @@ jobs: with: go-version: ${{ matrix.go }} - name: golangci-lint - uses: golangci/golangci-lint-action@v3.4.0 + uses: golangci/golangci-lint-action@v3.5.0 with: version: latest # skip cache because of flaky behaviors diff --git a/.golangci.yml b/.golangci.yml index 21099b69b05..5966bf2cf9a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -11,8 +11,6 @@ linters: disable-all: true enable: - bodyclose - - deadcode - - depguard - dupl - errcheck - gocritic @@ -25,11 +23,9 @@ linters: - nakedret - prealloc - staticcheck - - structcheck - typecheck - unconvert - unused - - varcheck issues: exclude-rules: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ccdcd247f9..73c931882b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,132 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/99designs/gqlgen/compare/v0.17.31...HEAD) +## [Unreleased](https://github.com/99designs/gqlgen/compare/v0.17.32...HEAD) + +## [v0.17.32](https://github.com/99designs/gqlgen/compare/v0.17.31...v0.17.32) - 2023-06-06 +- 3a81a78b release v0.17.32 + +- dbb61174 Added unit tests for defer (#2657) + +
5c19c841 Addressing few issues in defer feature (#2656) + +And fixed hasNext to only appear in the payload when there is deferred usage + +* Regenerate + +* Use go 1.18 compatible atomic operations + +* Regenerate + +
+ +
8e295024 Update extra fields type definition and plus docs about the feature (#2655) + +* Update extra fields type definition and plus docs about the feature + +* Update docs + +
+ +
adf5da27 Make usage of omitempty tag optional (#2649) + +* Make usage of omitempty tag optional + +* adding probably good enough test + +* some kinda docs + +* lintersssssssssssssssssssssssssssss + +* removing unnecessary fields from config + +
+ +- 7ab33176 Extra fields (#2638) + +
22deb8bd allow binding a GraphQL `Any` field to a struct method returning `*any` (#2644) + +* allow binding GQL `Any` field to struct method returning `*any` + +* add singlefile tests for binding to `*any` case + +* add followschema tests for binding to `*any` case + +* make ptr_to_any binding tests follow binding conventions better + +
+ +
c313bf3d `[@defer](https://github.com/defer)` initial support (#2642) + +* support returning errors with deferred fragments. + + +* update integration tests. + +* fix gotpl indent and pass the correct context to deferred .Dispatch(). + +* Added hasNext in the tests + +* Added back root_.gotpl + +* Regenerate + +* Regenerate recursively + +* Updated schema-expected.graphql + + +* Fixed starwars_test.go + +* Cleanup + +* Add graphql response hasnext omitempty and update tests to match + + +--------- + +
+ +
4d945da2 feat(federation): update Apollo Federation v2 definitions (#2635) + +* feat(federation): update Apollo Federation v2 definitions + +Fix Apollo Federation v2 directive definitions: +* `_FieldSet` was renamed `FieldSet` + + +* regenerate examples + +
+ +- 9796f91d Generate entity resolvers for interfaces with [@key](https://github.com/key) defined (#2634) + +
33fdd1b5 fix enum capitalization (#2630) + +* fix enum capitalization + +* apply suggestion: adding comment + +
+ +
82a110ce Fix uint32 unmarshal (#2631) + +The string unmarshal for uint32 used ParseInt instead of ParseUint, +which would parse the wrong range of valid numbers. + +
+ +- e62a0277 Add Changelog entries for v0.17.31 + +- f707aa8d v0.17.31 postrelease bump + + + + + ## [v0.17.31](https://github.com/99designs/gqlgen/compare/v0.17.30...v0.17.31) - 2023-05-05 - 37b26207 release v0.17.31 diff --git a/_examples/chat/generated.go b/_examples/chat/generated.go index a4b35f545bb..58f7545a7b1 100644 --- a/_examples/chat/generated.go +++ b/_examples/chat/generated.go @@ -820,7 +820,7 @@ func (ec *executionContext) fieldContext_Mutation_post(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_post_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -878,7 +878,7 @@ func (ec *executionContext) fieldContext_Query_room(ctx context.Context, field g ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_room_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -952,7 +952,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1086,7 +1086,7 @@ func (ec *executionContext) fieldContext_Subscription_messageAdded(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Subscription_messageAdded_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2512,7 +2512,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2700,7 +2700,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/config/generated.go b/_examples/config/generated.go index ab591bd868c..9d2a01c55af 100644 --- a/_examples/config/generated.go +++ b/_examples/config/generated.go @@ -440,7 +440,7 @@ func (ec *executionContext) fieldContext_Mutation_createTodo(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_createTodo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -570,7 +570,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2415,7 +2415,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2603,7 +2603,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/dataloader/generated.go b/_examples/dataloader/generated.go index f5df1ea4266..e2058152085 100644 --- a/_examples/dataloader/generated.go +++ b/_examples/dataloader/generated.go @@ -1060,7 +1060,7 @@ func (ec *executionContext) fieldContext_Query_torture1d(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_torture1d_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1122,7 +1122,7 @@ func (ec *executionContext) fieldContext_Query_torture2d(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_torture2d_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1196,7 +1196,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2677,7 +2677,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2865,7 +2865,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/embedding/subdir/gendir/generated.go b/_examples/embedding/subdir/gendir/generated.go index c95a5103d1f..edb6ace6ba1 100644 --- a/_examples/embedding/subdir/gendir/generated.go +++ b/_examples/embedding/subdir/gendir/generated.go @@ -539,7 +539,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2061,7 +2061,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2249,7 +2249,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/embedding/subdir/prelude.generated.go b/_examples/embedding/subdir/prelude.generated.go index 1831b379ed1..605052cd356 100644 --- a/_examples/embedding/subdir/prelude.generated.go +++ b/_examples/embedding/subdir/prelude.generated.go @@ -1504,7 +1504,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1692,7 +1692,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/embedding/subdir/root.generated.go b/_examples/embedding/subdir/root.generated.go index b9c6784155f..54bfbd68b93 100644 --- a/_examples/embedding/subdir/root.generated.go +++ b/_examples/embedding/subdir/root.generated.go @@ -299,7 +299,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/federation/accounts/graph/generated.go b/_examples/federation/accounts/graph/generated.go index c9835d00421..398daeacd90 100644 --- a/_examples/federation/accounts/graph/generated.go +++ b/_examples/federation/accounts/graph/generated.go @@ -575,7 +575,7 @@ func (ec *executionContext) fieldContext_Entity_findEmailHostByID(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findEmailHostByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -640,7 +640,7 @@ func (ec *executionContext) fieldContext_Entity_findUserByID(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findUserByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -746,7 +746,7 @@ func (ec *executionContext) fieldContext_Query__entities(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query__entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -868,7 +868,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2572,7 +2572,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2760,7 +2760,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/federation/products/graph/generated.go b/_examples/federation/products/graph/generated.go index cf1682e41ca..15a66fb2cc4 100644 --- a/_examples/federation/products/graph/generated.go +++ b/_examples/federation/products/graph/generated.go @@ -554,7 +554,7 @@ func (ec *executionContext) fieldContext_Entity_findManufacturerByID(ctx context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findManufacturerByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -621,7 +621,7 @@ func (ec *executionContext) fieldContext_Entity_findProductByManufacturerIDAndID ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findProductByManufacturerIDAndID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -688,7 +688,7 @@ func (ec *executionContext) fieldContext_Entity_findProductByUpc(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findProductByUpc_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1066,7 +1066,7 @@ func (ec *executionContext) fieldContext_Query_topProducts(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_topProducts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1121,7 +1121,7 @@ func (ec *executionContext) fieldContext_Query__entities(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query__entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1243,7 +1243,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2765,7 +2765,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2953,7 +2953,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/federation/reviews/graph/generated.go b/_examples/federation/reviews/graph/generated.go index e46bca46556..ac7f09beab3 100644 --- a/_examples/federation/reviews/graph/generated.go +++ b/_examples/federation/reviews/graph/generated.go @@ -591,7 +591,7 @@ func (ec *executionContext) fieldContext_Entity_findProductByManufacturerIDAndID ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findProductByManufacturerIDAndID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -656,7 +656,7 @@ func (ec *executionContext) fieldContext_Entity_findUserByID(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findUserByID_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -896,7 +896,7 @@ func (ec *executionContext) fieldContext_Query__entities(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query__entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1018,7 +1018,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2875,7 +2875,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -3063,7 +3063,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/fileupload/generated.go b/_examples/fileupload/generated.go index eaebc918e93..f5730632e91 100644 --- a/_examples/fileupload/generated.go +++ b/_examples/fileupload/generated.go @@ -646,7 +646,7 @@ func (ec *executionContext) fieldContext_Mutation_singleUpload(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_singleUpload_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -711,7 +711,7 @@ func (ec *executionContext) fieldContext_Mutation_singleUploadWithPayload(ctx co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_singleUploadWithPayload_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -776,7 +776,7 @@ func (ec *executionContext) fieldContext_Mutation_multipleUpload(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_multipleUpload_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -841,7 +841,7 @@ func (ec *executionContext) fieldContext_Mutation_multipleUploadWithPayload(ctx ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_multipleUploadWithPayload_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -959,7 +959,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2440,7 +2440,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2628,7 +2628,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/scalars/generated.go b/_examples/scalars/generated.go index 8427f2e5753..94e57c0fa93 100644 --- a/_examples/scalars/generated.go +++ b/_examples/scalars/generated.go @@ -598,7 +598,7 @@ func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field g ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -677,7 +677,7 @@ func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -756,7 +756,7 @@ func (ec *executionContext) fieldContext_Query_userByTier(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_userByTier_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -830,7 +830,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2783,7 +2783,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2971,7 +2971,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/selection/generated.go b/_examples/selection/generated.go index 3c1b2bf8092..b0f567eefd6 100644 --- a/_examples/selection/generated.go +++ b/_examples/selection/generated.go @@ -756,7 +756,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2237,7 +2237,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2425,7 +2425,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/starwars/generated/exec.go b/_examples/starwars/generated/exec.go index a07c44e818f..b7a934bdab8 100644 --- a/_examples/starwars/generated/exec.go +++ b/_examples/starwars/generated/exec.go @@ -1189,7 +1189,7 @@ func (ec *executionContext) fieldContext_Droid_friendsConnection(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Droid_friendsConnection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1686,7 +1686,7 @@ func (ec *executionContext) fieldContext_Human_height(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Human_height_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1833,7 +1833,7 @@ func (ec *executionContext) fieldContext_Human_friendsConnection(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Human_friendsConnection_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1988,7 +1988,7 @@ func (ec *executionContext) fieldContext_Mutation_createReview(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_createReview_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2172,7 +2172,7 @@ func (ec *executionContext) fieldContext_Query_hero(ctx context.Context, field g ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_hero_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2235,7 +2235,7 @@ func (ec *executionContext) fieldContext_Query_reviews(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2290,7 +2290,7 @@ func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2342,7 +2342,7 @@ func (ec *executionContext) fieldContext_Query_character(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_character_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2408,7 +2408,7 @@ func (ec *executionContext) fieldContext_Query_droid(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_droid_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2478,7 +2478,7 @@ func (ec *executionContext) fieldContext_Query_human(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_human_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2540,7 +2540,7 @@ func (ec *executionContext) fieldContext_Query_starship(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_starship_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2614,7 +2614,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2938,7 +2938,7 @@ func (ec *executionContext) fieldContext_Starship_length(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Starship_length_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -4408,7 +4408,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -4596,7 +4596,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/todo/generated.go b/_examples/todo/generated.go index fda22c6b058..8317645e001 100644 --- a/_examples/todo/generated.go +++ b/_examples/todo/generated.go @@ -575,7 +575,7 @@ func (ec *executionContext) fieldContext_MyMutation_createTodo(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyMutation_createTodo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -632,7 +632,7 @@ func (ec *executionContext) fieldContext_MyMutation_updateTodo(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyMutation_updateTodo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -689,7 +689,7 @@ func (ec *executionContext) fieldContext_MyQuery_todo(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyQuery_todo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -855,7 +855,7 @@ func (ec *executionContext) fieldContext_MyQuery___type(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyQuery___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2393,7 +2393,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2572,7 +2572,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/type-system-extension/generated.go b/_examples/type-system-extension/generated.go index dc8a20eaf88..1fa0b781b29 100644 --- a/_examples/type-system-extension/generated.go +++ b/_examples/type-system-extension/generated.go @@ -446,7 +446,7 @@ func (ec *executionContext) fieldContext_MyMutation_createTodo(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyMutation_createTodo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -602,7 +602,7 @@ func (ec *executionContext) fieldContext_MyQuery_todo(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyQuery_todo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -676,7 +676,7 @@ func (ec *executionContext) fieldContext_MyQuery___type(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_MyQuery___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2353,7 +2353,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2541,7 +2541,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/_examples/websocket-initfunc/server/server.go b/_examples/websocket-initfunc/server/server.go index 467ea2280be..4704708dab0 100644 --- a/_examples/websocket-initfunc/server/server.go +++ b/_examples/websocket-initfunc/server/server.go @@ -20,8 +20,8 @@ import ( func webSocketInit(ctx context.Context, initPayload transport.InitPayload) (context.Context, error) { // Get the token from payload - any := initPayload["authToken"] - token, ok := any.(string) + payload := initPayload["authToken"] + token, ok := payload.(string) if !ok || token == "" { return nil, errors.New("authToken not found in transport payload") } diff --git a/client/websocket.go b/client/websocket.go index 69d263f789a..b73434679d8 100644 --- a/client/websocket.go +++ b/client/websocket.go @@ -51,7 +51,7 @@ func (p *Client) WebsocketOnce(query string, resp interface{}, options ...Option if reflect.ValueOf(resp).Kind() == reflect.Ptr { return sock.Next(resp) } - //TODO: verify this is never called and remove it + // TODO: verify this is never called and remove it return sock.Next(&resp) } diff --git a/codegen/args.go b/codegen/args.go index 0fd30fffd59..c4cecea9326 100644 --- a/codegen/args.go +++ b/codegen/args.go @@ -103,9 +103,9 @@ nextArg: return newArgs, nil } -func (a *Data) Args() map[string][]*FieldArgument { +func (d *Data) Args() map[string][]*FieldArgument { ret := map[string][]*FieldArgument{} - for _, o := range a.Objects { + for _, o := range d.Objects { for _, f := range o.Fields { if len(f.Args) > 0 { ret[f.ArgsFunc()] = f.Args @@ -113,9 +113,9 @@ func (a *Data) Args() map[string][]*FieldArgument { } } - for _, d := range a.Directives() { - if len(d.Args) > 0 { - ret[d.ArgsFunc()] = d.Args + for _, directive := range d.Directives() { + if len(directive.Args) > 0 { + ret[directive.ArgsFunc()] = directive.Args } } return ret diff --git a/codegen/config/binder.go b/codegen/config/binder.go index 2835f494002..e479417aa5a 100644 --- a/codegen/config/binder.go +++ b/codegen/config/binder.go @@ -221,99 +221,99 @@ func (ref *TypeReference) Elem() *TypeReference { return nil } -func (t *TypeReference) IsPtr() bool { - _, isPtr := t.GO.(*types.Pointer) +func (ref *TypeReference) IsPtr() bool { + _, isPtr := ref.GO.(*types.Pointer) return isPtr } // fix for https://github.com/golang/go/issues/31103 may make it possible to remove this (may still be useful) -func (t *TypeReference) IsPtrToPtr() bool { - if p, isPtr := t.GO.(*types.Pointer); isPtr { +func (ref *TypeReference) IsPtrToPtr() bool { + if p, isPtr := ref.GO.(*types.Pointer); isPtr { _, isPtr := p.Elem().(*types.Pointer) return isPtr } return false } -func (t *TypeReference) IsNilable() bool { - return IsNilable(t.GO) +func (ref *TypeReference) IsNilable() bool { + return IsNilable(ref.GO) } -func (t *TypeReference) IsSlice() bool { - _, isSlice := t.GO.(*types.Slice) - return t.GQL.Elem != nil && isSlice +func (ref *TypeReference) IsSlice() bool { + _, isSlice := ref.GO.(*types.Slice) + return ref.GQL.Elem != nil && isSlice } -func (t *TypeReference) IsPtrToSlice() bool { - if t.IsPtr() { - _, isPointerToSlice := t.GO.(*types.Pointer).Elem().(*types.Slice) +func (ref *TypeReference) IsPtrToSlice() bool { + if ref.IsPtr() { + _, isPointerToSlice := ref.GO.(*types.Pointer).Elem().(*types.Slice) return isPointerToSlice } return false } -func (t *TypeReference) IsPtrToIntf() bool { - if t.IsPtr() { - _, isPointerToInterface := t.GO.(*types.Pointer).Elem().(*types.Interface) +func (ref *TypeReference) IsPtrToIntf() bool { + if ref.IsPtr() { + _, isPointerToInterface := ref.GO.(*types.Pointer).Elem().(*types.Interface) return isPointerToInterface } return false } -func (t *TypeReference) IsNamed() bool { - _, isSlice := t.GO.(*types.Named) +func (ref *TypeReference) IsNamed() bool { + _, isSlice := ref.GO.(*types.Named) return isSlice } -func (t *TypeReference) IsStruct() bool { - _, isStruct := t.GO.Underlying().(*types.Struct) +func (ref *TypeReference) IsStruct() bool { + _, isStruct := ref.GO.Underlying().(*types.Struct) return isStruct } -func (t *TypeReference) IsScalar() bool { - return t.Definition.Kind == ast.Scalar +func (ref *TypeReference) IsScalar() bool { + return ref.Definition.Kind == ast.Scalar } -func (t *TypeReference) UniquenessKey() string { +func (ref *TypeReference) UniquenessKey() string { nullability := "O" - if t.GQL.NonNull { + if ref.GQL.NonNull { nullability = "N" } elemNullability := "" - if t.GQL.Elem != nil && t.GQL.Elem.NonNull { + if ref.GQL.Elem != nil && ref.GQL.Elem.NonNull { // Fix for #896 elemNullability = "áš„" } - return nullability + t.Definition.Name + "2" + templates.TypeIdentifier(t.GO) + elemNullability + return nullability + ref.Definition.Name + "2" + templates.TypeIdentifier(ref.GO) + elemNullability } -func (t *TypeReference) MarshalFunc() string { - if t.Definition == nil { - panic(errors.New("Definition missing for " + t.GQL.Name())) +func (ref *TypeReference) MarshalFunc() string { + if ref.Definition == nil { + panic(errors.New("Definition missing for " + ref.GQL.Name())) } - if t.Definition.Kind == ast.InputObject { + if ref.Definition.Kind == ast.InputObject { return "" } - return "marshal" + t.UniquenessKey() + return "marshal" + ref.UniquenessKey() } -func (t *TypeReference) UnmarshalFunc() string { - if t.Definition == nil { - panic(errors.New("Definition missing for " + t.GQL.Name())) +func (ref *TypeReference) UnmarshalFunc() string { + if ref.Definition == nil { + panic(errors.New("Definition missing for " + ref.GQL.Name())) } - if !t.Definition.IsInputType() { + if !ref.Definition.IsInputType() { return "" } - return "unmarshal" + t.UniquenessKey() + return "unmarshal" + ref.UniquenessKey() } -func (t *TypeReference) IsTargetNilable() bool { - return IsNilable(t.Target) +func (ref *TypeReference) IsTargetNilable() bool { + return IsNilable(ref.Target) } func (b *Binder) PushRef(ret *TypeReference) { diff --git a/codegen/config/binder_test.go b/codegen/config/binder_test.go index f3a40723995..fed3913adba 100644 --- a/codegen/config/binder_test.go +++ b/codegen/config/binder_test.go @@ -173,7 +173,6 @@ func TestOmittableBinding(t *testing.T) { require.True(t, ta.IsOmittable) }) - } func createBinder(cfg Config) (*Binder, *ast.Schema) { diff --git a/codegen/field.gotpl b/codegen/field.gotpl index e47b958ddac..f974b597b4b 100644 --- a/codegen/field.gotpl +++ b/codegen/field.gotpl @@ -94,7 +94,7 @@ func (ec *executionContext) {{ $field.FieldContextFunc }}(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.{{ $field.ArgsFunc }}(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } {{- end }} return fc, nil diff --git a/codegen/testserver/followschema/defaults.generated.go b/codegen/testserver/followschema/defaults.generated.go index 12b75f71cb3..5da26c1f772 100644 --- a/codegen/testserver/followschema/defaults.generated.go +++ b/codegen/testserver/followschema/defaults.generated.go @@ -223,7 +223,7 @@ func (ec *executionContext) fieldContext_Mutation_defaultInput(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_defaultInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -279,7 +279,7 @@ func (ec *executionContext) fieldContext_Mutation_overrideValueViaInput(ctx cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_overrideValueViaInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -331,7 +331,7 @@ func (ec *executionContext) fieldContext_Mutation_updateSomething(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_updateSomething_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -391,7 +391,7 @@ func (ec *executionContext) fieldContext_Mutation_updatePtrToPtr(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_updatePtrToPtr_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/followschema/fields_order_test.go b/codegen/testserver/followschema/fields_order_test.go index 693f0c852e3..d521c8fc995 100644 --- a/codegen/testserver/followschema/fields_order_test.go +++ b/codegen/testserver/followschema/fields_order_test.go @@ -29,7 +29,7 @@ func TestFieldsOrder(t *testing.T) { ret = &FieldsOrderPayload{ FirstFieldValue: in.FirstField, } - return + return ret, nil } t.Run("firstField", func(t *testing.T) { diff --git a/codegen/testserver/followschema/panics.generated.go b/codegen/testserver/followschema/panics.generated.go index a4e2d2d0a5f..fa66f662a20 100644 --- a/codegen/testserver/followschema/panics.generated.go +++ b/codegen/testserver/followschema/panics.generated.go @@ -150,7 +150,7 @@ func (ec *executionContext) fieldContext_Panics_fieldFuncMarshal(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Panics_fieldFuncMarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -202,7 +202,7 @@ func (ec *executionContext) fieldContext_Panics_argUnmarshal(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Panics_argUnmarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/followschema/prelude.generated.go b/codegen/testserver/followschema/prelude.generated.go index b4941eabc8e..71b430c36d9 100644 --- a/codegen/testserver/followschema/prelude.generated.go +++ b/codegen/testserver/followschema/prelude.generated.go @@ -1393,7 +1393,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1572,7 +1572,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/followschema/ptr_to_ptr_input_test.go b/codegen/testserver/followschema/ptr_to_ptr_input_test.go index bb644e492b4..ab40d1d68da 100644 --- a/codegen/testserver/followschema/ptr_to_ptr_input_test.go +++ b/codegen/testserver/followschema/ptr_to_ptr_input_test.go @@ -67,7 +67,7 @@ func TestPtrToPtr(t *testing.T) { } } } - return + return ret, err } t.Run("pointer to pointer input missing", func(t *testing.T) { diff --git a/codegen/testserver/followschema/schema.generated.go b/codegen/testserver/followschema/schema.generated.go index 69e0366b104..0af031ea71a 100644 --- a/codegen/testserver/followschema/schema.generated.go +++ b/codegen/testserver/followschema/schema.generated.go @@ -1456,7 +1456,7 @@ func (ec *executionContext) fieldContext_Pet_friends(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Pet_friends_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1589,7 +1589,7 @@ func (ec *executionContext) fieldContext_Query_mapInput(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_mapInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1638,7 +1638,7 @@ func (ec *executionContext) fieldContext_Query_recursive(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_recursive_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1687,7 +1687,7 @@ func (ec *executionContext) fieldContext_Query_nestedInputs(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_nestedInputs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1839,7 +1839,7 @@ func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field g ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1888,7 +1888,7 @@ func (ec *executionContext) fieldContext_Query_nullableArg(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_nullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1940,7 +1940,7 @@ func (ec *executionContext) fieldContext_Query_inputSlice(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_inputSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1992,7 +1992,7 @@ func (ec *executionContext) fieldContext_Query_inputNullableSlice(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_inputNullableSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2044,7 +2044,7 @@ func (ec *executionContext) fieldContext_Query_inputOmittable(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_inputOmittable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2284,7 +2284,7 @@ func (ec *executionContext) fieldContext_Query_defaultParameters(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_defaultParameters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2425,7 +2425,7 @@ func (ec *executionContext) fieldContext_Query_directiveArg(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2474,7 +2474,7 @@ func (ec *executionContext) fieldContext_Query_directiveNullableArg(ctx context. ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2523,7 +2523,7 @@ func (ec *executionContext) fieldContext_Query_directiveInputNullable(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveInputNullable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2572,7 +2572,7 @@ func (ec *executionContext) fieldContext_Query_directiveInput(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2621,7 +2621,7 @@ func (ec *executionContext) fieldContext_Query_directiveInputType(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveInputType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2843,7 +2843,7 @@ func (ec *executionContext) fieldContext_Query_directiveFieldDef(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveFieldDef_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -3181,7 +3181,7 @@ func (ec *executionContext) fieldContext_Query_enumInInput(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_enumInInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -3623,7 +3623,7 @@ func (ec *executionContext) fieldContext_Query_mapStringInterface(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_mapStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -3678,7 +3678,7 @@ func (ec *executionContext) fieldContext_Query_mapNestedStringInterface(ctx cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_mapNestedStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -4363,7 +4363,7 @@ func (ec *executionContext) fieldContext_Query_defaultScalar(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_defaultScalar_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -4504,7 +4504,7 @@ func (ec *executionContext) fieldContext_Query_fallback(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_fallback_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -4965,7 +4965,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -5190,7 +5190,7 @@ func (ec *executionContext) fieldContext_Subscription_directiveArg(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Subscription_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -5253,7 +5253,7 @@ func (ec *executionContext) fieldContext_Subscription_directiveNullableArg(ctx c ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Subscription_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -5752,7 +5752,7 @@ func (ec *executionContext) fieldContext_User_pets(ctx context.Context, field gr ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_User_pets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/followschema/validtypes.generated.go b/codegen/testserver/followschema/validtypes.generated.go index a8d7fc07fec..0fdd873b3ea 100644 --- a/codegen/testserver/followschema/validtypes.generated.go +++ b/codegen/testserver/followschema/validtypes.generated.go @@ -487,7 +487,7 @@ func (ec *executionContext) fieldContext_ValidType_validInputKeywords(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidType_validInputKeywords_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -539,7 +539,7 @@ func (ec *executionContext) fieldContext_ValidType_validArgs(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidType_validArgs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/followschema/variadic.generated.go b/codegen/testserver/followschema/variadic.generated.go index 7b476d000c0..aa74b14e4c3 100644 --- a/codegen/testserver/followschema/variadic.generated.go +++ b/codegen/testserver/followschema/variadic.generated.go @@ -85,7 +85,7 @@ func (ec *executionContext) fieldContext_VariadicModel_value(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_VariadicModel_value_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/followschema/wrapped_type.generated.go b/codegen/testserver/followschema/wrapped_type.generated.go index f7885ebc3c2..e6438570d65 100644 --- a/codegen/testserver/followschema/wrapped_type.generated.go +++ b/codegen/testserver/followschema/wrapped_type.generated.go @@ -111,7 +111,7 @@ func (ec *executionContext) fieldContext_WrappedMap_get(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_WrappedMap_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -163,7 +163,7 @@ func (ec *executionContext) fieldContext_WrappedSlice_get(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_WrappedSlice_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/singlefile/generated.go b/codegen/testserver/singlefile/generated.go index fe0942b379b..369cbf70d1d 100644 --- a/codegen/testserver/singlefile/generated.go +++ b/codegen/testserver/singlefile/generated.go @@ -6317,7 +6317,7 @@ func (ec *executionContext) fieldContext_Mutation_defaultInput(ctx context.Conte ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_defaultInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -6373,7 +6373,7 @@ func (ec *executionContext) fieldContext_Mutation_overrideValueViaInput(ctx cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_overrideValueViaInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -6425,7 +6425,7 @@ func (ec *executionContext) fieldContext_Mutation_updateSomething(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_updateSomething_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -6485,7 +6485,7 @@ func (ec *executionContext) fieldContext_Mutation_updatePtrToPtr(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Mutation_updatePtrToPtr_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -7058,7 +7058,7 @@ func (ec *executionContext) fieldContext_Panics_fieldFuncMarshal(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Panics_fieldFuncMarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -7110,7 +7110,7 @@ func (ec *executionContext) fieldContext_Panics_argUnmarshal(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Panics_argUnmarshal_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -7206,7 +7206,7 @@ func (ec *executionContext) fieldContext_Pet_friends(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Pet_friends_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -7869,7 +7869,7 @@ func (ec *executionContext) fieldContext_Query_mapInput(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_mapInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -7918,7 +7918,7 @@ func (ec *executionContext) fieldContext_Query_recursive(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_recursive_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -7967,7 +7967,7 @@ func (ec *executionContext) fieldContext_Query_nestedInputs(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_nestedInputs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8119,7 +8119,7 @@ func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field g ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8168,7 +8168,7 @@ func (ec *executionContext) fieldContext_Query_nullableArg(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_nullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8220,7 +8220,7 @@ func (ec *executionContext) fieldContext_Query_inputSlice(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_inputSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8272,7 +8272,7 @@ func (ec *executionContext) fieldContext_Query_inputNullableSlice(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_inputNullableSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8324,7 +8324,7 @@ func (ec *executionContext) fieldContext_Query_inputOmittable(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_inputOmittable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8564,7 +8564,7 @@ func (ec *executionContext) fieldContext_Query_defaultParameters(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_defaultParameters_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8705,7 +8705,7 @@ func (ec *executionContext) fieldContext_Query_directiveArg(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8754,7 +8754,7 @@ func (ec *executionContext) fieldContext_Query_directiveNullableArg(ctx context. ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8803,7 +8803,7 @@ func (ec *executionContext) fieldContext_Query_directiveInputNullable(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveInputNullable_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8852,7 +8852,7 @@ func (ec *executionContext) fieldContext_Query_directiveInput(ctx context.Contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -8901,7 +8901,7 @@ func (ec *executionContext) fieldContext_Query_directiveInputType(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveInputType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -9123,7 +9123,7 @@ func (ec *executionContext) fieldContext_Query_directiveFieldDef(ctx context.Con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_directiveFieldDef_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -9461,7 +9461,7 @@ func (ec *executionContext) fieldContext_Query_enumInInput(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_enumInInput_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -9903,7 +9903,7 @@ func (ec *executionContext) fieldContext_Query_mapStringInterface(ctx context.Co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_mapStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -9958,7 +9958,7 @@ func (ec *executionContext) fieldContext_Query_mapNestedStringInterface(ctx cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_mapNestedStringInterface_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -10643,7 +10643,7 @@ func (ec *executionContext) fieldContext_Query_defaultScalar(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_defaultScalar_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -10784,7 +10784,7 @@ func (ec *executionContext) fieldContext_Query_fallback(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_fallback_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -11245,7 +11245,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -11868,7 +11868,7 @@ func (ec *executionContext) fieldContext_Subscription_directiveArg(ctx context.C ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Subscription_directiveArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -11931,7 +11931,7 @@ func (ec *executionContext) fieldContext_Subscription_directiveNullableArg(ctx c ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Subscription_directiveNullableArg_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -12430,7 +12430,7 @@ func (ec *executionContext) fieldContext_User_pets(ctx context.Context, field gr ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_User_pets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -12648,7 +12648,7 @@ func (ec *executionContext) fieldContext_ValidType_validInputKeywords(ctx contex ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidType_validInputKeywords_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -12700,7 +12700,7 @@ func (ec *executionContext) fieldContext_ValidType_validArgs(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_ValidType_validArgs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -12749,7 +12749,7 @@ func (ec *executionContext) fieldContext_VariadicModel_value(ctx context.Context ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_VariadicModel_value_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -12801,7 +12801,7 @@ func (ec *executionContext) fieldContext_WrappedMap_get(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_WrappedMap_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -12853,7 +12853,7 @@ func (ec *executionContext) fieldContext_WrappedSlice_get(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_WrappedSlice_get_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -14353,7 +14353,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -14532,7 +14532,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/codegen/testserver/singlefile/ptr_to_ptr_input_test.go b/codegen/testserver/singlefile/ptr_to_ptr_input_test.go index 75bed1266ce..1e46e7e33c7 100644 --- a/codegen/testserver/singlefile/ptr_to_ptr_input_test.go +++ b/codegen/testserver/singlefile/ptr_to_ptr_input_test.go @@ -67,7 +67,7 @@ func TestPtrToPtr(t *testing.T) { } } } - return + return ret, err } t.Run("pointer to pointer input missing", func(t *testing.T) { diff --git a/graphql/cache.go b/graphql/cache.go index fe86ca35028..e552ce67225 100644 --- a/graphql/cache.go +++ b/graphql/cache.go @@ -15,15 +15,15 @@ type Cache interface { type MapCache map[string]interface{} // Get looks up a key's value from the cache. -func (m MapCache) Get(ctx context.Context, key string) (value interface{}, ok bool) { +func (m MapCache) Get(_ context.Context, key string) (value interface{}, ok bool) { v, ok := m[key] return v, ok } // Add adds a value to the cache. -func (m MapCache) Add(ctx context.Context, key string, value interface{}) { m[key] = value } +func (m MapCache) Add(_ context.Context, key string, value interface{}) { m[key] = value } type NoCache struct{} -func (n NoCache) Get(ctx context.Context, key string) (value interface{}, ok bool) { return nil, false } -func (n NoCache) Add(ctx context.Context, key string, value interface{}) {} +func (n NoCache) Get(_ context.Context, _ string) (value interface{}, ok bool) { return nil, false } +func (n NoCache) Add(_ context.Context, _ string, _ interface{}) {} diff --git a/graphql/coercion_test.go b/graphql/coercion_test.go index 60b230cbc08..658b4c0dc77 100644 --- a/graphql/coercion_test.go +++ b/graphql/coercion_test.go @@ -8,7 +8,6 @@ import ( ) func TestCoerceList(t *testing.T) { - mapInput := map[string]interface{}{ "test": "value", "nested": map[string]interface{}{ @@ -34,5 +33,4 @@ func TestCoerceList(t *testing.T) { assert.Equal(t, []interface{}{mapInput}, CoerceList([]interface{}{mapInput})) assert.Equal(t, []interface{}{mapInput}, CoerceList([]map[string]interface{}{mapInput})) assert.Empty(t, CoerceList(nil)) - } diff --git a/graphql/handler/extension/complexity.go b/graphql/handler/extension/complexity.go index 2d853802bf3..e88848d18c3 100644 --- a/graphql/handler/extension/complexity.go +++ b/graphql/handler/extension/complexity.go @@ -59,17 +59,17 @@ func (c *ComplexityLimit) Validate(schema graphql.ExecutableSchema) error { func (c ComplexityLimit) MutateOperationContext(ctx context.Context, rc *graphql.OperationContext) *gqlerror.Error { op := rc.Doc.Operations.ForName(rc.OperationName) - complexity := complexity.Calculate(c.es, op, rc.Variables) + complexityCalcs := complexity.Calculate(c.es, op, rc.Variables) limit := c.Func(ctx, rc) rc.Stats.SetExtension(complexityExtension, &ComplexityStats{ - Complexity: complexity, + Complexity: complexityCalcs, ComplexityLimit: limit, }) - if complexity > limit { - err := gqlerror.Errorf("operation has complexity %d, which exceeds the limit of %d", complexity, limit) + if complexityCalcs > limit { + err := gqlerror.Errorf("operation has complexity %d, which exceeds the limit of %d", complexityCalcs, limit) errcode.Set(err, errComplexityLimit) return err } diff --git a/graphql/handler/server_test.go b/graphql/handler/server_test.go index e00d06a8d69..b1ac60fb492 100644 --- a/graphql/handler/server_test.go +++ b/graphql/handler/server_test.go @@ -169,7 +169,7 @@ func (t panicTransport) Supports(r *http.Request) bool { return true } -func (h panicTransport) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) { +func (t panicTransport) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) { panic(fmt.Errorf("panic in transport")) } diff --git a/graphql/handler/transport/sse_test.go b/graphql/handler/transport/sse_test.go index 908bb4aaed7..4b5db7c4c54 100644 --- a/graphql/handler/transport/sse_test.go +++ b/graphql/handler/transport/sse_test.go @@ -89,7 +89,7 @@ func TestSSE(t *testing.T) { handler.SendNextSubscriptionMessage() }() - var Client = &http.Client{} + Client := &http.Client{} req, err := createHTTPRequest(srv.URL, `{"query":"subscription { name }"}`) require.NoError(t, err, "Create request threw error -> %s", err) res, err := Client.Do(req) diff --git a/graphql/handler/transport/websocket_test.go b/graphql/handler/transport/websocket_test.go index 5e0b7bb3ae6..9ac8ad65cc8 100644 --- a/graphql/handler/transport/websocket_test.go +++ b/graphql/handler/transport/websocket_test.go @@ -149,7 +149,6 @@ func TestWebsocket(t *testing.T) { } else { assert.Contains(t, err.Error(), "timeout") } - }) } diff --git a/integration/generated.go b/integration/generated.go index 1889e323fd1..65220486b3c 100644 --- a/integration/generated.go +++ b/integration/generated.go @@ -707,7 +707,7 @@ func (ec *executionContext) fieldContext_Query_date(ctx context.Context, field g ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_date_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -851,7 +851,7 @@ func (ec *executionContext) fieldContext_Query_error(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_error_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -906,7 +906,7 @@ func (ec *executionContext) fieldContext_Query_complexity(ctx context.Context, f ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_complexity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -961,7 +961,7 @@ func (ec *executionContext) fieldContext_Query_coercion(ctx context.Context, fie ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query_coercion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1035,7 +1035,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2692,7 +2692,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2880,7 +2880,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/internal/code/compare.go b/internal/code/compare.go index 1150a24e48c..e521d31ee32 100644 --- a/internal/code/compare.go +++ b/internal/code/compare.go @@ -6,7 +6,7 @@ import ( ) // CompatibleTypes isnt a strict comparison, it allows for pointer differences -func CompatibleTypes(expected types.Type, actual types.Type) error { +func CompatibleTypes(expected, actual types.Type) error { // Special case to deal with pointer mismatches { expectedPtr, expectedIsPtr := expected.(*types.Pointer) @@ -84,11 +84,8 @@ func CompatibleTypes(expected types.Type, actual types.Type) error { if err := CompatibleTypes(expected.Params(), actual.Params()); err != nil { return err } - if err := CompatibleTypes(expected.Results(), actual.Results()); err != nil { - return err - } - - return nil + err := CompatibleTypes(expected.Results(), actual.Results()) + return err } case *types.Interface: if actual, ok := actual.(*types.Interface); ok { @@ -114,11 +111,8 @@ func CompatibleTypes(expected types.Type, actual types.Type) error { return err } - if err := CompatibleTypes(expected.Elem(), actual.Elem()); err != nil { - return err - } - - return nil + err := CompatibleTypes(expected.Elem(), actual.Elem()) + return err } case *types.Chan: diff --git a/internal/code/imports.go b/internal/code/imports.go index 0e499a171f1..89ebab9625f 100644 --- a/internal/code/imports.go +++ b/internal/code/imports.go @@ -138,7 +138,7 @@ func extractModuleName(content []byte) string { break } s := strings.Trim(string(tkn), " \t") - if len(s) != 0 && !strings.HasPrefix(s, "//") { + if s != "" && !strings.HasPrefix(s, "//") { break } if advance <= len(content) { @@ -171,4 +171,4 @@ func ImportPathForDir(dir string) (res string) { return "" } -var modregex = regexp.MustCompile(`module ([^\s]*)`) +var modregex = regexp.MustCompile(`module (\S*)`) diff --git a/internal/code/packages.go b/internal/code/packages.go index 0b25750a522..6cb6ef2323f 100644 --- a/internal/code/packages.go +++ b/internal/code/packages.go @@ -14,8 +14,10 @@ import ( "golang.org/x/tools/go/packages" ) -var once = sync.Once{} -var modInfo *debug.BuildInfo +var ( + once = sync.Once{} + modInfo *debug.BuildInfo +) var mode = packages.NeedName | packages.NeedFiles | diff --git a/internal/code/util.go b/internal/code/util.go index cbe40858e24..96c6e03ffad 100644 --- a/internal/code/util.go +++ b/internal/code/util.go @@ -54,7 +54,7 @@ func QualifyPackagePath(importPath string) string { return pkg.ImportPath } -var invalidPackageNameChar = regexp.MustCompile(`[^\w]`) +var invalidPackageNameChar = regexp.MustCompile(`\W`) func SanitizePackageName(pkg string) string { return invalidPackageNameChar.ReplaceAllLiteralString(filepath.Base(pkg), "_") diff --git a/internal/rewrite/rewriter.go b/internal/rewrite/rewriter.go index 07a5f04227d..1ca722dcfd4 100644 --- a/internal/rewrite/rewriter.go +++ b/internal/rewrite/rewriter.go @@ -68,7 +68,7 @@ func (r *Rewriter) getFile(filename string) string { return r.files[filename] } -func (r *Rewriter) GetPrevDecl(structname string, methodname string) *ast.FuncDecl { +func (r *Rewriter) GetPrevDecl(structname, methodname string) *ast.FuncDecl { for _, f := range r.pkg.Syntax { for _, d := range f.Decls { d, isFunc := d.(*ast.FuncDecl) @@ -99,7 +99,7 @@ func (r *Rewriter) GetPrevDecl(structname string, methodname string) *ast.FuncDe return nil } -func (r *Rewriter) GetMethodComment(structname string, methodname string) string { +func (r *Rewriter) GetMethodComment(structname, methodname string) string { d := r.GetPrevDecl(structname, methodname) if d != nil { return d.Doc.Text() @@ -107,7 +107,7 @@ func (r *Rewriter) GetMethodComment(structname string, methodname string) string return "" } -func (r *Rewriter) GetMethodBody(structname string, methodname string) string { +func (r *Rewriter) GetMethodBody(structname, methodname string) string { d := r.GetPrevDecl(structname, methodname) if d != nil { return r.getSource(d.Body.Pos()+1, d.Body.End()-1) diff --git a/lint.txt b/lint.txt deleted file mode 100644 index 308c732e7da..00000000000 --- a/lint.txt +++ /dev/null @@ -1,1167 +0,0 @@ -api/generate.go:17:2: Error return value of `syscall.Unlink` is not checked (errcheck) -api/generate.go:19:3: Error return value of `syscall.Unlink` is not checked (errcheck) -api/generate.go:35:8: weakCond: suspicious `urlString != nil && urlString[1] == "https://specs.apollo.dev/federation/v2.0"`; nil check may not be enough, check for len (gocritic) -api/generate.go:86:2: ST1003: should not use underscores in Go names; var data_plugins should be dataPlugins (stylecheck) -api/generate.go:86:2: var-naming: don't use underscores in Go names; var data_plugins should be dataPlugins (revive) -api/generate_test.go:21:6: Error return value of `os.Getwd` is not checked (errcheck) -api/generate_test.go:49:5: Error return value of `os.Chdir` is not checked (errcheck) -api/generate_test.go:51:4: Error return value of `os.Chdir` is not checked (errcheck) -api/option.go:22:54: Comment should end in a period (godot) -api/option.go:29:74: Comment should end in a period (godot) -api/option_test.go:16:32: Comment should end in a period (godot) -api/option_test.go:21:42: Comment should end in a period (godot) -client/client.go:29:51: Comment should end in a period (godot) -client/client.go:33:40: json(snake): got 'operationName' want 'operation_name' (tagliatelle) -client/client.go:47:83: Comment should end in a period (godot) -client/client.go:57:84: Comment should end in a period (godot) -client/client.go:128:7: ST1017: don't use Yoda conditions (stylecheck) -client/client.go:128:7: yodaStyleExpr: consider to change order in expression to contentType == "application/json" (gocritic) -client/client.go:141:1: paramTypeCombine: func(data interface{}, into interface{}) error could be replaced with func(data, into interface{}) error (gocritic) -client/client_test.go:57:10: Error return value of `w.Write` is not checked (errcheck) -client/client_test.go:67:25: Error return value of `bodyWriter.WriteField` is not checked (errcheck) -client/client_test.go:68:25: Error return value of `bodyWriter.WriteField` is not checked (errcheck) -client/client_test.go:73:8: Error return value of `bodyWriter.CreatePart` is not checked (errcheck) -client/client_test.go:74:12: Error return value of `ff.Write` is not checked (errcheck) -client/client_test.go:87:10: Error return value of `w.Write` is not checked (errcheck) -client/client_test.go:102:10: Error return value of `w.Write` is not checked (errcheck) -client/client_test.go:118:10: Error return value of `w.Write` is not checked (errcheck) -client/client_test.go:135:10: Error return value of `w.Write` is not checked (errcheck) -client/errors.go:6:6: var-naming: type RawJsonError should be RawJSONError (revive) -client/errors.go:6:6: ST1003: type RawJsonError should be RawJSONError (stylecheck) -client/options.go:5:49: Comment should end in a period (godot) -client/options.go:16:62: Comment should end in a period (godot) -client/options.go:23:71: Comment should end in a period (godot) -client/options.go:39:1: paramTypeCombine: func(key string, value string) Option could be replaced with func(key, value string) Option (gocritic) -client/options.go:52:51: Comment should end in a period (godot) -client/websocket.go:47:55: Comment should end in a period (godot) -client/websocket.go:50:18: Error return value is not checked (errcheck) -client/websocket.go:54: File is not `gofumpt`-ed (gofumpt) -client/websocket.go:130:13: dynamicFmtString: use errors.New(string(op.Payload)) or fmt.Errorf("%s", string(op.Payload)) instead (gocritic) -client/withfilesoption.go:23:3: typeAssertChain: rewrite if-else to type switch statement (gocritic) -client/withfilesoption.go:47:89: Comment should end in a period (godot) -client/withfilesoption.go:57:16: Error return value of `json.Marshal` is not checked (errcheck) -client/withfilesoption.go:58:24: Error return value of `bodyWriter.WriteField` is not checked (errcheck) -client/withfilesoption.go:76:9: Error return value of `fd.file.Stat` is not checked (errcheck) -client/withfilesoption.go:77:9: Error return value of `.Stat` is not checked (errcheck) -client/withfilesoption.go:100:24: Error return value of `bodyWriter.WriteField` is not checked (errcheck) -client/withfilesoption.go:110:33: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic) -client/withfilesoption.go:111:7: Error return value of `os.ReadFile` is not checked (errcheck) -client/withfilesoption.go:113:8: Error return value of `bodyWriter.CreatePart` is not checked (errcheck) -client/withfilesoption.go:114:12: Error return value of `ff.Write` is not checked (errcheck) -client/withfilesoption.go:132:9: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic) -client/withfilesoption_test.go:18:13: Error return value of `os.CreateTemp` is not checked (errcheck) -client/withfilesoption_test.go:19:13: Error return value of `os.CreateTemp` is not checked (errcheck) -client/withfilesoption_test.go:20:13: Error return value of `os.CreateTemp` is not checked (errcheck) -client/withfilesoption_test.go:24:23: Error return value of `tempFile1.WriteString` is not checked (errcheck) -client/withfilesoption_test.go:25:23: Error return value of `tempFile2.WriteString` is not checked (errcheck) -client/withfilesoption_test.go:26:23: Error return value of `tempFile3.WriteString` is not checked (errcheck) -client/withfilesoption_test.go:37:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -client/withfilesoption_test.go:58:11: Error return value of `w.Write` is not checked (errcheck) -client/withfilesoption_test.go:79:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -client/withfilesoption_test.go:109:11: Error return value of `w.Write` is not checked (errcheck) -client/withfilesoption_test.go:132:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -client/withfilesoption_test.go:156:27: badRegexp: `,` is duplicated in [0,1,2] (gocritic) -client/withfilesoption_test.go:165:11: Error return value of `w.Write` is not checked (errcheck) -client/withfilesoption_test.go:191:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -client/withfilesoption_test.go:225:11: Error return value of `w.Write` is not checked (errcheck) -codegen/args.go:28:77: Comment should end in a period (godot) -codegen/args.go:87:4: nestingReduce: invert if cond, replace body with `continue`, move old body after the statement (gocritic) -codegen/args.go:106:16: ST1016: methods on the same type should have the same receiver name (seen 1x "a", 2x "d") (stylecheck) -codegen/config/binder.go:18:71: Comment should end in a period (godot) -codegen/config/binder.go:62:1: paramTypeCombine: func(pkgName string, typeName string) (types.Type, error) could be replaced with func(pkgName, typeName string) (types.Type, error) (gocritic) -codegen/config/binder.go:92:15: dynamicFmtString: use errors.New(name + " not found in typemap") or fmt.Errorf("%s", name + " not found in typemap") instead (gocritic) -codegen/config/binder.go:116:1: paramTypeCombine: func(pkgName string, typeName string) (types.Object, error) could be replaced with func(pkgName, typeName string) (types.Object, error) (gocritic) -codegen/config/binder.go:198:27: ST1016: methods on the same type should have the same receiver name (seen 12x "t", 1x "ref") (stylecheck) -codegen/config/binder.go:214:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:219:111: Comment should end in a period (godot) -codegen/config/binder.go:220:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:228:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:232:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:237:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:245:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:250:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:255:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:259:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:273:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:285:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/binder.go:297:1: receiver-naming: receiver name t should be consistent with previous receiver name ref for TypeReference (revive) -codegen/config/config.go:46:54: Comment should end in a period (godot) -codegen/config/config.go:60:77: Comment should end in a period (godot) -codegen/config/config.go:101:47: Comment should end in a period (godot) -codegen/config/config.go:280:5: nestingReduce: invert if cond, replace body with `continue`, move old body after the statement (gocritic) -codegen/config/config.go:286:24: Error return value is not checked (errcheck) -codegen/config/config.go:292:20: Error return value is not checked (errcheck) -codegen/config/config.go:322:25: yaml(snake): got 'fieldName' want 'field_name' (tagliatelle) -codegen/config/config.go:481:1: paramTypeCombine: func(name string, goType string) could be replaced with func(name, goType string) (gocritic) -codegen/config/config.go:502:33: Comment should end in a period (godot) -codegen/data.go:16:63: Comment should end in a period (godot) -codegen/data.go:50:130: Comment should end in a period (godot) -codegen/data.go:210:2: var-naming: don't use underscores in Go names; var __type should be _Type (revive) -codegen/data.go:210:2: ST1003: should not use underscores in Go names; var __type should be _Type (stylecheck) -codegen/data.go:224:2: ST1003: should not use underscores in Go names; var __schema should be _Schema (stylecheck) -codegen/data.go:224:2: var-naming: don't use underscores in Go names; var __schema should be _Schema (revive) -codegen/directive.go:14:52: Comment should end in a period (godot) -codegen/directive.go:26:39: Comment should end in a period (godot) -codegen/field.go:165:10: Error return value is not checked (errcheck) -codegen/field.go:229:43: Comment should end in a period (godot) -codegen/field.go:556:10: redundantSprint: use f.TypeReference.GO.String() instead (gocritic) -codegen/field_test.go:44:9: Error return value is not checked (errcheck) -codegen/field_test.go:45:10: Error return value is not checked (errcheck) -codegen/field_test.go:46:10: Error return value is not checked (errcheck) -codegen/field_test.go:47:9: Error return value is not checked (errcheck) -codegen/field_test.go:48:11: Error return value is not checked (errcheck) -codegen/generate.go:100:32: importShadow: shadow of imported from 'github.com/99designs/gqlgen/codegen/config' package 'config' (gocritic) -codegen/generate.go:116:61: ptrToRefParam: consider `builds' to be of non-pointer type (gocritic) -codegen/generate.go:158:29: ptrToRefParam: consider `builds' to be of non-pointer type (gocritic) -codegen/generate.go:170:28: ptrToRefParam: consider `builds' to be of non-pointer type (gocritic) -codegen/generate.go:182:32: ptrToRefParam: consider `builds' to be of non-pointer type (gocritic) -codegen/generate.go:202:37: ptrToRefParam: consider `builds' to be of non-pointer type (gocritic) -codegen/templates/import_test.go:85:6: Error return value of `a.Reserve` is not checked (errcheck) -codegen/templates/import_test.go:86:6: Error return value of `a.Reserve` is not checked (errcheck) -codegen/templates/templates.go:188:1: paramTypeCombine: func(width int, pad string, s string) string could be replaced with func(width int, pad, s string) string (gocritic) -codegen/templates/templates.go:508:68: empty-block: this block is empty, you can remove it (revive) -codegen/templates/templates.go:566:93: Comment should end in a period (godot) -codegen/templates/templates.go:734:8: G306: Expect WriteFile permissions to be 0600 or less (gosec) -codegen/templates/templates_test.go:318: File is not `gofumpt`-ed (gofumpt) -codegen/templates/templates_test.go:323:2: Error return value of `os.Mkdir` is not checked (errcheck) -codegen/templates/templates_test.go:337:18: Error return value of `os.ReadFile` is not checked (errcheck) -codegen/testserver/followschema/complexity_test.go:33:16: json(snake): got 'oneFoo' want 'one_foo' (tagliatelle) -codegen/testserver/followschema/complexity_test.go:34:16: json(snake): got 'twoFoo' want 'two_foo' (tagliatelle) -codegen/testserver/followschema/complexity_test.go:35:16: json(snake): got 'oldFoo' want 'old_foo' (tagliatelle) -codegen/testserver/followschema/complexity_test.go:36:16: json(snake): got 'newFoo' want 'new_foo' (tagliatelle) -codegen/testserver/followschema/complexity_test.go:37:4: ST1003: should not use underscores in Go names; struct field New_foo should be NewFoo (stylecheck) -codegen/testserver/followschema/complexity_test.go:37:4: var-naming: don't use underscores in Go names; struct field New_foo should be NewFoo (revive) -codegen/testserver/followschema/defaults_test.go:12:6: test helper function should start from t.Helper() (thelper) -codegen/testserver/followschema/directive_test.go:57:3: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/directive_test.go:68:36: TestDirectives$11 - result 1 (error) is always nil (unparam) -codegen/testserver/followschema/directive_test.go:96:14: dynamicFmtString: use errors.New(msg) or fmt.Errorf("%s", msg) instead (gocritic) -codegen/testserver/followschema/directive_test.go:98:13: dynamicFmtString: use errors.New(*message) or fmt.Errorf("%s", *message) instead (gocritic) -codegen/testserver/followschema/directive_test.go:105:10: Error return value is not checked (errcheck) -codegen/testserver/followschema/directive_test.go:157:5: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/directive_test.go:171:11: Error return value is not checked (errcheck) -codegen/testserver/followschema/directive_test.go:178:11: Error return value is not checked (errcheck) -codegen/testserver/followschema/directive_test.go:187:9: Error return value is not checked (errcheck) -codegen/testserver/followschema/directive_test.go:192:9: Error return value is not checked (errcheck) -codegen/testserver/followschema/embedded.go:3:23: Comment should end in a period (godot) -codegen/testserver/followschema/embedded.go:9:19: Comment should end in a period (godot) -codegen/testserver/followschema/embedded.go:12:47: Comment should end in a period (godot) -codegen/testserver/followschema/embedded.go:15:48: Comment should end in a period (godot) -codegen/testserver/followschema/embedded.go:20:23: Comment should end in a period (godot) -codegen/testserver/followschema/embedded.go:27:50: Comment should end in a period (godot) -codegen/testserver/followschema/embedded.go:32:23: Comment should end in a period (godot) -codegen/testserver/followschema/fields_order.go:4:21: json(snake): got 'firstField' want 'first_field' (tagliatelle) -codegen/testserver/followschema/fields_order_test.go:14:27: json(snake): got 'firstFieldValue' want 'first_field_value' (tagliatelle) -codegen/testserver/followschema/fields_order_test.go:15:4: json(snake): got 'overrideValueViaInput' want 'override_value_via_input' (tagliatelle) -codegen/testserver/followschema/interfaces.go:52:56: Comment should end in a period (godot) -codegen/testserver/followschema/interfaces_test.go:60:4: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/interfaces_test.go:68:7: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/introspection_test.go:55:7: json(snake): got '__type' want 'type' (tagliatelle) -codegen/testserver/followschema/invalid-packagename/invalid-identifier.go:1:1: ST1003: should not use underscores in package names (stylecheck) -codegen/testserver/followschema/invalid-packagename/invalid-identifier.go:1:9: var-naming: don't use an underscore in package name (revive) -codegen/testserver/followschema/maps_test.go:19:4: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/middleware_test.go:41:9: Error return value is not checked (errcheck) -codegen/testserver/followschema/middleware_test.go:46:9: Error return value is not checked (errcheck) -codegen/testserver/followschema/models.go:52:37: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/models.go:56:34: unused-parameter: parameter 'w' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/models.go:62:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/models.go:62:56: unused-parameter: parameter 'u' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/models.go:71:2: ST1003: struct field IdStr should be IDStr (stylecheck) -codegen/testserver/followschema/models.go:71:2: var-naming: struct field IdStr should be IDStr (revive) -codegen/testserver/followschema/models.go:72:2: ST1003: struct field IdInt should be IDInt (stylecheck) -codegen/testserver/followschema/models.go:72:2: var-naming: struct field IdInt should be IDInt (revive) -codegen/testserver/followschema/mutation_with_custom_scalar.go:27:10: Error return value of `json.Marshal` is not checked (errcheck) -codegen/testserver/followschema/mutation_with_custom_scalar.go:28:9: Error return value of `w.Write` is not checked (errcheck) -codegen/testserver/followschema/nulls_test.go:40:5: var-naming: struct field Id should be ID (revive) -codegen/testserver/followschema/nulls_test.go:40:5: ST1003: struct field Id should be ID (stylecheck) -codegen/testserver/followschema/nulls_test.go:122:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/nulls_test.go:123:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/nulls_test.go:124:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/nulls_test.go:125:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/nulls_test.go:126:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/followschema/ptr_to_ptr_input_test.go:13:32: json(snake): got 'updatePtrToPtr' want 'update_ptr_to_ptr' (tagliatelle) -codegen/testserver/followschema/resolver.go:15:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:16:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:16:61: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:20:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:21:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:21:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:25:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:26:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:26:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:30:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:31:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:31:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:35:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:36:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:36:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:40:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:41:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:41:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:45:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:46:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:46:61: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:50:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:51:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:51:67: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:55:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:56:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:56:62: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:60:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:61:50: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:61:71: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:65:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:66:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:66:65: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:70:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:71:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:71:64: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:75:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:76:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:76:65: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:80:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:81:45: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:81:66: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:85:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:86:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:86:60: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:86:73: unused-parameter: parameter 'u' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:90:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:91:31: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:91:52: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:91:62: unused-parameter: parameter 'limit' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:95:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:96:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:96:56: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:100:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:101:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:101:62: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:105:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:106:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:106:60: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:110:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:111:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:115:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:116:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:120:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:121:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:121:55: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:125:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:126:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:126:56: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:130:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:131:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:131:59: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:135:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:136:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:140:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:141:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:145:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:146:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:146:51: unused-parameter: parameter 'id' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:150:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:151:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:151:58: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:155:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:156:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:156:57: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:160:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:161:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:161:65: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:165:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:166:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:170:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:171:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:175:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:176:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:180:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:181:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:185:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:186:1: paramTypeCombine: func(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) could be replaced with func(ctx context.Context, falsyBoolean, truthyBoolean *bool) (*DefaultParametersMirror, error) (gocritic) -codegen/testserver/followschema/resolver.go:186:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:186:64: unused-parameter: parameter 'falsyBoolean' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:186:84: unused-parameter: parameter 'truthyBoolean' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:190:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:191:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:191:59: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:195:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:196:1: paramTypeCombine: func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) could be replaced with func(ctx context.Context, arg, arg2 *int, arg3 *string) (*string, error) (gocritic) -codegen/testserver/followschema/resolver.go:196:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:196:67: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:196:77: unused-parameter: parameter 'arg2' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:196:88: unused-parameter: parameter 'arg3' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:200:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:201:48: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:201:69: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:205:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:206:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:206:61: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:210:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:211:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:211:65: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:215:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:216:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:220:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:221:58: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:225:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:226:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:226:64: unused-parameter: parameter 'ret' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:230:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:231:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:235:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:236:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:240:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:241:48: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:245:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:246:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:250:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:251:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:255:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:256:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:260:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:261:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:261:58: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:265:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:266:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:270:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:271:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:275:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:276:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:280:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:281:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:285:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:286:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:290:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:291:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:295:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:296:29: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:300:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:301:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:305:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:306:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:306:65: unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:310:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:311:50: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:311:71: unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:315:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:316:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:320:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:321:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:325:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:326:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:330:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:331:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:335:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:336:31: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:340:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:341:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:345:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:346:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:350:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:351:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:355:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:356:47: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:360:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:361:45: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:365:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:366:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:370:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:371:52: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:375:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:376:51: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:380:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:381:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:381:60: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:385:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:386:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:390:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:391:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:395:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:396:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:396:55: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:400:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:401:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:405:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:406:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:410:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:411:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:415:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:416:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:420:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:421:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:425:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:426:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:430:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:431:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:435:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:436:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:440:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:441:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:445:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:446:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:450:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:451:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:455:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:456:45: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:456:66: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:460:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:461:1: paramTypeCombine: func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) could be replaced with func(ctx context.Context, arg, arg2 *int, arg3 *string) (<-chan *string, error) (gocritic) -codegen/testserver/followschema/resolver.go:461:53: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:461:74: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:461:84: unused-parameter: parameter 'arg2' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:461:95: unused-parameter: parameter 'arg3' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:465:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:466:48: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:470:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:471:55: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:475:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:476:42: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:480:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:481:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:485:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:486:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:486:53: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:490:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:491:29: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:491:50: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:491:61: unused-parameter: parameter 'limit' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:495:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:496:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:496:55: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:496:71: unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:500:10: Comment should end in a period (godot) -codegen/testserver/followschema/resolver.go:501:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:501:57: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:501:75: unused-parameter: parameter 'idx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/resolver.go:554: File is not `gofumpt`-ed (gofumpt) -codegen/testserver/followschema/resolver.go:554:1: typeDefFirst: definition of type 'backedByInterfaceResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:555:1: typeDefFirst: definition of type 'errorsResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:556:1: typeDefFirst: definition of type 'forcedResolverResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:557:1: typeDefFirst: definition of type 'modelMethodsResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:558:1: typeDefFirst: definition of type 'mutationResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:559:1: typeDefFirst: definition of type 'overlappingFieldsResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:560:1: typeDefFirst: definition of type 'panicsResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:561:1: typeDefFirst: definition of type 'petResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:562:1: typeDefFirst: definition of type 'primitiveResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:563:1: typeDefFirst: definition of type 'primitiveStringResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:564:1: typeDefFirst: definition of type 'queryResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:565:1: typeDefFirst: definition of type 'subscriptionResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:566:1: typeDefFirst: definition of type 'userResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:567:1: typeDefFirst: definition of type 'wrappedMapResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/resolver.go:568:1: typeDefFirst: definition of type 'wrappedSliceResolver' should appear before its methods (gocritic) -codegen/testserver/followschema/response_extension_test.go:31:7: Error return value of `c.RawPost` is not checked (errcheck) -codegen/testserver/followschema/scalar_context.go:21:16: Error return value of `io.WriteString` is not checked (errcheck) -codegen/testserver/followschema/scalar_context.go:25:79: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/scalar_context.go:30:39: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/scalar_context.go:32:17: Error return value of `io.WriteString` is not checked (errcheck) -codegen/testserver/followschema/scalar_context.go:37:62: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/subscription_test.go:93:9: Error return value is not checked (errcheck) -codegen/testserver/followschema/subscription_test.go:98:9: Error return value is not checked (errcheck) -codegen/testserver/followschema/subscription_test.go:121:12: Error return value is not checked (errcheck) -codegen/testserver/followschema/subscription_test.go:157:12: Error return value is not checked (errcheck) -codegen/testserver/followschema/subscription_test.go:171:6: var-naming: struct field Id should be ID (revive) -codegen/testserver/followschema/subscription_test.go:171:6: ST1003: struct field Id should be ID (stylecheck) -codegen/testserver/followschema/subscription_test.go:184:12: Error return value is not checked (errcheck) -codegen/testserver/followschema/v-ok.go:3:22: Comment should end in a period (godot) -codegen/testserver/followschema/v-ok.go:10:20: Comment should end in a period (godot) -codegen/testserver/followschema/validtypes_test.go:26:16: json(snake): got 'differentCase' want 'different_case' (tagliatelle) -codegen/testserver/followschema/variadic.go:12:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/followschema/variadic.go:12:61: unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/complexity_test.go:33:16: json(snake): got 'oneFoo' want 'one_foo' (tagliatelle) -codegen/testserver/singlefile/complexity_test.go:34:16: json(snake): got 'twoFoo' want 'two_foo' (tagliatelle) -codegen/testserver/singlefile/complexity_test.go:35:16: json(snake): got 'oldFoo' want 'old_foo' (tagliatelle) -codegen/testserver/singlefile/complexity_test.go:36:16: json(snake): got 'newFoo' want 'new_foo' (tagliatelle) -codegen/testserver/singlefile/complexity_test.go:37:4: var-naming: don't use underscores in Go names; struct field New_foo should be NewFoo (revive) -codegen/testserver/singlefile/complexity_test.go:37:4: ST1003: should not use underscores in Go names; struct field New_foo should be NewFoo (stylecheck) -codegen/testserver/singlefile/defaults_test.go:12:6: test helper function should start from t.Helper() (thelper) -codegen/testserver/singlefile/directive_test.go:57:3: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/directive_test.go:68:36: TestDirectives$11 - result 1 (error) is always nil (unparam) -codegen/testserver/singlefile/directive_test.go:96:14: dynamicFmtString: use errors.New(msg) or fmt.Errorf("%s", msg) instead (gocritic) -codegen/testserver/singlefile/directive_test.go:98:13: dynamicFmtString: use errors.New(*message) or fmt.Errorf("%s", *message) instead (gocritic) -codegen/testserver/singlefile/directive_test.go:105:10: Error return value is not checked (errcheck) -codegen/testserver/singlefile/directive_test.go:157:5: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/directive_test.go:171:11: Error return value is not checked (errcheck) -codegen/testserver/singlefile/directive_test.go:178:11: Error return value is not checked (errcheck) -codegen/testserver/singlefile/directive_test.go:187:9: Error return value is not checked (errcheck) -codegen/testserver/singlefile/directive_test.go:192:9: Error return value is not checked (errcheck) -codegen/testserver/singlefile/embedded.go:3:23: Comment should end in a period (godot) -codegen/testserver/singlefile/embedded.go:9:19: Comment should end in a period (godot) -codegen/testserver/singlefile/embedded.go:12:47: Comment should end in a period (godot) -codegen/testserver/singlefile/embedded.go:15:48: Comment should end in a period (godot) -codegen/testserver/singlefile/embedded.go:20:23: Comment should end in a period (godot) -codegen/testserver/singlefile/embedded.go:27:50: Comment should end in a period (godot) -codegen/testserver/singlefile/embedded.go:32:23: Comment should end in a period (godot) -codegen/testserver/singlefile/fields_order.go:4:21: json(snake): got 'firstField' want 'first_field' (tagliatelle) -codegen/testserver/singlefile/fields_order_test.go:14:27: json(snake): got 'firstFieldValue' want 'first_field_value' (tagliatelle) -codegen/testserver/singlefile/fields_order_test.go:15:4: json(snake): got 'overrideValueViaInput' want 'override_value_via_input' (tagliatelle) -codegen/testserver/singlefile/interfaces.go:52:56: Comment should end in a period (godot) -codegen/testserver/singlefile/interfaces_test.go:60:4: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/interfaces_test.go:68:7: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/introspection_test.go:55:7: json(snake): got '__type' want 'type' (tagliatelle) -codegen/testserver/singlefile/invalid-packagename/invalid-identifier.go:1:1: ST1003: should not use underscores in package names (stylecheck) -codegen/testserver/singlefile/invalid-packagename/invalid-identifier.go:1:9: var-naming: don't use an underscore in package name (revive) -codegen/testserver/singlefile/maps_test.go:19:4: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/middleware_test.go:49:9: Error return value is not checked (errcheck) -codegen/testserver/singlefile/middleware_test.go:54:9: Error return value is not checked (errcheck) -codegen/testserver/singlefile/models.go:52:37: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/models.go:56:34: unused-parameter: parameter 'w' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/models.go:62:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/models.go:62:56: unused-parameter: parameter 'u' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/models.go:71:2: ST1003: struct field IdStr should be IDStr (stylecheck) -codegen/testserver/singlefile/models.go:71:2: var-naming: struct field IdStr should be IDStr (revive) -codegen/testserver/singlefile/models.go:72:2: var-naming: struct field IdInt should be IDInt (revive) -codegen/testserver/singlefile/models.go:72:2: ST1003: struct field IdInt should be IDInt (stylecheck) -codegen/testserver/singlefile/mutation_with_custom_scalar.go:27:10: Error return value of `json.Marshal` is not checked (errcheck) -codegen/testserver/singlefile/mutation_with_custom_scalar.go:28:9: Error return value of `w.Write` is not checked (errcheck) -codegen/testserver/singlefile/nulls_test.go:40:5: var-naming: struct field Id should be ID (revive) -codegen/testserver/singlefile/nulls_test.go:40:5: ST1003: struct field Id should be ID (stylecheck) -codegen/testserver/singlefile/nulls_test.go:122:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/nulls_test.go:123:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/nulls_test.go:124:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/nulls_test.go:125:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/nulls_test.go:126:93: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/testserver/singlefile/ptr_to_ptr_input_test.go:13:32: json(snake): got 'updatePtrToPtr' want 'update_ptr_to_ptr' (tagliatelle) -codegen/testserver/singlefile/resolver.go:15:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:16:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:16:61: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:20:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:21:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:21:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:25:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:26:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:26:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:30:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:31:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:31:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:35:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:36:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:36:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:40:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:41:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:41:49: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:45:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:46:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:46:61: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:50:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:51:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:51:67: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:55:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:56:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:56:62: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:60:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:61:50: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:61:71: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:65:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:66:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:66:65: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:70:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:71:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:71:64: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:75:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:76:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:76:65: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:80:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:81:45: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:81:66: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:85:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:86:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:86:60: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:86:73: unused-parameter: parameter 'u' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:90:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:91:31: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:91:52: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:91:62: unused-parameter: parameter 'limit' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:95:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:96:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:96:56: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:100:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:101:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:101:62: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:105:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:106:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:106:60: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:110:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:111:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:115:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:116:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:120:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:121:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:121:55: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:125:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:126:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:126:56: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:130:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:131:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:131:59: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:135:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:136:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:140:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:141:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:145:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:146:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:146:51: unused-parameter: parameter 'id' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:150:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:151:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:151:58: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:155:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:156:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:156:57: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:160:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:161:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:161:65: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:165:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:166:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:170:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:171:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:175:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:176:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:180:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:181:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:185:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:186:1: paramTypeCombine: func(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) could be replaced with func(ctx context.Context, falsyBoolean, truthyBoolean *bool) (*DefaultParametersMirror, error) (gocritic) -codegen/testserver/singlefile/resolver.go:186:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:186:64: unused-parameter: parameter 'falsyBoolean' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:186:84: unused-parameter: parameter 'truthyBoolean' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:190:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:191:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:191:59: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:195:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:196:1: paramTypeCombine: func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) could be replaced with func(ctx context.Context, arg, arg2 *int, arg3 *string) (*string, error) (gocritic) -codegen/testserver/singlefile/resolver.go:196:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:196:67: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:196:77: unused-parameter: parameter 'arg2' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:196:88: unused-parameter: parameter 'arg3' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:200:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:201:48: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:201:69: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:205:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:206:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:206:61: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:210:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:211:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:211:65: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:215:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:216:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:220:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:221:58: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:225:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:226:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:226:64: unused-parameter: parameter 'ret' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:230:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:231:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:235:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:236:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:240:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:241:48: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:245:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:246:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:250:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:251:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:255:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:256:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:260:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:261:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:261:58: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:265:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:266:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:270:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:271:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:275:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:276:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:280:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:281:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:285:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:286:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:290:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:291:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:295:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:296:29: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:300:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:301:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:305:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:306:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:306:65: unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:310:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:311:50: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:311:71: unused-parameter: parameter 'in' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:315:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:316:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:320:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:321:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:325:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:326:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:330:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:331:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:335:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:336:31: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:340:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:341:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:345:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:346:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:350:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:351:41: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:355:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:356:47: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:360:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:361:45: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:365:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:366:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:370:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:371:52: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:375:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:376:51: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:380:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:381:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:381:60: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:385:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:386:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:390:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:391:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:395:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:396:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:396:55: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:400:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:401:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:405:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:406:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:410:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:411:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:415:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:416:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:420:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:421:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:425:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:426:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:430:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:431:39: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:435:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:436:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:440:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:441:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:445:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:446:40: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:450:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:451:44: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:455:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:456:45: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:456:66: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:460:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:461:1: paramTypeCombine: func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) could be replaced with func(ctx context.Context, arg, arg2 *int, arg3 *string) (<-chan *string, error) (gocritic) -codegen/testserver/singlefile/resolver.go:461:53: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:461:74: unused-parameter: parameter 'arg' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:461:84: unused-parameter: parameter 'arg2' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:461:95: unused-parameter: parameter 'arg3' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:465:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:466:48: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:470:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:471:55: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:475:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:476:42: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:480:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:481:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:485:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:486:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:486:53: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:490:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:491:29: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:491:50: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:491:61: unused-parameter: parameter 'limit' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:495:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:496:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:496:55: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:496:71: unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:500:10: Comment should end in a period (godot) -codegen/testserver/singlefile/resolver.go:501:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:501:57: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:501:75: unused-parameter: parameter 'idx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/resolver.go:554: File is not `gofumpt`-ed (gofumpt) -codegen/testserver/singlefile/resolver.go:554:1: typeDefFirst: definition of type 'backedByInterfaceResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:555:1: typeDefFirst: definition of type 'errorsResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:556:1: typeDefFirst: definition of type 'forcedResolverResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:557:1: typeDefFirst: definition of type 'modelMethodsResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:558:1: typeDefFirst: definition of type 'mutationResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:559:1: typeDefFirst: definition of type 'overlappingFieldsResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:560:1: typeDefFirst: definition of type 'panicsResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:561:1: typeDefFirst: definition of type 'petResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:562:1: typeDefFirst: definition of type 'primitiveResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:563:1: typeDefFirst: definition of type 'primitiveStringResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:564:1: typeDefFirst: definition of type 'queryResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:565:1: typeDefFirst: definition of type 'subscriptionResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:566:1: typeDefFirst: definition of type 'userResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:567:1: typeDefFirst: definition of type 'wrappedMapResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/resolver.go:568:1: typeDefFirst: definition of type 'wrappedSliceResolver' should appear before its methods (gocritic) -codegen/testserver/singlefile/response_extension_test.go:31:7: Error return value of `c.RawPost` is not checked (errcheck) -codegen/testserver/singlefile/scalar_context.go:21:16: Error return value of `io.WriteString` is not checked (errcheck) -codegen/testserver/singlefile/scalar_context.go:25:79: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/scalar_context.go:30:39: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/scalar_context.go:32:17: Error return value of `io.WriteString` is not checked (errcheck) -codegen/testserver/singlefile/scalar_context.go:37:62: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/subscription_test.go:93:9: Error return value is not checked (errcheck) -codegen/testserver/singlefile/subscription_test.go:98:9: Error return value is not checked (errcheck) -codegen/testserver/singlefile/subscription_test.go:121:12: Error return value is not checked (errcheck) -codegen/testserver/singlefile/subscription_test.go:157:12: Error return value is not checked (errcheck) -codegen/testserver/singlefile/subscription_test.go:171:6: var-naming: struct field Id should be ID (revive) -codegen/testserver/singlefile/subscription_test.go:171:6: ST1003: struct field Id should be ID (stylecheck) -codegen/testserver/singlefile/subscription_test.go:184:12: Error return value is not checked (errcheck) -codegen/testserver/singlefile/v-ok.go:3:22: Comment should end in a period (godot) -codegen/testserver/singlefile/v-ok.go:10:20: Comment should end in a period (godot) -codegen/testserver/singlefile/validtypes_test.go:26:16: json(snake): got 'differentCase' want 'different_case' (tagliatelle) -codegen/testserver/singlefile/variadic.go:12:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -codegen/testserver/singlefile/variadic.go:12:61: unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive) -codegen/type.go:21:18: redundantSprint: use existing.GQL.String() instead (gocritic) -codegen/type.go:22:13: redundantSprint: use ref.GQL.String() instead (gocritic) -codegen/type.go:24:10: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic) -codegen/util.go:11:3: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/util.go:16:15: ST1005: error strings should not end with punctuation or newlines (stylecheck) -codegen/util.go:16:26: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) -codegen/util.go:24:3: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -codegen/util.go:31:3: return both the `nil` error and invalid value: use a sentinel error instead (nilnil) -graphql/bool.go:11:48: Error return value of `w.Write` is not checked (errcheck) -graphql/bool.go:13:47: Error return value of `w.Write` is not checked (errcheck) -graphql/bool.go:19:10: equalFold: consider replacing with strings.EqualFold(v, "true") (gocritic) -graphql/cache.go:5:57: Comment should end in a period (godot) -graphql/cache.go:14:112: Comment should end in a period (godot) -graphql/cache.go:18:23: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/cache.go:24:23: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/cache.go:28:22: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/cache.go:28:43: unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive) -graphql/cache.go:29:22: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/cache.go:29:43: unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive) -graphql/cache.go:29:55: unused-parameter: parameter 'value' seems to be unused, consider removing or renaming it as _ (revive) -graphql/coercion_test.go:11: File is not `gofumpt`-ed (gofumpt) -graphql/coercion_test.go:37: File is not `gofumpt`-ed (gofumpt) -graphql/context_field.go:14:40: Comment should end in a period (godot) -graphql/context_field.go:84:43: Comment should end in a period (godot) -graphql/context_field.go:101:1: paramTypeCombine: func(a ast.Path, b ast.Path) bool could be replaced with func(a, b ast.Path) bool (gocritic) -graphql/context_operation.go:12:72: Comment should end in a period (godot) -graphql/context_operation.go:31:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/context_operation.go:56:75: Comment should end in a period (godot) -graphql/context_operation.go:80:62: Comment should end in a period (godot) -graphql/context_operation.go:105:55: Comment should end in a period (godot) -graphql/context_operation.go:113:20: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/context_response.go:60:69: Comment should end in a period (godot) -graphql/context_response.go:80:76: Comment should end in a period (godot) -graphql/context_response.go:119:81: Comment should end in a period (godot) -graphql/context_response.go:136:81: Comment should end in a period (godot) -graphql/errcode/codes.go:15:85: Comment should end in a period (godot) -graphql/errcode/codes.go:17:53: Comment should end in a period (godot) -graphql/errcode/codes.go:27:22: Comment should end in a period (godot) -graphql/errcode/codes.go:32:57: Comment should end in a period (godot) -graphql/errcode/codes.go:37:16: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/errcode/codes.go:49:99: Comment should end in a period (godot) -graphql/executable_schema.go:101:1: paramTypeCombine: func(c *[]CollectedField, name string, alias string, objectDefinition *ast.Definition, creator func() CollectedField) *CollectedField could be replaced with func(c *[]CollectedField, name, alias string, objectDefinition *ast.Definition, creator func() CollectedField) *CollectedField (gocritic) -graphql/executable_schema.go:103:3: nestingReduce: invert if cond, replace body with `continue`, move old body after the statement (gocritic) -graphql/executor/executor.go:83:17: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/executor/executor.go:193:17: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/executor/executor.go:205:11: Error return value is not checked (errcheck) -graphql/executor/executor.go:205:16: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/executor/executor_test.go:148:17: Function `query` should pass the context parameter (contextcheck) -graphql/executor/executor_test.go:161:17: Function `query` should pass the context parameter (contextcheck) -graphql/executor/executor_test.go:179:37: unused-parameter: parameter 's' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/executor_test.go:195:35: unused-parameter: parameter 's' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/extensions.go:31:104: Comment should end in a period (godot) -graphql/executor/extensions.go:36:113: Comment should end in a period (godot) -graphql/executor/extensions.go:41:112: Comment should end in a period (godot) -graphql/executor/extensions.go:46:110: Comment should end in a period (godot) -graphql/executor/extensions.go:135:32: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/extensions.go:152:34: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/extensions.go:169:35: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/extensions.go:186:39: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/testexecutor/testexecutor.go:21:38: unused-parameter: parameter 'v' seems to be unused, consider removing or renaming it as _ (revive) -graphql/executor/testexecutor/testexecutor.go:83:8: commentedOutCode: may want to remove commented-out code (gocritic) -graphql/fieldset.go:53:14: Error return value of `writer.Write` is not checked (errcheck) -graphql/fieldset.go:56:16: Error return value of `writer.Write` is not checked (errcheck) -graphql/fieldset.go:59:15: Error return value of `writer.Write` is not checked (errcheck) -graphql/fieldset.go:62:14: Error return value of `writer.Write` is not checked (errcheck) -graphql/float.go:14:3: preferFprint: suggestion: fmt.Fprintf(w, "%g", f) (gocritic) -graphql/float.go:14:17: Error return value of `io.WriteString` is not checked (errcheck) -graphql/float.go:40:3: preferFprint: suggestion: fmt.Fprintf(w, "%g", f) (gocritic) -graphql/float.go:40:17: Error return value of `io.WriteString` is not checked (errcheck) -graphql/float.go:45:28: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler.go:27:40: json(snake): got 'operationName' want 'operation_name' (tagliatelle) -graphql/handler.go:87:46: Comment should end in a period (godot) -graphql/handler.go:92:117: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tracing.go:33:51: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tracing.go:38:111: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tracing.go:58:131: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tracing.go:67:97: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tracing.go:80:74: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tracing_test.go:127:34: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/apollofederatedtracingv1/tree_builder.go:29:119: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tree_builder.go:46:92: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tree_builder.go:62:110: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tree_builder.go:63:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/apollofederatedtracingv1/tree_builder.go:78:113: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tree_builder.go:100:133: Comment should end in a period (godot) -graphql/handler/apollofederatedtracingv1/tree_builder.go:132:52: Comment should end in a period (godot) -graphql/handler/apollotracing/tracer.go:18:28: json(snake): got 'startTime' want 'start_time' (tagliatelle) -graphql/handler/apollotracing/tracer.go:19:28: json(snake): got 'endTime' want 'end_time' (tagliatelle) -graphql/handler/apollotracing/tracer.go:29:29: json(snake): got 'startOffset' want 'start_offset' (tagliatelle) -graphql/handler/apollotracing/tracer.go:35:29: json(snake): got 'parentType' want 'parent_type' (tagliatelle) -graphql/handler/apollotracing/tracer.go:36:29: json(snake): got 'fieldName' want 'field_name' (tagliatelle) -graphql/handler/apollotracing/tracer.go:37:29: json(snake): got 'returnType' want 'return_type' (tagliatelle) -graphql/handler/apollotracing/tracer.go:38:29: json(snake): got 'startOffset' want 'start_offset' (tagliatelle) -graphql/handler/debug/tracer.go:11:2: dot-imports: should not use dot imports (revive) -graphql/handler/debug/tracer.go:11:2: ST1001: should not use dot imports (stylecheck) -graphql/handler/debug/tracer.go:33:27: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/debug/tracer.go:43:2: ST1003: var valueJson should be valueJSON (stylecheck) -graphql/handler/debug/tracer.go:43:2: var-naming: var valueJson should be valueJSON (revive) -graphql/handler/extension/apq.go:49:43: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/extension/apq.go:62:18: mapstructure(kebab): got 'sha256Hash' want 'sha256-hash' (tagliatelle) -graphql/handler/extension/apq.go:83:21: Error return value is not checked (errcheck) -graphql/handler/extension/apq.go:107:5: Error return value is not checked (errcheck) -graphql/handler/extension/complexity.go:39:69: Comment should end in a period (godot) -graphql/handler/extension/complexity.go:62:2: importShadow: shadow of imported from 'github.com/99designs/gqlgen/complexity' package 'complexity' (gocritic) -graphql/handler/extension/complexity.go:86:5: Error return value is not checked (errcheck) -graphql/handler/extension/complexity_test.go:110:1: paramTypeCombine: func(handler http.Handler, method string, target string, body string) *httptest.ResponseRecorder could be replaced with func(handler http.Handler, method, target, body string) *httptest.ResponseRecorder (gocritic) -graphql/handler/extension/complexity_test.go:110:38: `doRequest` - `method` always receives `"POST"` (unparam) -graphql/handler/extension/complexity_test.go:110:53: `doRequest` - `target` always receives `"/graphql"` (unparam) -graphql/handler/extension/introspection.go:22:33: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/extension/introspection.go:26:47: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/lru/lru.go:26:18: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/lru/lru.go:30:18: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server.go:52:31: importShadow: shadow of imported from 'github.com/99designs/gqlgen/graphql/handler/transport' package 'transport' (gocritic) -graphql/handler/server.go:68:22: importShadow: shadow of imported from 'github.com/99designs/gqlgen/graphql/handler/extension' package 'extension' (gocritic) -graphql/handler/server.go:72:104: Comment should end in a period (godot) -graphql/handler/server.go:77:108: Comment should end in a period (godot) -graphql/handler/server.go:82:112: Comment should end in a period (godot) -graphql/handler/server.go:87:110: Comment should end in a period (godot) -graphql/handler/server.go:105:12: Error return value is not checked (errcheck) -graphql/handler/server.go:105:17: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/handler/server.go:107:7: Error return value of `json.Marshal` is not checked (errcheck) -graphql/handler/server.go:109:11: Error return value of `w.Write` is not checked (errcheck) -graphql/handler/server.go:115:2: importShadow: shadow of imported from 'github.com/99designs/gqlgen/graphql/handler/transport' package 'transport' (gocritic) -graphql/handler/server.go:130:9: Error return value of `w.Write` is not checked (errcheck) -graphql/handler/server.go:143:33: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server.go:160:32: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server.go:177:29: unused-parameter: parameter 'schema' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server_test.go:168:34: unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server_test.go:172:1: receiver-naming: receiver name h should be consistent with previous receiver name t for panicTransport (revive) -graphql/handler/server_test.go:172:25: ST1016: methods on the same type should have the same receiver name (seen 1x "h", 1x "t") (stylecheck) -graphql/handler/server_test.go:172:28: unused-parameter: parameter 'w' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server_test.go:172:51: unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server_test.go:172:68: unused-parameter: parameter 'exec' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/server_test.go:188:27: "GET" can be replaced by http.MethodGet (usestdlibvars) -graphql/handler/server_test.go:196:27: "POST" can be replaced by http.MethodPost (usestdlibvars) -graphql/handler/transport/error.go:13:23: Comment should end in a period (godot) -graphql/handler/transport/error.go:20:9: Error return value of `w.Write` is not checked (errcheck) -graphql/handler/transport/error.go:23:56: Comment should end in a period (godot) -graphql/handler/transport/http_form.go:108:6: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/http_form.go:158:4: deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic) -graphql/handler/transport/http_form.go:183:5: deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic) -graphql/handler/transport/http_form_test.go:211:12: "POST" can be replaced by http.MethodPost (usestdlibvars) -graphql/handler/transport/http_form_test.go:279:6: test helper function should start from t.Helper() (thelper) -graphql/handler/transport/http_form_test.go:291:32: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic) -graphql/handler/transport/http_form_test.go:301:29: should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx) -graphql/handler/transport/http_form_test.go:301:30: "POST" can be replaced by http.MethodPost (usestdlibvars) -graphql/handler/transport/http_post_test.go:98:21: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic) -graphql/handler/transport/http_post_test.go:104:1: paramTypeCombine: func(handler http.Handler, method string, target string, body string) *httptest.ResponseRecorder could be replaced with func(handler http.Handler, method, target, body string) *httptest.ResponseRecorder (gocritic) -graphql/handler/transport/options.go:10:54: Comment should end in a period (godot) -graphql/handler/transport/options.go:22:61: unused-parameter: parameter 'exec' seems to be unused, consider removing or renaming it as _ (revive) -graphql/handler/transport/reader.go:22:2: naked return in func `Read` with 10 lines of code (nakedret) -graphql/handler/transport/reader_test.go:23:11: Error return value of `r.Read` is not checked (errcheck) -graphql/handler/transport/reader_test.go:27:11: Error return value of `r.Read` is not checked (errcheck) -graphql/handler/transport/reader_test.go:53:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/reader_test.go:77:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/reader_test.go:99:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/reader_test.go:119:8: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/sse.go:104:6: var-naming: func writeJsonWithSSE should be writeJSONWithSSE (revive) -graphql/handler/transport/sse.go:104:6: ST1003: func writeJsonWithSSE should be writeJSONWithSSE (stylecheck) -graphql/handler/transport/sse_test.go:39:30: should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx) -graphql/handler/transport/sse_test.go:39:31: "POST" can be replaced by http.MethodPost (usestdlibvars) -graphql/handler/transport/sse_test.go:92: File is not `gofumpt`-ed (gofumpt) -graphql/handler/transport/util.go:12:6: var-naming: func writeJson should be writeJSON (revive) -graphql/handler/transport/util.go:12:6: ST1003: func writeJson should be writeJSON (stylecheck) -graphql/handler/transport/util.go:17:9: Error return value of `w.Write` is not checked (errcheck) -graphql/handler/transport/util.go:20:6: var-naming: func writeJsonError should be writeJSONError (revive) -graphql/handler/transport/util.go:20:6: ST1003: func writeJsonError should be writeJSONError (stylecheck) -graphql/handler/transport/util.go:24:6: var-naming: func writeJsonErrorf should be writeJSONErrorf (revive) -graphql/handler/transport/util.go:24:6: ST1003: func writeJsonErrorf should be writeJSONErrorf (stylecheck) -graphql/handler/transport/util.go:28:6: var-naming: func writeJsonGraphqlError should be writeJSONGraphqlError (revive) -graphql/handler/transport/util.go:28:6: ST1003: func writeJsonGraphqlError should be writeJSONGraphqlError (stylecheck) -graphql/handler/transport/websocket.go:88:18: Error return value of `ws.WriteMessage` is not checked (errcheck) -graphql/handler/transport/websocket.go:111:10: Function `run->subscribe` should pass the context parameter (contextcheck) -graphql/handler/transport/websocket.go:155:6: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/websocket.go:160:6: comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint) -graphql/handler/transport/websocket.go:236:25: Error return value of `c.conn.SetReadDeadline` is not checked (errcheck) -graphql/handler/transport/websocket.go:271:26: Error return value of `c.conn.SetReadDeadline` is not checked (errcheck) -graphql/handler/transport/websocket.go:407:45: importShadow: shadow of imported package 'errors' (gocritic) -graphql/handler/transport/websocket.go:430:2: Error return value of `c.conn.WriteMessage` is not checked (errcheck) -graphql/handler/transport/websocket_close_reason.go:8:56: Comment should end in a period (godot) -graphql/handler/transport/websocket_close_reason.go:20:10: Error return value is not checked (errcheck) -graphql/handler/transport/websocket_init.go:23:8: Error return value is not checked (errcheck) -graphql/handler/transport/websocket_resolver_error.go:10:56: Comment should end in a period (godot) -graphql/handler/transport/websocket_resolver_error.go:52:70: Comment should end in a period (godot) -graphql/handler/transport/websocket_resolver_error.go:63:5: Error return value is not checked (errcheck) -graphql/handler/transport/websocket_test.go:28:2: importShadow: shadow of imported from 'github.com/99designs/gqlgen/graphql/handler' package 'handler' (gocritic) -graphql/handler/transport/websocket_test.go:52:49: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/handler/transport/websocket_test.go:87:49: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/handler/transport/websocket_test.go:142:20: Error return value of `c.SetReadDeadline` is not checked (errcheck) -graphql/handler/transport/websocket_test.go:152: File is not `gofumpt`-ed (gofumpt) -graphql/handler/transport/websocket_test.go:273:21: Error return value is not checked (errcheck) -graphql/handler/transport/websocket_test.go:339:4: Error return value of `c.ReadJSON` is not checked (errcheck) -graphql/handler/transport/websocket_test.go:361:20: type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint) -graphql/handler/transport/websocket_test.go:469:3: importShadow: shadow of imported from 'github.com/99designs/gqlgen/graphql/handler' package 'handler' (gocritic) -graphql/handler/transport/websocket_test.go:514:20: Error return value of `c.SetReadDeadline` is not checked (errcheck) -graphql/handler/transport/websocket_test.go:523:46: TestWebsocketWithPingPongInterval$1 - result 0 (*github.com/99designs/gqlgen/graphql/handler/testserver.TestServer) is never used (unparam) -graphql/handler_test.go:14:9: Error return value of `os.Open` is not checked (errcheck) -graphql/handler_test.go:30:9: Error return value of `os.Open` is not checked (errcheck) -graphql/handler_test.go:58:9: Error return value of `os.Open` is not checked (errcheck) -graphql/id.go:29:10: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive) -graphql/int.go:12:17: Error return value of `io.WriteString` is not checked (errcheck) -graphql/int.go:33:17: Error return value of `io.WriteString` is not checked (errcheck) -graphql/int.go:54:17: Error return value of `io.WriteString` is not checked (errcheck) -graphql/introspection/query.go:3:74: Comment should end in a period (godot) -graphql/jsonw.go:74:14: Error return value of `writer.Write` is not checked (errcheck) -graphql/jsonw.go:77:16: Error return value of `writer.Write` is not checked (errcheck) -graphql/jsonw.go:81:14: Error return value of `writer.Write` is not checked (errcheck) -graphql/jsonw.go:87:9: Error return value of `w.Write` is not checked (errcheck) -graphql/jsonw.go:90:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/jsonw.go:91:9: Error return value of `w.Write` is not checked (errcheck) -graphql/playground/altair_playground.go:66:66: Comment should end in a period (godot) -graphql/playground/apollo_sandbox_playground.go:49:73: Comment should end in a period (godot) -graphql/playground/playground.go:76:53: Comment should end in a period (godot) -graphql/playground/playground.go:77:1: paramTypeCombine: func(title string, endpoint string) http.HandlerFunc could be replaced with func(title, endpoint string) http.HandlerFunc (gocritic) -graphql/playground/playground_test.go:29:29: regexpSimplify: can re-write `(?m)^.*url\s*=\s*['"]https:\/\/example\.org\/query["'].*$` as `(?m)^.*url\s*=\s*['"]https://example\.org/query["'].*$` (gocritic) -graphql/playground/playground_test.go:39:47: regexpSimplify: can re-write `\n\s{0,}\n\s{0,}.*` as `<head>\n\s*<meta charset="utf-8">\n\s*.*<title>` (gocritic) -graphql/recovery.go:14:21: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/response.go:20:20: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -graphql/stats.go:36:18: Comment should end in a period (godot) -graphql/string.go:20:16: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:24:18: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:28:19: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:30:19: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:32:19: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:34:19: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:36:19: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:38:19: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:39:12: Error return value of `w.Write` is not checked (errcheck) -graphql/string.go:46:16: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:47:16: Error return value of `io.WriteString` is not checked (errcheck) -graphql/string.go:65:10: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive) -graphql/time.go:16:17: Error return value of `io.WriteString` is not checked (errcheck) -graphql/uint.go:12:6: Error return value of `io.WriteString` is not checked (errcheck) -graphql/uint.go:35:6: Error return value of `io.WriteString` is not checked (errcheck) -graphql/uint.go:56:6: Error return value of `io.WriteString` is not checked (errcheck) -graphql/upload.go:17:10: Error return value of `io.Copy` is not checked (errcheck) -handler/handler.go:17:45: Comment should end in a period (godot) -handler/handler.go:75:45: Comment should end in a period (godot) -handler/handler.go:94:45: Comment should end in a period (godot) -handler/handler.go:97:45: Comment should end in a period (godot) -handler/handler.go:104:45: Comment should end in a period (godot) -handler/handler.go:105:18: param recover has same name as predeclared identifier (predeclared) -handler/handler.go:105:18: builtinShadow: shadowing of predeclared identifier: recover (gocritic) -handler/handler.go:114:45: Comment should end in a period (godot) -handler/handler.go:123:45: Comment should end in a period (godot) -handler/handler.go:132:45: Comment should end in a period (godot) -handler/handler.go:142:45: Comment should end in a period (godot) -handler/handler.go:151:45: Comment should end in a period (godot) -handler/handler.go:160:45: Comment should end in a period (godot) -handler/handler.go:169:45: Comment should end in a period (godot) -handler/handler.go:178:45: Comment should end in a period (godot) -handler/handler.go:187:45: Comment should end in a period (godot) -handler/handler.go:197:45: Comment should end in a period (godot) -handler/handler.go:208:45: Comment should end in a period (godot) -handler/handler.go:222:45: Comment should end in a period (godot) -handler/handler.go:250:46: Comment should end in a period (godot) -handler/handler.go:251:1: paramTypeCombine: func(title string, endpoint string) http.HandlerFunc could be replaced with func(title, endpoint string) http.HandlerFunc (gocritic) -handler/handler.go:255:49: Comment should end in a period (godot) -integration/remote_api/user.go:1:1: ST1003: should not use underscores in package names (stylecheck) -integration/remote_api/user.go:1:9: var-naming: don't use an underscore in package name (revive) -integration/resolver.go:39:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:46:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:46:59: unused-parameter: parameter 'obj' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:50:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:56:31: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:64:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:68:34: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:68:55: unused-parameter: parameter 'input' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:72:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:88:32: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:94:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:98:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:98:57: unused-parameter: parameter 'value' seems to be unused, consider removing or renaming it as _ (revive) -integration/resolver.go:104:30: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) -integration/server/server.go:50:12: G114: Use of net/http serve function that has no support for setting timeouts (gosec) -integration/testomitempty/testmodel.go:4:21: json(snake): got 'newDesc' want 'new_desc' (tagliatelle) -internal/code/compare.go:8:79: Comment should end in a period (godot) -internal/code/compare.go:9:1: paramTypeCombine: func(expected types.Type, actual types.Type) error could be replaced with func(expected, actual types.Type) error (gocritic) -internal/code/compare.go:87:4: if-return: redundant if ...; err != nil check, just return error instead. (revive) -internal/code/compare.go:117:4: if-return: redundant if ...; err != nil check, just return error instead. (revive) -internal/code/imports.go:59:28: Comment should end in a period (godot) -internal/code/imports.go:141:6: emptyStringTest: replace `len(s) != 0` with `s != ""` (gocritic) -internal/code/imports.go:152:82: Comment should end in a period (godot) -internal/code/imports.go:174:35: regexpSimplify: can re-write `module ([^\s]*)` as `module (\S*)` (gocritic) -internal/code/packages.go:35:55: Comment should end in a period (godot) -internal/code/packages.go:184:18: whyNoLint: include an explanation for nolint directive (gocritic) -internal/code/packages.go:184:18: directive `//nolint:prealloc` is unused for linter "prealloc" (nolintlint) -internal/code/packages_test.go:53:6: test helper function should start from t.Helper() (thelper) -internal/code/util.go:11:93: Comment should end in a period (godot) -internal/code/util.go:12:1: unnamedResult: consider giving a name to these results (gocritic) -internal/code/util.go:26:39: Comment should end in a period (godot) -internal/code/util.go:42:6: Error return value of `os.Getwd` is not checked (errcheck) -internal/code/util.go:57:49: regexpSimplify: can re-write `[^\w]` as `\W` (gocritic) -internal/imports/prune.go:26:36: Comment should end in a period (godot) -internal/rewrite/rewriter.go:71:1: paramTypeCombine: func(structname string, methodname string) *ast.FuncDecl could be replaced with func(structname, methodname string) *ast.FuncDecl (gocritic) -internal/rewrite/rewriter.go:102:1: paramTypeCombine: func(structname string, methodname string) string could be replaced with func(structname, methodname string) string (gocritic) -internal/rewrite/rewriter.go:110:1: paramTypeCombine: func(structname string, methodname string) string could be replaced with func(structname, methodname string) string (gocritic) -main.go:66:10: ST1005: error strings should not end with punctuation or newlines (stylecheck) -main.go:66:21: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) -main.go:68:12: G306: Expect WriteFile permissions to be 0600 or less (gosec) -main.go:69:10: ST1005: error strings should not end with punctuation or newlines (stylecheck) -main.go:69:21: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) -main.go:110:11: ST1005: error strings should not end with punctuation or newlines (stylecheck) -main.go:110:22: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) -main.go:121:11: ST1005: error strings should not end with punctuation or newlines (stylecheck) -main.go:121:22: error-strings: error strings should not be capitalized or end with punctuation or a newline (revive) -main.go:187:3: if-return: redundant if ...; err != nil check, just return error instead. (revive) -plugin/federation/entity.go:39:43: Comment should end in a period (godot) -plugin/federation/federation.go:27:50: Comment should end in a period (godot) -plugin/federation/federation.go:36:32: Comment should end in a period (godot) -plugin/federation/federation.go:41:42: Comment should end in a period (godot) -plugin/federation/federation.go:121:42: Comment should end in a period (godot) -plugin/federation/federation.go:282:16: Error return value is not checked (errcheck) -plugin/federation/federation_entityresolver_test.go:39:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:78:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:132:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:171:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:215:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:256:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:294:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:337:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:377:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:418:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:455:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:490:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:528:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/federation_entityresolver_test.go:571:6: json(snake): got '_entities' want 'entities' (tagliatelle) -plugin/federation/fedruntime/runtime.go:5:9: Comment should end in a period (godot) -plugin/federation/fedruntime/runtime.go:10:42: Comment should end in a period (godot) -plugin/federation/fedruntime/runtime.go:15:31: Comment should end in a period (godot) -plugin/federation/fieldset/fieldset.go:16:49: Comment should end in a period (godot) -plugin/federation/fieldset/fieldset.go:54:10: sprintfQuotedString: use %q instead of "%s" for quoted strings (gocritic) -plugin/federation/fieldset/fieldset.go:143:1: unnamedResult: consider giving a name to these results (gocritic) -plugin/federation/test_data/model/federation.go:3:23: whyNoLint: include an explanation for nolint directive (gocritic) -plugin/modelgen/models.go:265:10: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive) -plugin/modelgen/models.go:401:21: unused-parameter: parameter 'td' seems to be unused, consider removing or renaming it as _ (revive) -plugin/modelgen/models.go:409:11: Error return value is not checked (errcheck) -plugin/modelgen/models.go:415:13: Error return value is not checked (errcheck) -plugin/modelgen/models.go:458:18: unused-parameter: parameter 'td' seems to be unused, consider removing or renaming it as _ (revive) -plugin/modelgen/models.go:464:16: Error return value is not checked (errcheck) -plugin/modelgen/models_test.go:346:2: importShadow: shadow of imported from 'github.com/99designs/gqlgen/plugin/modelgen/out' package 'out' (gocritic) -plugin/modelgen/out_struct_pointers/existing.go:1:1: ST1003: should not use underscores in package names (stylecheck) -plugin/modelgen/out_struct_pointers/existing.go:1:9: var-naming: don't use an underscore in package name (revive) -plugin/plugin.go:33:57: Comment should end in a period (godot) -plugin/resolvergen/resolver.go:131:9: var-naming: don't use underscores in Go names; var resolver_implementer should be resolverImplementer (revive) -plugin/resolvergen/resolver.go:131:9: ST1003: should not use underscores in Go names; var resolver_implementer should be resolverImplementer (stylecheck) -plugin/resolvergen/resolver.go:134:9: var-naming: don't use underscores in Go names; var p_cast should be pCast (revive) -plugin/resolvergen/resolver.go:134:9: ST1003: should not use underscores in Go names; var p_cast should be pCast (stylecheck) -plugin/resolvergen/resolver.go:225:7: Error return value of `templates.CurrentImports.Reserve` is not checked (errcheck) -plugin/resolvergen/resolver.go:227:7: Error return value of `templates.CurrentImports.Reserve` is not checked (errcheck) -plugin/resolvergen/resolver.go:241:1: paramTypeCombine: func(base string, gqlname, filenameTmpl string) string could be replaced with func(base, gqlname, filenameTmpl string) string (gocritic) -plugin/resolvergen/resolver_test.go:16:2: Error return value of `syscall.Unlink` is not checked (errcheck) -plugin/resolvergen/resolver_test.go:68:6: test helper function should start from t.Helper() (thelper) -plugin/resolvergen/resolver_test.go:69:2: Error return value of `syscall.Unlink` is not checked (errcheck) -plugin/resolvergen/resolver_test.go:86:6: test helper function should start from t.Helper() (thelper) -plugin/stubgen/stubs.go:19:1: paramTypeCombine: func(filename string, typename string) plugin.Plugin could be replaced with func(filename, typename string) plugin.Plugin (gocritic) -plugin/stubgen/stubs.go:37:31: unused-parameter: parameter 'cfg' seems to be unused, consider removing or renaming it as _ (revive) -plugin/stubgen/stubs.go:38:2: Error return value of `syscall.Unlink` is not checked (errcheck) diff --git a/plugin/federation/testdata/entityresolver/generated/exec.go b/plugin/federation/testdata/entityresolver/generated/exec.go index 7cb4bde96d9..0b1e4a60ab7 100644 --- a/plugin/federation/testdata/entityresolver/generated/exec.go +++ b/plugin/federation/testdata/entityresolver/generated/exec.go @@ -1259,7 +1259,7 @@ func (ec *executionContext) fieldContext_Entity_findHelloByName(ctx context.Cont ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findHelloByName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1320,7 +1320,7 @@ func (ec *executionContext) fieldContext_Entity_findHelloMultiSingleKeysByKey1An ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findHelloMultiSingleKeysByKey1AndKey2_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1379,7 +1379,7 @@ func (ec *executionContext) fieldContext_Entity_findHelloWithErrorsByName(ctx co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findHelloWithErrorsByName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1459,7 +1459,7 @@ func (ec *executionContext) fieldContext_Entity_findManyMultiHelloByNames(ctx co ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findManyMultiHelloByNames_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1545,7 +1545,7 @@ func (ec *executionContext) fieldContext_Entity_findManyMultiHelloMultipleRequir ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findManyMultiHelloMultipleRequiresByNames_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1629,7 +1629,7 @@ func (ec *executionContext) fieldContext_Entity_findManyMultiHelloRequiresByName ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findManyMultiHelloRequiresByNames_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1709,7 +1709,7 @@ func (ec *executionContext) fieldContext_Entity_findManyMultiHelloWithErrorByNam ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findManyMultiHelloWithErrorByNames_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1793,7 +1793,7 @@ func (ec *executionContext) fieldContext_Entity_findManyMultiPlanetRequiresNeste ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findManyMultiPlanetRequiresNestedByNames_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1858,7 +1858,7 @@ func (ec *executionContext) fieldContext_Entity_findPlanetMultipleRequiresByName ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findPlanetMultipleRequiresByName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1921,7 +1921,7 @@ func (ec *executionContext) fieldContext_Entity_findPlanetRequiresByName(ctx con ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findPlanetRequiresByName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -1984,7 +1984,7 @@ func (ec *executionContext) fieldContext_Entity_findPlanetRequiresNestedByName(c ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findPlanetRequiresNestedByName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2047,7 +2047,7 @@ func (ec *executionContext) fieldContext_Entity_findWorldByHelloNameAndFoo(ctx c ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findWorldByHelloNameAndFoo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2106,7 +2106,7 @@ func (ec *executionContext) fieldContext_Entity_findWorldNameByName(ctx context. ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findWorldNameByName_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2169,7 +2169,7 @@ func (ec *executionContext) fieldContext_Entity_findWorldWithMultipleKeysByHello ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findWorldWithMultipleKeysByHelloNameAndFoo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -2232,7 +2232,7 @@ func (ec *executionContext) fieldContext_Entity_findWorldWithMultipleKeysByBar(c ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Entity_findWorldWithMultipleKeysByBar_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -3491,7 +3491,7 @@ func (ec *executionContext) fieldContext_Query__entities(ctx context.Context, fi ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query__entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -3613,7 +3613,7 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -5449,7 +5449,7 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } @@ -5637,7 +5637,7 @@ func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, ctx = graphql.WithFieldContext(ctx, fc) if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return + return fc, err } return fc, nil } diff --git a/plugin/modelgen/internal/extrafields/types.go b/plugin/modelgen/internal/extrafields/types.go index d40eb1a1d6c..680effd0ee2 100644 --- a/plugin/modelgen/internal/extrafields/types.go +++ b/plugin/modelgen/internal/extrafields/types.go @@ -1,4 +1,3 @@ package extrafields -type Type struct { -} +type Type struct{}