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

Introduce lhs and rhs aliases to assignment nodes for consistency. #326

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

dvandersluis
Copy link
Member

The methods are already available for masgn, so this will allow all assignment node types to have the same two methods so that they can be dealt with in unison. Once released I've found some places in rubocop where more destructuring can be simplified.

Follows rubocop/rubocop#13413 (comment)

I didn't add tests for these aliases but am happy to if desired!

The methods are already available for `masgn`, so this will allow all assignment node types to have the same two methods so that they can be dealt with in unison.
@marcandre marcandre merged commit 4816b55 into rubocop:master Nov 4, 2024
20 checks passed
@marcandre
Copy link
Contributor

Looks good, thank you.

Released as 1.34.0.

Minor thing: If you think about it for upcoming PRs, please make a Changelog entry...

@dvandersluis
Copy link
Member Author

dvandersluis commented Nov 4, 2024

Sorry @marcandre! I'll add a changelog for this right now. Never mind, I see you did it, thank you!

@dvandersluis dvandersluis deleted the asgn-lhs-rhs branch November 4, 2024 16:40
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