Skip to content

Modernize RuboCop usage ✨#435

Open
larouxn wants to merge 1 commit intoShopify:mainfrom
larouxn:modernize_rubocop
Open

Modernize RuboCop usage ✨#435
larouxn wants to merge 1 commit intoShopify:mainfrom
larouxn:modernize_rubocop

Conversation

@larouxn
Copy link
Contributor

@larouxn larouxn commented Feb 18, 2026

What are you trying to accomplish?

Modernize the RuboCop usage via gem upgrades, plugins syntax, and offence corrections.

What approach did you choose and why?

As mentioned above:

  • Updated all rubocop gems to latest possible versions
  • Migrated .rubocop.yml to plugins syntax
  • Corrected various offences automatically and manually
    • In a few cases where the offence didn't make logical sense I disabled the cop inline
  • Upgrade ruby-lsp to latest to avoid the following cop errors popup
    • To be honest, we could probably remove this gem as one does not need it when using vscode 🤷‍♂️
Screenshot From 2026-02-18 11-44-28

For the gem upgrades:

bundle update rubocop rubocop-minitest rubocop-performance rubocop-rake rubocop-shopify

What should reviewers focus on?

Any concerns about the offence corrections?

The impact of these changes

The codebase will be in a more maintainable state going forward.

Testing

bundle exec rake

image

Checklist

  • I have added a CHANGELOG entry for this change (or determined that it isn't needed)

Determined not necessary as it's a developer facing change, not user facing.

@larouxn larouxn force-pushed the modernize_rubocop branch 3 times, most recently from e7c2b11 to 3ba22ab Compare February 24, 2026 19:12
- Update all rubocop gems to latest possible versions
- Migrate `.rubocop.yml` to `plugins` syntax
- Correct all offences auto and manual
- Bump ruby-lsp gem to avoid unrecognized cop errors
@larouxn larouxn force-pushed the modernize_rubocop branch from 3ba22ab to 291801c Compare March 11, 2026 02:49
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