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

Use Rubocop to enforce consistent collection methods #11144

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

zachmargolis
Copy link
Contributor

Based on an observation in another PR, I realized we were 99% consistent on #map over #collect, and that Rubocop could easily help us stay at 100% consistency

Basically: it discourages all of the #*ect methods (except #select, that's much clearer than #find_all)
Docs link

changelog: Internal, Source code, Update lint rules
@zachmargolis zachmargolis requested a review from a team August 26, 2024 15:20
@zachmargolis zachmargolis merged commit 36194dc into main Aug 26, 2024
2 checks passed
@zachmargolis zachmargolis deleted the margolis-collection-methods branch August 26, 2024 15:39
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.

2 participants