Skip to content
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

WordArray should enforce bracket style for strings that don't match WordRegex #9962

Closed
rickselby opened this issue Jul 30, 2021 · 1 comment · Fixed by #9981
Closed

WordArray should enforce bracket style for strings that don't match WordRegex #9962

rickselby opened this issue Jul 30, 2021 · 1 comment · Fixed by #9981

Comments

@rickselby
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Given that WordArray won't suggest changing ['string with space', 'string'] to %w[string\ with\ space string], should it suggest changing %w[string\ with\ space string] to ['string with space', 'string']?

Describe the solution you'd like

WordArray should enforce bracket style for arrays that contain strings that don't match WordRegex

@bbatsov
Copy link
Collaborator

bbatsov commented Jul 30, 2021

Sounds reasonable to me. I guess we never did this, as it's extremely uncommon to come across such code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants