-
-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Expected behavior
No error/crash
Actual behavior
When upgrading from rubocop v2.21.1 to v2.21.2 we run into an error:
$ bundle exec rubocop
uninitialized constant RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::AllowedReceivers
Did you mean? RuboCop::Cop::AllowedIdentifiers
Describe here what actually happened.
Steps to reproduce the problem
I have created a MVP repository: https://gitlab.com/zarthus/reproduce-rubocop-issue (failing logs: https://gitlab.com/zarthus/reproduce-rubocop-issue/-/jobs/5233107356)
# Gemfile
gem "gitlab-styles", '= 10.1.0'
gem "rubocop-rails", "= 2.21.2"
# .rubocop.yml
inherit_gem:
gitlab-styles:
- rubocop-default.yml
# shell
bundle exec rubocop -V
RuboCop version
$ bundle exec rubocop -V
uninitialized constant RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::AllowedReceivers
Did you mean? RuboCop::Cop::AllowedIdentifiers
Forcing a downgrade, it works:
$ bundle update rubocop rubocop-graphql rubocop-performance rubocop-rails rubocop-factory_bot rubocop-performance rubocop-rspec
....
Bundle updated!
$ bundle exec rubocop -V
1.50.2 (using Parser 3.2.2.4, rubocop-ast 1.29.0, running on ruby 3.0.5) [x86_64-linux]
- rubocop-graphql 0.19.0
- rubocop-performance 1.19.1
- rubocop-rails 2.21.1
- rubocop-rspec 2.24.1
Reference material
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working