Skip to content

Instantly share code, notes, and snippets.

@lcd047
Created May 14, 2015 07:12
Show Gist options
  • Save lcd047/492245d9923af45fb964 to your computer and use it in GitHub Desktop.
Save lcd047/492245d9923af45fb964 to your computer and use it in GitHub Desktop.
#! /bin/sh
if [ $# -eq 1 -a x"$1" = x--version ]; then
ruby-lint "$@" 2>&1 | \
sed '/warning: parser\/current is loading parser\/ruby[0-9]*, which recognizes/d;
/warning: [0-9.]*-compliant syntax, but you are running [0-9.]/d'
else
exec ruby-lint "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment