Skip to content

Commit 447c086

Browse files
committed
Ignore offense with the right cop
The offense generated has been change from `Lint/HandleExceptions` to `Lint/SuppressedException`. lib/rubocop/cop/rspec_cops.rb:12:1: W: Lint/SuppressedException: Do not suppress exceptions. rescue LoadError # rubocop:disable Lint/HandleExceptions ^^^^^^^^^^^^^^^^ lib/rubocop/cop/rspec_cops.rb:12:18: W: Lint/RedundantCopDisableDirective: Unnecessary disabling of Lint/HandleExceptions (unknown cop). rescue LoadError # rubocop:disable Lint/HandleExceptions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1 parent bd03273 commit 447c086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubocop/cop/rspec_cops.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
begin
1111
require_relative 'rspec/rails/http_status'
12-
rescue LoadError # rubocop:disable Lint/HandleExceptions
12+
rescue LoadError # rubocop:disable Lint/SuppressedException
1313
# Rails/HttpStatus cannot be loaded if rack/utils is unavailable.
1414
end
1515

0 commit comments

Comments
 (0)