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

[Feature Request] - enable all cops up to a specific version #10196

Closed
dorner opened this issue Oct 18, 2021 · 2 comments
Closed

[Feature Request] - enable all cops up to a specific version #10196

dorner opened this issue Oct 18, 2021 · 2 comments

Comments

@dorner
Copy link

dorner commented Oct 18, 2021

Is your feature request related to a problem? Please describe.

We have a shared gem in our organization that defines styles shared across our various repos. This gem pins the Rubocop version so that the configuration file is always accurate. These repos are running different versions of Ruby and Rails. Periodically, we need to go into the shared gem and update the Rubocop version, e.g. to support newer versions of Ruby. When this happens, we have two choices:

  1. Set NewCops to true. This will include every new cop whenever the Rubocop version is updated, regardless of whether we've looked at it and agreed we want it.
  2. Set NewCops to false and individually list out every single cop since 1.0 to be enabled.

Describe the solution you'd like

It would be great if we could say something like "enable all new cops up to version 1.10" once we've looked at those. Then we don't need to list out every single one of them for the foreseeable future, but we also won't be blindsided by new cops when updating the Rubocop version.

@dvandersluis
Copy link
Member

Please see #8249 and #8565.

@dorner
Copy link
Author

dorner commented Oct 18, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants