Rubocop: [Ruby 2.5] Layout/RescueEnsureAlignment issue

Created on 31 Oct 2018  路  1Comment  路  Source: rubocop-hq/rubocop

馃憢 ,

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
bug

Most helpful comment

I will take a look at this.

>All comments

I will take a look at this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kirrmann picture kirrmann  路  3Comments

mlammers picture mlammers  路  3Comments

david942j picture david942j  路  3Comments

bbugh picture bbugh  路  3Comments

bquorning picture bquorning  路  3Comments