Skip to content

Commit 7408942

Browse files
kolaentetechknowlogick
authored andcommitted
Update golangci to v1.20 (#8432)
* Update golangci to v1.20 Signed-off-by: kolaente <[email protected]> * Use the timeout flag instead of deadline, move it to config Signed-off-by: kolaente <[email protected]>
1 parent f05a335 commit 7408942

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ linters:
1919
disable-all: true
2020
fast: false
2121

22+
run:
23+
timeout: 3m
24+
2225
linters-settings:
2326
gocritic:
2427
disabled-checks:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,6 @@ pr:
515515
golangci-lint:
516516
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
517517
export BINARY="golangci-lint"; \
518-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.19.1; \
518+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.20.0; \
519519
fi
520-
golangci-lint run --deadline=3m
520+
golangci-lint run

0 commit comments

Comments
 (0)