-
-
Save lcd047/96138909015f2f8d2d36 to your computer and use it in GitHub Desktop.
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/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