sorbet: Add a RBI file for utils/svn.rb typechecking

- Needed to `include Kernel` otherwise Sorbet couldn't find the
  `system_command` method.
- I've also attempted to construct method signatures for all the methods.
- Before, `brew typecheck` surfaced 36 errors. Now we're down to 33 errors.
This commit is contained in:
Issy Long 2020-09-12 14:40:39 +01:00
parent 58cb2ce5bc
commit c98deebdbf
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -0,0 +1,14 @@
# typed: strict
module Utils::Svn
include Kernel
sig { returns(T::Boolean) }
def available?; end
sig { returns(T.nilable(String)) }
def version; end
sig { params(url: String).returns(T::Boolean) }
def remote_exists?(url); end
end