Created
September 17, 2018 18:34
-
-
Save garybernhardt/c2fceef67bcba989b2742dad88c9170b to your computer and use it in GitHub Desktop.
Revisions
-
garybernhardt created this gist
Sep 17, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ rubocop | egrep ' (W|C): ' | cut -d ' ' -f 3 | sort -u | sed 's/:$//' | while read cop; do git checkout . rubocop -a --only "$cop"; if [[ $(git diff --stat) != '' ]]; then git add --all git commit -m "fix rubocop cop $cop" fi done