Skip to content

Instantly share code, notes, and snippets.

@nbeernink
Created May 24, 2016 13:22
Show Gist options
  • Save nbeernink/2e246ead9abd7e0188780c75c59526a5 to your computer and use it in GitHub Desktop.
Save nbeernink/2e246ead9abd7e0188780c75c59526a5 to your computer and use it in GitHub Desktop.
for manifest in $(find manifests/ -type f -iname '*.pp'); do
sed -i 's/[ \t]*$//' $manifest #strip whitespace
vim -c 'normal gg=G' -c 'wq' $manifest #indent all lines properly (converting tabs to spaces, etc)
puppet-lint --no-80chars-check --no-documentation-check --fix $manifest #fix puppet style issues
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment