Update RBI files for rubocop-ast.

Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
This commit is contained in:
BrewTestBot 2024-10-29 18:36:22 +00:00
parent cef9db1ccf
commit b489c9b0e2
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F

View File

@ -443,18 +443,18 @@ class RuboCop::AST::Builder < ::Parser::Builders::Default
# #
# @return [Node] the generated node # @return [Node] the generated node
# #
# source://rubocop-ast//lib/rubocop/ast/builder.rb#99 # source://rubocop-ast//lib/rubocop/ast/builder.rb#105
def n(type, children, source_map); end def n(type, children, source_map); end
# TODO: Figure out what to do about literal encoding handling... # TODO: Figure out what to do about literal encoding handling...
# More details here https://github.com/whitequark/parser/issues/283 # More details here https://github.com/whitequark/parser/issues/283
# #
# source://rubocop-ast//lib/rubocop/ast/builder.rb#105 # source://rubocop-ast//lib/rubocop/ast/builder.rb#111
def string_value(token); end def string_value(token); end
private private
# source://rubocop-ast//lib/rubocop/ast/builder.rb#111 # source://rubocop-ast//lib/rubocop/ast/builder.rb#117
def node_klass(type); end def node_klass(type); end
end end
@ -574,26 +574,17 @@ end
# #
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8 # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#8
class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node
include ::RuboCop::AST::ConstantNode
# The expression being assigned to the variable. # The expression being assigned to the variable.
# #
# @return [Node] the expression being assigned. # @return [Node] the expression being assigned.
# #
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#26 # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#16
def expression; end def expression; end
# The name of the variable being assigned as a symbol. # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
#
# @return [Symbol] the name of the variable being assigned
#
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#19
def name; end def name; end
# The namespace of the constant being assigned.
#
# @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...)
#
# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12
def namespace; end
end end
# A node extension for `class` nodes. This will be used in place of a plain # A node extension for `class` nodes. This will be used in place of a plain
@ -1084,16 +1075,24 @@ end
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6 # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#6
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
include ::RuboCop::AST::ConstantNode
end
# Common functionality for nodes that deal with constants:
# `const`, `casgn`.
#
# source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#7
module RuboCop::AST::ConstantNode
# @return [Boolean] if the constant starts with `::` (aka s(:cbase)) # @return [Boolean] if the constant starts with `::` (aka s(:cbase))
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#26 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#27
def absolute?; end def absolute?; end
# @return [Boolean] if the constant is a Module / Class, according to the standard convention. # @return [Boolean] if the constant is a Module / Class, according to the standard convention.
# Note: some classes might have uppercase in which case this method # Note: some classes might have uppercase in which case this method
# returns false # returns false
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
def class_name?; end def class_name?; end
# Yield nodes for the namespace # Yield nodes for the namespace
@ -1103,29 +1102,29 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
# s(:const, :Foo), then # s(:const, :Foo), then
# s(:const, s(:const, :Foo), :Bar) # s(:const, s(:const, :Foo), :Bar)
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#43 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#44
def each_path(&block); end def each_path(&block); end
# @return [Boolean] if the constant is a Module / Class, according to the standard convention. # @return [Boolean] if the constant is a Module / Class, according to the standard convention.
# Note: some classes might have uppercase in which case this method # Note: some classes might have uppercase in which case this method
# returns false # returns false
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21
def module_name?; end def module_name?; end
# @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...) # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...)
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#8 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#9
def namespace; end def namespace; end
# @return [Boolean] if the constant does not start with `::` (aka s(:cbase)) # @return [Boolean] if the constant does not start with `::` (aka s(:cbase))
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#33 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#34
def relative?; end def relative?; end
# @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar # @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar
# #
# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#13 # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14
def short_name; end def short_name; end
end end
@ -2046,6 +2045,71 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
def first_argument_index; end def first_argument_index; end
end end
# A node extension for `masgn` nodes.
# This will be used in place of a plain node when the builder constructs
# the AST, making its methods available to all assignment nodes within RuboCop.
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#8
class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node
# @return [Array<Node>] the assignment nodes of the multiple assignment
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#16
def assignments; end
# The RHS (right hand side) of the multiple assignment. This returns
# the nodes as parsed: either a single node if the RHS has a single value,
# or an `array` node containing multiple nodes.
#
# NOTE: Due to how parsing works, `expression` will return the same for
# `a, b = x, y` and `a, b = [x, y]`.
#
# @return [Node] the right hand side of a multiple assignment.
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
def expression; end
# @return [MlhsNode] the `mlhs` node
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#10
def lhs; end
# @return [Array<Symbol>] names of all the variables being assigned
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#21
def names; end
# The RHS (right hand side) of the multiple assignment. This returns
# the nodes as parsed: either a single node if the RHS has a single value,
# or an `array` node containing multiple nodes.
#
# NOTE: Due to how parsing works, `expression` will return the same for
# `a, b = x, y` and `a, b = [x, y]`.
#
# @return [Node] the right hand side of a multiple assignment.
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39
def rhs; end
# In contrast to `expression`, `values` always returns a Ruby array
# containing all the nodes being assigned on the RHS.
#
# Literal arrays are considered a singular value; but unlike `expression`,
# implied `array` nodes from assigning multiple values on the RHS are treated
# as separate.
#
# @return [Array<Node>] individual values being assigned on the RHS of the multiple assignment
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#52
def values; end
private
# @return [Boolean]
#
# source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#58
def multiple_rhs?; end
end
# Common functionality for nodes that are a kind of method dispatch: # Common functionality for nodes that are a kind of method dispatch:
# `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`, # `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`,
# and (modern only): `index`, `indexasgn`, `lambda` # and (modern only): `index`, `indexasgn`, `lambda`
@ -2478,6 +2542,22 @@ RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T
# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20 # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#20
RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set) RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
# A node extension for `mlhs` nodes.
# This will be used in place of a plain node when the builder constructs
# the AST, making its methods available to all assignment nodes within RuboCop.
#
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#8
class RuboCop::AST::MlhsNode < ::RuboCop::AST::Node
# Returns all the assignment nodes on the left hand side (LHS) of a multiple assignment.
# These are generally assignment nodes (`lvasgn`, `ivasgn`, `cvasgn`, `gvasgn`, `casgn`)
# but can also be `send` nodes in case of `foo.bar, ... =` or `foo[:bar], ... =`.
#
# @return [Array<Node>] the assignment nodes of the multiple assignment LHS
#
# source://rubocop-ast//lib/rubocop/ast/node/mlhs_node.rb#14
def assignments; end
end
# Common functionality for nodes that can be used as modifiers: # Common functionality for nodes that can be used as modifiers:
# `if`, `while`, `until` # `if`, `while`, `until`
# #
@ -4459,7 +4539,7 @@ class RuboCop::AST::NodePattern::LexerRex
# The current location in the parse. # The current location in the parse.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103
def location; end def location; end
# The StringScanner for this lexer. # The StringScanner for this lexer.
@ -4474,22 +4554,22 @@ class RuboCop::AST::NodePattern::LexerRex
# Lex the next token. # Lex the next token.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112
def next_token; end def next_token; end
# Parse the given string. # Parse the given string.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83
def parse(str); end def parse(str); end
# Read in and parse the file at +path+. # Read in and parse the file at +path+.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93
def parse_file(path); end def parse_file(path); end
# The current scanner class. Must be overridden in subclasses. # The current scanner class. Must be overridden in subclasses.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76
def scanner_class; end def scanner_class; end
# The StringScanner for this lexer. # The StringScanner for this lexer.
@ -4863,116 +4943,116 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#19
def initialize(builder = T.unsafe(nil)); end def initialize(builder = T.unsafe(nil)); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#333 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#335
def _reduce_10(val, _values); end def _reduce_10(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#337 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#339
def _reduce_11(val, _values); end def _reduce_11(val, _values); end
# reduce 12 omitted # reduce 12 omitted
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#343 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#345
def _reduce_13(val, _values); end def _reduce_13(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#347 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#349
def _reduce_14(val, _values); end def _reduce_14(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#351 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#353
def _reduce_15(val, _values); end def _reduce_15(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#355 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#357
def _reduce_16(val, _values); end def _reduce_16(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#359 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#361
def _reduce_17(val, _values); end def _reduce_17(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#363 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#365
def _reduce_18(val, _values); end def _reduce_18(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#367 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#369
def _reduce_19(val, _values); end def _reduce_19(val, _values); end
# reduce 1 omitted # reduce 1 omitted
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#301 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#303
def _reduce_2(val, _values); end def _reduce_2(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#371 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#373
def _reduce_20(val, _values); end def _reduce_20(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#375 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#377
def _reduce_21(val, _values); end def _reduce_21(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#379 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#381
def _reduce_22(val, _values); end def _reduce_22(val, _values); end
# reduce 24 omitted # reduce 24 omitted
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#387 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#389
def _reduce_25(val, _values); end def _reduce_25(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#393 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#395
def _reduce_26(val, _values); end def _reduce_26(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#305 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#307
def _reduce_3(val, _values); end def _reduce_3(val, _values); end
# reduce 32 omitted # reduce 32 omitted
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#413 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#415
def _reduce_33(val, _values); end def _reduce_33(val, _values); end
# reduce 36 omitted # reduce 36 omitted
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#423 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#425
def _reduce_37(val, _values); end def _reduce_37(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#427 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#429
def _reduce_38(val, _values); end def _reduce_38(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#431 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#433
def _reduce_39(val, _values); end def _reduce_39(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#309 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#311
def _reduce_4(val, _values); end def _reduce_4(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#435 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#437
def _reduce_40(val, _values); end def _reduce_40(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#439 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#441
def _reduce_41(val, _values); end def _reduce_41(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#443 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#445
def _reduce_42(val, _values); end def _reduce_42(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#447 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#449
def _reduce_43(val, _values); end def _reduce_43(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#451 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#453
def _reduce_44(val, _values); end def _reduce_44(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#455 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#457
def _reduce_45(val, _values); end def _reduce_45(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#459 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#461
def _reduce_46(val, _values); end def _reduce_46(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#313 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#315
def _reduce_5(val, _values); end def _reduce_5(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#317 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#319
def _reduce_6(val, _values); end def _reduce_6(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#321 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#323
def _reduce_7(val, _values); end def _reduce_7(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#325 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#327
def _reduce_8(val, _values); end def _reduce_8(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#329 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#331
def _reduce_9(val, _values); end def _reduce_9(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465
def _reduce_none(val, _values); end def _reduce_none(val, _values); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9 # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
@ -5032,10 +5112,10 @@ RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#227
RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array) RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array)
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#293 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#295
RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) RuboCop::AST::NodePattern::Parser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass)
# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#243 # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#244
RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
# Overrides Parser to use `WithMeta` variants and provide additional methods # Overrides Parser to use `WithMeta` variants and provide additional methods
@ -5406,7 +5486,7 @@ RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.uns
RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
RuboCop::AST::NodePattern::Sets::SET_REJECT_DELETE_IF_REJECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set)
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
@ -5418,7 +5498,7 @@ RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil
RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set)
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT_FILTER_FILTER = T.let(T.unsafe(nil), Set)
# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10
RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
@ -6022,7 +6102,7 @@ class RuboCop::AST::ProcessedSource
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58
def lines; end def lines; end
# source://rubocop-md/1.2.2/lib/rubocop/markdown/rubocop_ext.rb#95 # source://rubocop-md/1.2.4/lib/rubocop/markdown/rubocop_ext.rb#98
def parse(src, *args); end def parse(src, *args); end
# Returns the value of attribute parser_engine. # Returns the value of attribute parser_engine.
@ -7083,6 +7163,18 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
def keyword; end def keyword; end
end end
# A node extension for `lvar`, `ivar`, `cvar` and `gvar` nodes.
# This will be used in place of a plain node when the builder constructs
# the AST, making its methods available to all assignment nodes within RuboCop.
#
# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#8
class RuboCop::AST::VarNode < ::RuboCop::AST::Node
# @return [Symbol] The name of the variable.
#
# source://rubocop-ast//lib/rubocop/ast/node/var_node.rb#10
def name; end
end
# source://rubocop-ast//lib/rubocop/ast/version.rb#5 # source://rubocop-ast//lib/rubocop/ast/version.rb#5
module RuboCop::AST::Version; end module RuboCop::AST::Version; end
@ -7183,6 +7275,335 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
def node_parts; end def node_parts; end
end end
class RuboCop::CommentConfig
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#34
def initialize(processed_source); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#63
def comment_only_line?(line_number); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def config(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#51
def cop_disabled_line_ranges; end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#39
def cop_enabled_at_line?(cop, line_number); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#47
def cop_opted_in?(cop); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#55
def extra_enabled_comments; end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#30
def processed_source; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def registry(*_arg0, **_arg1, &_arg2); end
private
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#96
def analyze; end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#124
def analyze_cop(analysis, directive); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#144
def analyze_disabled(analysis, directive); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#155
def analyze_rest(analysis, directive); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#135
def analyze_single_line(analysis, directive); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#164
def cop_line_ranges(analysis); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#170
def each_directive; end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#69
def extra_enabled_comments_with_names(extras:, names:); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#190
def handle_enable_all(directive, names, extras); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#204
def handle_switch(directive, names, extras); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#115
def inject_disabled_cops_directives(analyses); end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#183
def non_comment_token_line_numbers; end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#83
def opt_in_cops; end
# source://rubocop/1.67.0/lib/rubocop/comment_config.rb#179
def qualified_cop_name(cop_name); end
end
class RuboCop::Config
# source://rubocop/1.67.0/lib/rubocop/config.rb#30
def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def [](*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def []=(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#170
def active_support_extensions_enabled?; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#96
def add_excludes_from_higher_level(highest_config); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#197
def allowed_camel_case_file?(file); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#241
def base_dir_for_path_parameters; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#271
def bundler_lock_file_path; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#51
def check; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#142
def clusivity_config_for_badge?(badge); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def delete(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#108
def deprecation_check; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def dig(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#162
def disabled_new_cops?; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def each(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def each_key(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#166
def enabled_new_cops?; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def fetch(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#219
def file_to_exclude?(file); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#178
def file_to_include?(file); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#158
def for_all_cops; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#128
def for_badge(badge); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#122
def for_cop(cop); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#153
def for_department(department_name); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#296
def gem_versions_in_target; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#300
def inspect; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#76
def internal?; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def key?(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def keys(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#47
def loaded_features; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#20
def loaded_path; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#81
def make_excludes_absolute; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def map(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def merge(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#251
def parser_engine; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#232
def path_relative_to_config(path); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#228
def patterns_to_exclude; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#224
def patterns_to_include; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#282
def pending_cops; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#211
def possibly_include_hidden?; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def replace(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#71
def signature; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#266
def smart_loaded_path; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#174
def string_literals_frozen_by_default?; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#255
def target_rails_version; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def target_ruby_version(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def to_h(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def to_hash(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#67
def to_s; end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def transform_values(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def validate(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#58
def validate_after_resolution; end
private
# source://rubocop/1.67.0/lib/rubocop/config.rb#350
def department_of(qualified_cop_name); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#338
def enable_cop?(qualified_cop_name, cop_options); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#325
def gem_version_to_major_minor_float(gem_version); end
# source://rubocop/1.67.0/lib/rubocop/config.rb#331
def read_gem_versions_from_target_lockfile; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#312
def read_rails_version_from_bundler_lock_file; end
# source://rubocop/1.67.0/lib/rubocop/config.rb#307
def target_rails_version_from_bundler_lock_file; end
class << self
# source://rubocop/1.67.0/lib/rubocop/config.rb#22
def create(hash, path, check: T.unsafe(nil)); end
end
end
class RuboCop::ConfigValidator
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#27
def initialize(config); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def for_all_cops(*_arg0, **_arg1, &_arg2); end
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#9
def smart_loaded_path(*_arg0, **_arg1, &_arg2); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#63
def target_ruby_version; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#33
def validate; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#59
def validate_after_resolution; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#67
def validate_section_presence(name); end
private
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#104
def alert_about_unrecognized_cops(invalid_cop_names); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#254
def check_cop_config_value(hash, parent = T.unsafe(nil)); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#77
def check_obsoletions; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#84
def check_target_ruby; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#195
def each_invalid_parameter(cop_name); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#120
def list_unknown_cops(invalid_cop_names); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#274
def param_error_message(parent, key, value, supposed_values); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#242
def reject_conflicting_safe_settings; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#233
def reject_mutually_exclusive_defaults; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#142
def suggestion(name); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#75
def target_ruby; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#207
def validate_enforced_styles(valid_cop_names); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#169
def validate_new_cops_parameter; end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#180
def validate_parameter_names(valid_cop_names); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#227
def validate_support_and_has_list(name, formats, valid); end
# source://rubocop/1.67.0/lib/rubocop/config_validator.rb#158
def validate_syntax_cop; end
end
# Similar to `Forwardable#def_delegators`, but simpler & faster # Similar to `Forwardable#def_delegators`, but simpler & faster
# #
# source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#5 # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#5