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