You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No error is raised by Style/HashEachMethods. There is no such method each_value as it's not a Hash.
Actual behavior
dates.rb:56:59: C: [Correctable] Style/HashEachMethods: Use each_value instead of values.each.
::ApplicationRecord.connection.execute(build_sql).values.each do |field|
…ethods`
Fixesrubocop#9839.
This PR adds `AllowedReceivers` option for `Style/HashEachMethods`.
`Style/HashEachMethods` cop is already marked as unsafe.
This PR can use allow list to rule out false positives.
Fixes#9839.
This PR adds `AllowedReceivers` option for `Style/HashEachMethods`.
`Style/HashEachMethods` cop is already marked as unsafe.
This PR can use allow list to rule out false positives.
I have code like this:
Expected behavior
No error is raised by Style/HashEachMethods. There is no such method
each_value
as it's not a Hash.Actual behavior
Steps to reproduce the problem
Run RuboCop on the code snippet.
RuboCop version
The text was updated successfully, but these errors were encountered: