Skip to content

Commit f8bf620

Browse files
arnesteddependabot[bot]
authored andcommitted
Migrate golangci-lint configuration to version 2
1 parent 9366b1f commit f8bf620

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.golangci.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
1+
---
2+
version: "2"
13
linters:
2-
enable-all: true
4+
default: all
35
disable:
46
- depguard
57
- exhaustruct
8+
exclusions:
9+
generated: lax
10+
presets:
11+
- comments
12+
- common-false-positives
13+
- legacy
14+
- std-error-handling
15+
paths:
16+
- third_party$
17+
- builtin$
18+
- examples$
19+
formatters:
20+
enable:
21+
- gci
22+
- gofmt
23+
- gofumpt
24+
- goimports
25+
exclusions:
26+
generated: lax
27+
paths:
28+
- third_party$
29+
- builtin$
30+
- examples$

0 commit comments

Comments
 (0)