Skip to content

Instantly share code, notes, and snippets.

@lcd047
Created May 14, 2015 04:21
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lcd047/96138909015f2f8d2d36 to your computer and use it in GitHub Desktop.
Save lcd047/96138909015f2f8d2d36 to your computer and use it in GitHub Desktop.
#! /bin/sh
if [ $# -eq 1 -a x"$1" = x--version ]; then
rubocop "$@" 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 rubocop "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment