-
-
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
undefined method `empty?' for nil:NilClass in progress_formatter.rb #1642
Comments
I see this behavior with master on OS X, Ruby 2.1.5. Running with 0.27.1 (which I happen to have installed), I see a different error:
It seems as though you have to quote a string like |
It took some digging around, but I think I found it: The cc @jonas054 |
And yes, the SyntaxError exception is caused by AllCops:
Exclude:
- "**/*_old.rb" |
@bquorning Exactly. We get a second exception inside the I don't have time to fix this myself, going on vacation tomorrow, so I'd be grateful if someone could submit a PR. |
@bquorning Nice! I see that you and @bbatsov are working out the details. Looks good! |
[Fix #1642] Raise right exception on bad config
There seems to be a bug in Rubocop 0.29.0. I am running it on Arch Linux 64-bit with Ruby 2.2.0.
To reproduce the bug, I made a new directory that just contains a
.rubocop.yml
file with the following contents:Then I ran
rubocop
(with no options) at the command line and it produced the following output:The text was updated successfully, but these errors were encountered: