JavaScript: Replace --externs extractor flag with /** @externs */ comment.

This commit is contained in:
Max Schaefer
2019-11-05 16:09:17 +00:00
parent 1fa8c43a8c
commit 4848372435
17 changed files with 17 additions and 17 deletions

View File

@@ -17,4 +17,4 @@ Point.prototype['final'];
/** @type {!Point} */
var aPoint;
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -1,3 +1,3 @@
var arguments;
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -38,4 +38,4 @@ function Worker(opt_arg0) {}
*/
Worker.prototype.onmessage = function() {};
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -40,4 +40,4 @@ function Element() {}
*/
Element.prototype.clientTop;
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -2,4 +2,4 @@
var f = function() {};
var f = function(x) {};
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -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 */

View File

@@ -1,3 +1,3 @@
function String(str) {}
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -53,4 +53,4 @@ function Error() {}
*/
function SyntaxError() {}
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -36,4 +36,4 @@ function Element() {}
Element.prototype.innerHTML;
// semmle-extractor-options: --externs
/** @externs */

View File

@@ -3,4 +3,4 @@
*/
function f(x) {}
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -7,4 +7,4 @@ String.prototype.toString = function() {};
function Array() {}
Array.prototype.toString = function() {};
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -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 |

View File

@@ -39,4 +39,4 @@ function Number() {}
Number.parseFloat = function(num) {};
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -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 |

View File

@@ -615,4 +615,4 @@ Array.some = function(arr, callback, opt_context) {};
*/
Array.isArray = function(arr) {};
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -2,4 +2,4 @@ var fs = require('fs');
fs.move = fs.rename;
//semmle-extractor-options: --externs
/** @externs */

View File

@@ -11,4 +11,4 @@ fs.rename;
module.exports = fs;
//semmle-extractor-options: --externs
/** @externs */