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:
Napalys Klicius
2025-05-22 16:41:11 +02:00
parent e6ae8bbde4
commit b10a9481f3
7 changed files with 11 additions and 7 deletions

View File

@@ -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()
}