Skip to content

Commit

Permalink
app/models/sipity.rb: inline rubocop override
Browse files Browse the repository at this point in the history
Co-authored-by: tamsin johnson <[email protected]>
  • Loading branch information
2 people authored and tamsin johnson committed Sep 16, 2021
1 parent ebc4af9 commit 062c77c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .rubocop_fixme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions app/models/sipity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 062c77c

Please sign in to comment.