diff --git a/SCC-OUTPUT-REPORT.html b/SCC-OUTPUT-REPORT.html index 2dab8c0e..e50ae31e 100644 --- a/SCC-OUTPUT-REPORT.html +++ b/SCC-OUTPUT-REPORT.html @@ -13,13 +13,13 @@ Go 27 - 9584 + 9585 1464 447 - 7673 + 7674 1413 - 255541 - 4129 + 255540 + 4127 processor/workers_test.go @@ -28,7 +28,7 @@ 33 1257 287 - 32293 + 32293 525 processor/formatters.go @@ -38,17 +38,17 @@ 39 1272 163 - 44361 - 785 + 44359 + 783 processor/formatters_test.go - 1463 + 1464 156 3 - 1304 + 1305 120 - 34174 + 34175 385 processor/workers.go @@ -58,7 +58,7 @@ 91 651 225 - 25570 + 25570 494 processor/processor.go @@ -68,7 +68,7 @@ 104 430 94 - 19510 + 19510 440 main.go @@ -78,7 +78,7 @@ 6 416 8 - 9726 + 9726 271 processor/detector_test.go @@ -88,7 +88,7 @@ 2 304 101 - 7258 + 7258 149 cmd/badges/main.go @@ -98,7 +98,7 @@ 17 298 59 - 9660 + 9660 240 processor/workers_tokei_test.go @@ -108,7 +108,7 @@ 2 210 40 - 4027 + 4027 125 processor/detector.go @@ -118,7 +118,7 @@ 33 160 57 - 6243 + 6243 152 processor/file_test.go @@ -128,7 +128,7 @@ 1 162 37 - 4585 + 4585 97 processor/structs.go @@ -138,7 +138,7 @@ 18 160 17 - 5883 + 5883 139 cmd/badges/main_test.go @@ -148,7 +148,7 @@ 0 193 10 - 4088 + 4088 106 processor/workers_regression_test.go @@ -158,7 +158,7 @@ 5 146 40 - 3402 + 3402 93 processor/file.go @@ -168,7 +168,7 @@ 16 127 50 - 3766 + 3766 99 cmd/badges/simplecache.go @@ -178,7 +178,7 @@ 13 120 20 - 3070 + 3070 94 processor/processor_test.go @@ -188,7 +188,7 @@ 1 114 21 - 2573 + 2573 66 cmd/badges/simplecache_test.go @@ -198,7 +198,7 @@ 3 78 17 - 2030 + 2030 53 processor/structs_test.go @@ -208,7 +208,7 @@ 1 84 10 - 1982 + 1982 57 scripts/include.go @@ -218,7 +218,7 @@ 9 60 19 - 2288 + 2288 63 processor/filereader.go @@ -228,7 +228,7 @@ 10 32 6 - 1316 + 1316 37 processor/cocomo.go @@ -238,18 +238,8 @@ 18 19 0 - 2209 + 2209 35 - - processor/bloom.go - - 37 - 7 - 12 - 18 - 2 - 1062 - 29 processor/cocomo_test.go @@ -258,8 +248,18 @@ 4 25 6 - 686 + 686 23 + + processor/bloom.go + + 37 + 7 + 12 + 18 + 2 + 1062 + 29 processor/helpers_test.go @@ -268,7 +268,7 @@ 1 19 4 - 434 + 434 18 processor/helpers.go @@ -278,7 +278,7 @@ 4 10 0 - 378 + 378 14 processor/constants.go @@ -288,21 +288,21 @@ 1 4 0 - 22967 + 22967 6 Total 27 - 9584 + 9585 1464 447 - 7673 + 7674 1413 - 255541 - 4129 + 255540 + 4127 - Estimated Cost to Develop (organic) $229,513
Estimated Schedule Effort (organic) 7.86 months
Estimated People Required (organic) 2.59
+ Estimated Cost to Develop (organic) $229,545
Estimated Schedule Effort (organic) 7.86 months
Estimated People Required (organic) 2.59
- \ No newline at end of file + diff --git a/processor/formatters.go b/processor/formatters.go index bcde7563..3800a339 100644 --- a/processor/formatters.go +++ b/processor/formatters.go @@ -476,7 +476,7 @@ func toOpenMetricsFiles(input chan *FileJob) string { fmt.Fprintf(sb, openMetricsFileRecordFormat, "complexity", file.Language, filename, file.Complexity) fmt.Fprintf(sb, openMetricsFileRecordFormat, "bytes", file.Language, filename, file.Bytes) } - sb.WriteString("# EOF") + sb.WriteString("# EOF\n") return sb.String() } @@ -513,7 +513,7 @@ func toCSVStream(input chan *FileJob) string { func toHtml(input chan *FileJob) string { return `scc html output` + toHtmlTable(input) + - `` + "\n" } func toHtmlTable(input chan *FileJob) string { @@ -612,7 +612,7 @@ func toHtmlTable(input chan *FileJob) string { %d %d %d - %d + %d %d `, res.Location, res.Lines, res.Blank, res.Comment, res.Code, res.Complexity, res.Bytes, res.Uloc) } @@ -629,7 +629,7 @@ func toHtmlTable(input chan *FileJob) string { %d %d %d - %d + %d %d `, sumFiles, sumLines, sumBlank, sumComment, sumCode, sumComplexity, sumBytes, len(ulocGlobalCount)) diff --git a/processor/formatters_test.go b/processor/formatters_test.go index acbe8dd6..0ed8f189 100644 --- a/processor/formatters_test.go +++ b/processor/formatters_test.go @@ -1044,7 +1044,8 @@ scc_comments{language="Go",file="C:\\bbbb.go"} 1000 scc_blanks{language="Go",file="C:\\bbbb.go"} 1000 scc_complexity{language="Go",file="C:\\bbbb.go"} 1000 scc_bytes{language="Go",file="C:\\bbbb.go"} 1000 -# EOF` +# EOF +` if res != expectedResult { t.Error("Expected OpenMetrics return", res)