fix(lint): enable gochecknoinits
Signed-off-by: Luca Burgazzoli <lburgazzoli@gmail.com>
This commit is contained in:
parent
7567c9e74a
commit
3ed62e28f5
|
@ -51,6 +51,10 @@ issues:
|
||||||
linters:
|
linters:
|
||||||
- wrapcheck
|
- wrapcheck
|
||||||
- funlen
|
- funlen
|
||||||
|
- gochecknoinits
|
||||||
|
- path: api
|
||||||
|
linters:
|
||||||
|
- gochecknoinits
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
disable:
|
disable:
|
||||||
|
@ -67,5 +71,4 @@ linters:
|
||||||
- paralleltest
|
- paralleltest
|
||||||
- ireturn
|
- ireturn
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
- gochecknoinits
|
|
||||||
- depguard
|
- depguard
|
||||||
|
|
|
@ -23,6 +23,7 @@ import (
|
||||||
"github.com/dapr/kubernetes-operator/pkg/controller"
|
"github.com/dapr/kubernetes-operator/pkg/controller"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//nolint:gochecknoinits
|
||||||
func init() {
|
func init() {
|
||||||
utilruntime.Must(daprApi.AddToScheme(controller.Scheme))
|
utilruntime.Must(daprApi.AddToScheme(controller.Scheme))
|
||||||
utilruntime.Must(apiextensions.AddToScheme(controller.Scheme))
|
utilruntime.Must(apiextensions.AddToScheme(controller.Scheme))
|
||||||
|
|
|
@ -32,6 +32,7 @@ const (
|
||||||
PprofWriteTimeout = 10 * time.Second
|
PprofWriteTimeout = 10 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//nolint:gochecknoinits
|
||||||
func init() {
|
func init() {
|
||||||
utilruntime.Must(clientgoscheme.AddToScheme(Scheme))
|
utilruntime.Must(clientgoscheme.AddToScheme(Scheme))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue