-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ERB fixes for the backend (🐛+💅) #4891
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Elia! I hope no deface override out there is targeting a wrong html/erb tag! 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Do we want to ignore some of those commits on git-blame? See #4741
@waiting-for-dev yes! I'll provide a PR once it's merged and the commit refs are stable 👍👍👍 |
As reported by erb_lint it may confuse parsers and doesn't add any value.
And add a final newline where it was missing.
1b6d41d
to
3e66a2a
Compare
Summary
After randomly noticing a badly closed HTML tag I ran a couple of linters on the entire body of ERB files within
backend/app/views
. The two linters are erb-formatter and erb_lint.I only used
autocorrect
sparingly and avoided reformatting everything, only some of the changes are straight up bugfixes, the most obvious exception being the extra newlines removed.Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed (
cross them outif they are not):