dev-cmd/rubocop: call rubocop utility instead of -S rubocop
This commit is contained in:
parent
98e40d1638
commit
b4995379d4
@ -18,8 +18,6 @@ homebrew-rubocop() {
|
|||||||
export GEM_HOME
|
export GEM_HOME
|
||||||
export PATH="$GEM_HOME/bin:$PATH"
|
export PATH="$GEM_HOME/bin:$PATH"
|
||||||
|
|
||||||
# Unconditional -W0 to avoid printing e.g.:
|
RUBOCOP="$HOMEBREW_LIBRARY/Homebrew/utils/rubocop.rb"
|
||||||
# warning: parser/current is loading parser/ruby26, which recognizes
|
exec "$HOMEBREW_RUBY_PATH" "$RUBOCOP" "$@"
|
||||||
# warning: 2.6.6-compliant syntax, but you are running 2.6.3.
|
|
||||||
exec "$HOMEBREW_RUBY_PATH" "$RUBY_DISABLE_OPTIONS" -W0 -S rubocop "$@"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user