1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 15:46:31 +01:00
Files
prometheus-operator/.golangci.yml
Arthur Silva Sens 921158afe3 Enable depguard in tests/framework/framework.go
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
2023-10-25 16:52:43 -03:00

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