Skip to content

Commit

Permalink
fix(lint): suppress nolintlint - unused staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi committed Aug 31, 2022
1 parent 26af6bb commit 7701380
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/trait/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/trait/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/trait/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7701380

Please sign in to comment.