Skip to content

Conversation

@r7kamura
Copy link

@r7kamura r7kamura commented Jan 7, 2026

In order to use standard gem in ruby 4.0, I want to make it possible to use rubocop 1.82.0 or higher, which supports ruby 4.0. Therefore, following past conventions, I have proposed upgrading the rubocop version here.

I referred to the following PR, as it seems to be where the previous change was implemented.

While ~> 1.82.0 would have been sufficient, the latest rubocop version currently released is 1.82.1. Since previous version updates seem to have been based on setting the requirement to the latest version available at the time, I have set it to ~> 1.82.1 for this instance.

FYI: It looks like there's another related PR:

It appeared that this Dependabot PR was causing CI to fail because new Style/ModuleMemberExistenceCheck cop was added in version 1.82.0, so I have included the necessary fix in this PR. Following past conventions, I simply disabled it this time.

@ryansch
Copy link
Contributor

ryansch commented Jan 9, 2026

I think this also needs to add config for the missing rubies. I've spiked that here: main...detaso:standard:ruby-4

@r7kamura
Copy link
Author

r7kamura commented Jan 9, 2026

Yes, I agree. Thanks for adding that 👍
In this pull request, I'm not aiming to complete everything up to Ruby 4.0 compatibility; instead, I'm focusing specifically on updating RuboCop as a single small unit of work.

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.

Ruby 4.0 Support via rubocop v1.82.0 or newer

2 participants