From 06b4b4d5210689371d2196f5d2c271f9b7af8c53 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 12 Sep 2020 16:08:13 +0100 Subject: [PATCH] sorbet: Regenerate RBI file for the `spoom` gem - Sorbet was reporting parameter ordering errors in a previous version of this RBI file due to [a bug in Tapioca](https://github.com/Shopify/tapioca/issues/116). - Rather than wait for a new version of the `spoom` gem for `brew typecheck --update-definitions` to work on, I manually deleted the RBI file and used that command to generate an updated one with the latest Tapioca version (0.4.5) which fixes the ordering bug. - Before, `brew typecheck` surfaced 36 errors. Now, it surfaces 24. Much more pleasant. --- Library/Homebrew/sorbet/rbi/gems/spoom@1.0.4.rbi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/sorbet/rbi/gems/spoom@1.0.4.rbi b/Library/Homebrew/sorbet/rbi/gems/spoom@1.0.4.rbi index f10a8860eb..6f25fc9dda 100644 --- a/Library/Homebrew/sorbet/rbi/gems/spoom@1.0.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/spoom@1.0.4.rbi @@ -271,15 +271,15 @@ end module Spoom::Sorbet class << self - sig { params(path: String, capture_err: T::Boolean, arg: String).returns([String, T::Boolean]) } + sig { params(arg: String, path: String, capture_err: T::Boolean).returns([String, T::Boolean]) } def srb(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end sig { params(config: Spoom::Sorbet::Config, path: String).returns(T::Array[String]) } def srb_files(config, path: T.unsafe(nil)); end - sig { params(path: String, capture_err: T::Boolean, arg: String).returns(T.nilable(Spoom::Sorbet::Metrics)) } + sig { params(arg: String, path: String, capture_err: T::Boolean).returns(T.nilable(Spoom::Sorbet::Metrics)) } def srb_metrics(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end - sig { params(path: String, capture_err: T::Boolean, arg: String).returns([String, T::Boolean]) } + sig { params(arg: String, path: String, capture_err: T::Boolean).returns([String, T::Boolean]) } def srb_tc(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end - sig { params(path: String, capture_err: T::Boolean, arg: String).returns(T.nilable(String)) } + sig { params(arg: String, path: String, capture_err: T::Boolean).returns(T.nilable(String)) } def srb_version(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end end end