mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JavaScript: Remove --platform node extractor options.
This commit is contained in:
@@ -4,5 +4,4 @@
|
||||
module.exports = me;
|
||||
}(module));
|
||||
|
||||
// semmle-extractor-options: --platform
|
||||
// semmle-extractor-options: node
|
||||
require("process"); // ensure this is treated as Node.js code
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
import hipsterness from 'react';
|
||||
import curry from 'lodash/function/curry';
|
||||
|
||||
//semmle-extractor-options: --platform node
|
||||
|
||||
@@ -7,5 +7,3 @@ angular.module('myApp', ['ngRoute'])
|
||||
.controller('FindPost', function($routeParams) {
|
||||
db.get('SELECT * FROM Post WHERE id = "' + $routeParams.id + '"');
|
||||
});
|
||||
|
||||
// semmle-extractor-options: --platform node
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// not a syntax error, but still NOT OK
|
||||
return 42;
|
||||
|
||||
// semmle-extractor-options: --platform
|
||||
// semmle-extractor-options: node
|
||||
require("path") // ensure this is treated as Node.js code
|
||||
|
||||
Reference in New Issue
Block a user