Skip to content

Commit

Permalink
Fix Issue #1739 (#1789)
Browse files Browse the repository at this point in the history
* Fix #1739

Signed-off-by: Manuel Fontan <manuel.fontan.garcia@gmail.com>

* remove commented lint config

Signed-off-by: Manuel Fontan <manuel.fontan.garcia@gmail.com>

---------

Signed-off-by: Manuel Fontan <manuel.fontan.garcia@gmail.com>
  • Loading branch information
manfontan authored Aug 28, 2023
1 parent 4bcf469 commit 2931e04
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ issues:
- linters:
- stylecheck
text: "ST1003: const StorageEngineRocksDbV1"
# TODO (johscheuer): Fix all go imports to make this check happy, https://github.com/FoundationDB/fdb-kubernetes-operator/issues/1739.
- linters:
- depguard
text: "is not allowed from list 'Main'"

linters:
disable-all: true
Expand Down Expand Up @@ -76,7 +72,33 @@ linters-settings:
go: "1.20"
stylecheck:
go: "1.20"

depguard:
rules:
main:
allow:
- $gostd
- github.com/FoundationDB/fdb-kubernetes-operator
- github.com/apple/foundationdb
- github.com/google/go-cmp/cmp
- sigs.k8s.io/controller-runtime
- sigs.k8s.io/yaml
- k8s.io/kubectl
- k8s.io/apimachinery
- k8s.io/client-go
- k8s.io/cli-runtim
- k8s.io/api
- k8s.io/klog
- k8s.io/utils
- github.com/onsi/gomega
- github.com/onsi/ginkgo
- github.com/hashicorp
- github.com/spf13/cobra
- github.com/spf13/viper
- github.com/spf13/pflag
- github.com/fatih/color
- github.com/chaos-mesh
- github.com/prometheus
- github.com/go-logr
run:
timeout: 10m
skip-files:
Expand Down

0 comments on commit 2931e04

Please sign in to comment.