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
Given this code:
def foo [1, 2].count(1) end
When you run rubocop 0.34.2 yields:
C: Performance/Size: Use size instead of count.
When #count has an argument, shouldn't give this advice? Thanks!
#count
The text was updated successfully, but these errors were encountered:
You are correct. This is a bug. I will have a fix for it shortly
Sorry, something went wrong.
Closed. See #2333. Thank you @rrosenblum 👍
[Fix rubocop#2331] Do not register an offense for count with an argum…
bb5c09e
…ent in Performance/Size
Merge pull request #2333 from rrosenblum/count_with_arg
8ad89fe
[Fix #2331] Do not register an offense for count with an argument in Performance/Size
No branches or pull requests
Given this code:
When you run rubocop 0.34.2 yields:
When
#count
has an argument, shouldn't give this advice? Thanks!The text was updated successfully, but these errors were encountered: