Navigation Menu

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macro? #120

Merged
merged 1 commit into from Sep 25, 2020
Merged

Fix macro? #120

merged 1 commit into from Sep 25, 2020

Conversation

marcandre
Copy link
Contributor

@marcandre marcandre commented Sep 24, 2020

This PR fixes rubocop/rubocop#8765

There were many issues with how macro_scope?:

  • recursion was badly written, so many cases were not handled well
  • if did not distinguish if in the conditions part or on of the bodies

It also introduces Node#parent?

Builds on #119

I'll do a final review when I'm less sleepy 馃槄

@marcandre marcandre force-pushed the fix_macro_p branch 3 times, most recently from b434fb8 to 39a0929 Compare September 24, 2020 20:41
@marcandre
Copy link
Contributor Author

marcandre commented Sep 24, 2020

Blocked by rubocop/rubocop#8789, rubocop/rubocop#8791 and #123 馃挦

Bump minimum compatibility with main gem.
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.

Style/MethodCallWithArgsParentheses should ignore core functions
1 participant