-
Notifications
You must be signed in to change notification settings - Fork 2k
JS: new Quality query - Unhandled errors in .pipe() chain
#19544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 23 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c27157f
Add `UnhandledStreamPipee` Quality query and tests to detect missing …
Napalys f39bf62
test: Add edge cases for stream pipe error handling
Napalys ef1bde5
Fixed issue where streams would not be tracked via chainable methods
Napalys 30f2815
Fixed issue where a custom `pipe` method which returns non stream wou…
Napalys 03d1f9a
Restrict pipe detection to calls with 1-2 arguments
Napalys 5710f0c
Add test cases for non-stream field accesses and methods before and a…
Napalys 4332de4
Eliminate false positives by detecting non-stream objects returned fr…
Napalys d7f86db
Enhance PipeCall to exclude non-function and non-object arguments in …
Napalys 09220fc
Fixed issue where `pipe` calls from `rxjs` package would been identif…
Napalys b104871
Added `UnhandledStreamPipe` to `javascript-security-and-quality.qls` …
Napalys 5b1af0c
Added detection of custom `gulp-plumber` sanitizer, thus one would no…
Napalys ac24fdd
Add predicate to detect non-stream-like usage in sources of pipe calls
Napalys e6ae8bb
Added test cases where second parameter passed to `pipe` is a functio…
Napalys b10a948
Fixed false positives from `strapi` and `rxjs/testing` as well as whe…
Napalys 15ff7cb
Added more test cases which common `js` libraries uses `.pipe()`
Napalys c6db32e
Add exceptions for `arktype`, `execa`, and `highland` to prevent them…
Napalys 248f83c
Added `qhelp` for `UnhandledStreamPipe` query
Napalys 000e69f
Replaced fuzzy `NonNodeStream` MaD to a ql predicate to deal easier w…
Napalys e964b17
Added `maintainability` and `error-handling` tags
Napalys 5214cc0
Excluded `ngrx`, `datorama`, `angular`, `react` and `langchain` from …
Napalys 5bb29b6
Now flags only `.pipe` calls which have an error somewhere down the s…
Napalys f8f5d8f
Exclude `.pipe` detection which are in a test file.
Napalys 2e2b9a9
Make predicates private and clarify stream reference naming.
Napalys d3b2a57
Fixed ql warning `Expression can be replaced with a cast`
Napalys f843cc0
Fix false positives in stream pipe analysis by improving error handle…
Napalys 298ef9a
Now able to track error handler registration via instance properties
Napalys 3cbc414
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys 64f00fd
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys abd446a
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys 7198372
Update javascript/ql/src/Quality/UnhandledStreamPipe.qhelp
Napalys d43695c
Update javascript/ql/src/Quality/UnhandledStreamPipe.qhelp
Napalys ae74edb
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Napalys bf2f19d
Update UnhandledStreamPipe.ql
Napalys 7993f7d
Update `qhelp` example to more accurately demonstrate flagged cases
Napalys 8ba1f3f
Update javascript/ql/src/Quality/UnhandledStreamPipe.qhelp
Napalys f6e7059
Merge branch 'main' into js/quality/stream_pipe
Napalys d186994
Renamed `UnhandledStreamPipe.ql` to a better fitting name and ID
Napalys 8521c53
Renamed test directory to match the query name
Napalys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <!DOCTYPE qhelp PUBLIC | ||
| "-//Semmle//qhelp//EN" | ||
| "qhelp.dtd"> | ||
| <qhelp> | ||
|
|
||
| <overview> | ||
| <p> | ||
| In Node.js, calling the <code>pipe()</code> method on a stream without proper error handling can lead to silent failures, where errors are dropped and not propagated downstream. This can result in unexpected behavior and make debugging difficult. It is crucial to ensure that error handling is implemented when using stream pipes to maintain the reliability of the application. | ||
| </p> | ||
| </overview> | ||
|
|
||
| <recommendation> | ||
| <p> | ||
| Instead of using <code>pipe()</code> with manual error handling, prefer using the <code>pipeline</code> function from the Node.js stream module. The <code>pipeline</code> function automatically handles errors and ensures proper cleanup of resources. This approach is more robust and eliminates the risk of forgetting to handle errors. | ||
|
Napalys marked this conversation as resolved.
Outdated
|
||
| </p> | ||
| <p> | ||
| If you must use <code>pipe()</code>, always attach an error handler to the source stream using methods like <code>on('error', handler)</code> to ensure that any errors during the streaming process are properly handled. | ||
|
Napalys marked this conversation as resolved.
Outdated
|
||
| </p> | ||
| </recommendation> | ||
|
|
||
| <example> | ||
| <p> | ||
| The following code snippet demonstrates a problematic usage of the <code>pipe()</code> method without error handling: | ||
| </p> | ||
|
|
||
| <sample src="examples/UnhandledStreamPipe.js" /> | ||
|
|
||
| <p> | ||
| A better approach is to use the <code>pipeline</code> function, which automatically handles errors: | ||
| </p> | ||
|
|
||
| <sample src="examples/UnhandledStreamPipeGood.js" /> | ||
|
|
||
| <p> | ||
| Alternatively, if you need to use <code>pipe()</code>, make sure to add error handling: | ||
| </p> | ||
|
|
||
| <sample src="examples/UnhandledStreamPipeManualError.js" /> | ||
| </example> | ||
|
|
||
| <references> | ||
| <li>Node.js Documentation: <a href="https://nodejs.org/api/stream.html#streampipelinestreams-callback">stream.pipeline()</a>.</li> | ||
| </references> | ||
| </qhelp> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,281 @@ | ||
| /** | ||
| * @id js/nodejs-stream-pipe-without-error-handling | ||
| * @name Node.js stream pipe without error handling | ||
| * @description Calling `pipe()` on a stream without error handling may silently drop errors and prevent proper propagation. | ||
|
Napalys marked this conversation as resolved.
Outdated
|
||
| * @kind problem | ||
| * @problem.severity warning | ||
| * @precision high | ||
| * @tags quality | ||
| * maintainability | ||
| * error-handling | ||
| * frameworks/nodejs | ||
| */ | ||
|
|
||
| import javascript | ||
| import semmle.javascript.filters.ClassifyFiles | ||
|
|
||
| /** | ||
| * A call to the `pipe` method on a Node.js stream. | ||
| */ | ||
| class PipeCall extends DataFlow::MethodCallNode { | ||
| PipeCall() { | ||
| this.getMethodName() = "pipe" and | ||
| this.getNumArgument() = [1, 2] and | ||
| not this.getArgument([0, 1]).asExpr() instanceof Function and | ||
| not this.getArgument(0).asExpr() instanceof ObjectExpr and | ||
| not this.getArgument(0).getALocalSource() = getNonNodeJsStreamType() | ||
| } | ||
|
|
||
| /** Gets the source stream (receiver of the pipe call). */ | ||
| DataFlow::Node getSourceStream() { result = this.getReceiver() } | ||
|
|
||
| /** Gets the destination stream (argument of the pipe call). */ | ||
| DataFlow::Node getDestinationStream() { result = this.getArgument(0) } | ||
| } | ||
|
|
||
| /** | ||
| * Gets a reference to a value that is known to not be a Node.js stream. | ||
| * This is used to exclude pipe calls on non-stream objects from analysis. | ||
| */ | ||
| private DataFlow::Node getNonNodeJsStreamType() { | ||
| result = getNonStreamApi().getAValueReachableFromSource() | ||
| } | ||
|
|
||
| /** | ||
| * Gets API nodes from modules that are known to not provide Node.js streams. | ||
| * This includes reactive programming libraries, frontend frameworks, and other non-stream APIs. | ||
| */ | ||
| private API::Node getNonStreamApi() { | ||
| exists(string moduleName | | ||
| moduleName | ||
| .regexpMatch([ | ||
| "rxjs(|/.*)", "@strapi(|/.*)", "highland(|/.*)", "execa(|/.*)", "arktype(|/.*)", | ||
| "@ngrx(|/.*)", "@datorama(|/.*)", "@angular(|/.*)", "react.*", "@langchain(|/.*)", | ||
| ]) and | ||
| result = API::moduleImport(moduleName) | ||
| ) | ||
| or | ||
| result = getNonStreamApi().getAMember() | ||
| or | ||
| result = getNonStreamApi().getAParameter().getAParameter() | ||
| or | ||
| result = getNonStreamApi().getReturn() | ||
| or | ||
| result = getNonStreamApi().getPromised() | ||
| } | ||
|
|
||
| /** | ||
| * Gets the method names used to register event handlers on Node.js streams. | ||
| * These methods are used to attach handlers for events like `error`. | ||
| */ | ||
| private string getEventHandlerMethodName() { result = ["on", "once", "addListener"] } | ||
|
|
||
| /** | ||
| * Gets the method names that are chainable on Node.js streams. | ||
| */ | ||
| private string getChainableStreamMethodName() { | ||
| result = | ||
| [ | ||
| "setEncoding", "pause", "resume", "unpipe", "destroy", "cork", "uncork", "setDefaultEncoding", | ||
| "off", "removeListener", getEventHandlerMethodName() | ||
| ] | ||
| } | ||
|
|
||
| /** | ||
| * Gets the method names that are not chainable on Node.js streams. | ||
| */ | ||
| private string getNonchainableStreamMethodName() { | ||
| result = ["read", "write", "end", "pipe", "unshift", "push", "isPaused", "wrap", "emit"] | ||
| } | ||
|
|
||
| /** | ||
| * Gets the property names commonly found on Node.js streams. | ||
| */ | ||
| private string getStreamPropertyName() { | ||
| result = | ||
| [ | ||
| "readable", "writable", "destroyed", "closed", "readableHighWaterMark", "readableLength", | ||
| "readableObjectMode", "readableEncoding", "readableFlowing", "readableEnded", "flowing", | ||
| "writableHighWaterMark", "writableLength", "writableObjectMode", "writableFinished", | ||
| "writableCorked", "writableEnded", "defaultEncoding", "allowHalfOpen", "objectMode", | ||
| "errored", "pending", "autoDestroy", "encoding", "path", "fd", "bytesRead", "bytesWritten", | ||
| "_readableState", "_writableState" | ||
| ] | ||
| } | ||
|
|
||
| /** | ||
| * Gets all method names commonly found on Node.js streams. | ||
| */ | ||
| private string getStreamMethodName() { | ||
| result = [getChainableStreamMethodName(), getNonchainableStreamMethodName()] | ||
| } | ||
|
|
||
| /** | ||
| * A call to register an event handler on a Node.js stream. | ||
| * This includes methods like `on`, `once`, and `addListener`. | ||
| */ | ||
| class ErrorHandlerRegistration extends DataFlow::MethodCallNode { | ||
| ErrorHandlerRegistration() { | ||
| this.getMethodName() = getEventHandlerMethodName() and | ||
| this.getArgument(0).getStringValue() = "error" | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Models flow relationships between streams and related operations. | ||
| * Connects destination streams to their corresponding pipe call nodes. | ||
| * Connects streams to their chainable methods. | ||
| */ | ||
| private predicate streamFlowStep(DataFlow::Node streamNode, DataFlow::Node relatedNode) { | ||
|
Napalys marked this conversation as resolved.
Outdated
|
||
| exists(PipeCall pipe | | ||
| streamNode = pipe.getDestinationStream() and | ||
| relatedNode = pipe | ||
| ) | ||
| or | ||
| exists(DataFlow::MethodCallNode chainable | | ||
| chainable.getMethodName() = getChainableStreamMethodName() and | ||
| streamNode = chainable.getReceiver() and | ||
| relatedNode = chainable | ||
| ) | ||
| } | ||
|
|
||
| /** | ||
| * Tracks the result of a pipe call as it flows through the program. | ||
| */ | ||
| private DataFlow::SourceNode destinationStreamRef(DataFlow::TypeTracker t, PipeCall pipe) { | ||
| t.start() and result = pipe.getALocalSource() | ||
|
Napalys marked this conversation as resolved.
Outdated
|
||
| or | ||
| exists(DataFlow::SourceNode prev | | ||
| prev = destinationStreamRef(t.continue(), pipe) and | ||
| streamFlowStep(result.getALocalUse(), prev) | ||
|
asgerf marked this conversation as resolved.
Outdated
|
||
| ) | ||
| or | ||
| exists(DataFlow::TypeTracker t2 | result = destinationStreamRef(t2, pipe).track(t2, t)) | ||
| } | ||
|
|
||
| /** | ||
| * Gets a reference to the result of a pipe call. | ||
| */ | ||
| private DataFlow::SourceNode destinationStreamRef(PipeCall pipe) { | ||
| result = destinationStreamRef(DataFlow::TypeTracker::end(), pipe) | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the pipe call result is used to call a non-stream method. | ||
| * Since pipe() returns the destination stream, this finds cases where | ||
| * the destination stream is used with methods not typical of streams. | ||
| */ | ||
| private predicate isPipeFollowedByNonStreamMethod(PipeCall pipeCall) { | ||
| exists(DataFlow::MethodCallNode call | | ||
| call = destinationStreamRef(pipeCall).getAMethodCall() and | ||
| not call.getMethodName() = getStreamMethodName() | ||
| ) | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the pipe call result is used to access a property that is not typical of streams. | ||
| */ | ||
| private predicate isPipeFollowedByNonStreamProperty(PipeCall pipeCall) { | ||
| exists(DataFlow::PropRef propRef | | ||
| propRef = destinationStreamRef(pipeCall).getAPropertyRead() and | ||
| not propRef.getPropertyName() = [getStreamPropertyName(), getStreamMethodName()] | ||
| ) | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the pipe call result is used in a non-stream-like way, | ||
| * either by calling non-stream methods or accessing non-stream properties. | ||
| */ | ||
| private predicate isPipeFollowedByNonStreamAccess(PipeCall pipeCall) { | ||
| isPipeFollowedByNonStreamMethod(pipeCall) or | ||
| isPipeFollowedByNonStreamProperty(pipeCall) | ||
| } | ||
|
|
||
| /** | ||
| * Gets a reference to a stream that may be the source of the given pipe call. | ||
| * Uses type back-tracking to trace stream references in the data flow. | ||
| */ | ||
| private DataFlow::SourceNode sourceStreamRef(DataFlow::TypeBackTracker t, PipeCall pipeCall) { | ||
| t.start() and | ||
| result = pipeCall.getSourceStream().getALocalSource() | ||
| or | ||
| exists(DataFlow::SourceNode prev | | ||
| prev = sourceStreamRef(t.continue(), pipeCall) and | ||
| streamFlowStep(result.getALocalUse(), prev) | ||
| ) | ||
| or | ||
| exists(DataFlow::TypeBackTracker t2 | result = sourceStreamRef(t2, pipeCall).backtrack(t2, t)) | ||
| } | ||
|
|
||
| /** | ||
| * Gets a reference to a stream that may be the source of the given pipe call. | ||
| */ | ||
| private DataFlow::SourceNode sourceStreamRef(PipeCall pipeCall) { | ||
| result = sourceStreamRef(DataFlow::TypeBackTracker::end(), pipeCall) | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the source stream of the given pipe call has an `error` handler registered. | ||
| */ | ||
| private predicate hasErrorHandlerRegistered(PipeCall pipeCall) { | ||
| exists(ErrorHandlerRegistration handler | | ||
| handler = sourceStreamRef(pipeCall).getAMethodCall(getEventHandlerMethodName()) | ||
| ) | ||
|
|
||
| or | ||
| hasPlumber(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. | ||
|
Napalys marked this conversation as resolved.
Outdated
|
||
| */ | ||
| private predicate hasPlumber(PipeCall pipeCall) { | ||
| pipeCall.getDestinationStream().getALocalSource() = API::moduleImport("gulp-plumber").getACall() | ||
| or | ||
| sourceStreamRef+(pipeCall) = API::moduleImport("gulp-plumber").getACall() | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the source or destination of the given pipe call is identified as a non-Node.js stream. | ||
| */ | ||
| private predicate hasNonNodeJsStreamSource(PipeCall pipeCall) { | ||
| sourceStreamRef(pipeCall) = getNonNodeJsStreamType() or | ||
| destinationStreamRef(pipeCall) = getNonNodeJsStreamType() | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the source stream of the given pipe call is used in a non-stream-like way. | ||
| */ | ||
| private predicate hasNonStreamSourceLikeUsage(PipeCall pipeCall) { | ||
| exists(DataFlow::MethodCallNode call, string name | | ||
| call.getReceiver().getALocalSource() = sourceStreamRef(pipeCall) and | ||
| name = call.getMethodName() and | ||
| not name = getStreamMethodName() | ||
| ) | ||
| or | ||
| exists(DataFlow::PropRef propRef, string propName | | ||
| propRef.getBase().getALocalSource() = sourceStreamRef(pipeCall) and | ||
| propName = propRef.getPropertyName() and | ||
| not propName = [getStreamPropertyName(), getStreamMethodName()] | ||
| ) | ||
| } | ||
|
|
||
| /** | ||
| * Holds if the pipe call destination stream has an error handler registered. | ||
| */ | ||
| private predicate hasErrorHandlerDownstream(PipeCall pipeCall) { | ||
| exists(ErrorHandlerRegistration handler | | ||
| handler.getReceiver().getALocalSource() = destinationStreamRef(pipeCall) | ||
| ) | ||
| } | ||
|
|
||
| from PipeCall pipeCall | ||
| where | ||
| not hasErrorHandlerRegistered(pipeCall) and | ||
| hasErrorHandlerDownstream(pipeCall) and | ||
| not isPipeFollowedByNonStreamAccess(pipeCall) and | ||
| not hasNonStreamSourceLikeUsage(pipeCall) and | ||
| not hasNonNodeJsStreamSource(pipeCall) and | ||
| not isTestFile(pipeCall.getFile()) | ||
| select pipeCall, | ||
| "Stream pipe without error handling on the source stream. Errors won't propagate downstream and may be silently dropped." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| const fs = require('fs'); | ||
| const source = fs.createReadStream('source.txt'); | ||
| const destination = fs.createWriteStream('destination.txt'); | ||
|
|
||
| // Bad: No error handling | ||
| source.pipe(destination); | ||
|
asgerf marked this conversation as resolved.
Outdated
|
||
17 changes: 17 additions & 0 deletions
17
javascript/ql/src/Quality/examples/UnhandledStreamPipeGood.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| const { pipeline } = require('stream'); | ||
| const fs = require('fs'); | ||
| const source = fs.createReadStream('source.txt'); | ||
| const destination = fs.createWriteStream('destination.txt'); | ||
|
|
||
| // Good: Using pipeline for automatic error handling | ||
| pipeline( | ||
| source, | ||
| destination, | ||
| (err) => { | ||
| if (err) { | ||
| console.error('Pipeline failed:', err); | ||
| } else { | ||
| console.log('Pipeline succeeded'); | ||
| } | ||
| } | ||
| ); |
16 changes: 16 additions & 0 deletions
16
javascript/ql/src/Quality/examples/UnhandledStreamPipeManualError.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| const fs = require('fs'); | ||
| const source = fs.createReadStream('source.txt'); | ||
| const destination = fs.createWriteStream('destination.txt'); | ||
|
|
||
| // Alternative Good: Manual error handling with pipe() | ||
| source.on('error', (err) => { | ||
| console.error('Source stream error:', err); | ||
| destination.destroy(err); | ||
| }); | ||
|
|
||
| destination.on('error', (err) => { | ||
| console.error('Destination stream error:', err); | ||
| source.destroy(err); | ||
| }); | ||
|
|
||
| source.pipe(destination); |
3 changes: 3 additions & 0 deletions
3
javascript/ql/test/query-tests/Quality/UnhandledStreamPipe/arktype.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import { type } from 'arktype'; | ||
|
|
||
| type.string.pipe(Number); |
11 changes: 11 additions & 0 deletions
11
javascript/ql/test/query-tests/Quality/UnhandledStreamPipe/execa.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| const execa = require('execa'); | ||
|
|
||
| (async () => { | ||
| const first = execa('node', ['empty.js']); | ||
| const second = execa('node', ['stdin.js']); | ||
|
|
||
| first.stdout.pipe(second.stdin); | ||
|
|
||
| const {stdout} = await second; | ||
| console.log(stdout); | ||
| })(); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.