-
Notifications
You must be signed in to change notification settings - Fork 15
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
👎 on Rails/PluckId #31
Comments
Just enabled the default standard rules (and by extension, I think rubocop having this disabled by default in their default rules is a good precedent to follow for this one. |
If a rule can't be applied consistently, let's turn it off. PR? |
Prepared PR: #35 |
This cop was originally disabled with the original rubocop import: standardrb@71e48d5#diff-da3213a24b350fa386ff3bab0d6b239112408c3fe4f986cbd9d5236f7e0b61e4R458-R463 It was subsequently enabled during a mass enable commit: standardrb@24bc50f#diff-da3213a24b350fa386ff3bab0d6b239112408c3fe4f986cbd9d5236f7e0b61e4R248-R249 As discussed on this issue, the cop is unsafe by default and frequently gets false positives: rubocop/rubocop-rails#301 It is disabled by default in most recent rubocop release, for same reasons: https://github.com/rubocop/rubocop-rails/blob/v2.25.0/config/default.yml#L746-L751 Discussion of why to disable on: standardrb#31
With #36 merged, this can be closed. |
I found Rails/PluckId could not recognise the cases when
pluck
is used for Enumerable.https://apidock.com/rails/Enumerable/pluck
Example of the code:
The text was updated successfully, but these errors were encountered: