Fixed issue where pipe calls from rxjs package would been identified as pipe calls on streams

This commit is contained in:
Napalys Klicius
2025-05-22 12:33:36 +02:00
parent d7f86db76c
commit 09220fce84
4 changed files with 29 additions and 6 deletions

View File

@@ -5,6 +5,6 @@ const { of, from } = rx;
const { map, filter } = ops;
function f(){
of(1, 2, 3).pipe(map(x => x * 2)); // $SPURIOUS:Alert
someNonStream().pipe(map(x => x * 2)); // $SPURIOUS:Alert
of(1, 2, 3).pipe(map(x => x * 2));
someNonStream().pipe(map(x => x * 2));
}

View File

@@ -1,5 +1,3 @@
| rxjsStreams.js:8:3:8:35 | of(1, 2 ... x * 2)) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| rxjsStreams.js:9:3:9:39 | someNon ... x * 2)) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| test.js:4:5:4:28 | stream. ... nation) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| test.js:19:5:19:17 | s2.pipe(dest) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| test.js:45:5:45:30 | stream2 ... ation2) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |