Skip to content

Instantly share code, notes, and snippets.

@joeybeninghove
Created August 7, 2020 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeybeninghove/715a1ce1c9df0b499eb54d9b8c9ce76c to your computer and use it in GitHub Desktop.
Save joeybeninghove/715a1ce1c9df0b499eb54d9b8c9ce76c to your computer and use it in GitHub Desktop.
namespace :code do
task precommit: %i[rubocop erblint csslint jslint jstest rspec]
task :rubocop do
system('rubocop', exception: true)
end
task :erblint do
system('bundle exec erblint --lint-all --enable-all-linters',
exception: true)
end
task :csslint do
system('yarn run lint:check:css', exception: true)
end
task :jslint do
system('yarn run lint:check:js', exception: true)
end
task :jstest do
system('yarn run test', exception: true)
end
task :rspec do
system('rspec', exception: true)
end
task :climate do
system('codeclimate analyze', exception: true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment