Skip to content

Instantly share code, notes, and snippets.

@dhgwilliam
Forked from anonymous/puppet-module-smells.sh
Created June 18, 2013 22:05
Show Gist options
  • Save dhgwilliam/5809877 to your computer and use it in GitHub Desktop.
Save dhgwilliam/5809877 to your computer and use it in GitHub Desktop.
#!/bin/bash
find . -name "*.pp" -print0 | xargs -0 puppet-lint --no-80chars-check --no-2sp_soft_tabs-check --with-filename --no-trailing_whitespace-check --no-hard_tabs-check --no-arrow_alignment-check > puppet.lint
grep "WARNING" puppet.lint | cut -d ":" -f 1 | sort | uniq -c | sort -gb > puppet.lint.warnings
grep "ERROR" puppet.lint | cut -d ":" -f 1 | sort | uniq -c | sort -gb > puppet.lint.errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment