-
Notifications
You must be signed in to change notification settings - Fork 941
/
Copy path.golangci.yml
52 lines (50 loc) · 996 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
41
42
43
44
45
46
47
48
49
50
51
52
linters-settings:
govet:
enable:
- shadow
gocyclo:
min-complexity: 10
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
depguard:
rules:
main:
deny:
- pkg: "github.com/sirupsen/logrus"
desc: logging is allowed only by logutils.Log, logrus is allowed to use only in logutils package
misspell:
locale: US
ignore-words:
- nto
lll:
line-length: 140
goimports:
local-prefixes: github.com/golangci/golangci-lint
gocritic:
enabled-tags:
- performance
- style
- experimental
disabled-checks:
- wrapperFunc
linters:
disable-all: true
enable:
- govet
- staticcheck
- ineffassign
- misspell
issues:
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec
- linters:
- staticcheck
text: "SA1019:"
exclude-dirs:
- test/testdata_etc
- pkg/golinters/goanalysis/(checker|passes)