forked from sarboc/easi-app-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
43 lines (41 loc) · 1.23 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
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
revive:
confidence: 0
linters:
enable:
- gosec
- gofmt
- goimports
- govet
- varcheck
- typecheck
- structcheck
- deadcode
- ineffassign
- revive
- staticcheck
- gosimple #will be deprecated in golangci-lint v2.0 in favor of staticcheck https://github.com/golangci/golangci-lint/issues/357
- unused #will be deprecated in golangci-lint v2.0 in favor of staticcheck https://github.com/golangci/golangci-lint/issues/357
disable:
- errcheck #requires patching code
issues:
exclude-use-default: false
exclude:
- "package-comments"
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 8m
concurrency: 1