Skip to content

Commit

Permalink
expose language information for 3rd parties
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Jan 3, 2025
1 parent 2687ad5 commit e8fe449
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 33 deletions.
66 changes: 33 additions & 33 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<tbody><tr>
<th>Go</th>
<th>27</th>
<th>9585</th>
<th>9589</th>
<th>1464</th>
<th>447</th>
<th>7674</th>
<th>7678</th>
<th>1413</th>
<th>255732</th>
<th>4127</th>
<th>255968</th>
<th>4131</th>
</tr><tr>
<td>processor/workers_test.go</td>
<td></td>
Expand Down Expand Up @@ -63,13 +63,13 @@
</tr><tr>
<td>processor/processor.go</td>
<td></td>
<td>676</td>
<td>678</td>
<td>142</td>
<td>104</td>
<td>430</td>
<td>432</td>
<td>94</td>
<td>19510</td>
<td>440</td>
<td>19596</td>
<td>442</td>
</tr><tr>
<td>main.go</td>
<td></td>
Expand Down Expand Up @@ -130,6 +130,16 @@
<td>37</td>
<td>4585</td>
<td>97</td>
</tr><tr>
<td>processor/structs.go</td>
<td></td>
<td>201</td>
<td>21</td>
<td>18</td>
<td>162</td>
<td>17</td>
<td>6033</td>
<td>141</td>
</tr><tr>
<td>cmd/badges/main_test.go</td>
<td></td>
Expand All @@ -140,16 +150,6 @@
<td>10</td>
<td>4088</td>
<td>106</td>
</tr><tr>
<td>processor/structs.go</td>
<td></td>
<td>199</td>
<td>21</td>
<td>18</td>
<td>160</td>
<td>17</td>
<td>5883</td>
<td>139</td>
</tr><tr>
<td>processor/workers_regression_test.go</td>
<td></td>
Expand Down Expand Up @@ -240,16 +240,6 @@
<td>0</td>
<td>2209</td>
<td>35</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td></td>
<td>37</td>
<td>8</td>
<td>4</td>
<td>25</td>
<td>6</td>
<td>686</td>
<td>23</td>
</tr><tr>
<td>processor/bloom.go</td>
<td></td>
Expand All @@ -260,6 +250,16 @@
<td>2</td>
<td>1062</td>
<td>29</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td></td>
<td>37</td>
<td>8</td>
<td>4</td>
<td>25</td>
<td>6</td>
<td>686</td>
<td>23</td>
</tr><tr>
<td>processor/helpers_test.go</td>
<td></td>
Expand Down Expand Up @@ -294,15 +294,15 @@
<tfoot><tr>
<th>Total</th>
<th>27</th>
<th>9585</th>
<th>9589</th>
<th>1464</th>
<th>447</th>
<th>7674</th>
<th>7678</th>
<th>1413</th>
<th>255732</th>
<th>4127</th>
<th>255968</th>
<th>4131</th>
</tr>
<tr>
<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>
<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>
</tr></tfoot>
</table></body></html>
2 changes: 2 additions & 0 deletions processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ func processLanguageFeature(name string, value Language) {
LanguageFeatures[name] = LanguageFeature{
Complexity: complexityTrie,
MultiLineComments: mlCommentTrie,
MultiLine: value.MultiLine,
SingleLineComments: slCommentTrie,
LineComment: value.LineComment,
Strings: stringTrie,
Tokens: tokenTrie,
Nested: value.NestedMultiLine,
Expand Down
2 changes: 2 additions & 0 deletions processor/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ type Language struct {
type LanguageFeature struct {
Complexity *Trie
MultiLineComments *Trie
MultiLine [][]string // in case someone needs the actual value
SingleLineComments *Trie
LineComment []string // in case someone needs the actual value
Strings *Trie
Tokens *Trie
Nested bool
Expand Down

0 comments on commit e8fe449

Please sign in to comment.