-
-
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
Doesn't remove space from %w array #3058
Comments
I think the best solution is to add a new cop for space in |
@jonas054: Do you think it would be acceptable with a single cop for both types of word array ( Also, do we want to include a configuration option to enforce spaces? I.e.:
|
Yes, that would be acceptable IMO. And let's only enforce "no space", and maybe add the configuration option later if there's a demand. |
Add `Style/SpaceInsideArrayPercentLiteral` and `Style/SpaceInsidePercentLiteralDelimiters`
…op#3214) Add `Style/SpaceInsideArrayPercentLiteral` and `Style/SpaceInsidePercentLiteralDelimiters`
for an array defined like
%w( 2016-04-01 2016-03-01 2016-02-01 2016-01-01)
Rubocop won't fix the initial space (or add a space at the end)
Using latest rubocop
The text was updated successfully, but these errors were encountered: