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
In a loop where an if branch has both outcomes ending in break or rescue, but one branch has a next guard clause in it, Rubocop still complains about Lint/UnreachableLoop. Consider this:
In a loop where an
if
branch has both outcomes ending inbreak
orrescue
, but one branch has anext
guard clause in it, Rubocop still complains about Lint/UnreachableLoop. Consider this:This runs twice.
Expected behavior
Should not complain about Lint/UnreachableLoop
Actual behavior
The loop runs twice, but Rubocop complains: "Lint/UnreachableLoop: This loop will have at most one iteration"
Steps to reproduce the problem
Run sample code
RuboCop version
Love all the work you're doing 👍
The text was updated successfully, but these errors were encountered: