Skip to content

Instantly share code, notes, and snippets.

@zeroem
Created December 18, 2011 08:56
Show Gist options
  • Save zeroem/1492777 to your computer and use it in GitHub Desktop.
Save zeroem/1492777 to your computer and use it in GitHub Desktop.
Build a quick list of error code/counts from checkstyle.xml
grep -i -o "source=\"[a-z._-]*\"" checkstyle.xml | sort | uniq | sed -e "s/source=\"\(.*\)\"/\1/ig" | xargs -i bash -c "echo {} \`grep '{}' checkstyle.xml | wc -l \`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment