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 false positives for Style/HashEachMethods #12642

Commits on Jan 23, 2024

  1. Fix false positives for Style/HashEachMethods

    Fixes rubocop#12534 (comment).
    
    This PR fixes false positives for `Style/HashEachMethods`
    when using array converter method.
    
    Hash object converted to an Array cannot process `Hash#each_key` and `Hash#each_value`.
    Therefore, if methods that convert to an Array are used before `each`, they should be ignored.
    koic committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    688d8a4 View commit details
    Browse the repository at this point in the history