Skip to content

Instantly share code, notes, and snippets.

@JackDanger
Created May 28, 2009 03:39
Show Gist options
  • Save JackDanger/119076 to your computer and use it in GitHub Desktop.
Save JackDanger/119076 to your computer and use it in GitHub Desktop.
for source in `find app test lib config -name *.rb`; do
if [ 2 = `egrep -c -v "(^#)|(^\s*$)" $source` ]; then
echo $source is an empty class or module definition;
fi;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment