Skip to content

Commit db6209a

Browse files
committed
update golangci-lint to v1.54.2
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent a1367a0 commit db6209a

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.golangci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ run:
3232

3333
linters-settings:
3434
depguard:
35-
list-type: blacklist
36-
include-go-root: true
37-
packages:
38-
# The io/ioutil package has been deprecated.
39-
# https://go.dev/doc/go1.16#ioutil
40-
- io/ioutil
35+
rules:
36+
main:
37+
deny:
38+
- pkg: io/ioutil
39+
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
4140
gocyclo:
4241
min-complexity: 16
4342
govet:

cli/command/service/opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ const (
10101010
flagTTY = "tty"
10111011
flagUpdateDelay = "update-delay"
10121012
flagUpdateFailureAction = "update-failure-action"
1013-
flagUpdateMaxFailureRatio = "update-max-failure-ratio"
1013+
flagUpdateMaxFailureRatio = "update-max-failure-ratio" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
10141014
flagUpdateMonitor = "update-monitor"
10151015
flagUpdateOrder = "update-order"
10161016
flagUpdateParallelism = "update-parallelism"

dockerfiles/Dockerfile.lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ARG GO_VERSION=1.20.7
44
ARG ALPINE_VERSION=3.17
5-
ARG GOLANGCI_LINT_VERSION=v1.52.2
5+
ARG GOLANGCI_LINT_VERSION=v1.54.2
66

77
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint
88

e2e/internal/fixtures/fixtures.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ const (
1818
// AlpineImage is an image in the test registry
1919
AlpineImage = "registry:5000/alpine:frozen"
2020
// AlpineSha is the sha of the alpine image
21-
AlpineSha = "e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501"
21+
AlpineSha = "e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
2222
// BusyboxImage is an image in the test registry
2323
BusyboxImage = "registry:5000/busybox:frozen"
2424
// BusyboxSha is the sha of the busybox image
25-
BusyboxSha = "030fcb92e1487b18c974784dcc110a93147c9fc402188370fbfd17efabffc6af"
25+
BusyboxSha = "030fcb92e1487b18c974784dcc110a93147c9fc402188370fbfd17efabffc6af" // #nosec G101 -- ignoring: Potential hardcoded credentials (gosec)
2626
)
2727

2828
// SetupConfigFile creates a config.json file for testing

0 commit comments

Comments
 (0)