Checks for the validity of your ERB views.
So test. TDD is not dead.
- Ruby 1.9.3 or greater
gem install rails-erb-lintcd your-rails-app/app/views
rails-erb-lint checkBy default, we don't show which files are valid as that makes little sense. However you can show them through valid mode.
cd your-rails-app/app/views
rails-erb-lint check -vThis will print the errors:
rails-erb-lint check -eTo export report as json file:
rails-erb-lint check -v -e errors.jsonInitially planned to discontinue the idea of a lint tool for ERB views. I think there should be a gem that works for Slim/HAML/ERB for that.
ERB by experience is not fun or sensible to use. HAML or Slim works well.
