We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current behavior of the Symbol/WordArray cop's default style ("percent") is as follows:
# bad [:foo, :[]=] # bad (contains spaces) %w[foo\ bar baz\ quux] # good (allows [ ] chars) %i[foo \[\]=]
I think we should change this so that [ ] trigger the same special handling that space char does, and the preferred style here would be [:foo, :[]=]
[ ]
[:foo, :[]=]
The text was updated successfully, but these errors were encountered:
Makes sense to me. PR welcome!
Sorry, something went wrong.
80acfbd
Merge pull request #12037 from jasondoc3/consider_brackets_as_bad_for…
765ed7d
…_style_symbol_array [Fix #11802] Improve handling of [] and () with percent symbol arrays
@koic Awesome, thank you!
No branches or pull requests
The current behavior of the Symbol/WordArray cop's default style ("percent") is as follows:
I think we should change this so that
[ ]
trigger the same special handling that space char does, and the preferred style here would be[:foo, :[]=]
The text was updated successfully, but these errors were encountered: