Sfoglia il codice sorgente

print tags if they exist

Zach 1 anno fa
parent
commit
9c354f51c3
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      detect/utils.go

+ 3 - 0
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 == "" {