mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 13:34:23 +01:00
print tags if they exist
This commit is contained in:
1 parent
2278a2a97e
commit
9c354f51c3
1 file changed
+3
@@ -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 == "" {
|
||||||
|
|||||||
Reference in new issue
Block a user