Skip to content

Commit

Permalink
feat: Improve html output
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg committed Jun 15, 2022
1 parent db7ddac commit 9108d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/formatter/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func printResultsTableHTML(b formatters.ConfigurableFormatter, title string, res
return scoreI > scoreJ
})

_, _ = fmt.Fprintf(b.Writer(), " <h2>%d %s</h2>\n", len(results), title)
_, _ = fmt.Fprintf(b.Writer(), " <h2>%s: %d issue(s)</h2>\n", title, len(results))
_, _ = fmt.Fprintf(b.Writer(), ` <table class="pure-table">
<thead>
<tr><th> # </th><th> ID </th><th> Severity </th><th> Title </th><th> Location </th><th> Description </th></tr>
Expand Down Expand Up @@ -112,7 +112,7 @@ func printResultsTableHTML(b formatters.ConfigurableFormatter, title string, res
<td>%s</td>
</tr>
`,
i,
i+1,
href,
result.Rule().LongID(),
result.Severity(),
Expand Down

0 comments on commit 9108d8c

Please sign in to comment.