typecheck: migrate from deprecated flag.
Also, add a TODO to answer why the other error codes are suppressed.
This commit is contained in:
parent
281a6b80aa
commit
5a21ba0677
@ -97,12 +97,15 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
srb_exec = %w[bundle exec srb tc]
|
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?
|
srb_exec << "--quiet" if args.quiet?
|
||||||
|
|
||||||
if args.fix?
|
if args.fix?
|
||||||
# Auto-correcting method names is almost always wrong.
|
# Auto-correcting method names is almost always wrong.
|
||||||
srb_exec << "--error-black-list" << "7003"
|
srb_exec << "--suppress-error-code" << "7003"
|
||||||
|
|
||||||
srb_exec << "--autocorrect"
|
srb_exec << "--autocorrect"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user