Add exceptions for arktype, execa, and highland to prevent them from being flagged by unhandled pipe error query

This commit is contained in:
Napalys Klicius
2025-05-23 12:34:11 +02:00
parent 15ff7cb41a
commit c6db32ed73
7 changed files with 21 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
import { type } from 'arktype';
type.string.pipe(Number) // $SPURIOUS:Alert
type.string.pipe(Number);

View File

@@ -4,7 +4,7 @@ const execa = require('execa');
const first = execa('node', ['empty.js']);
const second = execa('node', ['stdin.js']);
first.stdout.pipe(second.stdin); // $SPURIOUS:Alert
first.stdout.pipe(second.stdin);
const {stdout} = await second;
console.log(stdout);

View File

@@ -5,4 +5,4 @@ highland(fs.createReadStream('input.txt'))
.map(line => {
if (line.length === 0) throw new Error('Empty line');
return line;
}).pipe(fs.createWriteStream('output.txt')); // $SPURIOUS:Alert
}).pipe(fs.createWriteStream('output.txt'));

View File

@@ -1,6 +1,3 @@
| arktype.js:3:1:3:24 | type.st ... Number) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| execa.js:7:3:7:33 | first.s ... .stdin) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| highland.js:4:1:8:45 | highlan ... .txt')) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
| rxjsStreams.js:19:3:19:28 | z.optio ... k("x")) | 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. |