dev-cmd/rubocop: call rubocop utility instead of -S rubocop

This commit is contained in:
Rylan Polster 2021-02-11 08:37:45 -05:00
parent 98e40d1638
commit b4995379d4
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -18,8 +18,6 @@ homebrew-rubocop() {
export GEM_HOME
export PATH="$GEM_HOME/bin:$PATH"
# Unconditional -W0 to avoid printing e.g.:
# warning: parser/current is loading parser/ruby26, which recognizes
# warning: 2.6.6-compliant syntax, but you are running 2.6.3.
exec "$HOMEBREW_RUBY_PATH" "$RUBY_DISABLE_OPTIONS" -W0 -S rubocop "$@"
RUBOCOP="$HOMEBREW_LIBRARY/Homebrew/utils/rubocop.rb"
exec "$HOMEBREW_RUBY_PATH" "$RUBOCOP" "$@"
}