-
Notifications
You must be signed in to change notification settings - Fork 82
/
.golangci.yml
65 lines (59 loc) · 1.42 KB
/
.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
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
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
# include test files or not, default is true
tests: false
# timeout for running linters, default is 1m
timeout: 4m
linters:
enable:
- asciicheck
- bodyclose
- deadcode
- errcheck
- exportloopref
- goconst
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- megacheck
- misspell
- nolintlint
- prealloc
- predeclared
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- wastedassign
- whitespace
disable:
- maligned
# cosmetic
- lll
- gochecknoglobals
- gochecknoinits
linters-settings:
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
issues:
# only reports issues that have been introduced in commits ahead of origin/master
new-from-rev: origin/master
# exclude some irrelevant issues for us
exclude:
- '^G401: Use of weak cryptographic primitive'
- '^G402: TLS InsecureSkipVerify'
- '^G404: Use of weak random number generator'
- '^G501: Blocklisted import crypto/md5: weak cryptographic primitive'
- '^G505: Blocklisted import crypto/sha1: weak cryptographic primitive'
- '^G601: Implicit memory aliasing in for loop'