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

Accept bracketed arrays within 2d arrays containing subarrays with complex content for Style/WordArray cop #11334

Merged
merged 1 commit into from Dec 31, 2022

Conversation

fatkodima
Copy link
Contributor

Fixes #10194.

Should we check for more than 2 dimensions?

@bbatsov
Copy link
Collaborator

bbatsov commented Dec 31, 2022

Should we check for more than 2 dimensions?

Ideally this should work at any depth, although obviously arrays with more dimensions are less common. I'll merge this as a clear improvement. Might be worth adding an example to the docs as well at some point.

@bbatsov bbatsov merged commit 1dfcd19 into rubocop:master Dec 31, 2022
@fatkodima fatkodima deleted the word_array-multidimensional branch December 31, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Style/WordArray cop would be more inteligent in case of multidimensional array
2 participants