mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 15:08:33 +00:00
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:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user