-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Performance/Size false positive: Array#count with Symbol#to_proc block #1935
Comments
m1foley
pushed a commit
to m1foley/rubocop
that referenced
this issue
Jun 3, 2015
This check should pass when passing a block to #count, but Symbol#to_proc blocks were not being allowed like they should.
m1foley
pushed a commit
to m1foley/rubocop
that referenced
this issue
Jun 3, 2015
This check should pass when passing a block to #count, but Symbol#to_proc blocks were not being allowed like they should.
m1foley
pushed a commit
to m1foley/rubocop
that referenced
this issue
Jun 3, 2015
This check should pass when passing a block to #count, but Symbol#to_proc blocks were not being allowed like they should.
m1foley
pushed a commit
to m1foley/rubocop
that referenced
this issue
Jun 4, 2015
This check should pass when passing a block to #count, but Symbol#to_proc blocks were not being allowed like they should.
m1foley
pushed a commit
to m1foley/rubocop
that referenced
this issue
Jun 5, 2015
This check should pass when passing a block to #count, but Symbol#to_proc blocks were not being allowed like they should.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Passes:
[1, 2, 3].count { |x| x.even? }
Fails:
[1, 2, 3].count(&:even?)
The text was updated successfully, but these errors were encountered: