mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Fixed false positives from strapi and rxjs/testing as well as when one passes function as second arg to pipe
This commit is contained in:
@@ -18,7 +18,7 @@ class PipeCall extends DataFlow::MethodCallNode {
|
||||
PipeCall() {
|
||||
this.getMethodName() = "pipe" and
|
||||
this.getNumArgument() = [1, 2] and
|
||||
not this.getArgument(0).asExpr() instanceof Function and
|
||||
not this.getArgument([0, 1]).asExpr() instanceof Function and
|
||||
not this.getArgument(0).asExpr() instanceof ObjectExpr and
|
||||
not this.getArgument(0).getALocalSource() = getNonNodeJsStreamType()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user