mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Ruby: Handle captured yield calls
This commit is contained in:
@@ -319,4 +319,9 @@ module MakeConsistency<
|
||||
strictcount(DataFlowCall call0 | multipleArgumentCallInclude(arg, call0)) > 1 and
|
||||
msg = "Multiple calls for argument node."
|
||||
}
|
||||
|
||||
query predicate lambdaCallEnclosingCallableMismatch(DataFlowCall call, Node receiver) {
|
||||
lambdaCall(call, _, receiver) and
|
||||
not nodeGetEnclosingCallable(receiver) = call.getEnclosingCallable()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user