Created
March 26, 2019 07:28
-
-
Save wonderer80/b0dbf3d23ba391d8965b75b80e3ce705 to your computer and use it in GitHub Desktop.
staging 된 파일들을 rubocop 자동 교정
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
#!/bin/sh | |
# | |
FILES="$(git diff --cached --name-only --diff-filter=AMC | grep "\.rb$" | tr '\n' ' ')" | |
bundle exec rubocop -a ${FILES} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment