diff --git a/.golangci.yaml b/.golangci.yaml index 93dedb38f0..f3bbe1bf3b 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -23,7 +23,7 @@ linters: - ineffassign #- lll #- misspell - #- nolintlint + - nolintlint #- prealloc - staticcheck - stylecheck diff --git a/core/clustersmngr/cluster/delegating_cache_test.go b/core/clustersmngr/cluster/delegating_cache_test.go index 4fc334d3dc..b76a9f1fa2 100644 --- a/core/clustersmngr/cluster/delegating_cache_test.go +++ b/core/clustersmngr/cluster/delegating_cache_test.go @@ -24,7 +24,7 @@ func TestDelegatingCacheGet(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) defer cancel() - go cache.Start(ctx) //nolint:errcheck + go cache.Start(ctx) if ok := cache.WaitForCacheSync(ctx); !ok { g.Fail("failed syncing client cache") @@ -59,7 +59,7 @@ func TestDelegatingCacheList(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) defer cancel() - go cache.Start(ctx) //nolint:errcheck + go cache.Start(ctx) if ok := cache.WaitForCacheSync(ctx); !ok { g.Fail("failed syncing client cache") diff --git a/pkg/run/install/apply_manifests.go b/pkg/run/install/apply_manifests.go index 7efb89af2d..865e0dde5f 100644 --- a/pkg/run/install/apply_manifests.go +++ b/pkg/run/install/apply_manifests.go @@ -29,7 +29,7 @@ func NewManager(ctx context.Context, log logger.Logger, kubeClient ctrlclient.Cl } // apply is the equivalent of 'kubectl apply --server-side -f'. -func apply(ctx context.Context, log logger.Logger, manager ResourceManagerForApply, manifestsContent []byte) (string, error) { // nolint:unparam +func apply(ctx context.Context, log logger.Logger, manager ResourceManagerForApply, manifestsContent []byte) (string, error) { //nolint:unparam objs, err := utils.ReadObjects(bytes.NewReader(manifestsContent)) if err != nil { log.Failuref("Error reading Kubernetes objects from the manifests")