Skip to content

Conversation

@GrantBirki
Copy link
Contributor

resolves: #258

Copilot AI review requested due to automatic review settings February 26, 2025 20:50
@GrantBirki GrantBirki requested a review from a team as a code owner February 26, 2025 20:50
Copy link

Copilot AI left a 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

@GrantBirki
Copy link
Contributor Author

A new release should probably be cut to account for these changes

Copy link
Member

@issyl0 issyl0 left a 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.)

@GrantBirki
Copy link
Contributor Author

GrantBirki commented Feb 26, 2025

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.

GrantBirki and others added 3 commits February 26, 2025 23:13
@GrantBirki GrantBirki requested a review from issyl0 February 27, 2025 07:15
Copy link
Member

@issyl0 issyl0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@issyl0 issyl0 merged commit f3f697d into main Feb 27, 2025
10 checks passed
@issyl0 issyl0 deleted the use-rubocop-plugins branch February 27, 2025 09:57
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.

use plugins instead of require

4 participants