-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Crash on empty else #3382
Comments
@jcoyne: Please try to highlight the code that causes this error. The only |
@Drenmi I have no idea if there's anything in my code that's causing this. |
@Drenmi according to the backtrace it's because this cop expects |
lumeet
added a commit
to lumeet/rubocop
that referenced
this issue
Oct 4, 2016
An `if-elsif-else` expression containing multiple elsifs does not crash when auto-correcting.
Neodelf
pushed a commit
to Neodelf/rubocop
that referenced
this issue
Oct 15, 2016
An `if-elsif-else` expression containing multiple elsifs does not crash when auto-correcting.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On this code: lawrencewoodman/mida@988cbe1
I ran
rubocop -a
and it makes a few changes, and then crashes.Expected behavior
It runs all the autocorrects.
Actual behavior
Crash:
Steps to reproduce the problem
This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.
RuboCop version
Include the output of
rubocop -V
:The text was updated successfully, but these errors were encountered: