Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanxin committed Oct 11, 2024
1 parent ac24437 commit 68d5c0a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ linters-settings:
alias: watcherevent
- pkg: github.com/kyma-project/runtime-watcher/listener/pkg/metrics
alias: watchermetrics
- pkg: github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/meta/v1
- pkg: ocm.software/ocm/api/ocm/compdesc/meta/v1
alias: ocmmetav1
- pkg: github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/versions/v2
- pkg: ocm.software/ocm/api/ocm/compdesc/versions/v2
alias: compdescv2
- pkg: istio.io/api/networking/v1beta1
alias: istioapiv1beta1
Expand Down Expand Up @@ -184,7 +184,7 @@ issues:
linters: [ gci ] # Disable gci due to the test utilities dot import.
- path: tests/integration/declarative/declarative_test.go
linters: [ gci ] # Disable gci due to the test utilities dot import.
- path: tests/integration/controller/(eventfilters|kyma|withwatcher|purge|mandatorymodule|kcp)/(.*)_test.go
- path: tests/integration/controller/(.*)/(.*)_test.go
linters: [ gci ] # Disable gci due to the test utilities dot import.
- linters:
- importas
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ func main() {

flagVar := flags.DefineFlagVar()
flag.Parse()
ctrl.SetLogger(log.ConfigLogger(int8(flagVar.LogLevel),
zapcore.Lock(os.Stdout))) //nolint:gosec // loglevel should always be between -128 to 127
ctrl.SetLogger(log.ConfigLogger(int8(flagVar.LogLevel), //nolint:gosec // loglevel should always be between -128 to 127
zapcore.Lock(os.Stdout)))
setupLog.Info("starting Lifecycle-Manager version: " + buildVersion)
if err := flagVar.Validate(); err != nil {
setupLog.Error(err, "unable to start manager")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (
"github.com/kyma-project/lifecycle-manager/api/v1beta2"
"github.com/kyma-project/lifecycle-manager/pkg/testutils/builder"

. "github.com/kyma-project/lifecycle-manager/pkg/testutils"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.com/kyma-project/lifecycle-manager/pkg/testutils"
)

const (
Expand Down

0 comments on commit 68d5c0a

Please sign in to comment.