Created
May 2, 2022 21:04
-
-
Save marcosgz/2cf7b77dcb92734f689b5b6efbde4300 to your computer and use it in GitHub Desktop.
Execute Rubocop Autocorrect on all modified files comparing current branch with staging
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 diff --name-only HEAD..staging | grep -E -i 'rake|*.rb|*.erb' | perl -ne 'chomp(); if (-e $_) {print "$_\n"}' | xargs rubocop -A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment