mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +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:
|
var text = `Results:
|
||||||
{{ range $index, $issue := .Issues }}
|
{{ 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 }}
|
> {{ $issue.Code }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue