You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the PercentLiteral mixin doesn't care for delimiter configuration at all at this point. Fixing it will likely also impact Style/WordArray (hopefully for the better.) 🙂
…y` cop
See rubocop#4199
If `PreferredDelimiters` option is specified, `Style/SymbolArray` and `Style/WordArray` cops auto correct to not expected code.
The option is ignored.
For example
```ruby
# PreferredDelimiters is []
# Before
[:a, :b, :c]
['a', 'b', 'c']
# Corrected
%i(a b c) # Not %i[]
%w(a b c) # Not %w[]
```
This change fixes the problem.
Will autocorrect
[:foo, :bar]
to%i(foo bar)
.The text was updated successfully, but these errors were encountered: