Skip to content

Instantly share code, notes, and snippets.

@theoretick
Created February 25, 2016 17:28
Show Gist options
  • Save theoretick/94ed755c64bc21e9d379 to your computer and use it in GitHub Desktop.
Save theoretick/94ed755c64bc21e9d379 to your computer and use it in GitHub Desktop.
check all ruby files for syntax errors in current dir
#!/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