Skip to content

Commit

Permalink
🌱 Format the JSON output
Browse files Browse the repository at this point in the history
- This helps with this issue https://github.com/ossf/scorecard/issues/2243

Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Sep 9, 2022
1 parent d76ff0d commit b938178
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (r *ScorecardResult) AsJSON2(showDetails bool,
}

encoder := json.NewEncoder(writer)
encoder.SetIndent("", " ")
out := JSONScorecardResultV2{
Repo: jsonRepoV2{
Name: r.Repo.Name,
Expand Down

0 comments on commit b938178

Please sign in to comment.