瀏覽代碼

print tags if they exist

Zach 1 年之前
父節點
當前提交
9c354f51c3
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 == "" {