Skip to content

Commit eb6986c

Browse files
committed
update golangci-lint to v2.1.6
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent a45be3c commit eb6986c

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

.golangci.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
1+
version: "2"
2+
13
run:
4+
modules-download-mode: vendor
25
tests: false
3-
timeout: 10m
4-
linters:
5-
disable-all: true
6+
7+
formatters:
68
enable:
7-
- misspell
89
- gofmt
910
- goimports
11+
12+
linters:
13+
default: none
14+
enable:
15+
- govet
1016
- ineffassign
17+
- misspell
1118
- revive
1219
- unconvert
1320
- 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
1535

36+
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
37+
max-same-issues: 0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ARG GO_VERSION=1.18.9
44
ARG PROTOC_VERSION=3.11.4
5-
ARG GOLANGCI_LINT_VERSION=v1.50.1
5+
ARG GOLANGCI_LINT_VERSION=v2.1.6
66
ARG DEBIAN_FRONTEND=noninteractive
77

88
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-bullseye AS gobase

direct.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ version/version.go:
4141
.PHONY: setup
4242
setup: ## install dependencies
4343
@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
4646
@(cd tools ; GO111MODULE=on go install github.com/containerd/protobuild)
4747

4848
.PHONY: generate

0 commit comments

Comments
 (0)