Skip to content

Instantly share code, notes, and snippets.

@AlexRRR
Created January 29, 2014 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexRRR/8683895 to your computer and use it in GitHub Desktop.
Save AlexRRR/8683895 to your computer and use it in GitHub Desktop.
handy script for linting and parsing your currently modified files.
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