Created
October 30, 2018 04:07
-
-
Save ota42y/10c9968cd516d0e8a00d9c6f93194805 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
| desc 'execute rubocop git diff file only' | |
| task diff_rubocop: :environment do | |
| system('rubocop -a $( git diff --name-only --diff-filter=AMRC | grep -e ".*\.rb" | paste -s - )') | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment