-
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
325 changed files
with
1,252 additions
and
1,252 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div x-ng-bind="I am here to make this seem like an AngularJS template"> | ||
<!-- BAD --> | ||
<a href="{{help_url}}">Help</a> | ||
<a href="{{help_url}}">Help</a> // $ TODO-SPURIOUS: Alert | ||
</div> |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/AngularJS/UseNgSrc/tst_fragment.html
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,4 @@ | ||
<body ng-app> | ||
<!-- BAD --> | ||
<a href="{{help_url}}">Help</a> | ||
<a href="{{help_url}}">Help</a> // $ TODO-SPURIOUS: Alert | ||
</body> |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/DOM/HTML/AmbiguousIdAttribute.html
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,7 @@ | ||
<html> | ||
<body> | ||
<ul> | ||
<li id="first">First element | ||
<li id="first">First element // $ TODO-SPURIOUS: Alert[js/duplicate-html-id] | ||
<li id="first">Second element | ||
</ul> | ||
</body> |
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
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/DOM/HTML/AmbiguousIdAttribute_fragment.html
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,4 @@ | ||
<ul> | ||
<li id="first">First element | ||
<li id="first">First element // $ TODO-SPURIOUS: Alert[js/duplicate-html-id] | ||
<li id="first">Second element | ||
</ul> |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/DOM/HTML/ConflictingAttributes.html
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 +1 @@ | ||
<a href="http://semmle.com" href="https://semmle.com">Semmle</a> | ||
<a href="http: // $ TODO-SPURIOUS: Alert[js/conflicting-html-attribute] - semmle.com" href="https://semmle.com">Semmle</a> |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/DOM/HTML/DuplicateAttributes.html
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,3 +1,3 @@ | ||
<a href="https://semmle.com" href="https://semmle.com">Semmle</a> | ||
<a href="https: // $ TODO-SPURIOUS: Alert[js/duplicate-html-attribute] - semmle.com" href="https://semmle.com">Semmle</a> | ||
|
||
<td {% foo %} {% foo %}></td> |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/DOM/HTML/MalformedIdAttribute.html
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 +1 @@ | ||
<div id="heading important">An important heading</div> | ||
<div id="heading important">An important heading</div> // $ TODO-SPURIOUS: Alert[js/malformed-html-id] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
window.setTimeout(";"); | ||
setInterval("update();"); | ||
window.setTimeout(";"); // $ TODO-SPURIOUS: Alert | ||
setInterval("update();"); // $ TODO-SPURIOUS: Alert | ||
setInterval(update); | ||
document.write("alert('Hi!');"); | ||
window.execScript("debugger;"); | ||
document.write("alert('Hi!');"); // $ TODO-SPURIOUS: Alert | ||
window.execScript("debugger;"); // $ TODO-SPURIOUS: Alert | ||
|
||
(function(global) { | ||
var document = global.document; | ||
document.write("undefined = 2"); | ||
document.write("undefined = 2"); // $ TODO-SPURIOUS: Alert | ||
})(this); |
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
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 |
---|---|---|
|
@@ -18,5 +18,5 @@ const s = "hi"; | |
|
||
(function (){ | ||
const c = null; | ||
for ([ c ] of o); | ||
for ([ c ] of o); // $ TODO-SPURIOUS: Alert | ||
}); |
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/Declarations/ConflictingFunctions/tst.js
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,6 @@ | ||
function f(x) { | ||
if (x > 23) { | ||
function g() { | ||
function g() { // $ TODO-SPURIOUS: Alert | ||
return 42; | ||
} | ||
} else { | ||
|
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/Declarations/DeadStoreOfGlobal/worker.js
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,3 +1,3 @@ | ||
onmessage = function() { console.log("Got a message!"); }; | ||
|
||
onmissage = function() { console.log("How did that happen?"); }; | ||
onmissage = function() { console.log("How did that happen?"); }; // $ TODO-SPURIOUS: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,6 @@ function f(event) { | |
function g() { | ||
let x = 23; // $ Alert | ||
{ | ||
x = 42; | ||
x = 42; // $ TODO-SPURIOUS: 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
2 changes: 1 addition & 1 deletion
2
javascript/ql/test/query-tests/Declarations/DefaultArgumentReferencesNestedFunction/tst.js
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
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
4 changes: 2 additions & 2 deletions
4
...ipt/ql/test/query-tests/Declarations/RedeclaredVariable/sameNameForFunctionAndVariable.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ function k() { | |
y = 2; // $ Alert | ||
} | ||
|
||
var g; | ||
var g; // $ TODO-SPURIOUS: Alert |
4 changes: 2 additions & 2 deletions
4
javascript/ql/test/query-tests/Declarations/UniqueParameterNames/tst.js
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
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
Oops, something went wrong.