Skip to content

Commit

Permalink
add uloc into csv
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed May 1, 2024
1 parent 748355e commit 111d277
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
28 changes: 14 additions & 14 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<tbody><tr>
<th>Go</th>
<th>30</th>
<th>9219</th>
<th>1449</th>
<th>9222</th>
<th>1446</th>
<th>448</th>
<th>7322</th>
<th>1503</th>
<th>392214</th>
<th>7328</th>
<th>1506</th>
<th>392596</th>
</tr><tr>
<th>Java</th>
<th>24</th>
Expand Down Expand Up @@ -48,12 +48,12 @@
</tr><tr>
<th>Markdown</th>
<th>10</th>
<th>1398</th>
<th>332</th>
<th>1442</th>
<th>342</th>
<th>0</th>
<th>1066</th>
<th>1100</th>
<th>0</th>
<th>58030</th>
<th>62112</th>
</tr><tr>
<th>YAML</th>
<th>8</th>
Expand Down Expand Up @@ -787,11 +787,11 @@
<tfoot><tr>
<th>Total</th>
<th>191</th>
<th>93896</th>
<th>4531</th>
<th>93943</th>
<th>4538</th>
<th>5940</th>
<th>83425</th>
<th>2889</th>
<th>3134394</th>
<th>83465</th>
<th>2892</th>
<th>3138858</th>
</tr></tfoot>
</table></body></html>
18 changes: 12 additions & 6 deletions processor/formatters.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ func toCSVSummary(input chan *FileJob) string {
fmt.Sprint(result.Comment),
fmt.Sprint(result.Blank),
fmt.Sprint(result.Complexity),
fmt.Sprint(result.Bytes)})
fmt.Sprint(result.Bytes),
fmt.Sprint(len(ulocLanguageCount[result.Name])),
})
}

// Cater for the common case of adding plural even for those options that don't make sense
Expand Down Expand Up @@ -321,8 +323,9 @@ func toCSVSummary(input chan *FileJob) string {
"Comments",
"Blanks",
"Complexity",
"Bytes"},
}
"Bytes",
"ULOC",
}}

recordsEnd = append(recordsEnd, records...)

Expand All @@ -347,7 +350,9 @@ func toCSVFiles(input chan *FileJob) string {
fmt.Sprint(result.Comment),
fmt.Sprint(result.Blank),
fmt.Sprint(result.Complexity),
fmt.Sprint(result.Bytes)})
fmt.Sprint(result.Bytes),
fmt.Sprint(result.Uloc),
})
}

// Cater for the common case of adding plural even for those options that don't make sense
Expand Down Expand Up @@ -412,8 +417,9 @@ func toCSVFiles(input chan *FileJob) string {
"Comments",
"Blanks",
"Complexity",
"Bytes"},
}
"Bytes",
"ULOC",
}}

recordsEnd = append(recordsEnd, records...)

Expand Down

0 comments on commit 111d277

Please sign in to comment.