mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
re: RuboCop - Suppress of handling LoadError for optional dependencies
This commit is contained in:
parent
85f417f8d2
commit
aa416b2fb3
@ -6,10 +6,6 @@
|
|||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
# versions of RuboCop, may require this file to be generated again.
|
# versions of RuboCop, may require this file to be generated again.
|
||||||
|
|
||||||
# Offense count: 2
|
|
||||||
Lint/HandleExceptions:
|
|
||||||
Exclude:
|
|
||||||
- 'Rakefile'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
Rakefile
4
Rakefile
@ -5,7 +5,7 @@ rescue LoadError
|
|||||||
end
|
end
|
||||||
begin
|
begin
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
rescue LoadError
|
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
||||||
end
|
end
|
||||||
|
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
@ -33,7 +33,7 @@ end
|
|||||||
begin
|
begin
|
||||||
require 'rubocop'
|
require 'rubocop'
|
||||||
require 'rubocop/rake_task'
|
require 'rubocop/rake_task'
|
||||||
rescue LoadError
|
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
||||||
else
|
else
|
||||||
Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
|
Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
|
||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user