sorbet-result 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +17 -17
- data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.2.2.1.rbi} +162 -162
- data/sorbet/rbi/gems/{rubocop-ast@1.28.0.rbi → rubocop-ast@1.28.1.rbi} +4 -1
- data/sorbet/rbi/gems/{rubocop-minitest@0.30.0.rbi → rubocop-minitest@0.31.0.rbi} +48 -5
- data/sorbet/rbi/gems/{rubocop@1.50.2.rbi → rubocop@1.51.0.rbi} +495 -326
- data/sorbet/rbi/gems/{tapioca@0.11.5.rbi → tapioca@0.11.6.rbi} +43 -10
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.2.2.rbi} +69 -60
- data/sorbet/rbi/gems/{zeitwerk@2.6.7.rbi → zeitwerk@2.6.8.rbi} +67 -47
- metadata +14 -14
@@ -5266,7 +5266,7 @@ RuboCop::AST::NodePattern::Sets::SET_READ_BINREAD = T.let(T.unsafe(nil), Set)
|
|
5266
5266
|
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
|
5267
5267
|
|
5268
5268
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5269
|
-
RuboCop::AST::NodePattern::Sets::
|
5269
|
+
RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set)
|
5270
5270
|
|
5271
5271
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5272
5272
|
RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
|
@@ -5376,6 +5376,9 @@ RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set)
|
|
5376
5376
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5377
5377
|
RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set)
|
5378
5378
|
|
5379
|
+
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5380
|
+
RuboCop::AST::NodePattern::Sets::SET____ETC_4 = T.let(T.unsafe(nil), Set)
|
5381
|
+
|
5379
5382
|
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
|
5380
5383
|
RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set)
|
5381
5384
|
|
@@ -1222,7 +1222,8 @@ RuboCop::Cop::Minitest::LiteralAsActualArgument::MSG = T.let(T.unsafe(nil), Stri
|
|
1222
1222
|
# source://rubocop-minitest//lib/rubocop/cop/minitest/literal_as_actual_argument.rb#25
|
1223
1223
|
RuboCop::Cop::Minitest::LiteralAsActualArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
1224
1224
|
|
1225
|
-
# Checks if test cases contain too many assertion calls.
|
1225
|
+
# Checks if test cases contain too many assertion calls. If conditional code with assertions
|
1226
|
+
# is used, the branch with maximum assertions is counted.
|
1226
1227
|
# The maximum allowed assertion calls is configurable.
|
1227
1228
|
#
|
1228
1229
|
# @example Max: 1
|
@@ -1245,23 +1246,29 @@ RuboCop::Cop::Minitest::LiteralAsActualArgument::RESTRICT_ON_SEND = T.let(T.unsa
|
|
1245
1246
|
# end
|
1246
1247
|
# end
|
1247
1248
|
#
|
1248
|
-
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#
|
1249
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#30
|
1249
1250
|
class RuboCop::Cop::Minitest::MultipleAssertions < ::RuboCop::Cop::Base
|
1250
1251
|
include ::RuboCop::Cop::ConfigurableMax
|
1251
1252
|
include ::RuboCop::Cop::VisibilityHelp
|
1252
1253
|
include ::RuboCop::Cop::DefNode
|
1253
1254
|
include ::RuboCop::Cop::MinitestExplorationHelpers
|
1254
1255
|
|
1255
|
-
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#
|
1256
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#36
|
1256
1257
|
def on_class(class_node); end
|
1257
1258
|
|
1258
1259
|
private
|
1259
1260
|
|
1260
|
-
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#
|
1261
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#53
|
1262
|
+
def assertions_count(node); end
|
1263
|
+
|
1264
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#72
|
1265
|
+
def assertions_count_in_branches(branches); end
|
1266
|
+
|
1267
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#76
|
1261
1268
|
def max_assertions; end
|
1262
1269
|
end
|
1263
1270
|
|
1264
|
-
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#
|
1271
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/multiple_assertions.rb#34
|
1265
1272
|
RuboCop::Cop::Minitest::MultipleAssertions::MSG = T.let(T.unsafe(nil), String)
|
1266
1273
|
|
1267
1274
|
# Common functionality for `AssertNil` and `RefuteNil` cops.
|
@@ -2000,6 +2007,42 @@ RuboCop::Cop::Minitest::RefuteSame::MSG = T.let(T.unsafe(nil), String)
|
|
2000
2007
|
# source://rubocop-minitest//lib/rubocop/cop/mixin/minitest_cop_rule.rb#44
|
2001
2008
|
RuboCop::Cop::Minitest::RefuteSame::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
2002
2009
|
|
2010
|
+
# Enforces the use of `skip` instead of `return` in test methods.
|
2011
|
+
#
|
2012
|
+
# @example
|
2013
|
+
# # bad
|
2014
|
+
# def test_something
|
2015
|
+
# return if condition?
|
2016
|
+
# assert_equal(42, something)
|
2017
|
+
# end
|
2018
|
+
#
|
2019
|
+
# # good
|
2020
|
+
# def test_something
|
2021
|
+
# skip if condition?
|
2022
|
+
# assert_equal(42, something)
|
2023
|
+
# end
|
2024
|
+
#
|
2025
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/return_in_test_method.rb#21
|
2026
|
+
class RuboCop::Cop::Minitest::ReturnInTestMethod < ::RuboCop::Cop::Base
|
2027
|
+
include ::RuboCop::Cop::VisibilityHelp
|
2028
|
+
include ::RuboCop::Cop::DefNode
|
2029
|
+
include ::RuboCop::Cop::MinitestExplorationHelpers
|
2030
|
+
extend ::RuboCop::Cop::AutoCorrector
|
2031
|
+
|
2032
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/return_in_test_method.rb#27
|
2033
|
+
def on_return(node); end
|
2034
|
+
|
2035
|
+
private
|
2036
|
+
|
2037
|
+
# @return [Boolean]
|
2038
|
+
#
|
2039
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/return_in_test_method.rb#38
|
2040
|
+
def inside_block?(node); end
|
2041
|
+
end
|
2042
|
+
|
2043
|
+
# source://rubocop-minitest//lib/rubocop/cop/minitest/return_in_test_method.rb#25
|
2044
|
+
RuboCop::Cop::Minitest::ReturnInTestMethod::MSG = T.let(T.unsafe(nil), String)
|
2045
|
+
|
2003
2046
|
# Checks that `ensure` call even if `skip`. It is unexpected that `ensure` will be called when skipping test.
|
2004
2047
|
# If conditional `skip` is used, it checks that `ensure` is also called conditionally.
|
2005
2048
|
#
|