Skip to content

Commit 7889228

Browse files
committed
Update golangci lint to v2.6.2
1 parent bd5d0da commit 7889228

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
version: 2
2+
13
linters:
24
disable-all: true
35
enable:
46
- errcheck
5-
- gosimple
67
- govet
78
- ineffassign
89
- staticcheck
9-
- typecheck
1010
- unused
1111
- misspell
1212
- lll
13+
1314
linters-settings:
1415
lll:
1516
# max line length, lines longer will be reported. Default is 120.

hack/check-golangci-lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ shift $((OPTIND-1))
5353

5454
export GOOS=linux
5555
if [ ! "${DO_DOCKER-}" ]; then
56-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v1.64.8
56+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)"/bin v2.6.2
5757
"$(go env GOPATH)"/bin/golangci-lint run -v --timeout=1200s
5858
else
59-
docker run --rm -v "$(pwd)":/app -w /app golangci/golangci-lint:v1.64.8 golangci-lint run -v --timeout=1200s
59+
docker run --rm -v "$(pwd)":/app -w /app golangci/golangci-lint:v2.6.2 golangci-lint run -v --timeout=1200s
6060
fi

0 commit comments

Comments
 (0)