Created
August 7, 2020 13:07
-
-
Save joeybeninghove/715a1ce1c9df0b499eb54d9b8c9ce76c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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