File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Fix a ` NameError ` by Cross-Referencing. ([ @ydah ] )
6
6
- 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 ] )
7
8
8
9
## 2.28.1 (2024-03-29)
9
10
Original file line number Diff line number Diff line change 16
16
17
17
project_root = File . join ( __dir__ , '..' )
18
18
RuboCop ::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
+ if name == 'RSpec/Rails/HttpStatus'
28
+ badge = Badge . parse ( name )
29
+ return resolve_badge ( badge , qualify_badge ( badge ) . first , path )
30
+ end
31
+
32
+ super
33
+ end
34
+ end )
35
+ end
36
+ end
37
+ end
You can’t perform that action at this time.
0 commit comments