Merge pull request #10460 from MikeMcQuaid/typecheck-deprecation

typecheck: migrate from deprecated flag.
This commit is contained in:
Mike McQuaid 2021-01-29 12:09:16 +00:00 committed by GitHub
commit 0a46e34024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,12 +97,15 @@ module Homebrew
end
srb_exec = %w[bundle exec srb tc]
srb_exec << "--error-black-list" << "5061"
# TODO: comment explaining why?
srb_exec << "--suppress-error-code" << "5061"
srb_exec << "--quiet" if args.quiet?
if args.fix?
# Auto-correcting method names is almost always wrong.
srb_exec << "--error-black-list" << "7003"
srb_exec << "--suppress-error-code" << "7003"
srb_exec << "--autocorrect"
end