From 7701380e86c5bd66c93205d96231a9a9a705ecb8 Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Wed, 31 Aug 2022 17:07:24 +0900 Subject: [PATCH] fix(lint): suppress nolintlint - unused staticcheck --- pkg/trait/builder.go | 2 +- pkg/trait/openapi.go | 2 +- pkg/trait/util.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/trait/builder.go b/pkg/trait/builder.go index fff4aff9d8..9a90e7d46e 100644 --- a/pkg/trait/builder.go +++ b/pkg/trait/builder.go @@ -116,7 +116,7 @@ func (t *builderTrait) Apply(e *Environment) error { }, Verbose: t.Verbose, }}) - // nolint: staticcheck + //nolint: staticcheck,nolintlint case v1.IntegrationPlatformBuildPublishStrategyKaniko: var persistentVolumeClaim string var found, cacheEnabled bool diff --git a/pkg/trait/openapi.go b/pkg/trait/openapi.go index e19d40a5c6..36425b0047 100644 --- a/pkg/trait/openapi.go +++ b/pkg/trait/openapi.go @@ -270,7 +270,7 @@ func (t *openAPITrait) createNewOpenAPIConfigMap(e *Environment, resource v1.Dat return err } mc.GlobalSettings = data - // nolint: staticcheck + //nolint: staticcheck,nolintlint secrets := mergeSecrets(e.Platform.Status.Build.Maven.CASecrets, e.Platform.Status.Build.Maven.CASecret) if secrets != nil { diff --git a/pkg/trait/util.go b/pkg/trait/util.go index 880098c719..ef9a5d3230 100644 --- a/pkg/trait/util.go +++ b/pkg/trait/util.go @@ -113,7 +113,7 @@ func collectConfigurations(configurationType string, configurable ...v1.Configur continue } - // nolint: staticcheck + //nolint: staticcheck,nolintlint for _, entry := range entries { if entry.Type == configurationType { item := make(map[string]string)