bump golangci-lint to v2.0.2 and update all lint issues (#4116)

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2025-04-09 17:53:20 +03:00
committed by GitHub
parent ec70c1246f
commit 7a129b6e8d
52 changed files with 429 additions and 390 deletions

View File

@@ -17,7 +17,7 @@ RUN [ $(uname -m) = aarch64 ] && apk add --no-cache --initdb -p /out gcc || true
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
# installing golangci-lint
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /out/go/bin v1.50.1
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /out/go/bin v2.0.2
FROM scratch

View File

@@ -84,7 +84,7 @@ test -z $(gofmt -s -l .| grep -v .pb. | grep -v vendor/ | tee /dev/stderr)
test -z $(GOOS=linux go vet $MOD_ARG -printf=false . 2>&1 | grep -v "^#" | grep -v vendor/ | tee /dev/stderr)
>&2 echo "golint..."
test -z $(golangci-lint run ./... | tee /dev/stderr)
golangci-lint run ./... >&2
>&2 echo "ineffassign..."
test -z $(ineffassign ./... | tee /dev/stderr)