We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, Style/HashEachMethods detects regular blocks and numblocks, but ignores &blocks:
Style/HashEachMethods
h.keys.each { ... } # Style/HashEachMethods suggests: h.each_key { ... } ✔️ h.keys.each(&:foo) # Style/HashEachMethods ignores ❌
Ideally, it should recommend:
h.each_key(&:foo)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#11139] Fix a false negative for Style/HashEachMethods …
fc95138
…when using each with a symbol proc argument Fix: rubocop#11139
Merge pull request #11140 from ydah/fix_hash_each_methods
43bf78e
[Fix #11139] Fix a false negative for `Style/HashEachMethods` when using each with a symbol proc argument
Successfully merging a pull request may close this issue.
Currently,
Style/HashEachMethods
detects regular blocks and numblocks, but ignores &blocks:Ideally, it should recommend:
The text was updated successfully, but these errors were encountered: