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

Clean up HappyMapper::ClassMethods#find_nodes_to_parse #242

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

mvz
Copy link
Owner

@mvz mvz commented Nov 9, 2024

This complex code triggered a RuboCop offense, and going by the specced behavior, could be made a lot simpler.

The value of options[:name] was never actually used to find nodes, and also makes less sense because it is used to set the attribute name in the containing class.

This complex code triggered a RuboCop offense, and going by the specced
behavior, could be made a lot simpler.

The value of options[:name] was never actually used to find nodes, and
also makes less sense because it is used to set the attribute name in
the containing class.
@mvz mvz enabled auto-merge November 9, 2024 11:42
@mvz mvz disabled auto-merge November 10, 2024 09:10
@mvz mvz merged commit 37b2f6b into master Nov 10, 2024
6 checks passed
@mvz mvz deleted the clean-up-find-nodes-to-parse branch November 10, 2024 09:10
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.

1 participant