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

False Negative in Style/IndentationWidth-Cop #1165

Closed
fonzerelly opened this issue Jun 23, 2014 · 4 comments
Closed

False Negative in Style/IndentationWidth-Cop #1165

fonzerelly opened this issue Jun 23, 2014 · 4 comments
Assignees

Comments

@fonzerelly
Copy link

The Style/IndendationWidth-Cop seems to have Problems in rescue clauses. When I write this code:

def my_func
  puts 'do something outside block'
  begin
    puts 'do something error prone'
  rescue
     puts 'wrongly intended error handling'
  end
end

I did not configure this cop yet and if I use wrong indentation in the begin-clause, rubocop informs be about that error. But it seems to oversee it in the rescueblock.
I use rubocop 0.23.0

@jonas054 jonas054 self-assigned this Jun 23, 2014
@jonas054
Copy link
Collaborator

I'll take a look.

@fonzerelly
Copy link
Author

Great - thanx a lot

@fonzerelly
Copy link
Author

Great - I will test as soon as I can

@fonzerelly
Copy link
Author

:)

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