You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice find @zachlatta! I think the reason we've missed this is that it's a pretty uncommon (at least to me) edge case. But there's no reason why we couldn't account for this, that I can see. 😀
…method definitions
This cop would report an offense if it found a `return` statement inside
a method definition inside a block, even though the `return` is scoped
to the method definition. This change fixes that.
I think I'm get a false positive from
Lint/NonLocalExitFromIterator
in the below code:Expected behavior
No flags should be raised.
Actual behavior
It's flagged with:
Curiously, this only seems to happen when there's a block argument specified in the
VCR.configure
block – try omitting|c|
to see what I mean.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: