mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 15:46:31 +01:00
* Enable revive linter in test/framework Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> * Fix revive issues Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com> --------- Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
34 lines
599 B
YAML
34 lines
599 B
YAML
run:
|
|
deadline: 10m
|
|
|
|
linters:
|
|
enable:
|
|
- revive
|
|
- gci
|
|
- depguard
|
|
- godot
|
|
- testifylint
|
|
- unconvert
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# Disable errcheck linter for test files.
|
|
- path: _test.go
|
|
linters:
|
|
- errcheck
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
exclude: scripts/errcheck_excludes.txt
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/prometheus-operator/prometheus-operator)
|
|
depguard:
|
|
rules:
|
|
forbid-pkg-errors:
|
|
deny:
|
|
- pkg: "github.com/pkg/errors"
|
|
dsc: Should be replaced with standard lib errors or fmt.Errorf
|