mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Add predicate to detect non-stream-like usage in sources of pipe calls
This commit is contained in:
@@ -11,5 +11,3 @@
|
||||
| test.js:143:5:143:62 | stream. ... itable) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
|
||||
| test.js:175:17:175:40 | notStre ... itable) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
|
||||
| test.js:185:5:185:32 | copyStr ... nation) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
|
||||
| test.js:190:17:190:40 | notStre ... itable) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
|
||||
| test.js:195:17:195:40 | notStre ... itable) | Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped. |
|
||||
|
||||
@@ -187,12 +187,12 @@ function test() {
|
||||
{
|
||||
const notStream = getNotAStream();
|
||||
const something = notStream.someNotStreamPropertyAccess;
|
||||
const val = notStream.pipe(writable); // $SPURIOUS:Alert
|
||||
const val = notStream.pipe(writable);
|
||||
}
|
||||
{
|
||||
const notStream = getNotAStream();
|
||||
const something = notStream.someNotStreamPropertyAccess();
|
||||
const val = notStream.pipe(writable); // $SPURIOUS:Alert
|
||||
const val = notStream.pipe(writable);
|
||||
}
|
||||
{
|
||||
const notStream = getNotAStream();
|
||||
|
||||
Reference in New Issue
Block a user