Last active
January 8, 2020 04:31
-
-
Save everm1nd/971c394cb91adbfa9ff80d3146ab5dd3 to your computer and use it in GitHub Desktop.
Run Rubocop locally for changed files only
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
git status --porcelain | grep -v "D " | cut -c4- | grep "\.rb\|rake" | xargs rubocop -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment