Created
June 18, 2013 22:04
-
-
Save anonymous/5809866 to your computer and use it in GitHub Desktop.
WIP automated code smell detection using puppet-lint, for better or for worse.
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 characters
#!/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