-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
74 lines (62 loc) · 1.13 KB
/
.golangci.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
run:
skip-dirs:
- types
# default: '1m'
timeout: '5m'
#skip-dirs-use-default: true
# default: []
build-tags:
- 'all'
# default: ''
modules-download-mode: 'readonly'
# default: false
allow-parallel-runners: true
# goimports does not like proto files generated on windows
# - 'goimports'
linters:
enable:
- 'asciicheck'
#- 'depguard'
- 'bodyclose'
- 'dogsled'
- 'errcheck'
- 'errorlint'
- 'exhaustive'
- 'exportloopref'
- 'gofmt'
- 'goheader'
- 'gomodguard'
- 'goprintffuncname'
- 'gosec'
- 'gosimple'
- 'govet'
#- 'gci'
- 'ineffassign'
- 'makezero'
- 'misspell'
- 'nakedret'
- 'noctx'
- 'nolintlint'
#- 'paralleltest'
- 'prealloc'
- 'predeclared'
- 'revive'
- 'sqlclosecheck'
- 'staticcheck'
- 'stylecheck'
- 'typecheck'
- 'unconvert'
- 'unused'
- 'whitespace'
issues:
# default: []
exclude:
- '^S1023:' # staticcheck: redundant returns help with http handlers
- '^SA3000:' # staticcheck: not required in Go 11.4+
# default: 50
max-issues-per-linter: 0
# default: 3
max-same-issues: 0
severity:
# default: ''
default-severity: error