Skip to content

Commit

Permalink
Update Vala's language information
Browse files Browse the repository at this point in the history
  • Loading branch information
apocelipes committed Dec 19, 2024
1 parent d50c980 commit ce384e1
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 14 deletions.
26 changes: 13 additions & 13 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<th>447</th>
<th>7674</th>
<th>1413</th>
<th>255608</th>
<th>255732</th>
<th>4127</th>
</tr><tr>
<td>processor/workers_test.go</td>
Expand Down Expand Up @@ -240,16 +240,6 @@
<td>0</td>
<td>2209</td>
<td>35</td>
</tr><tr>
<td>processor/bloom.go</td>
<td></td>
<td>37</td>
<td>7</td>
<td>12</td>
<td>18</td>
<td>2</td>
<td>1062</td>
<td>29</td>
</tr><tr>
<td>processor/cocomo_test.go</td>
<td></td>
Expand All @@ -260,6 +250,16 @@
<td>6</td>
<td>686</td>
<td>23</td>
</tr><tr>
<td>processor/bloom.go</td>
<td></td>
<td>37</td>
<td>7</td>
<td>12</td>
<td>18</td>
<td>2</td>
<td>1062</td>
<td>29</td>
</tr><tr>
<td>processor/helpers_test.go</td>
<td></td>
Expand Down Expand Up @@ -288,7 +288,7 @@
<td>1</td>
<td>4</td>
<td>0</td>
<td>23035</td>
<td>23159</td>
<td>6</td>
</tr></tbody>
<tfoot><tr>
Expand All @@ -299,7 +299,7 @@
<th>447</th>
<th>7674</th>
<th>1413</th>
<th>255608</th>
<th>255732</th>
<th>4127</th>
</tr>
<tr>
Expand Down
20 changes: 20 additions & 0 deletions examples/language/vala.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// test for vala

class Demo.Demo : GLib.Object {
public static int main(string[] args) {
int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};
foreach (var i in arr) {
foreach (var j in arr[0:i]) {
var n = i * j;
stdout.printf(@"$j * $i = $n ");
}
stdout.printf("\n");
}
stdout.printf("""
Test for "verbatim strings".
\r \n \a \b
""");
stdout.printf("\n");
return 0;
}
}
13 changes: 13 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6903,10 +6903,14 @@
"complexitychecks": [
"for ",
"for(",
"foreach ",
"foreach(",
"if ",
"if(",
"switch ",
"switch(",
"while ",
"while(",
"else ",
"|| ",
"&& ",
Expand All @@ -6920,6 +6924,15 @@
{
"end": "\"",
"start": "\""
},
{
"end": "\"",
"start": "@\""
},
{
"ignoreEscape": true,
"end": "\"\"\"",
"start": "\"\"\""
}
]
},
Expand Down
Loading

0 comments on commit ce384e1

Please sign in to comment.