Last active
October 18, 2017 22:46
-
-
Save flanger001/50e5f51e13cc916e74d284b6369859a5 to your computer and use it in GitHub Desktop.
Rubcop git hook
This file contains hidden or 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
#! /usr/bin/env ruby | |
if system('bundle exec rubocop') | |
puts 'Rubocop is pleased.' | |
else | |
puts 'Rubocop demands penance.' | |
exit(1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment