Created
February 25, 2016 17:28
-
-
Save theoretick/94ed755c64bc21e9d379 to your computer and use it in GitHub Desktop.
check all ruby files for syntax errors in current dir
This file contains 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 | |
function rbcheck() { | |
find . -name "*.rb" -exec ruby -wc {} \; 2>&1 | grep -v "Syntax OK\|: warning:" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment