Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Created January 4, 2013 14:17
Show Gist options
  • Save rentalcustard/4452869 to your computer and use it in GitHub Desktop.
Save rentalcustard/4452869 to your computer and use it in GitHub Desktop.
for file in $(find . -name '*.rb')
do
if [ $(egrep "\b[A-Z]" $file | wc -l) -gt $(egrep "(class|module)" $file | wc -l) ]
then
echo $file " fails"
fi
done | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment