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

Update RuboCop rules: prefer alias_method #10716

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

zachmargolis
Copy link
Contributor

I was a little surprised to see alias instead of alias_method in our codebase. alias_method has more predictable behavior compared to alias. This updates our rules and corrects the codebase

Related: rubocop/ruby-style-guide#821 and the explainer blog post that it links

**Why**: alias_method has more predictable behavior compared
to alias

changelog: Internal, Source code, Update RuboCop lint rules
@zachmargolis zachmargolis requested a review from a team May 29, 2024 17:03
@zachmargolis zachmargolis merged commit 4de7ec2 into main May 29, 2024
2 checks passed
@zachmargolis zachmargolis deleted the margolis-alias-method branch May 29, 2024 17:42
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.

3 participants