Skip to content

Commit aa61c56

Browse files
committed
build: Bump golangci to v2.1.6
Signed-off-by: Paulo Gomes <[email protected]>
1 parent 36f4e5b commit aa61c56

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

.golangci.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
1+
version: "2"
12
run:
23
concurrency: 3
3-
timeout: 4m
4-
54
linters:
6-
enable-all: true
5+
default: all
76
disable:
87
- depguard
98
- ireturn
109
- mnd
1110
- varnamelen
1211
- wrapcheck
1312
- wsl
14-
15-
linters-settings:
13+
exclusions:
14+
generated: lax
15+
presets:
16+
- comments
17+
- common-false-positives
18+
- legacy
19+
- std-error-handling
20+
paths:
21+
- third_party$
22+
- builtin$
23+
- examples$
24+
formatters:
25+
enable:
26+
- gci
27+
- gofmt
28+
- gofumpt
29+
- goimports
30+
exclusions:
31+
generated: lax
32+
paths:
33+
- third_party$
34+
- builtin$
35+
- examples$

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GOCMD = go
22
GOTEST = $(GOCMD) test
33

4-
GOLANGCI_VERSION ?= v1.64.5
4+
GOLANGCI_VERSION ?= v2.1.6
55
TOOLS_BIN := $(shell mkdir -p build/tools && realpath build/tools)
66

77
GOLANGCI = $(TOOLS_BIN)/golangci-lint-$(GOLANGCI_VERSION)

0 commit comments

Comments
 (0)