Skip to content

Commit c9a0f48

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

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.golangci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
version: 2
2+
3+
run:
4+
# Skip files and directories
5+
skip-files:
6+
- ".*_test\\.go$" # Skip all test files
7+
skip-dirs:
8+
- "tests/e2e" # Skip e2e test directory
9+
110
linters:
211
disable-all: true
312
enable:
413
- errcheck
5-
- gosimple
614
- govet
715
- ineffassign
816
- staticcheck
9-
- typecheck
1017
- unused
1118
- misspell
1219
- lll
20+
1321
linters-settings:
1422
lll:
1523
# 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)