Skip to content

Commit b643ac2

Browse files
glbgcmurphy
authored andcommitted
Add rule ID to text output (#198)
1 parent c25269e commit b643ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

output/formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const (
4545

4646
var text = `Results:
4747
{{ range $index, $issue := .Issues }}
48-
[{{ $issue.File }}:{{ $issue.Line }}] - {{ $issue.What }} (Confidence: {{ $issue.Confidence}}, Severity: {{ $issue.Severity }})
48+
[{{ $issue.File }}:{{ $issue.Line }}] - {{ $issue.RuleID }}: {{ $issue.What }} (Confidence: {{ $issue.Confidence}}, Severity: {{ $issue.Severity }})
4949
> {{ $issue.Code }}
5050
5151
{{ end }}

0 commit comments

Comments
 (0)