-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.golangci.yaml
79 lines (74 loc) · 1.57 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
75
76
77
78
79
run:
timeout: '5m'
build-tags:
- 'all'
skip-dirs-use-default: false
modules-download-mode: 'readonly'
allow-parallel-runners: true
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- deadcode
- decorder
- depguard
- dogsled
- dupword
- durationcheck
- errcheck
- errorlint
- exportloopref
- forcetypeassert
- godot
- gofmt
- gofumpt
- goheader
- goimports
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- makezero
- misspell
- nilerr
- nilnil
- noctx
- paralleltest
- prealloc
- predeclared
- rowserrcheck
- sqlclosecheck
- staticcheck
- structcheck
- stylecheck
- tenv
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- varcheck
- wastedassign
- 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
- '^G501:' # gosec: Blocklisted import crypto/md5: weak cryptographic primitive
- '^G204:' #gosec: Subprocess launched with a potential tainted input or cmd arguments
- '^G108:' # profiling is available
max-issues-per-linter: 0
max-same-issues: 0
severity:
default-severity: error