Update javascript/ql/src/Quality/UnhandledStreamPipe.ql

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Napalys Klicius
2025-06-02 17:40:06 +02:00
committed by GitHub
parent 298ef9ab12
commit 3cbc4142f0

View File

@@ -242,7 +242,7 @@ private predicate hasErrorHandlerRegistered(PipeCall pipeCall) {
/**
* Holds if the pipe call uses `gulp-plumber`, which automatically handles stream errors.
* Gulp-plumber is a Node.js module that prevents pipe breaking caused by errors from gulp plugins.
* `gulp-plumber` returns a stream that uses monkey-patching to ensure all subsequent streams in the pipeline propagate their errors.
*/
private predicate hasPlumber(PipeCall pipeCall) {
pipeCall.getDestinationStream().getALocalSource() = API::moduleImport("gulp-plumber").getACall()