mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +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,7 +1,7 @@
|
||||
| classes.js:4:1:4:10 | class C {} | Assignment to variable C, which is $@ constant. | classes.js:1:1:1:13 | const C = 45; | declared |
|
||||
| functions.js:4:10:4:10 | C | Assignment to variable C, which is $@ constant. | functions.js:1:1:1:13 | const C = 45; | declared |
|
||||
| tst.js:4:1:4:6 | x = 42 | Assignment to variable x, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:7:1:7:6 | y = 23 | Assignment to variable y, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:10:5:10:10 | y = -1 | Assignment to variable y, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:13:1:13:3 | ++x | Assignment to variable x, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:25:10:25:14 | [ c ] | Assignment to variable c, which is $@ constant. | tst.js:24:5:24:19 | const c = null; | declared |
|
||||
| classes.js:3:1:3:10 | class C {} | Assignment to variable C, which is $@ constant. | classes.js:1:1:1:13 | const C = 45; | declared |
|
||||
| functions.js:3:10:3:10 | C | Assignment to variable C, which is $@ constant. | functions.js:1:1:1:13 | const C = 45; | declared |
|
||||
| tst.js:3:1:3:6 | x = 42 | Assignment to variable x, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:5:1:5:6 | y = 23 | Assignment to variable y, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:7:5:7:10 | y = -1 | Assignment to variable y, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:9:1:9:3 | ++x | Assignment to variable x, which is $@ constant. | tst.js:1:1:1:21 | const x ... y = 42; | declared |
|
||||
| tst.js:21:10:21:14 | [ c ] | Assignment to variable c, which is $@ constant. | tst.js:20:5:20:19 | const c = null; | declared |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| tst.js:3:24:3:36 | key = iter[1] | This initialization of key overwrites an $@. | tst.js:3:9:3:21 | key = iter[0] | earlier initialization |
|
||||
| tst.js:2:24:2:36 | key = iter[1] | This initialization of key overwrites an $@. | tst.js:2:9:2:21 | key = iter[0] | earlier initialization |
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
| tst.js:2:1:2:1 | g | This definition of g is useless, since its value is never read. |
|
||||
| tst.js:1:1:1:1 | g | This definition of g is useless, since its value is never read. |
|
||||
| worker.js:3:1:3:9 | onmissage | This definition of onmissage is useless, since its value is never read. |
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
| overload.ts:10:12:10:14 | baz | The value assigned to baz here is unused. |
|
||||
| tst2.js:26:9:26:14 | x = 23 | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst2.js:28:9:28:14 | x = 42 | The value assigned to x here is unused. |
|
||||
| tst3.js:2:1:2:36 | exports ... a: 23 } | The value assigned to exports here is unused. |
|
||||
| tst3b.js:2:18:2:36 | exports = { a: 23 } | The value assigned to exports here is unused. |
|
||||
| tst.js:6:2:6:7 | y = 23 | The value assigned to y here is unused. |
|
||||
| tst.js:13:6:13:11 | a = 23 | The initial value of a is unused, since it is always overwritten. |
|
||||
| tst.js:13:14:13:19 | a = 42 | The value assigned to a here is unused. |
|
||||
| tst.js:45:6:45:11 | x = 23 | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:51:6:51:11 | x = 23 | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:132:7:132:13 | {x} = o | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:162:6:162:14 | [x] = [0] | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:172:7:172:17 | nSign = foo | The value assigned to nSign here is unused. |
|
||||
| tst2.js:25:9:25:14 | x = 23 | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst2.js:27:9:27:14 | x = 42 | The value assigned to x here is unused. |
|
||||
| tst3.js:1:1:1:36 | exports ... a: 23 } | The value assigned to exports here is unused. |
|
||||
| tst3b.js:1:18:1:36 | exports = { a: 23 } | The value assigned to exports here is unused. |
|
||||
| tst.js:5:2:5:7 | y = 23 | The value assigned to y here is unused. |
|
||||
| tst.js:11:6:11:11 | a = 23 | The initial value of a is unused, since it is always overwritten. |
|
||||
| tst.js:11:14:11:19 | a = 42 | The value assigned to a here is unused. |
|
||||
| tst.js:43:6:43:11 | x = 23 | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:49:6:49:11 | x = 23 | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:130:7:130:13 | {x} = o | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:160:6:160:14 | [x] = [0] | The initial value of x is unused, since it is always overwritten. |
|
||||
| tst.js:170:7:170:17 | nSign = foo | The value assigned to nSign here is unused. |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| tst.js:2:11:2:16 | a = 42 | Variable a has already $@. | tst.js:2:5:2:5 | a | been previously declared |
|
||||
| tst.js:1:11:1:16 | a = 42 | Variable a has already $@. | tst.js:1:5:1:5 | a | been previously declared |
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
| abstract-missing.ts:3:5:3:24 | setAudioProperties() | This call refers to a global function, and not the local method $@. | abstract-missing.ts:6:3:6:32 | abstrac ... ties(); | setAudioProperties |
|
||||
| indirection.js:7:9:7:20 | m("default") | This call refers to a global function, and not the local method $@. | indirection.js:2:5:4:5 | m() {\\n ... K\\n } | m |
|
||||
| indirection.js:7:9:7:20 | m("default") | This call refers to a global function, and not the local method $@. | indirection.js:2:5:4:5 | m() {\\n ... ;\\n } | m |
|
||||
| missing1.js:3:5:3:24 | setAudioProperties() | This call refers to a global function, and not the local method $@. | missing1.js:6:3:7:3 | setAudi ... (){\\n } | setAudioProperties |
|
||||
| missing2.js:3:5:3:24 | setAudioProperties() | This call refers to a global function, and not the local method $@. | missing2.js:7:3:8:3 | static ... (){\\n } | setAudioProperties |
|
||||
| namespaces-uses.ts:3:5:3:20 | globalFunction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:2:3:4:3 | globalF ... OK\\n } | globalFunction |
|
||||
| namespaces-uses.ts:6:5:6:26 | topName ... ction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:5:3:7:3 | topName ... OK\\n } | topNamespaceFunction |
|
||||
| namespaces-uses.ts:9:5:9:28 | childNa ... ction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:8:3:10:3 | childNa ... OK\\n } | childNamespaceFunction |
|
||||
| namespaces-uses.ts:16:7:16:22 | globalFunction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:15:5:17:5 | globalF ... K\\n } | globalFunction |
|
||||
| namespaces-uses.ts:30:7:30:22 | globalFunction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:29:5:31:5 | globalF ... K\\n } | globalFunction |
|
||||
| namespaces-uses.ts:3:5:3:20 | globalFunction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:2:3:4:3 | globalF ... ert\\n } | globalFunction |
|
||||
| namespaces-uses.ts:6:5:6:26 | topName ... ction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:5:3:7:3 | topName ... ert\\n } | topNamespaceFunction |
|
||||
| namespaces-uses.ts:9:5:9:28 | childNa ... ction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:8:3:10:3 | childNa ... ert\\n } | childNamespaceFunction |
|
||||
| namespaces-uses.ts:16:7:16:22 | globalFunction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:15:5:17:5 | globalF ... t\\n } | globalFunction |
|
||||
| namespaces-uses.ts:30:7:30:22 | globalFunction() | This call refers to a global function, and not the local method $@. | namespaces-uses.ts:29:5:31:5 | globalF ... t\\n } | globalFunction |
|
||||
| not-ignored-by-jslint.js:4:5:4:24 | setAudioProperties() | This call refers to a global function, and not the local method $@. | not-ignored-by-jslint.js:7:3:8:3 | setAudi ... (){\\n } | setAudioProperties |
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
| test.js:6:7:6:7 | i | Variable i is used like a local variable, but is missing a declaration. |
|
||||
| test.js:14:7:14:7 | i | Variable i is used like a local variable, but is missing a declaration. |
|
||||
| test.js:23:2:23:2 | y | Variable y is used like a local variable, but is missing a declaration. |
|
||||
| test.js:54:10:54:10 | z | Variable z is used like a local variable, but is missing a declaration. |
|
||||
| test.js:60:6:60:6 | y | Variable y is used like a local variable, but is missing a declaration. |
|
||||
| test.js:66:2:66:2 | z | Variable z is used like a local variable, but is missing a declaration. |
|
||||
| test.js:72:9:72:20 | unresolvable | Variable unresolvable is used like a local variable, but is missing a declaration. |
|
||||
| test.js:5:7:5:7 | i | Variable i is used like a local variable, but is missing a declaration. |
|
||||
| test.js:12:7:12:7 | i | Variable i is used like a local variable, but is missing a declaration. |
|
||||
| test.js:20:2:20:2 | y | Variable y is used like a local variable, but is missing a declaration. |
|
||||
| test.js:50:10:50:10 | z | Variable z is used like a local variable, but is missing a declaration. |
|
||||
| test.js:55:6:55:6 | y | Variable y is used like a local variable, but is missing a declaration. |
|
||||
| test.js:60:2:60:2 | z | Variable z is used like a local variable, but is missing a declaration. |
|
||||
| test.js:66:9:66:20 | unresolvable | Variable unresolvable is used like a local variable, but is missing a declaration. |
|
||||
| tst3.js:7:10:7:10 | x | Variable x is used like a local variable, but is missing a declaration. |
|
||||
| tst3.js:7:16:7:19 | rest | Variable rest is used like a local variable, but is missing a declaration. |
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
| instanceStatic.js:3:9:3:16 | this.baz | Access to instance method $@ from static method $@ is not possible through `this`. | instanceStatic.js:5:5:7:5 | baz(){\\n\\n } | baz | instanceStatic.js:2:5:4:5 | static ... K\\n } | bar |
|
||||
| staticInstance.js:3:9:3:16 | this.baz | Access to static method $@ from instance method $@ is not possible through `this`. | staticInstance.js:5:5:6:5 | static baz(){\\n } | baz | staticInstance.js:2:5:4:5 | bar(){\\n ... K\\n } | bar |
|
||||
| tst.js:66:9:66:14 | this.f | Access to instance method $@ from static method $@ is not possible through `this`. | tst.js:60:5:62:5 | f() {\\n\\n } | f | tst.js:65:5:67:5 | static ... K\\n } | test |
|
||||
| instanceStatic.js:3:9:3:16 | this.baz | Access to instance method $@ from static method $@ is not possible through `this`. | instanceStatic.js:5:5:7:5 | baz(){\\n\\n } | baz | instanceStatic.js:2:5:4:5 | static ... t\\n } | bar |
|
||||
| staticInstance.js:3:9:3:16 | this.baz | Access to static method $@ from instance method $@ is not possible through `this`. | staticInstance.js:5:5:6:5 | static baz(){\\n } | baz | staticInstance.js:2:5:4:5 | bar(){\\n ... t\\n } | bar |
|
||||
| tst.js:66:9:66:14 | this.f | Access to instance method $@ from static method $@ is not possible through `this`. | tst.js:60:5:62:5 | f() {\\n\\n } | f | tst.js:65:5:67:5 | static ... t\\n } | test |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| tst.js:3:5:3:5 | s | This expression refers to $@ inside its temporal dead zone. | tst.js:4:5:4:17 | let s = "hi"; | s |
|
||||
| tst.js:2:5:2:5 | s | This expression refers to $@ inside its temporal dead zone. | tst.js:3:5:3:17 | let s = "hi"; | s |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
| istype.ts:18:15:18:18 | node | The parameter 'node' is never used. |
|
||||
| parameter_field.ts:6:15:6:15 | x | The parameter 'x' is never used. |
|
||||
| tst2.js:1:12:1:12 | x | The parameter 'x' is never used. |
|
||||
| tst2.js:29:12:29:12 | x | The parameter 'x' is never used. |
|
||||
| tst.js:7:32:7:34 | idx | The parameter 'idx' is never used. |
|
||||
| tst.js:12:13:12:13 | x | The parameter 'x' is never used. |
|
||||
| tst2.js:28:12:28:12 | x | The parameter 'x' is never used. |
|
||||
| tst.js:6:32:6:34 | idx | The parameter 'idx' is never used. |
|
||||
| tst.js:10:13:10:13 | x | The parameter 'x' is never used. |
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
| decorated.ts:4:10:4:12 | fun | Unused function fun. |
|
||||
| eval.js:10:9:10:24 | not_used_by_eval | Unused variable not_used_by_eval. |
|
||||
| eval.js:19:9:19:24 | not_used_by_eval | Unused variable not_used_by_eval. |
|
||||
| externs.js:6:5:6:13 | iAmUnused | Unused variable iAmUnused. |
|
||||
| externs.js:5:5:5:13 | iAmUnused | Unused variable iAmUnused. |
|
||||
| importWithoutPragma.jsx:1:1:1:27 | import ... react'; | Unused import h. |
|
||||
| interTypes.ts:1:1:1:37 | import ... where"; | Unused import Bar. |
|
||||
| multi-imports.js:1:1:1:29 | import ... om 'x'; | Unused imports a, b, d. |
|
||||
|
||||
Reference in New Issue
Block a user