Last active
January 19, 2022 11:29
-
-
Save tadamcz/14452e75f99df34c41c5b8a802adfb13 to your computer and use it in GitHub Desktop.
Execute Rubocop on all files that appear in the diff. Faster than rubocop on all files.
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
git diff origin/master --name-only --diff-filter=ACMRTUXB | grep "\.rb$" | tr "\n" " " | xargs bundle exec rubocop -A --force-exclusion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment