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

Citations #113

Merged
merged 4 commits into from
Jul 18, 2023
Merged

Citations #113

merged 4 commits into from
Jul 18, 2023

Conversation

ckarpinski
Copy link
Collaborator

Story

We wanted our citation tool to be like we have it in the digital library. To do this I grabbed all the related citation files from the PALS project and added them to ours. I adjusted Citations to say Cite this item and added some CSS to style them.

I added to the rubocop file to match what PALS had as well - not sure if this was needed or not.

Running rubocop showed 3 issues "Rails/OutputSafety: Tagging a string as html safe may be a security risk. text.html_safe" but since this is the same code that is in PALS I think it must be okay.

Refs #issuenumber

Expected Behavior Before Changes

Expected Behavior After Changes

Screenshots / Video

Notes

@summer-cook
Copy link
Collaborator

Its odd that the linting is still failing even when you added those files to the rubocop_todo.yml. Can you disable/enable rubocop around the lines of code that are throwing those errors?

Details on how to do that:
https://stackoverflow.com/questions/67425427/rubocop-how-to-disable-enable-cops-on-blocks-of-code

Copy link
Collaborator

@summer-cook summer-cook left a comment

Choose a reason for hiding this comment

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

rubocop should be passing, following the instructions in my other comment should fix it

@summer-cook summer-cook merged commit 05ed61f into main Jul 18, 2023
4 of 7 checks passed
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