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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ruby 2.5] Layout/RescueEnsureAlignment issue #6433

Closed
Edouard-chin opened this issue Oct 31, 2018 · 1 comment
Closed

[Ruby 2.5] Layout/RescueEnsureAlignment issue #6433

Edouard-chin opened this issue Oct 31, 2018 · 1 comment
Labels

Comments

@Edouard-chin
Copy link
Contributor

馃憢 ,

Not sure if this is a rubocop bug or just the way it should be on 2.5 now that begin statement are superfluous inside block:

something = foo do
  puts 'bar'
rescue => e
  puts e
end

# rescue not aligned with foo

Cop is passing with this syntax, but it's not really pretty .

something = foo do
  puts 'bar'
            rescue => e
              puts e
end
@gmcgibbon
Copy link
Contributor

I will take a look at this.

@Drenmi Drenmi added the bug label Nov 1, 2018
gmcgibbon added a commit to gmcgibbon/rubocop that referenced this issue Nov 29, 2018
Fix Ruby 2.5 Layout/RescueEnsureAlignment error on assigned blocks.
bbatsov pushed a commit that referenced this issue Dec 4, 2018
Fix Ruby 2.5 Layout/RescueEnsureAlignment error on assigned blocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants