-
Notifications
You must be signed in to change notification settings - Fork 7
/
.golangci.yml
49 lines (44 loc) · 1.08 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
47
48
49
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 10m
linters:
enable:
- errorlint
- goconst
- gofmt
- goimports
- revive
- ineffassign
- staticcheck
- misspell
- unconvert
- unparam
- govet
- typecheck
- copyloopvar
linters-settings:
errcheck:
# List of functions to exclude from checking, where each entry is a single function to exclude.
# See https://github.com/kisielk/errcheck#excluding-functions for details.
exclude-functions:
- io/ioutil.ReadFile
- io.Copy(*bytes.Buffer)
- io.Copy(os.Stdout)
- (github.com/go-kit/log.Logger).Log
errorlint:
# Do not check for plain type assertions and type switches.
asserts: false
# Check whether fmt.Errorf uses the %w verb for formatting errors.
# See the https://github.com/polyfloyd/go-errorlint for caveats.
# Default: true
errorf: false
goconst:
min-len: 5
min-occurrences: 5
ignore-tests: true
issues:
exclude-files:
- .*.pb.go
exclude-rules:
- linters: [revive]
text: "if-return"