Skip to content

Commit 80be27d

Browse files
committed
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.
1 parent 11f042e commit 80be27d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Library/Homebrew/dev-cmd/typecheck.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ def run
5858
safe_system "bundle", "exec", "parlour"
5959

6060
if args.suggest_typed?
61-
ohai "Bumping Sorbet `typed` sigils..."
61+
ohai "Checking if we can bump Sorbet `typed` sigils..."
6262
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
63-
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--sorbet",
64-
"#{Gem.bin_path("sorbet", "srb")} tc"
63+
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "false", "--to", "true",
64+
"--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
65+
safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--from", "true", "--to", "strict",
66+
"--sorbet", "#{Gem.bin_path("sorbet", "srb")} tc"
6567
end
6668

6769
return

0 commit comments

Comments
 (0)