-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yml
44 lines (44 loc) · 1.1 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
run:
timeout: 30m
issues-exit-code: 1
tests: true
skip-dirs-use-default: true
output:
format: line-number
print-issued-lines: true
print-linter-name: true
linters-settings:
errcheck:
check-type-assertions: false
check-blank: false
ignore: "[cClose]"
govet:
check-shadowing: false
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
disable:
- timeformat
gofmt:
simplify: true
goimports:
linters:
disable-all: true
enable:
- gofmt
- goimports
- govet
- errcheck
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
new: false