Skip to content

Commit 996d564

Browse files
committed
fix: update config for v2
1 parent 3ff3800 commit 996d564

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

.golangci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1+
version: "2"
2+
13
linters:
24
enable:
35
- dupl
46
- funlen
57
- cyclop
68
- gocognit
7-
8-
linters-settings:
9-
dupl:
10-
threshold: 150
11-
funlen:
12-
lines: 80
13-
statements: 50
14-
cyclop:
15-
max-complexity: 20
16-
gocognit:
17-
min-complexity: 20
18-
19-
issues:
20-
exclude-dirs:
21-
- cmd
22-
exclude-rules:
23-
- path: _test\.go
24-
linters:
25-
- funlen
26-
- gocognit
27-
- dupl
9+
settings:
10+
dupl:
11+
threshold: 150
12+
funlen:
13+
lines: 80
14+
statements: 50
15+
cyclop:
16+
max-complexity: 20
17+
gocognit:
18+
min-complexity: 20
19+
exclusions:
20+
paths:
21+
- cmd
22+
rules:
23+
- path: _test\.go
24+
linters:
25+
- funlen
26+
- gocognit
27+
- dupl

0 commit comments

Comments
 (0)