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

Commits on Jul 1, 2021

  1. [Fix rubocop#9891] Fix --auto-gen-config bug for Style/HashSyntax

    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 committed Jul 1, 2021
    Copy the full SHA
    3d57dc5 View commit details
    Browse the repository at this point in the history
  2. Make auto_gen_config_spec.rb more stable

    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 committed Jul 1, 2021
    Copy the full SHA
    98d229f View commit details
    Browse the repository at this point in the history