Skip to content

Commit 6537c6c

Browse files
ndeloofglours
authored andcommitted
Bump golangci-lint to v1.55.2
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent a0943a0 commit 6537c6c

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cache: true
3636
- uses: golangci/golangci-lint-action@v3
3737
with:
38-
version: v1.51.2
38+
version: v1.55.2
3939
args: --timeout 5m
4040
- name: Test
4141
run: go test ./...

ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM golang:1.20
1616

1717
WORKDIR /go/src
1818

19-
ARG GOLANGCILINT_VERSION=v1.51.2
19+
ARG GOLANGCILINT_VERSION=v1.55.2
2020
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCILINT_VERSION}
2121
RUN go install github.com/kunalkushwaha/ltag@latest && rm -rf /go/src/github.com/kunalkushwaha
2222

loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (l localResourceLoader) Accept(p string) bool {
101101
return err == nil
102102
}
103103

104-
func (l localResourceLoader) Load(ctx context.Context, p string) (string, error) {
104+
func (l localResourceLoader) Load(_ context.Context, p string) (string, error) {
105105
return l.abs(p), nil
106106
}
107107

loader/loader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@ func (c customLoader) Accept(s string) bool {
25982598
return strings.HasPrefix(s, c.prefix+":")
25992599
}
26002600

2601-
func (c customLoader) Load(ctx context.Context, s string) (string, error) {
2601+
func (c customLoader) Load(_ context.Context, s string) (string, error) {
26022602
path := filepath.Join("testdata", c.prefix, s[len(c.prefix)+1:])
26032603
_, err := os.Stat(path)
26042604
if err != nil {

override/merge.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func mergeLogging(c any, o any, p tree.Path) (any, error) {
107107
}
108108

109109
// environment must be first converted into yaml sequence syntax so we can append
110-
func mergeEnvironment(c any, o any, p tree.Path) (any, error) {
110+
func mergeEnvironment(c any, o any, _ tree.Path) (any, error) {
111111
right := convertIntoSequence(c)
112112
left := convertIntoSequence(o)
113113
return append(right, left...), nil
@@ -136,14 +136,14 @@ func convertIntoSequence(value any) []any {
136136
return nil
137137
}
138138

139-
func mergeUlimit(c any, o any, p tree.Path) (any, error) {
139+
func mergeUlimit(_ any, o any, p tree.Path) (any, error) {
140140
over, ismapping := o.(map[string]any)
141141
if base, ok := o.(map[string]any); ok && ismapping {
142142
return mergeMappings(base, over, p)
143143
}
144144
return o, nil
145145
}
146146

147-
func override(c any, other any, p tree.Path) (any, error) {
147+
func override(_ any, other any, _ tree.Path) (any, error) {
148148
return other, nil
149149
}

override/uncity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func enforceUnicity(value any, p tree.Path) (any, error) {
8282
return value, nil
8383
}
8484

85-
func environmentIndexer(y any, p tree.Path) (string, error) {
85+
func environmentIndexer(y any, _ tree.Path) (string, error) {
8686
value := y.(string)
8787
key, _, found := strings.Cut(value, "=")
8888
if !found {

transform/include.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/pkg/errors"
2222
)
2323

24-
func transformInclude(data any, p tree.Path) (any, error) {
24+
func transformInclude(data any, _ tree.Path) (any, error) {
2525
switch v := data.(type) {
2626
case map[string]any:
2727
return v, nil

transform/ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/pkg/errors"
2626
)
2727

28-
func transformPorts(data any, p tree.Path) (any, error) {
28+
func transformPorts(data any, _ tree.Path) (any, error) {
2929
switch entries := data.(type) {
3030
case []any:
3131
// We process the list instead of individual items here.

transform/services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func transformService(data any, p tree.Path) (any, error) {
2525
return transformMapping(value, p)
2626
}
2727

28-
func transformServiceNetworks(data any, p tree.Path) (any, error) {
28+
func transformServiceNetworks(data any, _ tree.Path) (any, error) {
2929
if slice, ok := data.([]any); ok {
3030
networks := make(map[string]any, len(slice))
3131
for _, net := range slice {

transform/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/pkg/errors"
2525
)
2626

27-
func transformSSH(data any, p tree.Path) (any, error) {
27+
func transformSSH(data any, _ tree.Path) (any, error) {
2828
switch v := data.(type) {
2929
case map[string]any:
3030
return v, nil

0 commit comments

Comments
 (0)