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

[Fix #9891] Fix --auto-gen-config bug for Style/HashSyntax #9901

Merged
merged 2 commits into from Jul 5, 2021

Conversation

jonas054
Copy link
Collaborator

@jonas054 jonas054 commented Jul 1, 2021

We must call ruby19_check() even if there are no hash rockets in the inspected node, to give it a chance to register that the correct style has been detected. The generation of .rubocop_todo.yml depends on it.

We must call ruby19_check() even if there are no hash rockets in the
inspected node, to give it a chance to register that the correct style
has been detected. The generation of .rubocop_todo.yml depends on it.
@jonas054 jonas054 requested a review from Drenmi July 1, 2021 19:10
The previous commit caused failures in this file for some ruby versions in the
CI builds. I have not been able to reproduce locally, but I suspect that since
DisabledConfigFormatter has two singleton variables that keep their values
between test cases, we need to clear both of them.
@jonas054 jonas054 requested review from koic and removed request for Drenmi July 5, 2021 07:00
@koic koic merged commit 61dc5da into rubocop:master Jul 5, 2021
@koic
Copy link
Member

koic commented Jul 5, 2021

Thanks!

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.

None yet

2 participants