mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
9a2e93228e
Let's have a consistent library for regexp. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
38 lines
914 B
YAML
38 lines
914 B
YAML
run:
|
|
deadline: 5m
|
|
skip-files:
|
|
# Skip autogenerated files.
|
|
- ^.*\.(pb|y)\.go$
|
|
|
|
output:
|
|
sort-results: true
|
|
|
|
linters:
|
|
enable:
|
|
- depguard
|
|
- gofumpt
|
|
- goimports
|
|
- revive
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test.go
|
|
linters:
|
|
- errcheck
|
|
|
|
linters-settings:
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: true
|
|
packages-with-error-message:
|
|
- sync/atomic: "Use go.uber.org/atomic instead of sync/atomic"
|
|
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
|
|
- github.com/go-kit/kit/log: "Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
|
|
- regexp: "Use github.com/grafana/regexp instead of regexp"
|
|
errcheck:
|
|
exclude: scripts/errcheck_excludes.txt
|
|
goimports:
|
|
local-prefixes: github.com/prometheus/prometheus
|
|
gofumpt:
|
|
extra-rules: true
|