Make brew typecheck --update --suggest-typed bump strictness further
- Not only `false` to `true` but `true` to `strict`. - Only humans every run this, but our goal is to increase the typechecking in our files to get to `strict` everywhere so let's make that easy to remember to do.
This commit is contained in:
parent
11f042e387
commit
80be27dc9b
@ -58,10 +58,12 @@ module Homebrew
|
|||||||
safe_system "bundle", "exec", "parlour"
|
safe_system "bundle", "exec", "parlour"
|
||||||
|
|
||||||
if args.suggest_typed?
|
if args.suggest_typed?
|
||||||
ohai "Bumping Sorbet `typed` sigils..."
|
ohai "Checking if we can bump Sorbet `typed` sigils..."
|
||||||
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
|
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
|
||||||
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--sorbet",
|
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "false", "--to", "true",
|
||||||
"#{Gem.bin_path("sorbet", "srb")} tc"
|
"--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
|
||||||
|
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "true", "--to", "strict",
|
||||||
|
"--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
|
||||||
end
|
end
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user