-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
40 lines (37 loc) · 866 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# golangci-lint run
# gofumpt -l -w -s .
linters:
enable-all: true
disable:
# Deprecations
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck
# Opinionated
- depguard # don't care for
- nlreturn # opinionated
- paralleltest # excess work for little gain
- wsl # whitespace linter, aggressive and opinionated
linters-settings:
cyclop:
max-complexity: 15 # default value 10 requires unnecessary refactoring
varnamelen:
min-name-length: 1 # default value 3 is too short
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- exhaustruct
- gochecknoinits
- path: main.go
linters:
- funlen
- gochecknoglobals