-
-
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
Empty curly braces should not contain a space #594
Comments
Yeah, I consider this a bug as well. @jonas054 Will you have a look at this? |
Space again. I'm on it! |
It's a little less straight-forward than I imagined. There are some choices to make. We could take the easy way out and just allow empty block braces with or without space inside. This is how But that's not how we usually do things around here. We tend to enforce one style and make it configurable if needed. I've been working on a solution along those lines, adding to @bbatsov @yujinakayama Your thoughts? |
@jonas054 I'm OK with that change. The impact on users would be minimal and since we're pre-1.0 we're allowed to do things like this. |
Thanks. Which release/milestone will this fix appear in? |
In will appear in 0.15.0, which I hope to release around midweek. |
Perfect. Thanks very much! |
I am using RuboCop 0.14.1 and it is objecting to the way RubyMine formats empty curly braces. I raised bug http://youtrack.jetbrains.com/issue/RUBY-14475 against RubyMine, but they don't intend to fix it because they believe it is working against the (implicit) spec. See http://youtrack.jetbrains.com/issue/RUBY-12659 for their rationale.
The bottom line is that:
https://github.com/bbatsov/ruby-style-guide
contains formatting which is objected to by RuboCop.
Here's an example cop message:
The text was updated successfully, but these errors were encountered: