mangrove 0.24.0 → 0.29.0

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.
@@ -1903,9 +1903,10 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1903
1903
  # extracting out some behavior, e.g. with a `let` block, or a helper
1904
1904
  # method.
1905
1905
  #
1906
- # You can set literals you want to fold with `CountAsOne`.
1907
- # Available are: 'array', 'hash', and 'heredoc'. Each literal
1908
- # will be counted as one line regardless of its actual size.
1906
+ # You can set constructs you want to fold with `CountAsOne`.
1907
+ # Available are: 'array', 'hash', 'heredoc', and 'method_call'.
1908
+ # Each construct will be counted as one line regardless of
1909
+ # its actual size.
1909
1910
  #
1910
1911
  # @example
1911
1912
  # # bad
@@ -1923,7 +1924,7 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1923
1924
  # result = service.call
1924
1925
  # expect(result).to be(true)
1925
1926
  # end
1926
- # @example CountAsOne: ['array', 'heredoc']
1927
+ # @example CountAsOne: ['array', 'heredoc', 'method_call']
1927
1928
  #
1928
1929
  # it do
1929
1930
  # array = [ # +1
@@ -1939,22 +1940,27 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
1939
1940
  # Heredoc
1940
1941
  # content.
1941
1942
  # HEREDOC
1942
- # end # 5 points
1943
1943
  #
1944
- # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#51
1944
+ # foo( # +1
1945
+ # 1,
1946
+ # 2
1947
+ # )
1948
+ # end # 6 points
1949
+ #
1950
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#57
1945
1951
  class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base
1946
1952
  include ::RuboCop::Cop::CodeLength
1947
1953
 
1948
- # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#56
1954
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#62
1949
1955
  def on_block(node); end
1950
1956
 
1951
1957
  private
1952
1958
 
1953
- # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#64
1959
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#70
1954
1960
  def cop_label; end
1955
1961
  end
1956
1962
 
1957
- # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#54
1963
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#60
1958
1964
  RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String)
1959
1965
 
1960
1966
  # Checks for examples without a description.
@@ -4117,7 +4123,7 @@ module RuboCop::Cop::RSpec::Metadata
4117
4123
  private
4118
4124
 
4119
4125
  # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#49
4120
- def on_matadata_arguments(metadata_arguments); end
4126
+ def on_metadata_arguments(metadata_arguments); end
4121
4127
  end
4122
4128
 
4123
4129
  # Use consistent metadata style.
@@ -4160,59 +4166,59 @@ class RuboCop::Cop::RSpec::MetadataStyle < ::RuboCop::Cop::RSpec::Base
4160
4166
 
4161
4167
  private
4162
4168
 
4163
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#61
4169
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66
4164
4170
  def autocorrect_pair(corrector, node); end
4165
4171
 
4166
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66
4172
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#71
4167
4173
  def autocorrect_symbol(corrector, node); end
4168
4174
 
4169
4175
  # @return [Boolean]
4170
4176
  #
4171
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#73
4177
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#78
4172
4178
  def bad_metadata_pair?(node); end
4173
4179
 
4174
4180
  # @return [Boolean]
4175
4181
  #
4176
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#77
4182
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#82
4177
4183
  def bad_metadata_symbol?(_node); end
4178
4184
 
4179
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#81
4185
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#86
4180
4186
  def format_symbol_to_pair_source(node); end
4181
4187
 
4182
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#85
4188
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#90
4183
4189
  def insert_pair(corrector, node); end
4184
4190
 
4185
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#96
4191
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#101
4186
4192
  def insert_pair_as_last_argument(corrector, node); end
4187
4193
 
4188
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#105
4194
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#110
4189
4195
  def insert_pair_to_empty_hash_metadata(corrector, node, hash_node); end
4190
4196
 
4191
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#112
4197
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#117
4192
4198
  def insert_pair_to_non_empty_hash_metadata(corrector, node, hash_node); end
4193
4199
 
4194
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#119
4200
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#124
4195
4201
  def insert_symbol(corrector, node); end
4196
4202
 
4197
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#126
4203
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#131
4198
4204
  def message_for_style; end
4199
4205
 
4200
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#133
4206
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#138
4201
4207
  def on_metadata_pair(node); end
4202
4208
 
4203
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#141
4209
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#146
4204
4210
  def on_metadata_symbol(node); end
4205
4211
 
4206
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#149
4212
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#154
4207
4213
  def remove_pair(corrector, node); end
4208
4214
 
4209
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#159
4215
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#164
4210
4216
  def remove_pair_following(corrector, node); end
4211
4217
 
4212
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#171
4218
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#176
4213
4219
  def remove_pair_preceding(corrector, node); end
4214
4220
 
4215
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#183
4221
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#188
4216
4222
  def remove_symbol(corrector, node); end
4217
4223
  end
4218
4224
 
@@ -6673,7 +6679,7 @@ class RuboCop::Cop::RSpec::SpecFilePathFormat < ::RuboCop::Cop::RSpec::Base
6673
6679
  def custom_transform; end
6674
6680
 
6675
6681
  # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#62
6676
- def ensure_correct_file_path(class_name, arguments); end
6682
+ def ensure_correct_file_path(send_node, class_name, arguments); end
6677
6683
 
6678
6684
  # source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#98
6679
6685
  def expected_path(constant); end
@@ -7400,10 +7406,10 @@ class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base
7400
7406
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
7401
7407
  include ::RuboCop::Cop::RangeHelp
7402
7408
 
7403
- # source://rubocop/1.57.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
7409
+ # source://rubocop/1.59.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
7404
7410
  def on_csend(node); end
7405
7411
 
7406
- # source://rubocop/1.57.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
7412
+ # source://rubocop/1.59.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
7407
7413
  def on_send(node); end
7408
7414
 
7409
7415
  class << self
@@ -7555,7 +7561,7 @@ end
7555
7561
 
7556
7562
  # Wrapper for RSpec examples
7557
7563
  #
7558
- # source://rubocop-rspec//lib/rubocop/rspec/example.rb#7
7564
+ # source://rubocop-rspec//lib/rubocop/rspec/example.rb#6
7559
7565
  class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept
7560
7566
  # source://rubocop-rspec//lib/rubocop/rspec/example.rb#28
7561
7567
  def definition; end
@@ -7581,7 +7587,7 @@ end
7581
7587
 
7582
7588
  # Wrapper for RSpec example groups
7583
7589
  #
7584
- # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#12
7590
+ # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#6
7585
7591
  class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept
7586
7592
  # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#28
7587
7593
  def examples; end
@@ -7621,7 +7627,7 @@ end
7621
7627
 
7622
7628
  # Wrapper for RSpec hook
7623
7629
  #
7624
- # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#7
7630
+ # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#6
7625
7631
  class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept
7626
7632
  # @return [Boolean]
7627
7633
  #