mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Add rule ID to text output (#198)
This commit is contained in:
parent
c25269ef39
commit
b643ac26a4
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ const (
|
|||
|
||||
var text = `Results:
|
||||
{{ range $index, $issue := .Issues }}
|
||||
[{{ $issue.File }}:{{ $issue.Line }}] - {{ $issue.What }} (Confidence: {{ $issue.Confidence}}, Severity: {{ $issue.Severity }})
|
||||
[{{ $issue.File }}:{{ $issue.Line }}] - {{ $issue.RuleID }}: {{ $issue.What }} (Confidence: {{ $issue.Confidence}}, Severity: {{ $issue.Severity }})
|
||||
> {{ $issue.Code }}
|
||||
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue