-
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
Disable Rails/PluckId
cop by default
#36
Conversation
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
@mjankowski if you have a moment -- could you scan thru the rubocop-rails to make sure we're not enabling anything that's disabled-by-default over there? |
Sure thing, quick summary here. Here are the cops which have
That’s more than I expected that are disabled in the rubocop-rails default config, but enabled in standard-rails. Let me know if any of the following would be useful:
|
Originally discussed here - #36 (comment) I did a little more digging through the cops referenced in that previous comment RE: the cops which are disabled by default in rubocop-rails but current enabled in standard-rails. Summary...
|
Wow thanks @mjankowski! I'd support disabling all these but |
Cool - I'll do individual PRs and try to include full rationale/context. |
From that original list, these have all been disabled in merged PRs -- There's also an open PR to disable We decided to leave That leaves |
I agree on |
This cop was originally disabled with the original rubocop import: 71e48d5#diff-da3213a24b350fa386ff3bab0d6b239112408c3fe4f986cbd9d5236f7e0b61e4R458-R463
It was subsequently enabled during a mass enable commit: 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: #31