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 incorrect autocorrect for hash transform methods #7903

Merged

Commits on Apr 24, 2020

  1. Fix an incorrect autocorrect for hash transform methods

    Follow up to rubocop/rubocop-rails#239.
    
    This PR fixes an incorrect autocorrect for `Style/HashTransformKeys` and
    `Style/HashTransformValues` cops when line break before `to_h` method.
    
    In the future, duplicate code in RuboCop Rails may be removed,
    making it dependent on RuboCop core code. It centralizes the resolution
    of problems.
    
    Co-authored-by: Diogo Osório <diogo.osorio@marleyspoon.com>
    koic and Diogo Osório committed Apr 24, 2020
    Copy the full SHA
    41eae31 View commit details
    Browse the repository at this point in the history