SignalException cop incorrectly flags "Use fail
instead of raise
to signal exceptions
#909
Labels
fail
instead of raise
to signal exceptions
#909
With the following code snippet:
The SignalException cop flags the error:
Since we are re-raising an exception this should be valid. Simplifying the code further by removing the first rescue stops the cop from flagging an issue. So, this only becomes a problem when two rescues are used, and one raise's the exception.
I created the following spec, but am too unfamiliar with the codebase to provide a fix at this time:
The text was updated successfully, but these errors were encountered: