2019-04-24 12:18:40 +00:00
|
|
|
run:
|
2019-05-03 13:11:28 +00:00
|
|
|
deadline: 5m
|
2021-10-22 08:26:56 +00:00
|
|
|
skip-files:
|
|
|
|
# Skip autogenerated files.
|
|
|
|
- ^.*\.(pb|y)\.go$
|
2019-04-24 12:18:40 +00:00
|
|
|
|
2021-11-10 09:29:12 +00:00
|
|
|
output:
|
|
|
|
sort-results: true
|
|
|
|
|
2020-03-23 14:32:37 +00:00
|
|
|
linters:
|
|
|
|
enable:
|
2021-06-12 10:47:47 +00:00
|
|
|
- depguard
|
2021-10-22 08:27:37 +00:00
|
|
|
- gofumpt
|
|
|
|
- goimports
|
2021-10-22 22:36:59 +00:00
|
|
|
- revive
|
2022-03-03 17:11:19 +00:00
|
|
|
- misspell
|
2020-03-23 14:32:37 +00:00
|
|
|
|
2019-05-03 13:11:28 +00:00
|
|
|
issues:
|
2022-04-27 09:24:36 +00:00
|
|
|
max-same-issues: 0
|
2019-05-03 13:11:28 +00:00
|
|
|
exclude-rules:
|
2021-06-12 10:47:47 +00:00
|
|
|
- path: _test.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
2019-05-03 13:11:28 +00:00
|
|
|
|
|
|
|
linters-settings:
|
2020-08-21 09:37:21 +00:00
|
|
|
depguard:
|
|
|
|
list-type: blacklist
|
|
|
|
include-go-root: true
|
|
|
|
packages-with-error-message:
|
|
|
|
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
|
2020-10-29 10:09:08 +00:00
|
|
|
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
|
2021-07-27 11:07:39 +00:00
|
|
|
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
2022-04-27 09:24:36 +00:00
|
|
|
- io/ioutil: "Use corresponding 'os' or 'io' functions instead."
|
2022-02-12 23:58:27 +00:00
|
|
|
- regexp: "Use github.com/grafana/regexp instead of regexp"
|
2019-05-03 13:11:28 +00:00
|
|
|
errcheck:
|
|
|
|
exclude: scripts/errcheck_excludes.txt
|
2021-10-22 08:27:37 +00:00
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/prometheus/prometheus
|
|
|
|
gofumpt:
|
|
|
|
extra-rules: true
|