File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 44
55- Fix a ` NameError ` by Cross-Referencing. ([ @ydah ] )
66- Fix an error for ` RSpecRails/HttpStatus ` when no rack gem is loaded with rubocop-rspec. ([ @ydah ] )
7+ - Fix an error for unrecognized cop or department ` RSpecRails/HttpStatus ` when also using rubocop-rails. ([ @ydah ] )
78
89## 2.28.1 (2024-03-29)
910
Original file line number Diff line number Diff line change 1616
1717project_root = File . join ( __dir__ , '..' )
1818RuboCop ::ConfigLoader . inject_defaults! ( project_root )
19+
20+ # FIXME: This is a workaround for the following issue:
21+ # https://github.com/rubocop/rubocop-rspec_rails/issues/8
22+ module RuboCop
23+ module Cop
24+ class AmbiguousCopName # rubocop:disable Style/Documentation
25+ prepend ( Module . new do
26+ def qualified_cop_name ( name , path , warn : true )
27+ return super unless name == 'RSpec/Rails/HttpStatus'
28+
29+ badge = Badge . parse ( name )
30+ resolve_badge ( badge , qualify_badge ( badge ) . first , path )
31+ end
32+ end )
33+ end
34+ end
35+ end
You can’t perform that action at this time.
0 commit comments