mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 15:46:31 +01:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
run:
|
|
deadline: 10m
|
|
|
|
linters:
|
|
enable:
|
|
- revive
|
|
- gci
|
|
- depguard
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test.go
|
|
linters:
|
|
- errcheck
|
|
# TODO: fix linter errors before enabling it for the framework
|
|
- path: test/framework
|
|
linters:
|
|
- revive
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
exclude: scripts/errcheck_excludes.txt
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/prometheus-operator/prometheus-operator)
|
|
depguard:
|
|
rules:
|
|
forbid-pkg-errors:
|
|
files:
|
|
- "**/admission/*.go"
|
|
- "**/alertmanager/*.go"
|
|
- "**/alertmanager/**/*.go"
|
|
- "**/apis/*.go"
|
|
- "**/apis/**/*.go"
|
|
- "**/assets/*.go"
|
|
- "**/client/*.go"
|
|
- "**/client/**/*.go"
|
|
- "**/informers/*.go"
|
|
- "**/k8sutil/*.go"
|
|
- "**/listwatch/*.go"
|
|
- "**/namespacelabeler/*.go"
|
|
- "**/operator/*.go"
|
|
- "**/prometheus/*.go"
|
|
- "**/prometheus/**/*.go"
|
|
- "**/server/*.go"
|
|
- "**/thanos/*.go"
|
|
- "**/versionutil/*.go"
|
|
- "**/webconfig/*.go"
|
|
- "**/e2e/*.go"
|
|
- "**/framework/framework.go"
|
|
deny:
|
|
- pkg: "github.com/pkg/errors"
|
|
dsc: Should be replaced with standard lib errors or fmt.Errorf |