diff --git a/processor/formatters.go b/processor/formatters.go index e87ad0d9e..3d74532a6 100644 --- a/processor/formatters.go +++ b/processor/formatters.go @@ -477,7 +477,7 @@ func toOpenMetricsFiles(input chan *FileJob) string { // with the express idea of lowering memory usage, see https://github.com/boyter/scc/issues/210 for // the background on why this might be needed func toCSVStream(input chan *FileJob) string { - fmt.Println("Language,Provider,Filename,Lines,Code,Comments,Blanks,Complexity,Bytes") + fmt.Println("Language,Provider,Filename,Lines,Code,Comments,Blanks,Complexity,Bytes,Uloc") var quoteRegex = regexp.MustCompile("\"") @@ -486,7 +486,7 @@ func toCSVStream(input chan *FileJob) string { var location = "\"" + quoteRegex.ReplaceAllString(result.Location, "\"\"") + "\"" var filename = "\"" + quoteRegex.ReplaceAllString(result.Filename, "\"\"") + "\"" - fmt.Println(fmt.Sprintf("%s,%s,%s,%s,%s,%s,%s,%s,%s", + fmt.Println(fmt.Sprintf("%s,%s,%s,%s,%s,%s,%s,%s,%s,%s", result.Language, location, filename, @@ -496,6 +496,7 @@ func toCSVStream(input chan *FileJob) string { fmt.Sprint(result.Blank), fmt.Sprint(result.Complexity), fmt.Sprint(result.Bytes), + fmt.Sprint(result.Uloc), )) } @@ -575,6 +576,7 @@ func toHtmlTable(input chan *FileJob) string {