-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yml
51 lines (51 loc) · 1.25 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
# all available settings of specific linters
linters-settings:
govet:
# settings per analyzer
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
gosec:
settings:
exclude: "G401"
golint:
min-confidence: 0
report-comments: true
gocyclo:
min-complexity: 10
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
issues:
include: [EXC01, EXC02]
exclude-use-default: false
linters:
# enable or disable analyzers by name
enable:
- golint
- gofmt
- gosec
- whitespace
- misspell
- unconvert
- goimports
- unused
- gosimple
- varcheck
- structcheck
- bodyclose
- deadcode
- depguard
- govet
- typecheck
- staticcheck
enable-all: false
disable-all: true