Skip to content

Fixes Rubocop require/plugin warning#6783

Open
stefannibrasil wants to merge 1 commit intorubyforgood:mainfrom
hexdevs:sb-fix-rubocop-warning-6782
Open

Fixes Rubocop require/plugin warning#6783
stefannibrasil wants to merge 1 commit intorubyforgood:mainfrom
hexdevs:sb-fix-rubocop-warning-6782

Conversation

@stefannibrasil
Copy link
Contributor

@stefannibrasil stefannibrasil commented Mar 16, 2026

What github issue is this PR for, if any?

Resolves #6782

What changed, and why?

When running rubocop, this warning is printed:

 rubocop-factory_bot extension supports plugin, specify `plugins: rubocop-factory_bot` instead of `require: rubocop-factory_bot` in /home/runner/work/casa/casa/.rubocop.yml.
For more information, see https://docs.rubocop.org/rubocop/plugin_migration_guide.html.

To fix it, we need to add that library as a plugin: https://docs.rubocop.org/rubocop/latest/plugin_migration_guide.html#for-plugin-users

How is this tested?

CI before: https://github.com/rubyforgood/casa/actions/runs/23155851553/job/67270244414

CI after: https://github.com/rubyforgood/casa/actions/runs/23156788730/job/67273625209

When running rubocop, this warning is printed:

 rubocop-factory_bot extension supports plugin, specify `plugins: rubocop-factory_bot` instead of `require: rubocop-factory_bot` in /home/runner/work/casa/casa/.rubocop.yml.
For more information, see https://docs.rubocop.org/rubocop/plugin_migration_guide.html.

To fix it, we need to add that library as a plugin: https://docs.rubocop.org/rubocop/latest/plugin_migration_guide.html#for-plugin-users
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.

Rubocop deprecation warning

1 participant