re: RuboCop - Suppress of handling LoadError for optional dependencies

This commit is contained in:
Alexey Dubovskoy
2016-06-20 21:57:11 +01:00
parent 85f417f8d2
commit aa416b2fb3
2 changed files with 2 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ rescue LoadError
end
begin
require 'simplecov'
rescue LoadError
rescue LoadError # rubocop:disable Lint/HandleExceptions
end
Bundler::GemHelper.install_tasks
@@ -33,7 +33,7 @@ end
begin
require 'rubocop'
require 'rubocop/rake_task'
rescue LoadError
rescue LoadError # rubocop:disable Lint/HandleExceptions
else
Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
require 'rbconfig'