Created
March 16, 2018 18:23
-
-
Save m4scosta/07d8843f714954289f3eaed3c9b54fff to your computer and use it in GitHub Desktop.
Run rubocop for only modified and added files
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 -P '^\s?[MA]\s+.*.rb' | cut -c4- | xargs rubocop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment