File tree Expand file tree Collapse file tree 3 files changed +30
-8
lines changed Expand file tree Collapse file tree 3 files changed +30
-8
lines changed Original file line number Diff line number Diff line change
1
+ version : " 2"
2
+
1
3
run :
4
+ modules-download-mode : vendor
2
5
tests : false
3
- timeout : 10m
4
- linters :
5
- disable-all : true
6
+
7
+ formatters :
6
8
enable :
7
- - misspell
8
9
- gofmt
9
10
- goimports
11
+
12
+ linters :
13
+ default : none
14
+ enable :
15
+ - govet
10
16
- ineffassign
17
+ - misspell
11
18
- revive
12
19
- unconvert
13
20
- unused
14
- - govet
21
+ exclusions :
22
+ presets :
23
+ - comments
24
+ - common-false-positives
25
+ - legacy
26
+ - std-error-handling
27
+ rules :
28
+ - linters :
29
+ - revive
30
+ text : " (unused-parameter|redefines-builtin-id):"
31
+
32
+ issues :
33
+ # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
34
+ max-issues-per-linter : 0
15
35
36
+ # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
37
+ max-same-issues : 0
Original file line number Diff line number Diff line change 2
2
3
3
ARG GO_VERSION=1.18.9
4
4
ARG PROTOC_VERSION=3.11.4
5
- ARG GOLANGCI_LINT_VERSION=v1.50.1
5
+ ARG GOLANGCI_LINT_VERSION=v2.1.6
6
6
ARG DEBIAN_FRONTEND=noninteractive
7
7
8
8
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-bullseye AS gobase
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ version/version.go:
41
41
.PHONY : setup
42
42
setup : # # install dependencies
43
43
@echo " 🐳 $@ "
44
- # install golangci-lint version v1.50.1 to ./bin/golangci-lint
45
- @curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/v1.50.1 /install.sh | sh -s v1.50.1
44
+ # install golangci-lint version v2.1.6 to ./bin/golangci-lint
45
+ @curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD /install.sh | sh -s v2.1.6
46
46
@ (cd tools ; GO111MODULE=on go install github.com/containerd/protobuild)
47
47
48
48
.PHONY : generate
You can’t perform that action at this time.
0 commit comments