Skip to content

Instantly share code, notes, and snippets.

@esquinas
Created December 9, 2020 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esquinas/3291de1c711fa6816daedddf3402e9bd to your computer and use it in GitHub Desktop.
Save esquinas/3291de1c711fa6816daedddf3402e9bd to your computer and use it in GitHub Desktop.
Script to check ruby syntax of all Ruby files in project directory.
#!/usr/bin/env bash
echo 'STATIC-CHECKING RUBY SYNTAX OF ALL RB & RAKE FILES IN PROJECT'
echo
find . | grep ".*\.rb$" | xargs -L 1 ruby -c
find . | grep ".*\.rake$" | xargs -L 1 ruby -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment