mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
re: RuboCop - Suppress of handling LoadError for optional dependencies
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user