Explorar el Código

print tags if they exist

Zach hace 1 año
padre
commit
9c354f51c3
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      detect/utils.go

+ 3 - 0
detect/utils.go

@@ -162,6 +162,9 @@ func printFinding(f report.Finding, noColor bool) {
 		fmt.Println("")
 		fmt.Println("")
 		return
 		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 %s\n", "File:", f.File)
 	fmt.Printf("%-12s %d\n", "Line:", f.StartLine)
 	fmt.Printf("%-12s %d\n", "Line:", f.StartLine)
 	if f.Commit == "" {
 	if f.Commit == "" {