From 9c354f51c3606e73e23c8512b7b78e6dd59db8f2 Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 2 Oct 2024 20:06:31 -0500 Subject: [PATCH] print tags if they exist --- detect/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/detect/utils.go b/detect/utils.go index 16ca6f41..c427ce65 100644 --- a/detect/utils.go +++ b/detect/utils.go @@ -162,6 +162,9 @@ func printFinding(f report.Finding, noColor bool) { fmt.Println("") return } + if len(f.Tags) > 0 { + fmt.Printf("%-12s %s\n", "Tags:", f.Tags) + } fmt.Printf("%-12s %s\n", "File:", f.File) fmt.Printf("%-12s %d\n", "Line:", f.StartLine) if f.Commit == "" {