Skip to content

Commit 7c61bb6

Browse files
🌱 Format the JSON output
- This helps with this issue https://github.com/ossf/scorecard/issues/2243 Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
1 parent 36d6a34 commit 7c61bb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/json.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func (r *ScorecardResult) AsJSON2(showDetails bool,
125125
}
126126

127127
encoder := json.NewEncoder(writer)
128+
encoder.SetIndent("", " ")
128129
out := JSONScorecardResultV2{
129130
Repo: jsonRepoV2{
130131
Name: r.Repo.Name,

0 commit comments

Comments
 (0)