Skip to content

Commit e8fe449

Browse files
committed
expose language information for 3rd parties
1 parent 2687ad5 commit e8fe449

File tree

3 files changed

+37
-33
lines changed

3 files changed

+37
-33
lines changed

SCC-OUTPUT-REPORT.html

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<tbody><tr>
1414
<th>Go</th>
1515
<th>27</th>
16-
<th>9585</th>
16+
<th>9589</th>
1717
<th>1464</th>
1818
<th>447</th>
19-
<th>7674</th>
19+
<th>7678</th>
2020
<th>1413</th>
21-
<th>255732</th>
22-
<th>4127</th>
21+
<th>255968</th>
22+
<th>4131</th>
2323
</tr><tr>
2424
<td>processor/workers_test.go</td>
2525
<td></td>
@@ -63,13 +63,13 @@
6363
</tr><tr>
6464
<td>processor/processor.go</td>
6565
<td></td>
66-
<td>676</td>
66+
<td>678</td>
6767
<td>142</td>
6868
<td>104</td>
69-
<td>430</td>
69+
<td>432</td>
7070
<td>94</td>
71-
<td>19510</td>
72-
<td>440</td>
71+
<td>19596</td>
72+
<td>442</td>
7373
</tr><tr>
7474
<td>main.go</td>
7575
<td></td>
@@ -130,6 +130,16 @@
130130
<td>37</td>
131131
<td>4585</td>
132132
<td>97</td>
133+
</tr><tr>
134+
<td>processor/structs.go</td>
135+
<td></td>
136+
<td>201</td>
137+
<td>21</td>
138+
<td>18</td>
139+
<td>162</td>
140+
<td>17</td>
141+
<td>6033</td>
142+
<td>141</td>
133143
</tr><tr>
134144
<td>cmd/badges/main_test.go</td>
135145
<td></td>
@@ -140,16 +150,6 @@
140150
<td>10</td>
141151
<td>4088</td>
142152
<td>106</td>
143-
</tr><tr>
144-
<td>processor/structs.go</td>
145-
<td></td>
146-
<td>199</td>
147-
<td>21</td>
148-
<td>18</td>
149-
<td>160</td>
150-
<td>17</td>
151-
<td>5883</td>
152-
<td>139</td>
153153
</tr><tr>
154154
<td>processor/workers_regression_test.go</td>
155155
<td></td>
@@ -240,16 +240,6 @@
240240
<td>0</td>
241241
<td>2209</td>
242242
<td>35</td>
243-
</tr><tr>
244-
<td>processor/cocomo_test.go</td>
245-
<td></td>
246-
<td>37</td>
247-
<td>8</td>
248-
<td>4</td>
249-
<td>25</td>
250-
<td>6</td>
251-
<td>686</td>
252-
<td>23</td>
253243
</tr><tr>
254244
<td>processor/bloom.go</td>
255245
<td></td>
@@ -260,6 +250,16 @@
260250
<td>2</td>
261251
<td>1062</td>
262252
<td>29</td>
253+
</tr><tr>
254+
<td>processor/cocomo_test.go</td>
255+
<td></td>
256+
<td>37</td>
257+
<td>8</td>
258+
<td>4</td>
259+
<td>25</td>
260+
<td>6</td>
261+
<td>686</td>
262+
<td>23</td>
263263
</tr><tr>
264264
<td>processor/helpers_test.go</td>
265265
<td></td>
@@ -294,15 +294,15 @@
294294
<tfoot><tr>
295295
<th>Total</th>
296296
<th>27</th>
297-
<th>9585</th>
297+
<th>9589</th>
298298
<th>1464</th>
299299
<th>447</th>
300-
<th>7674</th>
300+
<th>7678</th>
301301
<th>1413</th>
302-
<th>255732</th>
303-
<th>4127</th>
302+
<th>255968</th>
303+
<th>4131</th>
304304
</tr>
305305
<tr>
306-
<th colspan="9">Estimated Cost to Develop (organic) $229,545<br>Estimated Schedule Effort (organic) 7.86 months<br>Estimated People Required (organic) 2.59<br></th>
306+
<th colspan="9">Estimated Cost to Develop (organic) $229,670<br>Estimated Schedule Effort (organic) 7.86 months<br>Estimated People Required (organic) 2.59<br></th>
307307
</tr></tfoot>
308308
</table></body></html>

processor/processor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,9 @@ func processLanguageFeature(name string, value Language) {
443443
LanguageFeatures[name] = LanguageFeature{
444444
Complexity: complexityTrie,
445445
MultiLineComments: mlCommentTrie,
446+
MultiLine: value.MultiLine,
446447
SingleLineComments: slCommentTrie,
448+
LineComment: value.LineComment,
447449
Strings: stringTrie,
448450
Tokens: tokenTrie,
449451
Nested: value.NestedMultiLine,

processor/structs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ type Language struct {
4343
type LanguageFeature struct {
4444
Complexity *Trie
4545
MultiLineComments *Trie
46+
MultiLine [][]string // in case someone needs the actual value
4647
SingleLineComments *Trie
48+
LineComment []string // in case someone needs the actual value
4749
Strings *Trie
4850
Tokens *Trie
4951
Nested bool

0 commit comments

Comments
 (0)