Skip to content

Commit aa416b2

Browse files
committed
re: RuboCop - Suppress of handling LoadError for optional dependencies
1 parent 85f417f commit aa416b2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 2
10-
Lint/HandleExceptions:
11-
Exclude:
12-
- 'Rakefile'
139

1410

1511

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rescue LoadError
55
end
66
begin
77
require 'simplecov'
8-
rescue LoadError
8+
rescue LoadError # rubocop:disable Lint/HandleExceptions
99
end
1010

1111
Bundler::GemHelper.install_tasks
@@ -33,7 +33,7 @@ end
3333
begin
3434
require 'rubocop'
3535
require 'rubocop/rake_task'
36-
rescue LoadError
36+
rescue LoadError # rubocop:disable Lint/HandleExceptions
3737
else
3838
Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
3939
require 'rbconfig'

0 commit comments

Comments
 (0)