-
Notifications
You must be signed in to change notification settings - Fork 69
/
.golangci.yaml
76 lines (67 loc) · 1.58 KB
/
.golangci.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
# include test files or not, default is true
tests: true
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
# make issues output unique by line, default is true
uniq-by-line: true
linters-settings:
goimports:
local-prefixes: github.com/bentoml
govet:
settings:
printf:
funcs:
- (github.com/sirupsen/logrus).Infof
- (github.com/sirupsen/logrus).Warnf
- (github.com/sirupsen/logrus).Debugf
- (github.com/sirupsen/logrus).Errorf
- (github.com/sirupsen/logrus).Fatalf
maligned:
suggest-new: true
misspell:
locale: US
linters:
disable-all: false
presets:
- bugs
- unused
- error
- performance
disable:
- wrapcheck
- goerr113
- maligned
- structcheck
- deadcode
- varcheck
- scopelint
- rowserrcheck
- sqlclosecheck
enable:
- bodyclose
- ineffassign
- exportloopref
- typecheck
- gofmt
- unconvert
- staticcheck
- govet
- gosimple
- unparam
- gocritic
- goconst
- goimports
- dogsled
- whitespace
- misspell