Merge pull request #19235 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.71.2

build(deps-dev): bump rubocop from 1.71.1 to 1.71.2 in /Library/Homebrew
This commit is contained in:
Patrick Linnane 2025-02-05 12:48:18 +00:00 committed by GitHub
commit 3cb9ff1499
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 103 additions and 96 deletions

View File

@ -74,7 +74,7 @@ GEM
rspec-support (3.13.2) rspec-support (3.13.2)
rspec_junit_formatter (0.6.0) rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0) rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.71.1) rubocop (1.71.2)
json (~> 2.3) json (~> 2.3)
language_server-protocol (>= 3.17.0) language_server-protocol (>= 3.17.0)
parallel (~> 1.10) parallel (~> 1.10)

View File

@ -9504,20 +9504,14 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
# `AllowAdjacentOneLineDefs` configures whether adjacent # `AllowAdjacentOneLineDefs` configures whether adjacent
# one-line definitions are considered an offense. # one-line definitions are considered an offense.
# #
# @example AllowAdjacentOneLineDefs: false # @example EmptyLineBetweenMethodDefs: true (default)
# # checks for empty lines between method definitions.
# #
# # bad # # bad
# class ErrorA < BaseError; end # def a
# class ErrorB < BaseError; end # end
# class ErrorC < BaseError; end # def b
# # end
# # good
# class ErrorA < BaseError; end
#
# class ErrorB < BaseError; end
#
# class ErrorC < BaseError; end
# @example
# #
# # good # # good
# def a # def a
@ -9535,7 +9529,6 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
# end # end
# def b # def b
# end # end
# @example
# #
# # good # # good
# class A # class A
@ -9556,7 +9549,6 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
# end # end
# def b # def b
# end # end
# @example
# #
# # good # # good
# module A # module A
@ -9580,24 +9572,29 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil
# class ErrorB < BaseError; end # class ErrorB < BaseError; end
# #
# class ErrorC < BaseError; end # class ErrorC < BaseError; end
# @example EmptyLineBetweenMethodDefs: true (default) # @example AllowAdjacentOneLineDefs: false
# # checks for empty lines between method definitions.
# #
# # bad # # bad
# def a # class ErrorA < BaseError; end
# end # class ErrorB < BaseError; end
# def b # class ErrorC < BaseError; end
# end
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#108 # # good
# class ErrorA < BaseError; end
#
# class ErrorB < BaseError; end
#
# class ErrorC < BaseError; end
#
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#102
class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#145 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#139
def autocorrect(corrector, prev_def, node, count); end def autocorrect(corrector, prev_def, node, count); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#130 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#124
def check_defs(nodes); end def check_defs(nodes); end
# We operate on `begin` nodes, instead of using `OnMethodDef`, # We operate on `begin` nodes, instead of using `OnMethodDef`,
@ -9606,100 +9603,100 @@ class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base
# doing a linear scan over siblings, so we don't want to call # doing a linear scan over siblings, so we don't want to call
# it on each def. # it on each def.
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#123 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#117
def on_begin(node); end def on_begin(node); end
private private
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#293 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#287
def allowance_range?; end def allowance_range?; end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#275 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#269
def autocorrect_insert_lines(corrector, newline_pos, count); end def autocorrect_insert_lines(corrector, newline_pos, count); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#268 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#262
def autocorrect_remove_lines(corrector, newline_pos, count); end def autocorrect_remove_lines(corrector, newline_pos, count); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#228 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#222
def blank_lines_count_between(first_def_node, second_def_node); end def blank_lines_count_between(first_def_node, second_def_node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#172 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#166
def candidate?(node); end def candidate?(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#192 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#186
def class_candidate?(node); end def class_candidate?(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#256 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#250
def def_end(node); end def def_end(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#164 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#158
def def_location(correction_node); end def def_location(correction_node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#248 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#242
def def_start(node); end def def_start(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#179 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#173
def empty_line_between_macros; end def empty_line_between_macros; end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#260 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#254
def end_loc(node); end def end_loc(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#206 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#200
def expected_lines; end def expected_lines; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#224 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#218
def line_count_allowed?(count); end def line_count_allowed?(count); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#240 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#234
def lines_between_defs(first_def_node, second_def_node); end def lines_between_defs(first_def_node, second_def_node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#183 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#177
def macro_candidate?(node); end def macro_candidate?(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#236 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#230
def maximum_empty_lines; end def maximum_empty_lines; end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#200 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#194
def message(node, count: T.unsafe(nil)); end def message(node, count: T.unsafe(nil)); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#188 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#182
def method_candidate?(node); end def method_candidate?(node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#232 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#226
def minimum_empty_lines; end def minimum_empty_lines; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#196 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#190
def module_candidate?(node); end def module_candidate?(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#215 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#209
def multiple_blank_lines_groups?(first_def_node, second_def_node); end def multiple_blank_lines_groups?(first_def_node, second_def_node); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#282 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#276
def node_type(node); end def node_type(node); end
class << self class << self
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#114 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#108
def autocorrect_incompatible_with; end def autocorrect_incompatible_with; end
end end
end end
# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#112 # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#106
RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String)
# Checks for two or more consecutive blank lines. # Checks for two or more consecutive blank lines.
@ -19610,7 +19607,6 @@ RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String)
# if () # if ()
# bar # bar
# end # end
# @example
# #
# # good # # good
# #
@ -19619,20 +19615,20 @@ RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String)
# bar # bar
# end # end
# #
# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#25 # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#23
class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#28 # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#26
def on_begin(node); end def on_begin(node); end
private private
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#36 # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#34
def empty_expression?(begin_node); end def empty_expression?(begin_node); end
end end
# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#26 # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#24
RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String)
# Enforces that Ruby source files are not empty. # Enforces that Ruby source files are not empty.
@ -26876,21 +26872,21 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/lint/void.rb#260 # source://rubocop//lib/rubocop/cop/lint/void.rb#255
def all_keys_entirely_literal?(node); end def all_keys_entirely_literal?(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/lint/void.rb#264 # source://rubocop//lib/rubocop/cop/lint/void.rb#259
def all_values_entirely_literal?(node); end def all_values_entirely_literal?(node); end
# source://rubocop//lib/rubocop/cop/lint/void.rb#238 # source://rubocop//lib/rubocop/cop/lint/void.rb#233
def autocorrect_nonmutating_send(corrector, node, suggestion); end def autocorrect_nonmutating_send(corrector, node, suggestion); end
# source://rubocop//lib/rubocop/cop/lint/void.rb#232 # source://rubocop//lib/rubocop/cop/lint/void.rb#227
def autocorrect_void_expression(corrector, node); end def autocorrect_void_expression(corrector, node); end
# source://rubocop//lib/rubocop/cop/lint/void.rb#219 # source://rubocop//lib/rubocop/cop/lint/void.rb#214
def autocorrect_void_op(corrector, node); end def autocorrect_void_op(corrector, node); end
# source://rubocop//lib/rubocop/cop/lint/void.rb#101 # source://rubocop//lib/rubocop/cop/lint/void.rb#101
@ -26922,12 +26918,12 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/lint/void.rb#247 # source://rubocop//lib/rubocop/cop/lint/void.rb#242
def entirely_literal?(node); end def entirely_literal?(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/lint/void.rb#212 # source://rubocop//lib/rubocop/cop/lint/void.rb#207
def in_void_context?(node); end def in_void_context?(node); end
end end
@ -36845,34 +36841,34 @@ class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base
# #
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#102 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#101
def accumulator_param_assigned_to?(body, args); end def accumulator_param_assigned_to?(body, args); end
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#69 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#69
def autocorrect_block(corrector, node, return_value); end def autocorrect_block(corrector, node, return_value); end
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#84 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#83
def autocorrect_numblock(corrector, node); end def autocorrect_numblock(corrector, node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#121 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#120
def first_argument_returned?(args, return_value); end def first_argument_returned?(args, return_value); end
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#114 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#113
def return_value(body); end def return_value(body); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#129 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#128
def return_value_occupies_whole_line?(node); end def return_value_occupies_whole_line?(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#96 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#95
def simple_method_arg?(method_arg); end def simple_method_arg?(method_arg); end
# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#133 # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#132
def whole_line_expression(node); end def whole_line_expression(node); end
end end
@ -37966,9 +37962,12 @@ class RuboCop::Cop::Style::ExplicitBlockArgument < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#108 # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#108
def add_block_argument(node, corrector, block_name); end def add_block_argument(node, corrector, block_name); end
# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#147 # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#160
def block_body_range(block_node, send_node); end def block_body_range(block_node, send_node); end
# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#153
def build_new_arguments_for_zsuper(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#125 # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#125
@ -53940,7 +53939,7 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String)
# #
# # good # # good
# x += 1 until x > 10 # x += 1 until x > 10
# @example #
# # bad # # bad
# x += 100 while x < 500 # a long comment that makes code too long if it were a single line # x += 100 while x < 500 # a long comment that makes code too long if it were a single line
# #
@ -53949,21 +53948,21 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String)
# x += 100 # x += 100
# end # end
# #
# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#35 # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#34
class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::Alignment
include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::StatementModifier
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#41 # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40
def on_until(node); end def on_until(node); end
# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#41 # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40
def on_while(node); end def on_while(node); end
end end
# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#39 # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#38
RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String)
# Checks for array literals made up of word-like # Checks for array literals made up of word-like
@ -56269,93 +56268,101 @@ RuboCop::Cop::VariableForce::VARIABLE_REFERENCE_TYPE = T.let(T.unsafe(nil), Symb
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#8 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#8
class RuboCop::Cop::VariableForce::Variable class RuboCop::Cop::VariableForce::Variable
extend ::RuboCop::AST::NodePattern::Macros
# @return [Variable] a new instance of Variable # @return [Variable] a new instance of Variable
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#15 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#17
def initialize(name, declaration_node, scope); end def initialize(name, declaration_node, scope); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#98 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#110
def argument?; end def argument?; end
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#31 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#33
def assign(node); end def assign(node); end
# Returns the value of attribute assignments. # Returns the value of attribute assignments.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def assignments; end def assignments; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#106 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#118
def block_argument?; end def block_argument?; end
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#78 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#49
def candidate_condition?(param0 = T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#90
def capture_with_block!; end def capture_with_block!; end
# Returns the value of attribute captured_by_block. # Returns the value of attribute captured_by_block.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def captured_by_block; end def captured_by_block; end
# Returns the value of attribute captured_by_block. # Returns the value of attribute captured_by_block.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def captured_by_block?; end def captured_by_block?; end
# Returns the value of attribute declaration_node. # Returns the value of attribute declaration_node.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def declaration_node; end def declaration_node; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#114 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#126
def explicit_block_local_variable?; end def explicit_block_local_variable?; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#70 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#82
def in_modifier_conditional?(assignment); end def in_modifier_conditional?(assignment); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#110 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#122
def keyword_argument?; end def keyword_argument?; end
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#41
def mark_last_as_reassigned!(assignment); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#102 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#114
def method_argument?; end def method_argument?; end
# Returns the value of attribute name. # Returns the value of attribute name.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def name; end def name; end
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#44 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#56
def reference!(node); end def reference!(node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#39 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#51
def referenced?; end def referenced?; end
# Returns the value of attribute references. # Returns the value of attribute references.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def references; end def references; end
# Returns the value of attribute scope. # Returns the value of attribute scope.
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#13
def scope; end def scope; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#94 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#106
def should_be_unused?; end def should_be_unused?; end
# This is a convenient way to check whether the variable is used # This is a convenient way to check whether the variable is used
@ -56369,11 +56376,11 @@ class RuboCop::Cop::VariableForce::Variable
# #
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#90 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#102
def used?; end def used?; end
end end
# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#9 # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11
RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsafe(nil), Array)
# @api private # @api private

View File

@ -91,7 +91,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-emoji-4.0.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-emoji-4.0.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-3.1.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-3.1.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.71.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.71.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.23.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.23.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.4.0/lib")