Skip to content

Commit 1ec77eb

Browse files
committed
Migrate to golangci-lint v2
1 parent 3a338ca commit 1ec77eb

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

.golangci.yml

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
issues:
2-
max-issues-per-linter: 0
3-
max-same-issues: 0
4-
1+
version: "2"
52
linters:
6-
disable-all: true
3+
default: none
74
enable:
85
- copyloopvar
96
- durationcheck
107
- errcheck
118
- forcetypeassert
12-
- gofmt
13-
- gosimple
9+
- govet
1410
- ineffassign
1511
- makezero
1612
- misspell
@@ -22,8 +18,26 @@ linters:
2218
- unparam
2319
- unused
2420
- usetesting
25-
- govet
26-
27-
run:
28-
# Prevent false positive timeouts in CI
29-
timeout: 5m
21+
exclusions:
22+
generated: lax
23+
presets:
24+
- comments
25+
- common-false-positives
26+
- legacy
27+
- std-error-handling
28+
paths:
29+
- third_party$
30+
- builtin$
31+
- examples$
32+
issues:
33+
max-issues-per-linter: 0
34+
max-same-issues: 0
35+
formatters:
36+
enable:
37+
- gofmt
38+
exclusions:
39+
generated: lax
40+
paths:
41+
- third_party$
42+
- builtin$
43+
- examples$

0 commit comments

Comments
 (0)