mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
JS: Exclude externs from CallGraph meta-query
This commit is contained in:
@@ -12,7 +12,10 @@ import javascript
|
||||
|
||||
from DataFlow::Node invoke, Function f, string kind
|
||||
where
|
||||
invoke.(DataFlow::InvokeNode).getACallee() = f and kind = "Call"
|
||||
or
|
||||
invoke.(DataFlow::PropRef).getAnAccessorCallee().getFunction() = f and kind = "Accessor call"
|
||||
(
|
||||
invoke.(DataFlow::InvokeNode).getACallee() = f and kind = "Call"
|
||||
or
|
||||
invoke.(DataFlow::PropRef).getAnAccessorCallee().getFunction() = f and kind = "Accessor call"
|
||||
) and
|
||||
not f.getTopLevel().isExterns()
|
||||
select invoke, kind + " to $@", f, f.describe()
|
||||
|
||||
Reference in New Issue
Block a user