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 an error when using changed_parameters by external library #10831

Commits on Jul 24, 2022

  1. Fix an error when using changed_parameters by external library

    This PR fixes the following error when using `changed_parameters` in obsoletion.yml
    by external library.
    
    ```console
    NoMethodError: undefined method `merge' for
    [{"cops"=>["Layout/SpaceAroundOperators", "Style/SpaceAroundOperators"],
    "parameters"=>"MultiSpaceAllowedForOperators", "reason"=>"If your
    intention was to allow extra spaces for alignment, please use `AllowFoy
    
              first.merge(second)
                   ^^^^^^
    /Users/koic/src/github.com/rubocop/rubocop-rails/lib/rubocop/rails/inject.rb:11:in `new'
    /Users/koic/src/github.com/rubocop/rubocop-rails/lib/rubocop/rails/inject.rb:11:in `defaults!'
    /Users/koic/src/github.com/rubocop/rubocop-rails/lib/rubocop-rails.rb:13:in `<top (required)>'
    ```
    koic committed Jul 24, 2022
    Copy the full SHA
    dd9c99e View commit details
    Browse the repository at this point in the history