-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Ruby 3.3
#205
Support for Ruby 3.3
#205
Conversation
error from said version of rubocop: RuboCop::ValidationError: Property AutoCorrect of cop FactoryBot/CreateList is supposed to be a boolean and contextual is not. version `1.61` of `rubocop` fixes that issue, allowing all tests to pass. found that solution in this issue: rubocop/rubocop-rspec#1916 from rubocop-rspec, where they were experiencing the same error and updating rubocop to 1.61, solved the issue. However they don't appear to know the culprit of this.
Warning: obsolete parameter `IgnoredMethods` (for `Style/BlockDelimiters`) found in config/rubocop-style.yml `IgnoredMethods` has been renamed to `AllowedMethods` and/or `AllowedPatterns`. parameter `IgnoredMethods` was deprecated in version `1.33.0` of `rubocop` in favor of `AllowedMethods`. See: https://github.com/rubocop/rubocop/blob/master/relnotes/v1.33.0.md?plain=1#L19
It looks like the new workflow for 3.3 is failing because the ruby/.github/workflows/rspec_rubocop.yml Line 34 in 3e84360
|
@Umofomia, just updated the setup-ruby snapshot to |
I'm fine with using |
I see it failed for |
It looks like the updates to the dependencies now require Ruby 2.7, so the Ruby 2.6 tests are now failing. We can probably drop support for Ruby 2.6 anyway going forward, so go ahead and remove the 2.6 tests from the matrix: ruby/.github/workflows/rspec_rubocop.yml Lines 21 to 22 in bdfad19
I would also update the line here to indicate that the gem itself only supports 2.7 and higher:
|
83792bd
to
04943b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for making the change to add support for Ruby 3.3 to the rubocop-airbnb
gem.
04943b8
to
c200973
Compare
Also require ruby 2.7 or higher
c200973
to
5a11e1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has:
- increased the minimum rubocop version to
~> 1.61
(from~> 1.32.0
) - dropped support for ruby 2.6
- added support for ruby 3.3
This has not:
- changed any of the rubocop rule configurations
Thank you!
As part of the PR for adding support for Ruby 3.3 (airbnb#205) we bumped the `rubocop-rspec` dependency to `~> 2.26`, which depends on `rubocop-capybara` `~> 2.17` and `rubocop-factory_bot` `~> 2.22`. On those versions, the `RSpec` namespace was removed from their cops hence a warning was being logged when running `rubocop` with the last version of this gem. Related PRs: - rubocop/rubocop-factory_bot@812771e - rubocop/rubocop-capybara@e36f304
Add support for
Ruby 3.3
Found that
rubocop-airbnb
requiresrubocop 1.32.0
which only supports up toRuby 3.2
, See here.This is the commit that adds support for
3.3
starting from version1.46.0
.Summary
rubocop
version to supportRuby 3.3
rubocop
version to be>= 1.61.0
Ruby 3.3
to the CI matrixTest