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 in autocorrect of Style/IndentationWidth for if block #1500

Closed
andreaseger opened this issue Dec 15, 2014 · 0 comments
Closed
Assignees

Comments

@andreaseger
Copy link
Contributor

foo = if bar
  something
elsif baz
  other_thing
else
  fail
end

This will loop forever when calling rubocop -a --only Style/IndentationWidth foo.rb

Style/ElseAlignment fixes the loop i.e. when running rubocop -a --only Style/IndentationWidth,Style/ElseAlignment foo.rb

using version 0.28.0

@jonas054 jonas054 self-assigned this Dec 15, 2014
bbatsov added a commit that referenced this issue Dec 17, 2014
[Fix #1500] Remove double handling of elsif in IndentationWidth
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

2 participants