-
Notifications
You must be signed in to change notification settings - Fork 20
/
.golangci.yml
37 lines (35 loc) · 984 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
linters-settings:
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8
gocyclo:
min-complexity: 15
govet:
# report about shadowed variables
check-shadowing: false
# 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
linters:
disable-all: true
enable:
- deadcode
# - errcheck
- gosimple
- govet
- ineffassign
# - staticcheck
# - typecheck
- unused
# - varcheck
# - deadcode
# - dupl
# - gocritic
- gocyclo
- golint
- misspell