-
Notifications
You must be signed in to change notification settings - Fork 10
/
.golangci.yml
46 lines (43 loc) · 1.38 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
linters-settings:
govet:
check-shadowing: true
settings:
printf:
funcs:
- (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
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/cmsgov/easi-app
golint:
min-confidence: 0
linters:
enable:
- gosec
- golint
- gofmt
- goimports
- govet
- varcheck
- typecheck
- structcheck
- deadcode
- ineffassign
disable:
- unused #deprecated https://github.com/dominikh/go-tools/tree/master/cmd/unused
- gosimple #deprecated https://github.com/golangci/golangci-lint/issues/357
- errcheck #requires patching code
- staticcheck # 30+files need to be patched
issues:
exclude-use-default: false
exclude:
#TODO: remove this exclusion after https://github.com/golang/lint/issues/381
# is fixed by https://github.com/golang/lint/pull/380 or something else
- "should have a package comment, unless it's in another file for this package"
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 8m
concurrency: 1