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