Make sure -fmt json produces valid output

This commit is contained in:
Cedric Staub 2016-07-25 16:07:20 -07:00
parent 9ce14dc683
commit c6e25a9b64
No known key found for this signature in database
GPG key ID: E0F193D384208FD0

View file

@ -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 }}",