mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Python: Omit all unresolved parameter nodes.
Drops the results further to 139.
This commit is contained in:
@@ -181,8 +181,8 @@ class ParameterNode extends CfgNode {
|
||||
|
||||
ParameterNode() {
|
||||
node = def.getDefiningNode() and
|
||||
// Disregard parameters to the function the extractor has synthesised for comprehensions
|
||||
not def.getScope() = any(Comp comp).getNthInnerLoop(0).getIter().getScope()
|
||||
// Disregard parameters that we cannot resolve
|
||||
exists(DataFlowCallable c | node = c.getParameter(_))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user