Merge pull request #16631 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-sorbet-0.7.7
build(deps-dev): bump rubocop-sorbet from 0.7.6 to 0.7.7 in /Library/Homebrew
This commit is contained in:
commit
babebfd3a1
@ -112,7 +112,7 @@ GEM
|
||||
rubocop (~> 1.40)
|
||||
rubocop-capybara (~> 2.17)
|
||||
rubocop-factory_bot (~> 2.22)
|
||||
rubocop-sorbet (0.7.6)
|
||||
rubocop-sorbet (0.7.7)
|
||||
rubocop (>= 0.90.0)
|
||||
ruby-macho (4.0.0)
|
||||
ruby-prof (1.7.0)
|
||||
|
||||
@ -1199,12 +1199,6 @@ RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil
|
||||
# - returns, or void
|
||||
# - soft, checked, or on_failure
|
||||
#
|
||||
# # bad
|
||||
# sig { returns(Integer).params(x: Integer) }
|
||||
#
|
||||
# # good
|
||||
# sig { params(x: Integer).returns(Integer) }
|
||||
#
|
||||
# @example
|
||||
# # bad
|
||||
# sig { void.abstract }
|
||||
@ -1212,6 +1206,12 @@ RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil
|
||||
# # good
|
||||
# sig { abstract.void }
|
||||
#
|
||||
# # bad
|
||||
# sig { returns(Integer).params(x: Integer) }
|
||||
#
|
||||
# # good
|
||||
# sig { params(x: Integer).returns(Integer) }
|
||||
#
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#31
|
||||
class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Cop
|
||||
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
||||
@ -1474,6 +1474,53 @@ RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#53
|
||||
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
# Disallows the usage of `.void.checked(:tests)`.
|
||||
#
|
||||
# Using `.void` changes the value returned from the method, but only if
|
||||
# runtime type checking is enabled for the method. Methods marked `.void`
|
||||
# will return different values in tests compared with non-test
|
||||
# environments. This is particularly troublesome if branching on the
|
||||
# result of a `.void` method, because the returned value in test code
|
||||
# will be the truthy `VOID` value, while the non-test return value may be
|
||||
# falsy depending on the method's implementation.
|
||||
#
|
||||
# - Use `.returns(T.anything).checked(:tests)` to keep the runtime type
|
||||
# checking for the rest of the parameters.
|
||||
# - Use `.void.checked(:never)` if you are on an older version of Sorbet
|
||||
# which does not have `T.anything` (meaning versions 0.5.10781 or
|
||||
# earlier. Versions released after 2023-04-14 include `T.anything`.)
|
||||
#
|
||||
# @example
|
||||
#
|
||||
# # bad
|
||||
# sig { void.checked(:tests) }
|
||||
#
|
||||
# # good
|
||||
# sig { void }
|
||||
# sig { returns(T.anything).checked(:tests) }
|
||||
# sig { void.checked(:never) }
|
||||
#
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#31
|
||||
class RuboCop::Cop::Sorbet::VoidCheckedTests < ::RuboCop::Cop::Base
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
include ::RuboCop::Cop::Sorbet::SignatureHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#37
|
||||
def checked_tests(param0); end
|
||||
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#58
|
||||
def on_signature(node); end
|
||||
|
||||
private
|
||||
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#48
|
||||
def top_level_void(node); end
|
||||
end
|
||||
|
||||
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#41
|
||||
RuboCop::Cop::Sorbet::VoidCheckedTests::MESSAGE = T.let(T.unsafe(nil), String)
|
||||
|
||||
module RuboCop::Cop::Style; end
|
||||
|
||||
class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
|
||||
@ -6069,6 +6069,7 @@ class Object
|
||||
HOMEBREW_DEFAULT_LOGS = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_DEFAULT_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_DOCS_WWW = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped)
|
||||
@ -6086,7 +6087,6 @@ class Object
|
||||
HOMEBREW_MACOS_OLDEST_ALLOWED = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_MACOS_OLDEST_SUPPORTED = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_MAINTAINER_JSON = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_MAIN_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_OFFICIAL_REPO_PREFIXES_REGEX = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_PHYSICAL_PROCESSOR = ::T.let(nil, ::T.untyped)
|
||||
HOMEBREW_PINNED_KEGS = ::T.let(nil, ::T.untyped)
|
||||
|
||||
@ -98,7 +98,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.20.2/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.26.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.7.6/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.7.7/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-4.0.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/ruby-prof-1.7.0")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-prof-1.7.0/lib")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user