Created
November 27, 2015 09:21
-
-
Save fujimura/6b8d1e6094387302a677 to your computer and use it in GitHub Desktop.
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/bash -e | |
set -x | |
# If there are whitespace errors, print the offending file names and fail. | |
git diff-index --check --cached HEAD | |
exec git diff --cached --name-only --diff-filter=AM | grep '\.rb$' | xargs rubocop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment