.erb or .rb, you're coming with me.
— RuboCop
Ruumba is RuboCop's sidekick, allowing you to lint your .erb Rubies as well as your regular-type ones.
- Ruby 2.2.2+
λ gem install ruumba
Command line:
λ ruumba directory_of_erb_files/
Rake task:
require 'ruumba/rake_task'
Ruumba::RakeTask.new(:ruumba) do |t|
t.dir = %w(lib/views)
end
Then:
λ bundle exec rake ruumba
- Branch (
git checkout -b fancy-new-feature
) - Commit (
git commit -m "Fanciness!"
) - Test (
bundle exec rake spec
) - Lint (
bundle exec rake rubocop
) - Push (
git push origin fancy-new-feature
) - Ye Olde Pulle Requeste