Skip to content
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

Infinite loop with Layout/EndAlignment #697

Open
Cerber-Ursi opened this issue Mar 9, 2025 · 0 comments
Open

Infinite loop with Layout/EndAlignment #697

Cerber-Ursi opened this issue Mar 9, 2025 · 0 comments

Comments

@Cerber-Ursi
Copy link

I've tried the following code:

class Test
  def test
    42 + (if @x == 0
            1
          else
            2
    end)
  end
end

Rubocop 1.73 on this code reports a couple of errors, but finishes successfully. StandardRB, however, fails with the infinite loop from Layout/EndAlignment rule. Looks like this is something that was fixed in newer Rubocop version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant