Skip to content

Commit

Permalink
feat: make output change to indent json
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Sep 17, 2020
1 parent 4b63a21 commit 9464b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func processTopFile(dir string) {
langSummary.Files = files
}

sortContent, _ := json.Marshal(languageSummaries)
sortContent, _ := json.MarshalIndent(languageSummaries, "", "\t")
cmd_util.WriteToCocaFile("sort_cloc.json", string(sortContent))
}

Expand Down

0 comments on commit 9464b95

Please sign in to comment.