Skip to content

Commit 01be2fa

Browse files
chore(deps): update module github.com/golangci/golangci-lint to v2.12.2 (#112)
* chore(deps): update module github.com/golangci/golangci-lint to v2.12.2 * Update lint settings The linter was being pulled incorrectly, and run it on Go 1.26 like in the main repo. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marcin Romaszewicz <marcinr@gmail.com>
1 parent 1463938 commit 01be2fa

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
build:
1010
uses: oapi-codegen/actions/.github/workflows/ci.yml@0b10ad68a53148bd29896be82ad92027b35507a3 # v0.8.0
1111
with:
12-
lint_versions: '["1.25"]'
12+
lint_versions: '["1.26"]'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GOBASE=$(shell pwd)
22
GOBIN=$(GOBASE)/bin
33

44
$(GOBIN)/golangci-lint:
5-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v2.10.1
5+
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(GOBIN) v2.12.2
66

77
.PHONY: tools
88
tools: $(GOBIN)/golangci-lint

bindform.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func bindFormImpl(v reflect.Value, form map[string][]string, files map[string][]
141141
switch v.Kind() {
142142
case reflect.Interface:
143143
return bindFormImpl(v.Elem(), form, files, name)
144-
case reflect.Ptr:
144+
case reflect.Pointer:
145145
ptrData := v.Elem()
146146
if !ptrData.IsValid() {
147147
ptrData = reflect.New(v.Type().Elem())
@@ -382,7 +382,7 @@ func bindFormMap(v reflect.Value, form map[string][]string, files map[string][]*
382382

383383
func marshalFormImpl(v reflect.Value, result url.Values, name string) {
384384
switch v.Kind() {
385-
case reflect.Ptr:
385+
case reflect.Pointer:
386386
if v.IsNil() {
387387
break
388388
}

bindstring.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ func BindStringToObjectWithOptions(src string, dst interface{}, opts BindStringT
5858
t := reflect.TypeOf(dst)
5959

6060
// We need to dereference pointers
61-
if t.Kind() == reflect.Ptr {
61+
if t.Kind() == reflect.Pointer {
6262
v = reflect.Indirect(v)
6363
t = v.Type()
6464
}
6565

6666
// For some optional args
67-
if t.Kind() == reflect.Ptr {
67+
if t.Kind() == reflect.Pointer {
6868
if v.IsNil() {
6969
v.Set(reflect.New(t.Elem()))
7070
}

deepobject.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func assignPathValues(dst interface{}, pathValues fieldOrValue) error {
350350
}
351351
}
352352
return nil
353-
case reflect.Ptr:
353+
case reflect.Pointer:
354354
// If we have a pointer after redirecting, it means we're dealing with
355355
// an optional field, such as *string, which was passed in as &foo. We
356356
// will allocate it if necessary, and call ourselves with a different

styleparam.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func StyleParamWithOptions(style string, explode bool, paramName string, value i
8686

8787
// Things may be passed in by pointer, we need to dereference, so return
8888
// error on nil.
89-
if t.Kind() == reflect.Ptr {
89+
if t.Kind() == reflect.Pointer {
9090
if v.IsNil() {
9191
return "", fmt.Errorf("value is a nil pointer")
9292
}
@@ -304,7 +304,7 @@ func styleStruct(style string, explode bool, paramName string, paramLocation Par
304304
f := v.Field(i)
305305

306306
// Unset optional fields will be nil pointers, skip over those.
307-
if f.Type().Kind() == reflect.Ptr && f.IsNil() {
307+
if f.Type().Kind() == reflect.Pointer && f.IsNil() {
308308
continue
309309
}
310310
str, err := primitiveToString(f.Interface())

0 commit comments

Comments
 (0)