-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Adds erb lint to project #4059
Adds erb lint to project #4059
Conversation
Adds erb-lint to lint views to bundle. Adds rake task to do both erb and rubocop linting. Adds a settings file for erb lint
51e8d33
to
b4a690b
Compare
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.
Some mistakes look like they crept in.
Also, if we're going to keep this, it probably makes sense to add it to the ruby-lint workflow.
linter no longer tries to lint vendor/bundle linter now also linted *.js.erb files linted *.js.erb files changes lint command suggestion in docs
c1287af
to
281a5f2
Compare
Thanks so much for the addition! |
@elasticspoon: Your PR |
This PR adds erb-lint to the project. I also created a bin file to run both rubocop and erb-lint on the whole code base.
I ran the linter on the code base as discussed here
Potentially the rules in
erb-lint.yml
could be changed. In theory it should be able to run rubocop on the contents for erb tags, however, that was not working for me.Tests
I did not add tests but the code still passes the full suite.