Created
July 17, 2015 02:48
-
-
Save naoty/668dc1a41c4a1474baa3 to your computer and use it in GitHub Desktop.
コミット前にコミット予定のファイルをrubocopで検査するフックスクリプト
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
#!/bin/sh | |
rubocop --auto-correct `git diff --cached --name-only | grep .rb` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment