test: add messaging.Publisher integration test #91
Annotations
10 errors
golangci-lint:
internal/admission/wardleinitializer/wardleinitializer_test.go#L53
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
internal/admission/wardleinitializer/wardleinitializer_test.go#L56
unused-parameter: parameter 'o' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
internal/apiserver/apiserver.go#L101
error returned from external package is unwrapped: sig: func (k8s.io/apiserver/pkg/server.completedConfig).New(name string, delegationTarget k8s.io/apiserver/pkg/server.DelegationTarget) (*k8s.io/apiserver/pkg/server.GenericAPIServer, error) (wrapcheck)
|
golangci-lint:
internal/apiserver/apiserver.go#L114
error returned from external package is unwrapped: sig: func github.com/rancher/sbombastic/internal/storage.NewSBOMStore(scheme *k8s.io/apimachinery/pkg/runtime.Scheme, optsGetter k8s.io/apiserver/pkg/registry/generic.RESTOptionsGetter, db *github.com/jmoiron/sqlx.DB) (*k8s.io/apiserver/pkg/registry/generic/registry.Store, error) (wrapcheck)
|
golangci-lint:
internal/apiserver/apiserver.go#L121
error returned from external package is unwrapped: sig: func (*k8s.io/apiserver/pkg/server.GenericAPIServer).InstallAPIGroup(apiGroupInfo *k8s.io/apiserver/pkg/server.APIGroupInfo) error (wrapcheck)
|
golangci-lint:
cmd/worker/main.go#L43
Error return value of `msg.Ack` is not checked (errcheck)
|
golangci-lint:
cmd/worker/main.go#L39
use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
|
golangci-lint:
cmd/worker/main.go#L41
use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
|
golangci-lint:
cmd/worker/main.go#L42
use of `fmt.Printf` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
|
golangci-lint:
cmd/storage/server/start.go#L69
G115: integer overflow conversion uint -> int (gosec)
|
Loading