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
Error in Style/CollectionCompact #11104
Labels
Comments
Can you provide reproduction code for this issue? |
Yes # foo.rb
class Foo
def self.sanitize params
params.reject { |_k, v| v.nil? }
end
end
|
8 tasks
I can reproduce it and opened #11106. Thank you! |
koic
added a commit
to koic/rubocop
that referenced
this issue
Oct 22, 2022
Fixes rubocop#11104. This PR fixes an error for `Style/CollectionCompact` when using `reject` method and receiver is a variable.
bbatsov
pushed a commit
that referenced
this issue
Oct 22, 2022
Fixes #11104. This PR fixes an error for `Style/CollectionCompact` when using `reject` method and receiver is a variable.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The debug log says
The text was updated successfully, but these errors were encountered: