Skip to content
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

Allow enabling departments when DisabledByDefault is true #4304

Merged

Conversation

jonas054
Copy link
Collaborator

When DisabledByDefault is true, only cops explicitly enabled in user configuration are run. This should work for departments too.

@jonas054 jonas054 force-pushed the enable_dept_when_disabled_by_default branch from 87e9729 to 3dd559d Compare April 23, 2017 11:36
@jonas054
Copy link
Collaborator Author

I just realized that I'm enabling all cops in the department, including the ones from disabled.yml. This is probably not what we want. I'll have to rework this.

@jonas054 jonas054 closed this Apr 23, 2017
@jonas054 jonas054 reopened this Apr 23, 2017
@jonas054 jonas054 force-pushed the enable_dept_when_disabled_by_default branch from 3dd559d to 3600caa Compare April 23, 2017 12:33
@jonas054
Copy link
Collaborator Author

There. I think it's all in order now.

When DisabledByDefault is true, only cops explicitly enabled
in user configuration are run. This should work for
departments too.
@jonas054 jonas054 force-pushed the enable_dept_when_disabled_by_default branch from 3600caa to a467d09 Compare April 23, 2017 13:33
@bbatsov bbatsov merged commit 4a4134c into rubocop:master Apr 23, 2017
@jonas054 jonas054 deleted the enable_dept_when_disabled_by_default branch April 24, 2017 04:07
koic added a commit to koic/rubocop that referenced this pull request Sep 26, 2024
Follow up rubocop#4304.

This PR tweaks the doc for `DisabledByDefault: true` in configuration.
bbatsov pushed a commit that referenced this pull request Sep 26, 2024
Follow up #4304.

This PR tweaks the doc for `DisabledByDefault: true` in configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants