Skip to content

Commit 281414c

Browse files
committed
Update ci lint configuration to v2
1 parent b2dd132 commit 281414c

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

.golangci.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
1-
# Refer to golangci-lint's example config file for more options and information:
2-
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
3-
1+
version: "2"
42
run:
5-
timeout: 5m
63
modules-download-mode: readonly
7-
exclude-dirs:
8-
- vendor
9-
- third_party
10-
114
linters:
125
enable:
13-
- errcheck
14-
- gosimple
15-
- goimports
16-
- govet
17-
- staticcheck
18-
- unused
19-
- ineffassign
206
- bodyclose
217
- gocognit
228
- godox
@@ -26,7 +12,26 @@ linters:
2612
- reassign
2713
- wastedassign
2814
- whitespace
29-
15+
exclusions:
16+
generated: lax
17+
presets:
18+
- comments
19+
- common-false-positives
20+
- legacy
21+
- std-error-handling
22+
paths:
23+
- third_party$
24+
- builtin$
25+
- examples$
3026
issues:
3127
max-issues-per-linter: 0
32-
max-same-issues: 0
28+
max-same-issues: 0
29+
formatters:
30+
enable:
31+
- goimports
32+
exclusions:
33+
generated: lax
34+
paths:
35+
- third_party$
36+
- builtin$
37+
- examples$

0 commit comments

Comments
 (0)