mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Make sure -fmt json produces valid output
This commit is contained in:
parent
9ce14dc683
commit
c6e25a9b64
1 changed files with 6 additions and 6 deletions
|
@ -45,12 +45,12 @@ Summary:
|
||||||
`
|
`
|
||||||
|
|
||||||
var json = `{
|
var json = `{
|
||||||
"metrics": [
|
"metrics": {
|
||||||
Files: {{.Stats.NumFiles}},
|
"files": {{.Stats.NumFiles}},
|
||||||
Lines: {{.Stats.NumLines}},
|
"lines": {{.Stats.NumLines}},
|
||||||
Nosec: {{.Stats.NumNosec}},
|
"nosec": {{.Stats.NumNosec}},
|
||||||
Issues: {{.Stats.NumFound}}],
|
"issues": {{.Stats.NumFound}}
|
||||||
|
},
|
||||||
"issues": [
|
"issues": [
|
||||||
{{ range $index, $issue := .Issues }}{{ if $index }}, {{ end }}{
|
{{ range $index, $issue := .Issues }}{{ if $index }}, {{ end }}{
|
||||||
"file": "{{ $issue.File }}",
|
"file": "{{ $issue.File }}",
|
||||||
|
|
Loading…
Reference in a new issue