- Notifications
You must be signed in to change notification settings - Fork23
ReplaceDisabledByDefault
with disabling each cop#26
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
IMHO, this seems like a reasonable change in the sense that it only affects the minimal set of cops targeted by It also appears to provide a solution to the issue raised in#14. While listing departments may introduce some redundancy, to my knowledge, there is currently no better method for specifying them. |
Uh oh!
There was an error while loading.Please reload this page.
b8fb7b1
to5a5b628
CompareI'm not sure if this proposal will be accepted, but for now, squashing the commits into one would be appropriate. |
When `DisabledByDefault` is `true`, all cops in the default configuration.This means that all extension cops are disabled by default.The extensions are outside the scope of omakase, and you may not realize that it has been disabled.
5a5b628
to1210690
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Agreed. Let's try it.
@jeremy As mentioned inrubocop/rubocop#13727, this configuration seems to improve usability in certain cases. Since several changes have been included after rubocop-rails-omakase 1.0.0, would it be possible to release a new version if it’s convenient? |
Uh oh!
There was an error while loading.Please reload this page.
Summary
When
DisabledByDefault
istrue
, all cops are disabled in the default configuration. This means that all extension cops are disabled by default as well.The extensions are outside the scope of omakase, anduser may not realize that it has been disabled.
Workaround
The following is workaround, but I don't want to write them in my configuration.