-
Notifications
You must be signed in to change notification settings - Fork 160
use plugins
block for rubocop-performance and rubocop-rails
#259
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
Conversation
There 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.
PR Overview
This PR updates the RuboCop configuration files to use the new "plugins" block for rubocop-performance and rubocop-rails, streamlining the configuration according to the updated guidelines.
- Adds a "plugins" block in config/rails.yml for rubocop-rails.
- Adds a "plugins" block in config/default.yml for rubocop-performance.
Reviewed Changes
File | Description |
---|---|
config/rails.yml | Added "plugins" block to include rubocop-rails |
config/default.yml | Added "plugins" block to include rubocop-performance |
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more
A new release should probably be cut to account for these changes |
There 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.
The docs for plugins say that it's only supported as of version 1.72. We should bump the required RuboCop version to account for this feature, if we ship it in default configurations, or otherwise make it optional? (And do a new release saying that this is breaking for apps that haven't upgraded to 1.72 yet.)
For development, this project is already at rubocop 1.72.2 it appears. I think bumping the required version of rubocop to 1.72 and publishing a new release for this Gem might be ideal. Just my opinion though. |
Co-authored-by: Koichi ITO <[email protected]>
There 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.
Thanks again!
resolves: #258