Skip to content

Commit 8a5f927

Browse files
authored
chore: update golangci-lint to v1.62.0 (#3386)
1 parent de7923e commit 8a5f927

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
jobs:
1616
golangci-lint:
1717
env:
18-
GOLANGCI_LINT_VERSION: v1.60.2
18+
GOLANGCI_LINT_VERSION: v1.62.0
1919
strategy:
2020
matrix:
2121
go: ["1.22", "1.23"]

‎codegen/testserver/followschema/directive_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func TestDirectives(t *testing.T) {
112112
srv := handler.NewDefaultServer(NewExecutableSchema(Config{
113113
Resolvers: resolvers,
114114
Directives: DirectiveRoot{
115+
//nolint:revive // can't rename min, max because it's generated code
115116
Length: func(ctx context.Context, obj any, next graphql.Resolver, min int, max *int, message *string) (any, error) {
116117
e := func(msg string) error {
117118
if message == nil {
@@ -133,6 +134,7 @@ func TestDirectives(t *testing.T) {
133134
}
134135
return res, nil
135136
},
137+
//nolint:revive // can't rename min, max because it's generated code
136138
Range: func(ctx context.Context, obj any, next graphql.Resolver, min *int, max *int) (any, error) {
137139
res, err := next(ctx)
138140
if err != nil {

‎codegen/testserver/singlefile/directive_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func TestDirectives(t *testing.T) {
112112
srv := handler.NewDefaultServer(NewExecutableSchema(Config{
113113
Resolvers: resolvers,
114114
Directives: DirectiveRoot{
115+
//nolint:revive // can't rename min, max because it's generated code
115116
Length: func(ctx context.Context, obj any, next graphql.Resolver, min int, max *int, message *string) (any, error) {
116117
e := func(msg string) error {
117118
if message == nil {
@@ -133,6 +134,7 @@ func TestDirectives(t *testing.T) {
133134
}
134135
return res, nil
135136
},
137+
//nolint:revive // can't rename min, max because it's generated code
136138
Range: func(ctx context.Context, obj any, next graphql.Resolver, min *int, max *int) (any, error) {
137139
res, err := next(ctx)
138140
if err != nil {

‎handler/handler.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func WebsocketUpgrader(upgrader websocket.Upgrader) Option {
104104
}
105105

106106
// Deprecated: switch to graphql/handler.New
107-
func RecoverFunc(recover graphql.RecoverFunc) Option {
107+
func RecoverFunc(recoverFn graphql.RecoverFunc) Option {
108108
return func(cfg *Config) {
109-
cfg.recover = recover
109+
cfg.recover = recoverFn
110110
}
111111
}
112112

0 commit comments

Comments
 (0)