Skip to content

Crash in version 2.21.2 (uninitialized constant RuboCop::Cop::Rails::RedundantActiveRecordAllMethod::AllowedReceivers) #1143

@Zarthus

Description

@Zarthus

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy