-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
195 changed files
with
457 additions
and
3,237 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
javascript/ql/test/query-tests/AngularJS/DoubleCompilation/DoubleCompilation.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#select | ||
| bad.js:14:7:14:23 | $compile(element) | This call to $compile may cause double compilation of 'element'. | | ||
testFailures | ||
| bad.js:14:7:14:23 | This call to $compile may cause double compilation of 'element'. | Unexpected result: Alert | |
4 changes: 0 additions & 4 deletions
4
javascript/ql/test/query-tests/AngularJS/DuplicateDependency/DuplicateDependency.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
#select | ||
| duplicates.js:2:5:2:18 | function f(){} | This function has a duplicate dependency $@. | duplicates.js:3:26:3:31 | 'dup5' | dup5 | | ||
| duplicates.js:6:33:6:56 | functio ... up2b){} | This function has a duplicate dependency $@. | duplicates.js:6:24:6:30 | 'dup2a' | dup2a | | ||
| duplicates.js:7:33:7:56 | functio ... up3b){} | This function has a duplicate dependency $@. | duplicates.js:7:24:7:30 | 'dup3b' | dup3b | | ||
| duplicates.js:8:43:8:78 | functio ... up4C){} | This function has a duplicate dependency $@. | duplicates.js:8:35:8:40 | 'dup4' | dup4 | | ||
| duplicates.js:15:35:15:113 | functio ... } | This function has a duplicate dependency $@. | duplicates.js:15:25:15:32 | 'dup11a' | dup11a | | ||
testFailures | ||
| duplicates.js:2:5:2:18 | This function has a duplicate dependency $@. | Unexpected result: Alert | | ||
| duplicates.js:3:35:3:44 | // $ Alert | Missing result: Alert | |
4 changes: 0 additions & 4 deletions
4
javascript/ql/test/query-tests/AngularJS/UseNgSrc/UseNgSrc.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
#select | ||
| tst2.html:2:6:2:24 | href={{help_url}} | Use 'ng-href' instead of 'href'. | | ||
| tst.html:7:6:7:24 | href={{help_url}} | Use 'ng-href' instead of 'href'. | | ||
| tst.html:9:40:9:83 | srcset=#/resources/pics-large/{{item._id}} | Use 'ng-srcset' instead of 'srcset'. | | ||
| tst.html:10:10:10:52 | src=#/resources/pics-default/{{item._id}} | Use 'ng-src' instead of 'src'. | | ||
| tst_fragment.html:2:6:2:24 | href={{help_url}} | Use 'ng-href' instead of 'href'. | | ||
testFailures | ||
| tst.html:9:40:9:83 | Use 'ng-srcset' instead of 'srcset'. | Unexpected result: Alert | | ||
| tst.html:10:10:10:52 | Use 'ng-src' instead of 'src'. | Unexpected result: Alert | |
7 changes: 0 additions & 7 deletions
7
javascript/ql/test/query-tests/DOM/PseudoEval/PseudoEval.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
#select | ||
| tst.js:1:1:1:22 | window. ... ut(";") | Avoid using functions that evaluate strings as code. | | ||
| tst.js:2:1:2:24 | setInte ... te();") | Avoid using functions that evaluate strings as code. | | ||
| tst.js:4:1:4:31 | documen ... i!');") | Avoid using functions that evaluate strings as code. | | ||
| tst.js:5:1:5:30 | window. ... gger;") | Avoid using functions that evaluate strings as code. | | ||
| tst.js:9:3:9:33 | documen ... d = 2") | Avoid using functions that evaluate strings as code. | | ||
testFailures | ||
| tst.js:1:1:1:22 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert | | ||
| tst.js:2:1:2:24 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert | | ||
| tst.js:4:1:4:31 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert | | ||
| tst.js:5:1:5:30 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert | | ||
| tst.js:9:3:9:33 | Avoid using functions that evaluate strings as code. | Unexpected result: Alert | |
10 changes: 1 addition & 9 deletions
10
javascript/ql/test/query-tests/DOM/TargetBlank/TargetBlank.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
#select | ||
| tst.html:23:1:23:61 | <a>...</> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.html:24:1:24:48 | <a>...</> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.html:25:1:25:36 | <a>...</> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.html:25:1:25:54 | <a>...</> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.html:30:1:30:61 | <a>...</> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.js:17:1:17:43 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.js:18:1:18:58 | <a href ... ple</a> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.js:19:1:19:51 | <a data ... ple</a> | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.js:31:12:31:39 | $("<a/> ... X}}" }) | External links without noopener/noreferrer are a potential security risk. | | ||
| tst.js:39:12:39:20 | $("<a/>") | External links without noopener/noreferrer are a potential security risk. | | ||
testFailures | ||
| tst.html:23:1:23:61 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert | | ||
| tst.html:24:1:24:48 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert | | ||
| tst.html:25:1:25:36 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert | | ||
| tst.html:30:1:30:61 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert | | ||
| tst.js:18:1:18:58 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert | | ||
| tst.js:19:1:19:51 | External links without noopener/noreferrer are a potential security risk. | Unexpected result: Alert | |
4 changes: 0 additions & 4 deletions
4
javascript/ql/test/query-tests/Declarations/ArgumentsRedefined/ArgumentsRedefined.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
#select | ||
| tst.js:3:5:3:13 | arguments | Redefinition of arguments. | | ||
| tst.js:7:7:7:15 | arguments | Redefinition of arguments. | | ||
| tst.js:11:11:11:19 | arguments | Redefinition of arguments. | | ||
| tst.js:12:11:12:19 | arguments | Redefinition of arguments. | | ||
testFailures | ||
| tst.js:11:11:11:19 | Redefinition of arguments. | Unexpected result: Alert | | ||
| tst.js:12:11:12:19 | Redefinition of arguments. | Unexpected result: Alert | |
3 changes: 0 additions & 3 deletions
3
javascript/ql/test/query-tests/Declarations/AssignmentToConst/AssignmentToConst.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
#select | ||
| 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 | | ||
testFailures | ||
| tst.js:21:10:21:14 | Assignment to variable c, which is $@ constant. | Unexpected result: Alert | |
3 changes: 0 additions & 3 deletions
3
...cript/ql/test/query-tests/Declarations/ConflictingFunctions/ConflictingFunctions.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#select | ||
| tst.js:3:12:3:12 | g | Declaration of function g conflicts with $@ in the same scope. | tst.js:7:12:7:12 | g | another declaration | | ||
testFailures | ||
| tst.js:3:12:3:12 | Declaration of function g conflicts with $@ in the same scope. | Unexpected result: Alert | |
3 changes: 0 additions & 3 deletions
3
javascript/ql/test/query-tests/Declarations/DeadStoreOfGlobal/DeadStoreOfGlobal.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
#select | ||
| 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. | | ||
testFailures | ||
| worker.js:3:1:3:9 | This definition of onmissage is useless, since its value is never read. | Unexpected result: Alert | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
javascript/ql/test/query-tests/Declarations/DeclBeforeUse/DeclBeforeUse.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
#select | ||
| jslint.js:7:1:7:1 | z | Variable 'z' is used before its $@. | jslint.js:8:11:8:11 | z | declaration | | ||
| tst2.js:5:13:5:13 | x | Variable 'x' is used before its $@. | tst2.js:6:5:6:5 | x | declaration | | ||
testFailures | ||
| jslint.js:6:4:6:13 | // $ Alert | Missing result: Alert | |
3 changes: 0 additions & 3 deletions
3
.../DefaultArgumentReferencesNestedFunction/DefaultArgumentReferencesNestedFunction.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#select | ||
| tst.js:1:19:1:28 | defaultVal | This expression refers to $@ before it is defined. | tst.js:2:5:4:5 | functio ... ;\\n } | defaultVal | | ||
testFailures | ||
| tst.js:1:19:1:28 | This expression refers to $@ before it is defined. | Unexpected result: Alert | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
javascript/ql/test/query-tests/Declarations/TooManyParameters/TooManyParameters.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#select | ||
| excessiveParameterList.js:4:1:4:48 | functio ... p8) {\\n} | Function func2 has too many parameters (8). | | ||
testFailures | ||
| excessiveParameterList.js:4:1:4:48 | Function func2 has too many parameters (8). | Unexpected result: Alert | | ||
| excessiveParameterList.js:4:1:4:59 | functio ... Alert\\n} | Function func2 has too many parameters (8). | |
4 changes: 0 additions & 4 deletions
4
...cript/ql/test/query-tests/Declarations/UniqueParameterNames/UniqueParameterNames.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
#select | ||
| tst.js:2:1:2:1 | x | This parameter has the same name as $@ of the same function. | tst.js:4:1:4:6 | \\u0078 | another parameter | | ||
| tst.js:3:1:3:1 | x | This parameter has the same name as $@ of the same function. | tst.js:4:1:4:6 | \\u0078 | another parameter | | ||
testFailures | ||
| tst.js:2:1:2:1 | This parameter has the same name as $@ of the same function. | Unexpected result: Alert | | ||
| tst.js:4:8:4:17 | // $ Alert | Missing result: Alert | |
3 changes: 0 additions & 3 deletions
3
javascript/ql/test/query-tests/Declarations/UniquePropertyNames/UniquePropertyNames.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
#select | ||
| tst2.js:8:3:10:3 | setX: f ... x;\\n } | This property is overwritten by $@ in the same object literal. | tst2.js:16:3:18:3 | setX: f ... x;\\n } | another property | | ||
| tst.js:20:3:20:7 | x: 23 | This property is overwritten by $@ in the same object literal. | tst.js:23:3:23:7 | x: 56 | another property | | ||
| tst.js:21:3:21:12 | y: "hello" | This property is overwritten by $@ in the same object literal. | tst.js:24:3:24:14 | "y": "world" | another property | | ||
| tst.js:22:3:22:7 | x: 42 | This property is overwritten by $@ in the same object literal. | tst.js:23:3:23:7 | x: 56 | another property | | ||
testFailures | ||
| tst2.js:8:3:10:3 | This property is overwritten by $@ in the same object literal. | Unexpected result: Alert | |
3 changes: 0 additions & 3 deletions
3
...cript/ql/test/query-tests/Declarations/UnstableCyclicImport/UnstableCyclicImport.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#select | ||
| A.ts:3:24:3:24 | B | B is uninitialized if $@ is loaded first in the cyclic import: A => B => A. | A.ts:1:17:1:21 | './B' | B | | ||
| B.ts:5:24:5:24 | A | A is uninitialized if $@ is loaded first in the cyclic import: B => A => B. | B.ts:1:17:1:21 | './A' | A | | ||
| ExampleBad/services.js:5:3:5:14 | AudioService | AudioService is uninitialized if $@ is loaded first in the cyclic import: services => audio => services. | ExampleBad/services.js:1:30:1:38 | './audio' | audio | | ||
testFailures | ||
| ExampleBad/services.js:5:3:5:14 | AudioService is uninitialized if $@ is loaded first in the cyclic import: services => audio => services. | Unexpected result: Alert | |
3 changes: 0 additions & 3 deletions
3
javascript/ql/test/query-tests/Declarations/UnusedParameter/UnusedParameter.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#select | ||
| 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: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. | | ||
testFailures | ||
| tst2.js:28:12:28:12 | The parameter 'x' is never used. | Unexpected result: Alert | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...query-tests/Electron/DangerousWebPreferencesSettings/AllowRunningInsecureContent.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#select | ||
| DangerousWebPreferences.js:7:13:7:45 | allowRu ... t: true | Enabling allowRunningInsecureContent is strongly discouraged. | | ||
testFailures | ||
| DangerousWebPreferences.js:7:13:7:45 | Enabling allowRunningInsecureContent is strongly discouraged. | Unexpected result: Alert | |
3 changes: 0 additions & 3 deletions
3
...l/test/query-tests/Electron/DangerousWebPreferencesSettings/DisablingWebSecurity.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#select | ||
| DangerousWebPreferences.js:6:13:6:30 | webSecurity: false | Disabling webSecurity is strongly discouraged. | | ||
testFailures | ||
| DangerousWebPreferences.js:6:13:6:30 | Disabling webSecurity is strongly discouraged. | Unexpected result: Alert | |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/Electron/NodeIntegration/EnablingNodeIntegration.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
| EnablingNodeIntegration.js:5:28:11:9 | {\\n ... } | The `nodeIntegrationInWorker` feature has been enabled. | | ||
| EnablingNodeIntegration.js:5:28:11:9 | {\\n ... } | The `nodeIntegration` feature has been enabled. | | ||
| EnablingNodeIntegration.js:15:22:20:9 | {\\n ... } | The `nodeIntegration` feature is enabled by default. | | ||
| EnablingNodeIntegration.js:23:16:27:9 | { // $ ... } | The `nodeIntegration` feature is enabled by default. | | ||
| EnablingNodeIntegration.js:23:16:27:9 | { // im ... } | The `nodeIntegration` feature is enabled by default. | | ||
| EnablingNodeIntegration.js:49:74:49:96 | {nodeIn ... : true} | The `nodeIntegration` feature has been enabled. | |
Oops, something went wrong.