Layout/RescueEnsureAlignment
false positive for rescue
in block (Ruby 2.5) inside method
#5315
Labels
Layout/RescueEnsureAlignment
false positive for rescue
in block (Ruby 2.5) inside method
#5315
When we're using
resuce
inside a block (each
, for example) — there are no offenses.But when this block inside a method — there is incorrect offense.
Expected behavior
No offenses for
rescue
inside a block inside a method.Actual behavior
Offense from
Layout/RescueEnsureAlignment
:Steps to reproduce the problem
RuboCop version
Include the output of
rubocop -V
. Here's an example:The text was updated successfully, but these errors were encountered: