Skip to content

Clean up RuboCop config deprecation warnings#652

Closed
wilfison wants to merge 2 commits into
sds:mainfrom
wilfison:fix/rubocop
Closed

Clean up RuboCop config deprecation warnings#652
wilfison wants to merge 2 commits into
sds:mainfrom
wilfison:fix/rubocop

Conversation

@wilfison

Copy link
Copy Markdown
Contributor

Two small .rubocop.yml updates that remove deprecation warnings printed on every RuboCop run.

1. Use plugins instead of require for rubocop-performance

Loads rubocop-performance via the plugins: key instead of require:.

-require:
+plugins:
   - rubocop-performance

Since RuboCop 1.72, extensions that support the plugin API (such as rubocop-performance) are expected to be declared under plugins:. Keeping it under require: prints:

rubocop-performance extension supports plugin, specify `plugins: rubocop-performance`
instead of `require: rubocop-performance` in .rubocop.yml.

2. Rename Naming/PredicateName to Naming/PredicatePrefix

Updates the cop name to its current spelling.

-Naming/PredicateName:
+Naming/PredicatePrefix:
   Enabled: false

The cop was renamed in RuboCop, so the old name triggers:

Warning: The `Naming/PredicateName` cop has been renamed to `Naming/PredicatePrefix`.
(obsolete configuration found in .rubocop.yml, please update it)

Scope

Both changes only affect the development environment.

@wilfison wilfison closed this Jun 19, 2026
@wilfison wilfison deleted the fix/rubocop branch June 19, 2026 10:58
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.

1 participant