mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JavaScript: Replace --externs extractor flag with /** @externs */ comment.
This commit is contained in:
@@ -17,4 +17,4 @@ Point.prototype['final'];
|
||||
/** @type {!Point} */
|
||||
var aPoint;
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
var arguments;
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
@@ -38,4 +38,4 @@ function Worker(opt_arg0) {}
|
||||
*/
|
||||
Worker.prototype.onmessage = function() {};
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -40,4 +40,4 @@ function Element() {}
|
||||
*/
|
||||
Element.prototype.clientTop;
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
var f = function() {};
|
||||
var f = function(x) {};
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
@@ -1,4 +1,4 @@
|
||||
// OK: overly long parameter lists in external APIs aren't the fault of the externs definitions
|
||||
function f(a, b, c, d, e, f, g, h) {}
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
@@ -1,3 +1,3 @@
|
||||
function String(str) {}
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
@@ -53,4 +53,4 @@ function Error() {}
|
||||
*/
|
||||
function SyntaxError() {}
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -36,4 +36,4 @@ function Element() {}
|
||||
|
||||
Element.prototype.innerHTML;
|
||||
|
||||
// semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
*/
|
||||
function f(x) {}
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
@@ -7,4 +7,4 @@ String.prototype.toString = function() {};
|
||||
function Array() {}
|
||||
Array.prototype.toString = function() {};
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
@@ -1,4 +1,4 @@
|
||||
| export.js:5:8:5:17 | var x = 42 | Avoid automated semicolon insertion (95% of all statements in $@ have an explicit semicolon). | export.js:1:1:29:0 | <toplevel> | the enclosing script |
|
||||
| jscript.js:3:1:3:36 | window. ... ad() {} | Avoid automated semicolon insertion (95% of all statements in $@ have an explicit semicolon). | jscript.js:1:1:27:42 | <toplevel> | the enclosing script |
|
||||
| jscript.js:3:1:3:36 | window. ... ad() {} | Avoid automated semicolon insertion (95% of all statements in $@ have an explicit semicolon). | jscript.js:1:1:26:0 | <toplevel> | the enclosing script |
|
||||
| tst.js:5:1:5:3 | var a = ... : 2\\n } | Avoid automated semicolon insertion (91% of all statements in $@ have an explicit semicolon). | tst.js:1:1:42:1 | functio ... oo();\\n} | the enclosing function |
|
||||
| tst.js:7:3:7:10 | return 1 | Avoid automated semicolon insertion (91% of all statements in $@ have an explicit semicolon). | tst.js:1:1:42:1 | functio ... oo();\\n} | the enclosing function |
|
||||
|
||||
@@ -39,4 +39,4 @@ function Number() {}
|
||||
|
||||
Number.parseFloat = function(num) {};
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
| a.js:1:11:1:28 | require('./b').foo | Module $@ does not export symbol foo. | b.js:1:1:5:21 | <toplevel> | b |
|
||||
| main.js:5:1:5:5 | b.foo | Module $@ does not export symbol foo. | b.js:1:1:5:21 | <toplevel> | b |
|
||||
| main.js:15:1:15:9 | fs.renmae | Module $@ does not export symbol renmae. | fs.js:1:1:15:0 | <toplevel> | fs |
|
||||
| main.js:23:1:23:5 | l.bar | Module $@ does not export symbol bar. | l.js:1:1:7:52 | <toplevel> | l |
|
||||
| main.js:23:1:23:5 | l.bar | Module $@ does not export symbol bar. | l.js:1:1:6:0 | <toplevel> | l |
|
||||
| multi_import.js:16:3:16:10 | mod2.bar | Module $@ does not export symbol bar. | b.js:1:1:5:21 | <toplevel> | b |
|
||||
|
||||
@@ -615,4 +615,4 @@ Array.some = function(arr, callback, opt_context) {};
|
||||
*/
|
||||
Array.isArray = function(arr) {};
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -2,4 +2,4 @@ var fs = require('fs');
|
||||
|
||||
fs.move = fs.rename;
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
@@ -11,4 +11,4 @@ fs.rename;
|
||||
|
||||
module.exports = fs;
|
||||
|
||||
//semmle-extractor-options: --externs
|
||||
/** @externs */
|
||||
|
||||
Reference in New Issue
Block a user