From 062c77c4d06bb100bc2de7ee0629b3d9f0d70edf Mon Sep 17 00:00:00 2001 From: Alexandra Catalina Date: Thu, 16 Sep 2021 11:47:39 -0700 Subject: [PATCH] app/models/sipity.rb: inline rubocop override Co-authored-by: tamsin johnson --- .rubocop_fixme.yml | 4 ---- app/models/sipity.rb | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.rubocop_fixme.yml b/.rubocop_fixme.yml index f8bad013e5..cf7f0b930c 100644 --- a/.rubocop_fixme.yml +++ b/.rubocop_fixme.yml @@ -2,10 +2,6 @@ Security/MarshalLoad: Exclude: - 'app/models/concerns/hyrax/user.rb' -Metrics/AbcSize: - Exclude: - - 'app/models/sipity.rb' - Metrics/ClassLength: Exclude: - 'app/controllers/hyrax/dashboard/collections_controller.rb' diff --git a/app/models/sipity.rb b/app/models/sipity.rb index 410c18dbf3..c8d9747f67 100644 --- a/app/models/sipity.rb +++ b/app/models/sipity.rb @@ -56,7 +56,7 @@ def Agent(input, &block) # rubocop:disable Naming/MethodName # # @return [Sipity::Entity] # rubocop:disable Naming/MethodName, Metrics/CyclomaticComplexity, Metrics/MethodLength - def Entity(input, &block) + def Entity(input, &block) # rubocop:disable Metrics/AbcSize Rails.logger.debug("Trying to make an Entity for #{input.inspect}") result = case input @@ -86,7 +86,7 @@ def Entity(input, &block) handle_conversion(input, result, :to_sipity_entity, &block) rescue URI::GID::MissingModelIdError Entity(nil) - end + end # rubocop:enable Metrics/AbcSize module_function :Entity # rubocop:enable Naming/MethodName, Metrics/CyclomaticComplexity, Metrics/MethodLength