forked from rubocop/rubocop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR prevents the following build error: ```console NoMethodError: undefined method `cop_name' for nil # ./lib/rubocop/cop/badge.rb:52:in `match?' # ./lib/rubocop/cop/registry.rb:300:in `resolve_badge' # ./vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.28.3/lib/rubocop-rspec_rails.rb:30:in `qualified_cop_name' ``` https://github.com/rubocop/rubocop/actions/runs/8656558784/job/23737409762 This build error is due to a monkey patch in rubocop-rails_rails: rubocop/rubocop-rspec_rails#14 The monkey patch in rubocop-rspec_rails should also be fixed, but this patch prevents RuboCop from failing due to dependencies. RuboCop does not depend on Rails, so the ideal solution would be to remove the dependency on rubocop-rspec_rails gem. However, this is not possible currently because rubocop-rspec is still dependent on it.
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters