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

Enable NewCops up to a specific version of rubocop #11875

Open
dgollahon opened this issue May 13, 2023 · 1 comment
Open

Enable NewCops up to a specific version of rubocop #11875

dgollahon opened this issue May 13, 2023 · 1 comment

Comments

@dgollahon
Copy link
Contributor

dgollahon commented May 13, 2023

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

I don't prefer to use NewCops: enable because I like finding out what cops are new and configuring them to my liking. That said, I end up with a ton of configuration that is redundant with the default config just to enable all the cops.

Describe the solution you'd like

I would like to be able to do something like NewCops: 1.50.0 where it will have the default behavior of enable/disable up until that version and then show me warnings for just what's new. That way I have a smaller/simpler config but I still opt-in as new versions are released.

Describe alternatives you've considered

The only other alternative I'm aware of is manually maintaining this like I'm currently doing.

Additional context

I'm not sure how this should interact with plugins. It might need multiple version entries or some way to configure separately.

I thought there was an issue around this from a long time ago but I can't find it so sorry if this ends up being a duplicate.

@bbatsov
Copy link
Collaborator

bbatsov commented May 14, 2023

There's #8565 that got stuck for various reasons. Feel free to revive it.

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