Skip to content

Update RuboCop rules: prefer alias_method#10716

Merged
zachmargolis merged 1 commit intomainfrom
margolis-alias-method
May 29, 2024
Merged

Update RuboCop rules: prefer alias_method#10716
zachmargolis merged 1 commit intomainfrom
margolis-alias-method

Conversation

@zachmargolis
Copy link
Copy Markdown
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
@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