mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Update output after line number change
Some OK-style comments had to be moved to the following line, shifting line numbers. In selected range also included the comments themselves. Lastly, the result sets were reordered by the CLI in some cases.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
| tst.js:2:1:2:9 | while(c ... reak;\\n} | This loop executes at most once. |
|
||||
| tst.js:13:3:13:29 | for (; ... et;\\n } | This loop executes at most once. |
|
||||
| tst.js:1:1:1:20 | while(c ... reak;\\n} | This loop executes at most once. |
|
||||
| tst.js:11:3:11:29 | for (; ... et;\\n } | This loop executes at most once. |
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
| tst.js:3:2:3:11 | if (foo ... n true; | $@ may implicitly return 'undefined' here, while $@ an explicit value is returned. | tst.js:2:1:5:1 | functio ... true;\\n} | Function f | tst.js:4:3:4:14 | return true; | elsewhere |
|
||||
| tst.js:101:2:101:11 | if (foo ... n true; | $@ may implicitly return 'undefined' here, while $@ an explicit value is returned. | tst.js:100:9:103:1 | functio ... true;\\n} | Function u | tst.js:102:3:102:14 | return true; | elsewhere |
|
||||
| tst.js:107:2:107:7 | if (b)\\n\\t\\treturn 1; | $@ may implicitly return 'undefined' here, while $@ an explicit value is returned. | tst.js:106:1:109:1 | functio ... rn 1;\\n} | Function v | tst.js:108:3:108:11 | return 1; | elsewhere |
|
||||
| tst.js:2:2:2:11 | if (foo ... n true; | $@ may implicitly return 'undefined' here, while $@ an explicit value is returned. | tst.js:1:1:4:1 | functio ... true;\\n} | Function f | tst.js:3:3:3:14 | return true; | elsewhere |
|
||||
| tst.js:99:2:99:11 | if (foo ... n true; | $@ may implicitly return 'undefined' here, while $@ an explicit value is returned. | tst.js:98:9:101:1 | functio ... true;\\n} | Function u | tst.js:100:3:100:14 | return true; | elsewhere |
|
||||
| tst.js:104:2:104:7 | if (b)\\n\\t\\treturn 1; | $@ may implicitly return 'undefined' here, while $@ an explicit value is returned. | tst.js:103:1:106:1 | functio ... rn 1;\\n} | Function v | tst.js:105:3:105:11 | return 1; | elsewhere |
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
| tst.js:6:1:7:1 | for (j ... -j) {\\n} | This loop counts downward, but its variable is bounded upward. |
|
||||
| tst.js:10:1:11:1 | for (va ... ++) {\\n} | This loop counts upward, but its variable is bounded downward. |
|
||||
| tst.js:18:1:19:13 | for (i= ... i] = 0; | This loop counts downward, but its variable is bounded upward. |
|
||||
| tst.js:5:1:6:1 | for (j ... Alert\\n} | This loop counts downward, but its variable is bounded upward. |
|
||||
| tst.js:8:1:9:1 | for (va ... Alert\\n} | This loop counts upward, but its variable is bounded downward. |
|
||||
| tst.js:15:1:16:13 | for (i= ... i] = 0; | This loop counts downward, but its variable is bounded upward. |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| tst.js:3:16:3:18 | i>5 | Nested for statement uses loop variable $@ of enclosing $@. | tst.js:3:23:3:23 | i | i | tst.js:1:1:9:1 | for (va ... , k);\\n} | for statement |
|
||||
| tst.js:2:16:2:18 | i>5 | Nested for statement uses loop variable $@ of enclosing $@. | tst.js:2:23:2:23 | i | i | tst.js:1:1:8:1 | for (va ... , k);\\n} | for statement |
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
| tst.js:3:2:3:15 | return x = 23; | The assignment to x is useless, since it is a local variable and will go out of scope. |
|
||||
| tst.js:9:2:9:15 | return x = 23; | The assignment to x is useless, since it is a local variable and will go out of scope. |
|
||||
| tst.js:2:2:2:15 | return x = 23; | The assignment to x is useless, since it is a local variable and will go out of scope. |
|
||||
| tst.js:7:2:7:15 | return x = 23; | The assignment to x is useless, since it is a local variable and will go out of scope. |
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
| tst.html:9:66:9:78 | return false; | Return statement outside function. |
|
||||
| tst.js:2:1:2:10 | return 42; | Return statement outside function. |
|
||||
| tst.js:1:1:1:10 | return 42; | Return statement outside function. |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
| tst.js:4:7:4:11 | let x | For loop variable x is not used in the loop body. |
|
||||
| tst.js:138:6:138:23 | const [key, value] | For loop variable value is not used in the loop body. |
|
||||
| tst.js:151:6:151:35 | const [ ... value] | For loop variable value is not used in the loop body. |
|
||||
| tst.js:152:6:152:10 | let i | For loop variable i is not used in the loop body. |
|
||||
| tst.js:3:7:3:11 | let x | For loop variable x is not used in the loop body. |
|
||||
| tst.js:136:6:136:23 | const [key, value] | For loop variable value is not used in the loop body. |
|
||||
| tst.js:148:6:148:35 | const [ ... value] | For loop variable value is not used in the loop body. |
|
||||
| tst.js:149:6:149:10 | let i | For loop variable i is not used in the loop body. |
|
||||
|
||||
Reference in New Issue
Block a user