-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yaml
61 lines (56 loc) · 1.22 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
run:
timeout: '5m'
build-tags:
- 'all'
skip-dirs-use-default: false
modules-download-mode: 'readonly'
allow-parallel-runners: true
linters:
enable:
- 'asciicheck'
- 'bodyclose'
- 'deadcode'
- 'depguard'
- 'dogsled'
- 'errcheck'
- 'errorlint'
- 'exportloopref'
- 'gofmt'
- 'gofumpt'
- 'goheader'
- 'goimports'
- 'gomodguard'
- 'goprintffuncname'
- 'gosec'
- 'gosimple'
- 'govet'
- 'ineffassign'
- 'makezero'
- 'misspell'
- 'noctx'
- 'paralleltest'
- 'prealloc'
- 'predeclared'
- 'sqlclosecheck'
- 'staticcheck'
- 'structcheck'
- 'stylecheck'
- 'typecheck'
- 'unconvert'
- 'unused'
- 'varcheck'
- 'whitespace'
issues:
# default: []
exclude:
- '^S1023:' # staticcheck: redundant returns help with http handlers
- '^SA3000:' # staticcheck: not required in Go 11.4+
- '^G102:' # gosec: to bind to all ifaces
- '^G402:' # gosec: some services terminate at the load balancer
- '^G401:' # gosec: use crypto/sha1
- '^G505:' # gosec: use crypto/sha1
- '^G108:' # profiling is available
max-issues-per-linter: 0
max-same-issues: 0
severity:
default-severity: error