Skip to content

Commit 4fc1d07

Browse files
committed
Update golangci-lint config
1 parent fa16f81 commit 4fc1d07

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

.golangci.yml

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
run:
22
timeout: 5m
3-
skip-files:
4-
- '(.+)_test\.go'
5-
3+
tests: false
64
linters:
7-
disable-all: false
8-
enable:
9-
- funlen
10-
- dogsled
11-
- dupl
12-
# - lll
13-
- whitespace
14-
- wsl
15-
- exportloopref
16-
disable:
17-
- scopelint
18-
- bodyclose
19-
- contextcheck
20-
- nilerr
21-
- noctx
22-
- rowserrcheck
23-
- sqlclosecheck
24-
- structcheck
25-
- unparam
26-
presets:
27-
- bugs
28-
- unused
29-
# - style
30-
fast: false
5+
enable-all: true
6+
disable:
7+
- cyclop
8+
- depguard
9+
- exhaustivestruct
10+
- exhaustruct
11+
- forbidigo
12+
- gci
13+
- gochecknoglobals
14+
- gochecknoinits
15+
- godox
16+
- goerr113
17+
- gofumpt
18+
- gomnd
19+
- lll
20+
- musttag
21+
- nakedret
22+
- nlreturn
23+
- nolintlint
24+
- nonamedreturns
25+
- tagliatelle
26+
- varnamelen
27+
- wrapcheck
28+
linters-settings:
29+
estif:
30+
min-complexity: 4
31+
maligned:
32+
suggest-new: true

0 commit comments

Comments
 (0)