-
Notifications
You must be signed in to change notification settings - Fork 4
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 lint update #1782
Erb lint update #1782
Conversation
@@ -19,7 +19,7 @@ | |||
<% end %> | |||
|
|||
<h4> | |||
<%= link_to content_item.title, content_item.url, data: {proxy_iframe: 'enabled', modal_url: content_item.proxied_url, toggle: 'modal', target: '#iframe_modal_id'} %> | |||
<%= link_to content_item.title, content_item.url, data: {proxy_iframe: "enabled", modal_url: content_item.proxied_url, toggle: "modal", target: "#iframe_modal_id"} %> |
Check notice
Code scanning / Brakeman
Potentially unsafe model attribute in link_to href. Note
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.
I believe we can dismiss this brakeman alert here as its not caused by lint changes and ignore later.
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.
I think that's what the update to the brakeman.ignore
fils is supposed to achieve?
Line only updated for erb linting Safe to still ignore
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.
A couple of minor comments, and it looks like brakeman still isn't happy…
Correct indendation issue from linting Make Gem require: false Brakeman ignore file updated
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.
LGTM!
Currently in most(may be all) of our app there is no linting mechanism for erb files. We want some way of linting erb files and hence we have introduced erb_lint gem for the same.
The changes in this PR allows us to have a workflow to run erb lint.
All the files that have been linted after running erblint.
When we run the command 'erblint --lint-all' it uses the default '.erb_lint.yml' file inside the project to apply any custom rules.
https://trello.com/c/NPZL0Ibg