2019-11-18 08:49:18 +00:00
|
|
|
run:
|
2021-03-29 03:58:45 +00:00
|
|
|
deadline: 10m
|
2019-11-18 08:49:18 +00:00
|
|
|
|
2021-04-02 06:36:49 +00:00
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2021-05-08 08:45:40 +00:00
|
|
|
- gofmt
|
2021-04-02 06:36:49 +00:00
|
|
|
- deadcode
|
|
|
|
- errcheck
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
|
2019-11-18 08:49:18 +00:00
|
|
|
linters-settings:
|
2021-03-29 03:58:45 +00:00
|
|
|
govet:
|
|
|
|
disable:
|
|
|
|
- deepequalerrors
|
|
|
|
- fieldalignment
|
|
|
|
- shadow
|
|
|
|
- unsafeptr
|
2019-11-18 08:49:18 +00:00
|
|
|
goconst:
|
2021-03-29 03:58:45 +00:00
|
|
|
min-len: 2
|
|
|
|
min-occurrences: 2
|
|
|
|
gofmt:
|
|
|
|
auto-fix: false
|
2019-11-18 08:49:18 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-03-29 03:58:45 +00:00
|
|
|
- linters:
|
|
|
|
- golint
|
|
|
|
text: "should be"
|
|
|
|
- linters:
|
|
|
|
- errcheck
|
|
|
|
text: "not checked"
|
|
|
|
- linters:
|
|
|
|
- staticcheck
|
|
|
|
text: "SA(1019|1029|5011)"
|
|
|
|
# Exclude some linters from running on tests files.
|
|
|
|
- path: _test\.go
|
2020-01-16 12:09:38 +00:00
|
|
|
linters:
|
2021-03-29 03:58:45 +00:00
|
|
|
- gosec
|
|
|
|
- unused
|
2020-01-16 12:09:38 +00:00
|
|
|
- deadcode
|
2021-04-13 14:48:20 +00:00
|
|
|
- path: metrics/sample\.go
|
|
|
|
linters:
|
|
|
|
- gosec
|