Sha256: 4bae8783ea32d943e8f9e4c9d53f1fd06fc4ed5ef112238272086a306ad07cec
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
namespace :pre_commit do desc "Check ruby code style by rubocop" task :rubocop do |t| Githook::Util.log_task(t.name) exit 1 unless system("bundle exec rubocop") end desc "Test ruby code by rspec" task :rspec do |t| Githook::Util.log_task(t.name) exit 1 unless system("bundle exec rspec") end desc "Check java code style by checkstyle" task :checkstyle do |t| Githook::Util.log_task(t.name) exit 1 unless system("./gradlew checkstyle") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-hook-0.1.8 | lib/githook/tasks/1-pre-commit.rake |