Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert change and ignore rubocop #646

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Revert change and ignore rubocop #646

merged 2 commits into from
Aug 4, 2023

Conversation

summer-cook
Copy link
Contributor

No description provided.

hash = super(input_hash, presenter: presenter, solr_doc_hits: solr_doc_hits)
# rubocop:disable Lint/ShadowedArgument
def sanitize_v3(hash:, presenter:, solr_doc_hits:)
hash = super
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not going to work. The method signature of sanitize_v3 is all key words, when you pass that to super it's going to be a method error. Also, the shadow argument is something to consider and work to avoid, as it can become confusing what variable you're meaning.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the IIIF Print definition/signature of sanitize_v3; it is def sanitize_v3(hash:, presenter:, solr_doc_hits:). So my point about parameters for super is mute.

However, I would like to consider renaming the local variable of hash to something other than hash (as that is the parameter name). What about returning_hash?

@summer-cook summer-cook merged commit fa3c6be into main Aug 4, 2023
7 checks passed
@summer-cook summer-cook deleted the fix-sanitizev3-method branch August 4, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants