Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 19f2bb6

Browse files
pratap0007tekton-robot
authored andcommitted
Fix lint errors
Signed-off-by: Shiv Verma <shverma@redhat.com>
1 parent e741ad8 commit 19f2bb6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/pkg/cli/formatter/field.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ func DecorateAttr(attrString, message string) string {
210210
attr := color.Reset
211211
switch attrString {
212212
case "underline bold":
213-
return color.New(color.Underline).Add(color.Bold).Sprintf(message)
213+
return color.New(color.Underline).Add(color.Bold).Sprintf("%s", message)
214214
case "bold":
215215
attr = color.Bold
216216
}
217217

218-
return color.New(attr).Sprintf(message)
218+
return color.New(attr).Sprintf("%s", message)
219219
}

api/pkg/parser/catalog.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (c CatalogParser) appendVersion(res *Resource, filePath string) Result {
253253
version, ok := labels[VersionLabel]
254254
if !ok {
255255
issue := fmt.Sprintf("Resource %s - %s is missing mandatory version label", tkn.GVK, tkn.Name)
256-
result.Critical(issue)
256+
result.Critical("%s", issue)
257257
log.With("action", "error").Warn(issue)
258258
return result
259259
}
@@ -263,7 +263,7 @@ func (c CatalogParser) appendVersion(res *Resource, filePath string) Result {
263263
if !ok {
264264
issue := fmt.Sprintf("Resource %s - %s is missing mandatory minimum pipeline version annotation", tkn.GVK, tkn.Name)
265265
log.With("action", "error").Warn(issue)
266-
result.Critical(issue)
266+
result.Critical("%s", issue)
267267
return result
268268
}
269269

@@ -272,7 +272,7 @@ func (c CatalogParser) appendVersion(res *Resource, filePath string) Result {
272272
if !ok {
273273
issue := fmt.Sprintf("Resource %s - %s has no display name", tkn.GVK, tkn.Name)
274274
log.With("action", "ignore").Info(issue)
275-
result.Info(issue)
275+
result.Info("%s", issue)
276276
}
277277

278278
// optional check

0 commit comments

Comments
 (0)