Created
January 29, 2014 08:29
-
-
Save AlexRRR/8683895 to your computer and use it in GitHub Desktop.
handy script for linting and parsing your currently modified 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|grep modified|awk '{$1=$1}{ print }'|cut -d' ' -f2|while read -r line; do | |
echo "Linting and parsing $line ..." | |
puppet-lint --with-filename --no-80chars-check $line | |
puppet parser validate $line | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment