diff --git a/sorbet/rbi/gems/json@2.6.2.rbi b/sorbet/rbi/gems/json@2.6.3.rbi similarity index 93% rename from sorbet/rbi/gems/json@2.6.2.rbi rename to sorbet/rbi/gems/json@2.6.3.rbi index c551eee5..b379bc4b 100644 --- a/sorbet/rbi/gems/json@2.6.2.rbi +++ b/sorbet/rbi/gems/json@2.6.3.rbi @@ -6,7 +6,7 @@ # Extends any Class to include _json_creatable?_ method. # -# source://json-2.6.2/lib/json/common.rb:695 +# source://json//lib/json/common.rb#695 class Class < ::Module # Returns true if this class can be used to create an instance # from a serialised JSON string. The class has to implement a class @@ -15,7 +15,7 @@ class Class < ::Module # # @return [Boolean] # - # source://json-2.6.2/lib/json/common.rb:700 + # source://json//lib/json/common.rb#700 def json_creatable?; end end @@ -589,7 +589,7 @@ end # Without custom addition: "#" (String) # With custom addition: # (Foo) # -# source://json-2.6.2/lib/json/version.rb:2 +# source://json//lib/json/version.rb#2 module JSON private @@ -621,7 +621,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json-2.6.2/lib/json/common.rb:631 + # source://json//lib/json/common.rb#631 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end # :call-seq: @@ -638,13 +638,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json-2.6.2/lib/json/common.rb:335 + # source://json//lib/json/common.rb#335 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json-2.6.2/lib/json/common.rb:335 + # source://json//lib/json/common.rb#335 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -683,7 +683,7 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json-2.6.2/lib/json/common.rb:296 + # source://json//lib/json/common.rb#296 def generate(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -814,7 +814,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json-2.6.2/lib/json/common.rb:557 + # source://json//lib/json/common.rb#557 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :call-seq: @@ -825,7 +825,7 @@ module JSON # # See method #parse. # - # source://json-2.6.2/lib/json/common.rb:245 + # source://json//lib/json/common.rb#245 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -836,7 +836,7 @@ module JSON # # See method #parse! # - # source://json-2.6.2/lib/json/common.rb:256 + # source://json//lib/json/common.rb#256 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -887,7 +887,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json-2.6.2/lib/json/common.rb:215 + # source://json//lib/json/common.rb#215 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -902,7 +902,7 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json-2.6.2/lib/json/common.rb:230 + # source://json//lib/json/common.rb#230 def parse!(source, opts = T.unsafe(nil)); end # :call-seq: @@ -935,28 +935,28 @@ module JSON # } # } # - # source://json-2.6.2/lib/json/common.rb:390 + # source://json//lib/json/common.rb#390 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json-2.6.2/lib/json/common.rb:390 + # source://json//lib/json/common.rb#390 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json-2.6.2/lib/json/common.rb:575 + # source://json//lib/json/common.rb#575 def recurse_proc(result, &proc); end - # source://json-2.6.2/lib/json/common.rb:557 + # source://json//lib/json/common.rb#557 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json-2.6.2/lib/json/common.rb:296 + # source://json//lib/json/common.rb#296 def unparse(obj, opts = T.unsafe(nil)); end class << self @@ -972,26 +972,26 @@ module JSON # ruby = [0, 1, nil] # JSON[ruby] # => '[0,1,null]' # - # source://json-2.6.2/lib/json/common.rb:18 + # source://json//lib/json/common.rb#18 def [](object, opts = T.unsafe(nil)); end - # source://json-2.6.2/lib/json/common.rb:81 + # source://json//lib/json/common.rb#81 def create_fast_state; end # Returns the current create identifier. # See also JSON.create_id=. # - # source://json-2.6.2/lib/json/common.rb:126 + # source://json//lib/json/common.rb#126 def create_id; end # Sets create identifier, which is used to decide if the _json_create_ # hook of a class should be called; initial value is +json_class+: # JSON.create_id # => 'json_class' # - # source://json-2.6.2/lib/json/common.rb:120 + # source://json//lib/json/common.rb#120 def create_id=(new_value); end - # source://json-2.6.2/lib/json/common.rb:91 + # source://json//lib/json/common.rb#91 def create_pretty_state; end # Return the constant located at _path_. The format of _path_ has to be @@ -999,7 +999,7 @@ module JSON # level (absolute namespace path?). If there doesn't exist a constant at # the given path, an ArgumentError is raised. # - # source://json-2.6.2/lib/json/common.rb:42 + # source://json//lib/json/common.rb#42 def deep_const_get(path); end # :call-seq: @@ -1030,7 +1030,7 @@ module JSON # Output: # {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"} # - # source://json-2.6.2/lib/json/common.rb:631 + # source://json//lib/json/common.rb#631 def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end # Sets or returns the default options for the JSON.dump method. @@ -1038,7 +1038,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false} # - # source://json-2.6.2/lib/json/common.rb:596 + # source://json//lib/json/common.rb#596 def dump_default_options; end # Sets or returns the default options for the JSON.dump method. @@ -1046,7 +1046,7 @@ module JSON # opts = JSON.dump_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false} # - # source://json-2.6.2/lib/json/common.rb:596 + # source://json//lib/json/common.rb#596 def dump_default_options=(_arg0); end # :call-seq: @@ -1063,13 +1063,13 @@ module JSON # # Raises SystemStackError (stack level too deep): # JSON.fast_generate(a) # - # source://json-2.6.2/lib/json/common.rb:335 + # source://json//lib/json/common.rb#335 def fast_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json-2.6.2/lib/json/common.rb:335 + # source://json//lib/json/common.rb#335 def fast_unparse(obj, opts = T.unsafe(nil)); end # :call-seq: @@ -1108,24 +1108,24 @@ module JSON # # Raises JSON::NestingError (nesting of 100 is too deep): # JSON.generate(a) # - # source://json-2.6.2/lib/json/common.rb:296 + # source://json//lib/json/common.rb#296 def generate(obj, opts = T.unsafe(nil)); end # Returns the JSON generator module that is used by JSON. This is # either JSON::Ext::Generator or JSON::Pure::Generator: # JSON.generator # => JSON::Ext::Generator # - # source://json-2.6.2/lib/json/common.rb:103 + # source://json//lib/json/common.rb#103 def generator; end # Set the module _generator_ to be used by JSON. # - # source://json-2.6.2/lib/json/common.rb:58 + # source://json//lib/json/common.rb#58 def generator=(generator); end # Encodes string using String.encode. # - # source://json-2.6.2/lib/json/common.rb:653 + # source://json//lib/json/common.rb#653 def iconv(to, from, string); end # :call-seq: @@ -1256,7 +1256,7 @@ module JSON # #"Admin", "password"=>"0wn3d"}>} # - # source://json-2.6.2/lib/json/common.rb:557 + # source://json//lib/json/common.rb#557 def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or returns default options for the JSON.load method. @@ -1264,7 +1264,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json-2.6.2/lib/json/common.rb:420 + # source://json//lib/json/common.rb#420 def load_default_options; end # Sets or returns default options for the JSON.load method. @@ -1272,7 +1272,7 @@ module JSON # opts = JSON.load_default_options # opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true} # - # source://json-2.6.2/lib/json/common.rb:420 + # source://json//lib/json/common.rb#420 def load_default_options=(_arg0); end # :call-seq: @@ -1283,7 +1283,7 @@ module JSON # # See method #parse. # - # source://json-2.6.2/lib/json/common.rb:245 + # source://json//lib/json/common.rb#245 def load_file(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1294,7 +1294,7 @@ module JSON # # See method #parse! # - # source://json-2.6.2/lib/json/common.rb:256 + # source://json//lib/json/common.rb#256 def load_file!(filespec, opts = T.unsafe(nil)); end # :call-seq: @@ -1345,7 +1345,7 @@ module JSON # # Raises JSON::ParserError (783: unexpected token at ''): # JSON.parse('') # - # source://json-2.6.2/lib/json/common.rb:215 + # source://json//lib/json/common.rb#215 def parse(source, opts = T.unsafe(nil)); end # :call-seq: @@ -1360,19 +1360,19 @@ module JSON # which disables checking for nesting depth. # - Option +allow_nan+, if not provided, defaults to +true+. # - # source://json-2.6.2/lib/json/common.rb:230 + # source://json//lib/json/common.rb#230 def parse!(source, opts = T.unsafe(nil)); end # Returns the JSON parser class that is used by JSON. This is either # JSON::Ext::Parser or JSON::Pure::Parser: # JSON.parser # => JSON::Ext::Parser # - # source://json-2.6.2/lib/json/common.rb:29 + # source://json//lib/json/common.rb#29 def parser; end # Set the JSON parser class _parser_ to be used by JSON. # - # source://json-2.6.2/lib/json/common.rb:32 + # source://json//lib/json/common.rb#32 def parser=(parser); end # :call-seq: @@ -1405,119 +1405,115 @@ module JSON # } # } # - # source://json-2.6.2/lib/json/common.rb:390 + # source://json//lib/json/common.rb#390 def pretty_generate(obj, opts = T.unsafe(nil)); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and later delete them. # - # source://json-2.6.2/lib/json/common.rb:390 + # source://json//lib/json/common.rb#390 def pretty_unparse(obj, opts = T.unsafe(nil)); end # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_ # - # source://json-2.6.2/lib/json/common.rb:575 + # source://json//lib/json/common.rb#575 def recurse_proc(result, &proc); end - # source://json-2.6.2/lib/json/common.rb:557 + # source://json//lib/json/common.rb#557 def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end # Sets or Returns the JSON generator state class that is used by JSON. This is # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: # JSON.state # => JSON::Ext::Generator::State # - # source://json-2.6.2/lib/json/common.rb:108 + # source://json//lib/json/common.rb#108 def state; end # Sets or Returns the JSON generator state class that is used by JSON. This is # either JSON::Ext::Generator::State or JSON::Pure::Generator::State: # JSON.state # => JSON::Ext::Generator::State # - # source://json-2.6.2/lib/json/common.rb:108 + # source://json//lib/json/common.rb#108 def state=(_arg0); end # :stopdoc: # I want to deprecate these later, so I'll first be silent about them, and # later delete them. # - # source://json-2.6.2/lib/json/common.rb:296 + # source://json//lib/json/common.rb#296 def unparse(obj, opts = T.unsafe(nil)); end end end -# source://json-2.6.2/lib/json/common.rb:114 +# source://json//lib/json/common.rb#114 JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String) -# source://json-2.6.2/lib/json/common.rb:111 +# source://json//lib/json/common.rb#111 JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String) -# source://json-2.6.2/lib/json/generic_object.rb:5 +# source://json//lib/json/generic_object.rb#5 class JSON::GenericObject < ::OpenStruct - # source://json-2.6.2/lib/json/generic_object.rb:63 + # source://json//lib/json/generic_object.rb#63 def as_json(*_arg0); end - # source://json-2.6.2/lib/json/generic_object.rb:47 + # source://json//lib/json/generic_object.rb#47 def to_hash; end - # source://json-2.6.2/lib/json/generic_object.rb:67 + # source://json//lib/json/generic_object.rb#67 def to_json(*a); end - # source://json-2.6.2/lib/json/generic_object.rb:59 + # source://json//lib/json/generic_object.rb#59 def |(other); end class << self - # source://json-2.6.2/lib/json/generic_object.rb:41 + # source://json//lib/json/generic_object.rb#41 def dump(obj, *args); end - # source://json-2.6.2/lib/json/generic_object.rb:21 + # source://json//lib/json/generic_object.rb#21 def from_hash(object); end # Sets the attribute json_creatable # # @param value the value to set the attribute json_creatable to. # - # source://json-2.6.2/lib/json/generic_object.rb:13 + # source://json//lib/json/generic_object.rb#13 def json_creatable=(_arg0); end # @return [Boolean] # - # source://json-2.6.2/lib/json/generic_object.rb:9 + # source://json//lib/json/generic_object.rb#9 def json_creatable?; end - # source://json-2.6.2/lib/json/generic_object.rb:15 + # source://json//lib/json/generic_object.rb#15 def json_create(data); end - # source://json-2.6.2/lib/json/generic_object.rb:36 + # source://json//lib/json/generic_object.rb#36 def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end end end # The base exception for JSON errors. # -# source://json-2.6.2/lib/json/common.rb:137 +# source://json//lib/json/common.rb#137 class JSON::JSONError < ::StandardError class << self - # source://json-2.6.2/lib/json/common.rb:138 + # source://json//lib/json/common.rb#138 def wrap(exception); end end end -# source://json-2.6.2/lib/json/common.rb:35 +# source://json//lib/json/common.rb#35 JSON::Parser = JSON::Ext::Parser -# source://json-2.6.2/lib/json/common.rb:73 +# source://json//lib/json/common.rb#73 JSON::State = JSON::Ext::Generator::State # For backwards compatibility # -# source://json-2.6.2/lib/json/common.rb:159 +# source://json//lib/json/common.rb#159 JSON::UnparserError = JSON::GeneratorError -# Adds a `byebug` method to the Kernel module. -# -# Dropping a `byebug` call anywhere in your code, you get a debug prompt. -# -# source://json-2.6.2/lib/json/common.rb:658 +# source://json//lib/json/common.rb#658 module Kernel private @@ -1528,18 +1524,18 @@ module Kernel # The _opts_ argument is passed through to generate/parse respectively. See # generate and parse for their documentation. # - # source://json-2.6.2/lib/json/common.rb:685 + # source://json//lib/json/common.rb#685 def JSON(object, *args); end # Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in # one line. # - # source://json-2.6.2/lib/json/common.rb:663 + # source://json//lib/json/common.rb#663 def j(*objs); end # Outputs _objs_ to STDOUT as JSON strings in a pretty format, with # indentation and over many lines. # - # source://json-2.6.2/lib/json/common.rb:672 + # source://json//lib/json/common.rb#672 def jj(*objs); end end diff --git a/sorbet/rbi/gems/parser@3.1.2.1.rbi b/sorbet/rbi/gems/parser@3.1.2.1.rbi deleted file mode 100644 index 3d9724d5..00000000 --- a/sorbet/rbi/gems/parser@3.1.2.1.rbi +++ /dev/null @@ -1,8937 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `parser` gem. -# Please instead update this file by running `bin/tapioca gem parser`. - -# @api public -# -# source://parser-3.1.2.1/lib/parser.rb:19 -module Parser - class << self - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/current.rb:5 - def warn_syntax_deviation(feature, version); end - end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser.rb:24 -module Parser::AST; end - -# {Parser::AST::Node} contains information about a single AST node and its -# child nodes. It extends the basic [AST::Node](http://rdoc.info/gems/ast/AST/Node) -# class provided by gem [ast](http://rdoc.info/gems/ast). -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/ast/node.rb:17 -class Parser::AST::Node < ::AST::Node - # Assigns various properties to this AST node. Currently only the - # location can be set. - # - # @api public - # @option properties - # @param properties [Hash] - # - # source://parser-3.1.2.1/lib/parser/ast/node.rb:30 - def assign_properties(properties); end - - # Source map for this Node. - # - # @api public - # @return [Parser::Source::Map] - # - # source://parser-3.1.2.1/lib/parser/ast/node.rb:18 - def loc; end - - # Source map for this Node. - # - # @api public - # @return [Parser::Source::Map] - # - # source://parser-3.1.2.1/lib/parser/ast/node.rb:18 - def location; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/ast/processor.rb:9 -class Parser::AST::Processor < ::AST::Processor - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_alias(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_and(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_and_asgn(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_arg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_arg_expr(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_args(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:103 - def on_argument(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_array(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_array_pattern(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_array_pattern_with_tail(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_back_ref(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_begin(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_block(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_block_pass(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_blockarg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_blockarg_expr(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_break(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_case(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_case_match(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:87 - def on_casgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_class(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:79 - def on_const(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_const_pattern(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:176 - def on_csend(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_cvar(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:56 - def on_cvasgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:155 - def on_def(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_defined?(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:164 - def on_defs(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_dstr(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_dsym(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_eflipflop(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:283 - def on_empty_else(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_ensure(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_erange(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_find_pattern(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_for(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_forward_arg(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_gvar(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:56 - def on_gvasgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_hash(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_hash_pattern(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_if(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_if_guard(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_iflipflop(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_in_match(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_in_pattern(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_index(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_indexasgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_irange(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_ivar(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:56 - def on_ivasgn(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_kwarg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_kwargs(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_kwbegin(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_kwoptarg(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_kwrestarg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_kwsplat(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_lambda(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_lvar(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:56 - def on_lvasgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_masgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_alt(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_as(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_current_line(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_pattern(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_pattern_p(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_rest(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_match_var(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_match_with_lvasgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_mlhs(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_module(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_next(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_not(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:32 - def on_nth_ref(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:193 - def on_numblock(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:68 - def on_op_asgn(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_optarg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_or(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_or_asgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_pair(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_pin(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_postexe(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_preexe(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:130 - def on_procarg0(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_redo(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_regexp(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_resbody(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_rescue(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_restarg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_restarg_expr(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_retry(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_return(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_sclass(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:176 - def on_send(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:116 - def on_shadowarg(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_splat(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_super(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_undef(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_unless_guard(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_until(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_until_post(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:27 - def on_var(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:43 - def on_vasgn(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_when(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_while(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_while_post(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_xstr(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def on_yield(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:276 - def process_argument_node(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:10 - def process_regular_node(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:268 - def process_var_asgn_node(node); end - - # @api public - # @private - # - # source://parser-3.1.2.1/lib/parser/ast/processor.rb:260 - def process_variable_node(node); end -end - -# Base class for version-specific parsers. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/base.rb:29 -class Parser::Base < ::Racc::Parser - # @api public - # @param builder [Parser::Builders::Default] The AST builder to use. - # @return [Base] a new instance of Base - # - # source://parser-3.1.2.1/lib/parser/base.rb:126 - def initialize(builder = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:114 - def builder; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:117 - def context; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:119 - def current_arg_stack; end - - # @api public - # @return [Parser::Diagnostic::Engine] - # - # source://parser-3.1.2.1/lib/parser/base.rb:113 - def diagnostics; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:112 - def lexer; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:118 - def max_numparam_stack; end - - # Parses a source buffer and returns the AST, or `nil` in case of a non fatal error. - # - # @api public - # @param source_buffer [Parser::Source::Buffer] The source buffer to parse. - # @return [Parser::AST::Node, nil] - # - # source://parser-3.1.2.1/lib/parser/base.rb:186 - def parse(source_buffer); end - - # Parses a source buffer and returns the AST and the source code comments. - # - # @api public - # @return [Array] - # @see #parse - # @see Parser::Source::Comment#associate - # - # source://parser-3.1.2.1/lib/parser/base.rb:204 - def parse_with_comments(source_buffer); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:121 - def pattern_hash_keys; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:120 - def pattern_variables; end - - # Resets the state of the parser. - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:167 - def reset; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:116 - def source_buffer; end - - # @api public - # @return [Parser::StaticEnvironment] - # - # source://parser-3.1.2.1/lib/parser/base.rb:115 - def static_env; end - - # Parses a source buffer and returns the AST, the source code comments, - # and the tokens emitted by the lexer. In case of a fatal error, a {SyntaxError} - # is raised, unless `recover` is true. In case of an error - # (non-fatal or recovered), `nil` is returned instead of the AST, and - # comments as well as tokens are only returned up to the location of - # the error. - # - # Currently, token stream format returned by #tokenize is not documented, - # but is considered part of a public API and only changed according - # to Semantic Versioning. - # - # However, note that the exact token composition of various constructs - # might vary. For example, a string `"foo"` is represented equally well - # by `:tSTRING_BEG " :tSTRING_CONTENT foo :tSTRING_END "` and - # `:tSTRING "foo"`; such details must not be relied upon. - # - # @api public - # @param source_buffer [Parser::Source::Buffer] - # @param recover [Boolean] If true, recover from syntax errors. False by default. - # @return [Array] - # - # source://parser-3.1.2.1/lib/parser/base.rb:233 - def tokenize(source_buffer, recover = T.unsafe(nil)); end - - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:257 - def check_kwarg_name(name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:266 - def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:251 - def next_token; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:282 - def on_error(error_token_id, error_value, value_stack); end - - class << self - # @api public - # @return [Parser::Base] parser with the default options set. - # - # source://parser-3.1.2.1/lib/parser/base.rb:84 - def default_parser; end - - # Parses a string of Ruby code and returns the AST. If the source - # cannot be parsed, {SyntaxError} is raised and a diagnostic is - # printed to `stderr`. - # - # @api public - # @example - # Parser::Base.parse('puts "hello"') - # @param string [String] The block of code to parse. - # @param file [String] The name of the file the code originated from. - # @param line [Numeric] The initial line number. - # @return [Parser::AST::Node] - # - # source://parser-3.1.2.1/lib/parser/base.rb:30 - def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end - - # Parses Ruby source code by reading it from a file. If the source - # cannot be parsed, {SyntaxError} is raised and a diagnostic is - # printed to `stderr`. - # - # @api public - # @param filename [String] Path to the file to parse. - # @return [Parser::AST::Node] - # @see #parse - # - # source://parser-3.1.2.1/lib/parser/base.rb:64 - def parse_file(filename); end - - # Parses Ruby source code by reading it from a file and returns the AST and - # comments. If the source cannot be parsed, {SyntaxError} is raised and a - # diagnostic is printed to `stderr`. - # - # @api public - # @param filename [String] Path to the file to parse. - # @return [Array] - # @see #parse - # - # source://parser-3.1.2.1/lib/parser/base.rb:77 - def parse_file_with_comments(filename); end - - # Parses a string of Ruby code and returns the AST and comments. If the - # source cannot be parsed, {SyntaxError} is raised and a diagnostic is - # printed to `stderr`. - # - # @api public - # @example - # Parser::Base.parse_with_comments('puts "hello"') - # @param string [String] The block of code to parse. - # @param file [String] The name of the file the code originated from. - # @param line [Numeric] The initial line number. - # @return [Array] - # - # source://parser-3.1.2.1/lib/parser/base.rb:49 - def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end - - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/base.rb:97 - def setup_source_buffer(file, line, string, encoding); end - end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser.rb:72 -module Parser::Builders; end - -# Default AST builder. Uses {AST::Node}s. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/builders/default.rb:8 -class Parser::Builders::Default - # Initializes attributes: - # - # * `emit_file_line_as_literals`: `true` - # - # @api public - # @return [Default] a new instance of Default - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:243 - def initialize; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:696 - def __ENCODING__(__ENCODING__t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:348 - def __FILE__(__FILE__t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:312 - def __LINE__(__LINE__t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:622 - def accessible(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:871 - def alias(alias_t, to, from); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:910 - def arg(name_t); end - - # Ruby 1.8 block arguments - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1000 - def arg_expr(expr); end - - # Formal arguments - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:880 - def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end - - # Arrays - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:440 - def array(begin_t, elements, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1575 - def array_pattern(lbrack_t, elements, rbrack_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:760 - def assign(lhs, eql_t, rhs); end - - # Assignment - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:705 - def assignable(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:540 - def associate(begin_t, pairs, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1156 - def attr_asgn(receiver, dot_t, selector_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:612 - def back_ref(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1420 - def begin(begin_t, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1362 - def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1438 - def begin_keyword(begin_t, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1190 - def binary_op(receiver, operator_t, arg); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1107 - def block(method_call, begin_t, args, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1142 - def block_pass(amper_t, arg); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:975 - def blockarg(amper_t, name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1020 - def blockarg_expr(amper_t, expr); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1098 - def call_lambda(lambda_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1081 - def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end - - # Method calls - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1061 - def call_type_for_dot(dot_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1295 - def case(case_t, expr, when_bodies, else_t, else_body, end_t); end - - # PATTERN MATCHING - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1458 - def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:343 - def character(char_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:284 - def complex(complex_t); end - - # Expression grouping - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1408 - def compstmt(statements); end - - # Conditionals - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1271 - def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1277 - def condition_mod(if_true, if_false, cond_t, cond); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:679 - def const(name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:691 - def const_fetch(scope, t_colon2, name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:684 - def const_global(t_colon3, name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:756 - def const_op_assignable(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1605 - def const_pattern(const, ldelim_t, pattern, rdelim_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:607 - def cvar(token); end - - # Indented (interpolated, noninterpolated, executable) strings - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:388 - def dedent_string(node, dedent_level); end - - # Class and module definition - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:807 - def def_class(class_t, name, lt_t, superclass, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:838 - def def_endless_method(def_t, name_t, args, assignment_t, body); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:856 - def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end - - # Method (un)definition - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:830 - def def_method(def_t, name_t, args, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:820 - def def_module(module_t, name, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:814 - def def_sclass(class_t, lshft_t, expr, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:846 - def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end - - # If set to true (the default), `__FILE__` and `__LINE__` are transformed to - # literal nodes. For example, `s(:str, "lib/foo.rb")` and `s(:int, 10)`. - # - # If set to false, `__FILE__` and `__LINE__` are emitted as-is, - # i.e. as `s(:__FILE__)` and `s(:__LINE__)` nodes. - # - # Source maps are identical in both cases. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:237 - def emit_file_line_as_literals; end - - # If set to true (the default), `__FILE__` and `__LINE__` are transformed to - # literal nodes. For example, `s(:str, "lib/foo.rb")` and `s(:int, 10)`. - # - # If set to false, `__FILE__` and `__LINE__` are emitted as-is, - # i.e. as `s(:__FILE__)` and `s(:__LINE__)` nodes. - # - # Source maps are identical in both cases. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:237 - def emit_file_line_as_literals=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:265 - def false(false_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1596 - def find_pattern(lbrack_t, elements, rbrack_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:276 - def float(float_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1316 - def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:906 - def forward_arg(dots_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:896 - def forward_only_args(begin_t, dots_t, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1077 - def forwarded_args(dots_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:602 - def gvar(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1569 - def hash_pattern(lbrace_t, kwargs, rbrace_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:592 - def ident(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1485 - def if_guard(if_t, if_body); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1464 - def in_match(lhs, in_t, rhs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1479 - def in_pattern(in_t, pattern, guard, then_t, body); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1165 - def index(receiver, lbrack_t, indexes, rbrack_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1179 - def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end - - # Numerics - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:272 - def integer(integer_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:597 - def ivar(token); end - - # Keywords - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1324 - def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:937 - def kwarg(name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:963 - def kwnilarg(dstar_t, nil_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:944 - def kwoptarg(name_t, value); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:951 - def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:535 - def kwsplat(dstar_t, arg); end - - # Logical operations: and, or - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1264 - def logical_op(type, lhs, op_t, rhs); end - - # Loops - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1302 - def loop(type, keyword_t, cond, do_t, body, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1307 - def loop_mod(type, body, keyword_t, cond); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1619 - def match_alt(left, pipe_t, right); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1626 - def match_as(value, assoc_t, as); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1505 - def match_hash_var(name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1519 - def match_hash_var_from_str(begin_t, strings, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1657 - def match_label(label_type, label); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1633 - def match_nil_pattern(dstar_t, nil_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1212 - def match_op(receiver, match_t, arg); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1638 - def match_pair(label_type, label, value); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1469 - def match_pattern(lhs, match_t, rhs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1474 - def match_pattern_p(lhs, match_t, rhs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1558 - def match_rest(star_t, name_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1493 - def match_var(name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1601 - def match_with_trailing_comma(match, comma_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:798 - def multi_assign(lhs, eql_t, rhs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:793 - def multi_lhs(begin_t, items, end_t); end - - # Singletons - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:255 - def nil(nil_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1240 - def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:617 - def nth_ref(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:892 - def numargs(max_numparam); end - - # MacRuby Objective-C arguments - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1031 - def objc_kwarg(kwname_t, assoc_t, name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1045 - def objc_restarg(star_t, name = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1147 - def objc_varargs(pair, rest_of_varargs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:767 - def op_assign(lhs, op_t, rhs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:917 - def optarg(name_t, eql_t, value); end - - # Hashes - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:488 - def pair(key, assoc_t, value); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:505 - def pair_keyword(key_t, value); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:521 - def pair_label(key_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:493 - def pair_list_18(list); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:513 - def pair_quoted(begin_t, parts, end_t, value); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:225 - def parser; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:225 - def parser=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1614 - def pin(pin_t, var); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1347 - def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end - - # BEGIN, END - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1342 - def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:985 - def procarg0(arg); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:578 - def range_exclusive(lhs, dot3_t, rhs); end - - # Ranges - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:573 - def range_inclusive(lhs, dot2_t, rhs); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:280 - def rational(rational_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:426 - def regexp_compose(begin_t, parts, end_t, options); end - - # Regular expressions - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:417 - def regexp_options(regopt_t); end - - # Exception handling - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1354 - def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:926 - def restarg(star_t, name_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1009 - def restarg_expr(star_t, expr = T.unsafe(nil)); end - - # Access - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:587 - def self(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:968 - def shadowarg(name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:445 - def splat(star_t, arg = T.unsafe(nil)); end - - # Strings - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:319 - def string(string_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:329 - def string_compose(begin_t, parts, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:324 - def string_internal(string_t); end - - # Symbols - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:355 - def symbol(symbol_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:365 - def symbol_compose(begin_t, parts, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:360 - def symbol_internal(symbol_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:469 - def symbols_compose(begin_t, parts, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1282 - def ternary(cond, question_t, if_true, colon_t, if_false); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:260 - def true(true_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:294 - def unary_num(unary_t, numeric); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1228 - def unary_op(op_t, receiver); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:866 - def undef_method(undef_t, names); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1489 - def unless_guard(unless_t, unless_body); end - - # Case matching - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1289 - def when(when_t, patterns, then_t, body); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:455 - def word(parts); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:464 - def words_compose(begin_t, parts, end_t); end - - # Executable strings - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:381 - def xstring_compose(begin_t, parts, end_t); end - - private - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1796 - def arg_name_collides?(this_name, that_name); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1992 - def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1966 - def binary_op_map(left_e, op_t, right_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2094 - def block_map(receiver_l, begin_t, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1771 - def check_assignment_to_numparam(name, loc); end - - # VERIFICATION - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1673 - def check_condition(cond); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1742 - def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1717 - def check_duplicate_args(args, map = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1829 - def check_duplicate_pattern_key(name, loc); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1819 - def check_duplicate_pattern_variable(name, loc); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1811 - def check_lvar_name(name, loc); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1786 - def check_reserved_for_numparam(name, loc); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2251 - def collapse_string_parts?(parts); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1917 - def collection_map(begin_t, parts, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2121 - def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1952 - def constant_map(scope, colon2_t, name_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2025 - def definition_map(keyword_t, operator_t, name_t, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1858 - def delimited_string_map(string_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2273 - def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2165 - def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2031 - def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1913 - def expr_map(loc); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2146 - def for_map(keyword_t, in_t, begin_t, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2193 - def guard_map(keyword_t, guard_body_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2083 - def index_map(receiver_e, lbrack_t, rbrack_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1849 - def join_exprs(left_expr, right_expr); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2099 - def keyword_map(keyword_t, begin_t, args, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2116 - def keyword_mod_map(pre_e, keyword_t, post_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2002 - def kwarg_map(name_t, value_e = T.unsafe(nil)); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2304 - def kwargs?(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2268 - def loc(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2015 - def module_definition_map(keyword_t, name_e, operator_t, end_t); end - - # SOURCE MAPS - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1841 - def n(type, children, source_map); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1845 - def n0(type, source_map); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:288 - def numeric(kind, token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1883 - def pair_keyword_map(key_t, value_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1898 - def pair_quoted_map(begin_t, end_t, value_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1869 - def prefix_string_map(symbol); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1980 - def range_map(start_e, op_t, end_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1947 - def regexp_map(begin_t, end_t, options_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2152 - def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2294 - def rewrite_hash_args_to_kwargs(args); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2065 - def send_binary_op_map(lhs_e, selector_t, rhs_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2088 - def send_index_map(receiver_e, lbrack_t, rbrack_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2039 - def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2071 - def send_unary_op_map(selector_t, arg_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2224 - def static_regexp(parts, options); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2244 - def static_regexp_node(node); end - - # Extract a static string from e.g. a regular expression, - # honoring the fact that MRI expands interpolations like #{""} - # at parse time. - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2207 - def static_string(nodes); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1933 - def string_map(begin_t, parts, end_t); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2260 - def string_value(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2141 - def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1854 - def token_map(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1970 - def unary_op_map(op_t, arg_e = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1878 - def unquoted_map(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2282 - def validate_definee(definee); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1756 - def validate_no_forward_arg_after_restarg(args); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2256 - def value(token); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:2059 - def var_send_map(variable_e); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:1962 - def variable_map(name_t); end - - class << self - # AST compatibility attribute; causes a single non-mlhs - # block argument to be wrapped in s(:procarg0). - # - # If set to false (the default), block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, :a))` - # - # If set to true, block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, s(:arg, :a))` - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:97 - def emit_arg_inside_procarg0; end - - # AST compatibility attribute; causes a single non-mlhs - # block argument to be wrapped in s(:procarg0). - # - # If set to false (the default), block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, :a))` - # - # If set to true, block arguments `|a|` are emitted as - # `s(:args, s(:procarg0, s(:arg, :a))` - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:97 - def emit_arg_inside_procarg0=(_arg0); end - - # AST compatibility attribute; locations of `__ENCODING__` are not the same - # as locations of `Encoding::UTF_8` causing problems during rewriting, - # all new code should set this attribute to true. - # - # If set to false (the default), `__ENCODING__` is emitted as - # ` s(:const, s(:const, nil, :Encoding), :UTF_8)`. - # - # If set to true, `__ENCODING__` is emitted as - # `s(:__ENCODING__)`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:58 - def emit_encoding; end - - # AST compatibility attribute; locations of `__ENCODING__` are not the same - # as locations of `Encoding::UTF_8` causing problems during rewriting, - # all new code should set this attribute to true. - # - # If set to false (the default), `__ENCODING__` is emitted as - # ` s(:const, s(:const, nil, :Encoding), :UTF_8)`. - # - # If set to true, `__ENCODING__` is emitted as - # `s(:__ENCODING__)`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:58 - def emit_encoding=(_arg0); end - - # AST compatibility attribute; arguments forwarding initially - # didn't have support for leading arguments - # (i.e. `def m(a, ...); end` was a syntax error). However, Ruby 3.0 - # added support for any number of arguments in front of the `...`. - # - # If set to false (the default): - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:forward_args), nil) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, - # s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # If set to true it uses a single format: - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:args, s(:forward_arg))) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # It does't matter that much on 2.7 (because there can't be any leading arguments), - # but on 3.0 it should be better enabled to use a single AST format. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:126 - def emit_forward_arg; end - - # AST compatibility attribute; arguments forwarding initially - # didn't have support for leading arguments - # (i.e. `def m(a, ...); end` was a syntax error). However, Ruby 3.0 - # added support for any number of arguments in front of the `...`. - # - # If set to false (the default): - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:forward_args), nil) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, - # s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # If set to true it uses a single format: - # 1. `def m(...) end` is emitted as - # s(:def, :m, s(:args, s(:forward_arg))) - # 2. `def m(a, b, ...) end` is emitted as - # s(:def, :m, s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg))) - # - # It does't matter that much on 2.7 (because there can't be any leading arguments), - # but on 3.0 it should be better enabled to use a single AST format. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:126 - def emit_forward_arg=(_arg0); end - - # AST compatibility attribute; indexed assignment, `x[] = 1`, is not - # semantically equivalent to calling the method directly, `x.[]=(1)`. - # Specifically, in the former case, the expression's value is always 1, - # and in the latter case, the expression's value is the return value - # of the `[]=` method. - # - # If set to false (the default), `self[1]` is emitted as - # `s(:send, s(:self), :[], s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:send, s(:self), :[]=, s(:int, 1), s(:int, 2))`. - # - # If set to true, `self[1]` is emitted as - # `s(:index, s(:self), s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:indexasgn, s(:self), s(:int, 1), s(:int, 2))`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:80 - def emit_index; end - - # AST compatibility attribute; indexed assignment, `x[] = 1`, is not - # semantically equivalent to calling the method directly, `x.[]=(1)`. - # Specifically, in the former case, the expression's value is always 1, - # and in the latter case, the expression's value is the return value - # of the `[]=` method. - # - # If set to false (the default), `self[1]` is emitted as - # `s(:send, s(:self), :[], s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:send, s(:self), :[]=, s(:int, 1), s(:int, 2))`. - # - # If set to true, `self[1]` is emitted as - # `s(:index, s(:self), s(:int, 1))`, and `self[1] = 2` is - # emitted as `s(:indexasgn, s(:self), s(:int, 1), s(:int, 2))`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:80 - def emit_index=(_arg0); end - - # AST compatibility attribute; Starting from Ruby 2.7 keyword arguments - # of method calls that are passed explicitly as a hash (i.e. with curly braces) - # are treated as positional arguments and Ruby 2.7 emits a warning on such method - # call. Ruby 3.0 given an ArgumentError. - # - # If set to false (the default) the last hash argument is emitted as `hash`: - # - # ``` - # (send nil :foo - # (hash - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # If set to true it is emitted as `kwargs`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # Note that `kwargs` node is just a replacement for `hash` argument, - # so if there's are multiple arguments (or a `kwsplat`) all of them - # are wrapped into `kwargs` instead of `hash`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :a) - # (int 42)) - # (kwsplat - # (send nil :b)) - # (pair - # (sym :c) - # (int 10)))) - # ``` - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:174 - def emit_kwargs; end - - # AST compatibility attribute; Starting from Ruby 2.7 keyword arguments - # of method calls that are passed explicitly as a hash (i.e. with curly braces) - # are treated as positional arguments and Ruby 2.7 emits a warning on such method - # call. Ruby 3.0 given an ArgumentError. - # - # If set to false (the default) the last hash argument is emitted as `hash`: - # - # ``` - # (send nil :foo - # (hash - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # If set to true it is emitted as `kwargs`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :bar) - # (int 42)))) - # ``` - # - # Note that `kwargs` node is just a replacement for `hash` argument, - # so if there's are multiple arguments (or a `kwsplat`) all of them - # are wrapped into `kwargs` instead of `hash`: - # - # ``` - # (send nil :foo - # (kwargs - # (pair - # (sym :a) - # (int 42)) - # (kwsplat - # (send nil :b)) - # (pair - # (sym :c) - # (int 10)))) - # ``` - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:174 - def emit_kwargs=(_arg0); end - - # AST compatibility attribute; since `-> {}` is not semantically - # equivalent to `lambda {}`, all new code should set this attribute - # to true. - # - # If set to false (the default), `-> {}` is emitted as - # `s(:block, s(:send, nil, :lambda), s(:args), nil)`. - # - # If set to true, `-> {}` is emitted as - # `s(:block, s(:lambda), s(:args), nil)`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:22 - def emit_lambda; end - - # AST compatibility attribute; since `-> {}` is not semantically - # equivalent to `lambda {}`, all new code should set this attribute - # to true. - # - # If set to false (the default), `-> {}` is emitted as - # `s(:block, s(:send, nil, :lambda), s(:args), nil)`. - # - # If set to true, `-> {}` is emitted as - # `s(:block, s(:lambda), s(:args), nil)`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:22 - def emit_lambda=(_arg0); end - - # AST compatibility attribute; Starting from 3.0 Ruby returns - # true/false from single-line pattern matching with `in` keyword. - # - # Before 3.0 there was an exception if given value doesn't match pattern. - # - # NOTE: This attribute affects only Ruby 2.7 grammar. - # 3.0 grammar always emits `match_pattern`/`match_pattern_p` - # - # If compatibility attribute set to false `foo in bar` is emitted as `in_match`: - # - # ``` - # (in-match - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # If set to true it's emitted as `match_pattern_p`: - # ``` - # (match-pattern-p - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:203 - def emit_match_pattern; end - - # AST compatibility attribute; Starting from 3.0 Ruby returns - # true/false from single-line pattern matching with `in` keyword. - # - # Before 3.0 there was an exception if given value doesn't match pattern. - # - # NOTE: This attribute affects only Ruby 2.7 grammar. - # 3.0 grammar always emits `match_pattern`/`match_pattern_p` - # - # If compatibility attribute set to false `foo in bar` is emitted as `in_match`: - # - # ``` - # (in-match - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # If set to true it's emitted as `match_pattern_p`: - # ``` - # (match-pattern-p - # (send nil :foo) - # (match-var :bar)) - # ``` - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:203 - def emit_match_pattern=(_arg0); end - - # AST compatibility attribute; block arguments of `m { |a| }` are - # not semantically equivalent to block arguments of `m { |a,| }` or `m { |a, b| }`, - # all new code should set this attribute to true. - # - # If set to false (the default), arguments of `m { |a| }` are emitted as - # `s(:args, s(:arg, :a))`. - # - # If set to true, arguments of `m { |a| }` are emitted as - # `s(:args, s(:procarg0, :a)). - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:40 - def emit_procarg0; end - - # AST compatibility attribute; block arguments of `m { |a| }` are - # not semantically equivalent to block arguments of `m { |a,| }` or `m { |a, b| }`, - # all new code should set this attribute to true. - # - # If set to false (the default), arguments of `m { |a| }` are emitted as - # `s(:args, s(:arg, :a))`. - # - # If set to true, arguments of `m { |a| }` are emitted as - # `s(:args, s(:procarg0, :a)). - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:40 - def emit_procarg0=(_arg0); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/builders/default.rb:211 - def modernize; end - end -end - -# {Parser::ClobberingError} is raised when {Parser::Source::Rewriter} -# detects a clobbering rewrite action. This class inherits {RuntimeError} -# rather than {StandardError} for backward compatibility. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/clobbering_error.rb:11 -class Parser::ClobberingError < ::RuntimeError; end - -# Context of parsing that is represented by a stack of scopes. -# -# Supported states: -# + :class - in the class body (class A; end) -# + :module - in the module body (module M; end) -# + :sclass - in the singleton class body (class << obj; end) -# + :def - in the method body (def m; end) -# + :defs - in the singleton method body (def self.m; end) -# + :def_open_args - in the arglist of the method definition -# keep in mind that it's set **only** after reducing the first argument, -# if you need to handle the first argument check `lex_state == expr_fname` -# + :block - in the block body (tap {}) -# + :lambda - in the lambda body (-> {}) -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/context.rb:18 -class Parser::Context - # @api public - # @return [Context] a new instance of Context - # - # source://parser-3.1.2.1/lib/parser/context.rb:29 - def initialize; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_argdef; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_argdef=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_block; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_block=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_class; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_class=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_def; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_def=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_defined; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_defined=(_arg0); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/context.rb:45 - def in_dynamic_block?; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_kwarg; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_kwarg=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_lambda; end - - # source://parser-3.1.2.1/lib/parser/context.rb:43 - def in_lambda=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/context.rb:33 - def reset; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/context.rb:19 -Parser::Context::FLAGS = T.let(T.unsafe(nil), Array) - -# Stack that holds names of current arguments, -# i.e. while parsing -# def m1(a = (def m2(b = def m3(c = 1); end); end)); end -# ^ -# stack is [:a, :b, :c] -# -# Emulates `p->cur_arg` in MRI's parse.y -# -# @api private -# -# source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:14 -class Parser::CurrentArgStack - # @api private - # @return [CurrentArgStack] a new instance of CurrentArgStack - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:17 - def initialize; end - - # @api private - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:22 - def empty?; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:34 - def pop; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:26 - def push(value); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:38 - def reset; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:30 - def set(value); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:15 - def stack; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/current_arg_stack.rb:42 - def top; end -end - -# source://parser-3.1.2.1/lib/parser/current.rb:84 -Parser::CurrentRuby = Parser::Ruby27 - -# @api private -# -# source://parser-3.1.2.1/lib/parser/deprecation.rb:7 -module Parser::Deprecation - # @api private - # - # source://parser-3.1.2.1/lib/parser/deprecation.rb:9 - def warn_of_deprecation; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/deprecation.rb:8 - def warned_of_deprecation=(_arg0); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/diagnostic.rb:31 -class Parser::Diagnostic - # @api public - # @param level [Symbol] - # @param reason [Symbol] - # @param arguments [Hash] - # @param location [Parser::Source::Range] - # @param highlights [Array] - # @return [Diagnostic] a new instance of Diagnostic - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:49 - def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end - - # @api public - # @return [Symbol] extended arguments that describe the error - # @see Parser::MESSAGES - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:39 - def arguments; end - - # Supplementary error-related source ranges. - # - # @api public - # @return [Array] - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:40 - def highlights; end - - # @api public - # @return [Symbol] diagnostic level - # @see LEVELS - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:39 - def level; end - - # Main error-related source range. - # - # @api public - # @return [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:40 - def location; end - - # @api public - # @return [String] the rendered message. - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:69 - def message; end - - # @api public - # @return [Symbol] reason for error - # @see Parser::MESSAGES - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:39 - def reason; end - - # Renders the diagnostic message as a clang-like diagnostic. - # - # @api public - # @example - # diagnostic.render # => - # # [ - # # "(fragment:0):1:5: error: unexpected token $end", - # # "foo +", - # # " ^" - # # ] - # @return [Array] - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:86 - def render; end - - private - - # If necessary, shrink a `Range` so as to include only the first line. - # - # @api public - # @return [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:142 - def first_line_only(range); end - - # If necessary, shrink a `Range` so as to include only the last line. - # - # @api public - # @return [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:155 - def last_line_only(range); end - - # Renders one source line in clang diagnostic style, with highlights. - # - # @api public - # @return [Array] - # - # source://parser-3.1.2.1/lib/parser/diagnostic.rb:110 - def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end -end - -# source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:36 -class Parser::Diagnostic::Engine - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:45 - def initialize(consumer = T.unsafe(nil)); end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:39 - def all_errors_are_fatal; end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:39 - def all_errors_are_fatal=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:37 - def consumer; end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:37 - def consumer=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:40 - def ignore_warnings; end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:40 - def ignore_warnings=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:64 - def process(diagnostic); end - - protected - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:86 - def ignore?(diagnostic); end - - # source://parser-3.1.2.1/lib/parser/diagnostic/engine.rb:97 - def raise?(diagnostic); end -end - -# Collection of the available diagnostic levels. -# -# @api public -# @return [Array] -# -# source://parser-3.1.2.1/lib/parser/diagnostic.rb:37 -Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array) - -# line 3 "lib/parser/lexer.rl" -# -# === BEFORE YOU START === -# -# Read the Ruby Hacking Guide chapter 11, available in English at -# http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/ -# -# Remember two things about Ragel scanners: -# -# 1) Longest match wins. -# -# 2) If two matches have the same length, the first -# in source code wins. -# -# General rules of making Ragel and Bison happy: -# -# * `p` (position) and `@te` contain the index of the character -# they're pointing to ("current"), plus one. `@ts` contains the index -# of the corresponding character. The code for extracting matched token is: -# -# @source_buffer.slice(@ts...@te) -# -# * If your input is `foooooooobar` and the rule is: -# -# 'f' 'o'+ -# -# the result will be: -# -# foooooooobar -# ^ ts=0 ^ p=te=9 -# -# * A Ragel lexer action should not emit more than one token, unless -# you know what you are doing. -# -# * All Ragel commands (fnext, fgoto, ...) end with a semicolon. -# -# * If an action emits the token and transitions to another state, use -# these Ragel commands: -# -# emit($whatever) -# fnext $next_state; fbreak; -# -# If you perform `fgoto` in an action which does not emit a token nor -# rewinds the stream pointer, the parser's side-effectful, -# context-sensitive lookahead actions will break in a hard to detect -# and debug way. -# -# * If an action does not emit a token: -# -# fgoto $next_state; -# -# * If an action features lookbehind, i.e. matches characters with the -# intent of passing them to another action: -# -# p = @ts - 1 -# fgoto $next_state; -# -# or, if the lookbehind consists of a single character: -# -# fhold; fgoto $next_state; -# -# * Ragel merges actions. So, if you have `e_lparen = '(' %act` and -# `c_lparen = '('` and a lexer action `e_lparen | c_lparen`, the result -# _will_ invoke the action `act`. -# -# e_something stands for "something with **e**mbedded action". -# -# * EOF is explicit and is matched by `c_eof`. If you want to introspect -# the state of the lexer, add this rule to the state: -# -# c_eof => do_eof; -# -# * If you proceed past EOF, the lexer will complain: -# -# NoMethodError: undefined method `ord' for nil:NilClass -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:82 -class Parser::Lexer - # @api public - # @return [Lexer] a new instance of Lexer - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11148 - def initialize(version); end - - # Return next token: [type, value]. - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11303 - def advance; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def cmdarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def cmdarg=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11146 - def cmdarg_stack; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def command_start; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def command_start=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11144 - def comments; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11144 - def comments=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def cond; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def cond=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11146 - def cond_stack; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def context; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11142 - def context=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11295 - def dedent_level; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11138 - def diagnostics; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11138 - def diagnostics=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11245 - def encoding; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11140 - def force_utf32; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11140 - def force_utf32=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11146 - def lambda_stack; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11146 - def paren_nest; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11282 - def pop_cmdarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11291 - def pop_cond; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11277 - def push_cmdarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11286 - def push_cond; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11159 - def reset(reset_state = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11136 - def source_buffer; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11224 - def source_buffer=(source_buffer); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11269 - def state; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11273 - def state=(state); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11139 - def static_env; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11139 - def static_env=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11144 - def tokens; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11144 - def tokens=(_arg0); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24883 - def arg_or_cmdarg(cmd_state); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24903 - def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24857 - def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24891 - def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24873 - def emit_do(do_block = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24867 - def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24845 - def encode_escape(ord); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24832 - def eof_codepoint?(point); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24946 - def literal; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24918 - def next_state_for_literal(literal); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24950 - def pop_literal; end - - # === LITERAL STACK === - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24912 - def push_literal(*args); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24853 - def range(s = T.unsafe(nil), e = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24840 - def stack_pop; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24849 - def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:24836 - def version?(*versions); end - - class << self - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11080 - def lex_en_expr_arg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11080 - def lex_en_expr_arg=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11096 - def lex_en_expr_beg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11096 - def lex_en_expr_beg=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11084 - def lex_en_expr_cmdarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11084 - def lex_en_expr_cmdarg=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11076 - def lex_en_expr_dot; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11076 - def lex_en_expr_dot=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11108 - def lex_en_expr_end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11108 - def lex_en_expr_end=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11088 - def lex_en_expr_endarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11088 - def lex_en_expr_endarg=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11072 - def lex_en_expr_endfn; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11072 - def lex_en_expr_endfn=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11068 - def lex_en_expr_fname; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11068 - def lex_en_expr_fname=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11100 - def lex_en_expr_labelarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11100 - def lex_en_expr_labelarg=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11092 - def lex_en_expr_mid; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11092 - def lex_en_expr_mid=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11104 - def lex_en_expr_value; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11104 - def lex_en_expr_value=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11064 - def lex_en_expr_variable; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11064 - def lex_en_expr_variable=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11044 - def lex_en_interp_backslash_delimited; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11044 - def lex_en_interp_backslash_delimited=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11052 - def lex_en_interp_backslash_delimited_words; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11052 - def lex_en_interp_backslash_delimited_words=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11032 - def lex_en_interp_string; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11032 - def lex_en_interp_string=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11028 - def lex_en_interp_words; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11028 - def lex_en_interp_words=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11112 - def lex_en_leading_dot; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11112 - def lex_en_leading_dot=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11120 - def lex_en_line_begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11120 - def lex_en_line_begin=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11116 - def lex_en_line_comment; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11116 - def lex_en_line_comment=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11048 - def lex_en_plain_backslash_delimited; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11048 - def lex_en_plain_backslash_delimited=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11056 - def lex_en_plain_backslash_delimited_words; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11056 - def lex_en_plain_backslash_delimited_words=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11040 - def lex_en_plain_string; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11040 - def lex_en_plain_string=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11036 - def lex_en_plain_words; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11036 - def lex_en_plain_words=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11060 - def lex_en_regexp_modifiers; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11060 - def lex_en_regexp_modifiers=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11023 - def lex_error; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11023 - def lex_error=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11019 - def lex_start; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:11019 - def lex_start=(_arg0); end - - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10886 - def _lex_eof_trans; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10886 - def _lex_eof_trans=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10753 - def _lex_from_state_actions; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10753 - def _lex_from_state_actions=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:604 - def _lex_index_offsets; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:604 - def _lex_index_offsets=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:737 - def _lex_indicies; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:737 - def _lex_indicies=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:471 - def _lex_key_spans; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:471 - def _lex_key_spans=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10620 - def _lex_to_state_actions; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10620 - def _lex_to_state_actions=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10420 - def _lex_trans_actions; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10420 - def _lex_trans_actions=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:87 - def _lex_trans_keys; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:87 - def _lex_trans_keys=(_arg0); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10220 - def _lex_trans_targs; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/lexer.rb:10220 - def _lex_trans_targs=(_arg0); end - end -end - -# source://parser-3.1.2.1/lib/parser/lexer/dedenter.rb:5 -class Parser::Lexer::Dedenter - # source://parser-3.1.2.1/lib/parser/lexer/dedenter.rb:9 - def initialize(dedent_level); end - - # source://parser-3.1.2.1/lib/parser/lexer/dedenter.rb:36 - def dedent(string); end - - # source://parser-3.1.2.1/lib/parser/lexer/dedenter.rb:83 - def interrupt; end -end - -# source://parser-3.1.2.1/lib/parser/lexer/dedenter.rb:7 -Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer) - -# % -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:11128 -Parser::Lexer::ESCAPES = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:24991 -Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:24998 -Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:11249 -Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash) - -# source://parser-3.1.2.1/lib/parser/lexer/literal.rb:6 -class Parser::Lexer::Literal - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:40 - def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:114 - def backslash_delimited?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:37 - def dedent_level; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:189 - def end_interp_brace_and_try_closing; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:216 - def extend_content; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:220 - def extend_space(ts, te); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:195 - def extend_string(string, ts, te); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:202 - def flush_string; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:102 - def heredoc?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:37 - def heredoc_e; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:166 - def infer_indent_level(line); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:89 - def interpolate?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:122 - def munge_escape?(character); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:132 - def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:106 - def plain_heredoc?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:98 - def regexp?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:38 - def saved_herebody_s; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:38 - def saved_herebody_s=(_arg0); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:110 - def squiggly_heredoc?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:185 - def start_interp_brace; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:37 - def str_s; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:230 - def supports_line_continuation_via_slash?; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:118 - def type; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:93 - def words?; end - - protected - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:248 - def clear_buffer; end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:244 - def coerce_encoding(string); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:236 - def delimiter?(delimiter); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:264 - def emit(token, type, s, e); end - - # source://parser-3.1.2.1/lib/parser/lexer/literal.rb:259 - def emit_start_tok; end -end - -# source://parser-3.1.2.1/lib/parser/lexer/literal.rb:7 -Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash) - -# source://parser-3.1.2.1/lib/parser/lexer/literal.rb:9 -Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash) - -# Mapping of strings to parser tokens. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:24965 -Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:24985 -Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/lexer.rb:11134 -Parser::Lexer::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) - -# source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:5 -class Parser::Lexer::StackState - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:6 - def initialize(name); end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:34 - def active?; end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:11 - def clear; end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:38 - def empty?; end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:42 - def inspect; end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:29 - def lexpop; end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:22 - def pop; end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:15 - def push(bit); end - - # source://parser-3.1.2.1/lib/parser/lexer/stack_state.rb:42 - def to_s; end -end - -# Diagnostic messages (errors, warnings and notices) that can be generated. -# -# @api public -# @see Diagnostic -# -# source://parser-3.1.2.1/lib/parser/messages.rb:11 -Parser::MESSAGES = T.let(T.unsafe(nil), Hash) - -# Holds p->max_numparam from parse.y -# -# @api private -# -# source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:8 -class Parser::MaxNumparamStack - # @api private - # @return [MaxNumparamStack] a new instance of MaxNumparamStack - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:13 - def initialize; end - - # @api private - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:17 - def empty?; end - - # @api private - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:29 - def has_numparams?; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:21 - def has_ordinary_params!; end - - # @api private - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:25 - def has_ordinary_params?; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:45 - def pop; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:41 - def push(static:); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:33 - def register(numparam); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:9 - def stack; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:37 - def top; end - - private - - # @api private - # - # source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:51 - def set(value); end -end - -# @api private -# -# source://parser-3.1.2.1/lib/parser/max_numparam_stack.rb:11 -Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer) - -# @api private -# -# source://parser-3.1.2.1/lib/parser/messages.rb:105 -module Parser::Messages - class << self - # Formats the message, returns a raw template if there's nothing to interpolate - # - # Code like `format("", {})` gives a warning, and so this method tries interpolating - # only if `arguments` hash is not empty. - # - # @api private - # - # source://parser-3.1.2.1/lib/parser/messages.rb:112 - def compile(reason, arguments); end - end -end - -# Parser metadata -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/meta.rb:5 -module Parser::Meta; end - -# All node types that parser can produce. Not all parser versions -# will be able to produce every possible node. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/meta.rb:9 -Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) - -# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead. -# It has a backwards compatible API and uses {Parser::Source::TreeRewriter} -# instead of {Parser::Source::Rewriter}. -# Please check the documentation for {Parser::Source::Rewriter} for details. -# -# @api public -# @deprecated Use {Parser::TreeRewriter} -# -# source://parser-3.1.2.1/lib/parser/rewriter.rb:22 -class Parser::Rewriter < ::Parser::AST::Processor - extend ::Parser::Deprecation - - # @api public - # @return [Rewriter] a new instance of Rewriter - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:98 - def initialize(*_arg0); end - - # Returns `true` if the specified node is an assignment node, returns false - # otherwise. - # - # @api public - # @param node [Parser::AST::Node] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:38 - def assignment?(node); end - - # Inserts new code after the given source range. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:77 - def insert_after(range, content); end - - # Inserts new code before the given source range. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:67 - def insert_before(range, content); end - - # Removes the source range. - # - # @api public - # @param range [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:47 - def remove(range); end - - # Replaces the code of the source range `range` with `content`. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:87 - def replace(range, content); end - - # Rewrites the AST/source buffer and returns a String containing the new - # version. - # - # @api public - # @param source_buffer [Parser::Source::Buffer] - # @param ast [Parser::AST::Node] - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:23 - def rewrite(source_buffer, ast); end - - # Wraps the given source range with the given values. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/rewriter.rb:57 - def wrap(range, before, after); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/rewriter.rb:91 -Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/ruby27.rb:14 -class Parser::Ruby27 < ::Parser::Base - # reduce 0 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3875 - def _reduce_1(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3929 - def _reduce_10(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4505 - def _reduce_100(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4515 - def _reduce_101(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4521 - def _reduce_102(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4531 - def _reduce_103(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4538 - def _reduce_104(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4545 - def _reduce_105(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4551 - def _reduce_106(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4557 - def _reduce_107(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4563 - def _reduce_108(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4569 - def _reduce_109(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3935 - def _reduce_11(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4575 - def _reduce_110(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4581 - def _reduce_111(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4587 - def _reduce_112(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4594 - def _reduce_113(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4601 - def _reduce_114(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4607 - def _reduce_115(val, _values, result); end - - # reduce 116 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4615 - def _reduce_117(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4621 - def _reduce_118(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4627 - def _reduce_119(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3952 - def _reduce_12(val, _values, result); end - - # reduce 124 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4643 - def _reduce_125(val, _values, result); end - - # reduce 126 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4651 - def _reduce_127(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4657 - def _reduce_128(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4663 - def _reduce_129(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3958 - def _reduce_13(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3964 - def _reduce_14(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3970 - def _reduce_15(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3976 - def _reduce_16(val, _values, result); end - - # reduce 17 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3984 - def _reduce_18(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3990 - def _reduce_19(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3882 - def _reduce_2(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3996 - def _reduce_20(val, _values, result); end - - # reduce 200 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4811 - def _reduce_201(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4817 - def _reduce_202(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4823 - def _reduce_203(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4832 - def _reduce_204(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4841 - def _reduce_205(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4850 - def _reduce_206(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4859 - def _reduce_207(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4867 - def _reduce_208(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4875 - def _reduce_209(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4002 - def _reduce_21(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4881 - def _reduce_210(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4887 - def _reduce_211(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4893 - def _reduce_212(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4899 - def _reduce_213(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4905 - def _reduce_214(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4911 - def _reduce_215(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4917 - def _reduce_216(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4923 - def _reduce_217(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4929 - def _reduce_218(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4935 - def _reduce_219(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4010 - def _reduce_22(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4941 - def _reduce_220(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4947 - def _reduce_221(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4953 - def _reduce_222(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4961 - def _reduce_223(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4967 - def _reduce_224(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4973 - def _reduce_225(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4979 - def _reduce_226(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4985 - def _reduce_227(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4991 - def _reduce_228(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4018 - def _reduce_23(val, _values, result); end - - # reduce 229 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4999 - def _reduce_230(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5005 - def _reduce_231(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5011 - def _reduce_232(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5017 - def _reduce_233(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5023 - def _reduce_234(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5029 - def _reduce_235(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5035 - def _reduce_236(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5041 - def _reduce_237(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5047 - def _reduce_238(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5053 - def _reduce_239(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4024 - def _reduce_24(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5059 - def _reduce_240(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5065 - def _reduce_241(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5071 - def _reduce_242(val, _values, result); end - - # reduce 247 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5088 - def _reduce_248(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5094 - def _reduce_249(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4030 - def _reduce_25(val, _values, result); end - - # reduce 252 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5106 - def _reduce_253(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5112 - def _reduce_254(val, _values, result); end - - # reduce 255 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5120 - def _reduce_256(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5130 - def _reduce_257(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5136 - def _reduce_258(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5146 - def _reduce_259(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4037 - def _reduce_26(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5156 - def _reduce_260(val, _values, result); end - - # reduce 261 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5164 - def _reduce_262(val, _values, result); end - - # reduce 264 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5174 - def _reduce_265(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5180 - def _reduce_266(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5186 - def _reduce_267(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5192 - def _reduce_268(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5198 - def _reduce_269(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4044 - def _reduce_27(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5205 - def _reduce_270(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5213 - def _reduce_271(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5219 - def _reduce_272(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5246 - def _reduce_273(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5267 - def _reduce_274(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5273 - def _reduce_275(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5279 - def _reduce_276(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5285 - def _reduce_277(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5291 - def _reduce_278(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5297 - def _reduce_279(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4050 - def _reduce_28(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5303 - def _reduce_280(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5309 - def _reduce_281(val, _values, result); end - - # reduce 282 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5317 - def _reduce_283(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5323 - def _reduce_284(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5329 - def _reduce_285(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4056 - def _reduce_29(val, _values, result); end - - # reduce 295 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5355 - def _reduce_296(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5361 - def _reduce_297(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5367 - def _reduce_298(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5375 - def _reduce_299(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3891 - def _reduce_3(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4066 - def _reduce_30(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5381 - def _reduce_300(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5387 - def _reduce_301(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5393 - def _reduce_302(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5399 - def _reduce_303(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5405 - def _reduce_304(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5411 - def _reduce_305(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5417 - def _reduce_306(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5423 - def _reduce_307(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5429 - def _reduce_308(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5435 - def _reduce_309(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5441 - def _reduce_310(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5447 - def _reduce_311(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5453 - def _reduce_312(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5460 - def _reduce_313(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5466 - def _reduce_314(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5472 - def _reduce_315(val, _values, result); end - - # reduce 316 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5484 - def _reduce_317(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5492 - def _reduce_318(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5499 - def _reduce_319(val, _values, result); end - - # reduce 31 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4074 - def _reduce_32(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5511 - def _reduce_320(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5520 - def _reduce_321(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5529 - def _reduce_322(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5535 - def _reduce_323(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5541 - def _reduce_324(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5551 - def _reduce_325(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5561 - def _reduce_326(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5571 - def _reduce_327(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5577 - def _reduce_328(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5584 - def _reduce_329(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4080 - def _reduce_33(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5601 - def _reduce_330(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5609 - def _reduce_331(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5621 - def _reduce_332(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5628 - def _reduce_333(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5643 - def _reduce_334(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5652 - def _reduce_335(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5663 - def _reduce_336(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5669 - def _reduce_337(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5678 - def _reduce_338(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5689 - def _reduce_339(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4087 - def _reduce_34(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5695 - def _reduce_340(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5701 - def _reduce_341(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5707 - def _reduce_342(val, _values, result); end - - # reduce 343 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5715 - def _reduce_344(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5721 - def _reduce_345(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5727 - def _reduce_346(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5733 - def _reduce_347(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4098 - def _reduce_35(val, _values, result); end - - # reduce 349 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5745 - def _reduce_350(val, _values, result); end - - # reduce 353 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5757 - def _reduce_354(val, _values, result); end - - # reduce 355 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5770 - def _reduce_356(val, _values, result); end - - # reduce 358 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5780 - def _reduce_359(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5786 - def _reduce_360(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5792 - def _reduce_361(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5798 - def _reduce_362(val, _values, result); end - - # reduce 363 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5806 - def _reduce_364(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5813 - def _reduce_365(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5821 - def _reduce_366(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5827 - def _reduce_367(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5833 - def _reduce_368(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5839 - def _reduce_369(val, _values, result); end - - # reduce 36 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4106 - def _reduce_37(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5845 - def _reduce_370(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5851 - def _reduce_371(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5857 - def _reduce_372(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5863 - def _reduce_373(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5869 - def _reduce_374(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5875 - def _reduce_375(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5881 - def _reduce_376(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5887 - def _reduce_377(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5896 - def _reduce_378(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5906 - def _reduce_379(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4112 - def _reduce_38(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5914 - def _reduce_380(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5923 - def _reduce_381(val, _values, result); end - - # reduce 382 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5933 - def _reduce_383(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5942 - def _reduce_384(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5952 - def _reduce_385(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5960 - def _reduce_386(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5969 - def _reduce_387(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5976 - def _reduce_388(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5984 - def _reduce_389(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4118 - def _reduce_39(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:5991 - def _reduce_390(val, _values, result); end - - # reduce 391 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6001 - def _reduce_392(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6007 - def _reduce_393(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6013 - def _reduce_394(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6021 - def _reduce_395(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6029 - def _reduce_396(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6035 - def _reduce_397(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6041 - def _reduce_398(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6047 - def _reduce_399(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3897 - def _reduce_4(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4127 - def _reduce_40(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6053 - def _reduce_400(val, _values, result); end - - # reduce 401 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6062 - def _reduce_402(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6069 - def _reduce_403(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6075 - def _reduce_404(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6086 - def _reduce_405(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6093 - def _reduce_406(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6102 - def _reduce_407(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6109 - def _reduce_408(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6116 - def _reduce_409(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4136 - def _reduce_41(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6123 - def _reduce_410(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6130 - def _reduce_411(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6137 - def _reduce_412(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6144 - def _reduce_413(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6152 - def _reduce_414(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6160 - def _reduce_415(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6172 - def _reduce_416(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6183 - def _reduce_417(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6191 - def _reduce_418(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6199 - def _reduce_419(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4145 - def _reduce_42(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6207 - def _reduce_420(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6213 - def _reduce_421(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6221 - def _reduce_422(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6229 - def _reduce_423(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6237 - def _reduce_424(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6243 - def _reduce_425(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6249 - def _reduce_426(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6256 - def _reduce_427(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6263 - def _reduce_428(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6270 - def _reduce_429(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4153 - def _reduce_43(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6277 - def _reduce_430(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6284 - def _reduce_431(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6294 - def _reduce_432(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6301 - def _reduce_433(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6307 - def _reduce_434(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6318 - def _reduce_435(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6325 - def _reduce_436(val, _values, result); end - - # reduce 437 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6333 - def _reduce_438(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6345 - def _reduce_439(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4162 - def _reduce_44(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6353 - def _reduce_440(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6360 - def _reduce_441(val, _values, result); end - - # reduce 442 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6368 - def _reduce_443(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6374 - def _reduce_444(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6380 - def _reduce_445(val, _values, result); end - - # reduce 446 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6388 - def _reduce_447(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6398 - def _reduce_448(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6404 - def _reduce_449(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6410 - def _reduce_450(val, _values, result); end - - # reduce 451 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6418 - def _reduce_452(val, _values, result); end - - # reduce 453 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6426 - def _reduce_454(val, _values, result); end - - # reduce 455 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6434 - def _reduce_456(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6441 - def _reduce_457(val, _values, result); end - - # reduce 458 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6450 - def _reduce_459(val, _values, result); end - - # reduce 45 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4170 - def _reduce_46(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6458 - def _reduce_460(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6466 - def _reduce_461(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6473 - def _reduce_462(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6481 - def _reduce_463(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6489 - def _reduce_464(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6496 - def _reduce_465(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6502 - def _reduce_466(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6509 - def _reduce_467(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6515 - def _reduce_468(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6523 - def _reduce_469(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6531 - def _reduce_470(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6537 - def _reduce_471(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6543 - def _reduce_472(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6550 - def _reduce_473(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6556 - def _reduce_474(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6562 - def _reduce_475(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6568 - def _reduce_476(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6575 - def _reduce_477(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6582 - def _reduce_478(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6588 - def _reduce_479(val, _values, result); end - - # reduce 480 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6596 - def _reduce_481(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6606 - def _reduce_482(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6616 - def _reduce_483(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6623 - def _reduce_484(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6630 - def _reduce_485(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6637 - def _reduce_486(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6644 - def _reduce_487(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6650 - def _reduce_488(val, _values, result); end - - # reduce 48 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4184 - def _reduce_49(val, _values, result); end - - # reduce 489 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6658 - def _reduce_490(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6664 - def _reduce_491(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6670 - def _reduce_492(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6676 - def _reduce_493(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6682 - def _reduce_494(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6688 - def _reduce_495(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6694 - def _reduce_496(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6700 - def _reduce_497(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6706 - def _reduce_498(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6712 - def _reduce_499(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3903 - def _reduce_5(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4190 - def _reduce_50(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6718 - def _reduce_500(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6724 - def _reduce_501(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6730 - def _reduce_502(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6736 - def _reduce_503(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6742 - def _reduce_504(val, _values, result); end - - # reduce 505 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6750 - def _reduce_506(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6756 - def _reduce_507(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6762 - def _reduce_508(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6768 - def _reduce_509(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4196 - def _reduce_51(val, _values, result); end - - # reduce 512 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6780 - def _reduce_513(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6786 - def _reduce_514(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4202 - def _reduce_52(val, _values, result); end - - # reduce 522 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6808 - def _reduce_523(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6814 - def _reduce_524(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6821 - def _reduce_525(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6833 - def _reduce_526(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6839 - def _reduce_527(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6851 - def _reduce_528(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6857 - def _reduce_529(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4208 - def _reduce_53(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6863 - def _reduce_530(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6869 - def _reduce_531(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6884 - def _reduce_532(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6890 - def _reduce_533(val, _values, result); end - - # reduce 535 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6900 - def _reduce_536(val, _values, result); end - - # reduce 537 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6908 - def _reduce_538(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4219 - def _reduce_54(val, _values, result); end - - # reduce 541 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6920 - def _reduce_542(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6926 - def _reduce_543(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6932 - def _reduce_544(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6938 - def _reduce_545(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6945 - def _reduce_546(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6952 - def _reduce_547(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6958 - def _reduce_548(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6965 - def _reduce_549(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6972 - def _reduce_550(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6978 - def _reduce_551(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6984 - def _reduce_552(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6990 - def _reduce_553(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:6996 - def _reduce_554(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7002 - def _reduce_555(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7008 - def _reduce_556(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7014 - def _reduce_557(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7020 - def _reduce_558(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7026 - def _reduce_559(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7032 - def _reduce_560(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7038 - def _reduce_561(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7044 - def _reduce_562(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7050 - def _reduce_563(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7056 - def _reduce_564(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7062 - def _reduce_565(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7068 - def _reduce_566(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7074 - def _reduce_567(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7080 - def _reduce_568(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7086 - def _reduce_569(val, _values, result); end - - # reduce 56 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4235 - def _reduce_57(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7092 - def _reduce_570(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7098 - def _reduce_571(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7104 - def _reduce_572(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7111 - def _reduce_573(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7120 - def _reduce_574(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7126 - def _reduce_575(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7132 - def _reduce_576(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4241 - def _reduce_58(val, _values, result); end - - # reduce 579 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7144 - def _reduce_580(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7151 - def _reduce_581(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7158 - def _reduce_582(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7164 - def _reduce_583(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7175 - def _reduce_584(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7182 - def _reduce_585(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7189 - def _reduce_586(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7196 - def _reduce_587(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7203 - def _reduce_588(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7209 - def _reduce_589(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7215 - def _reduce_590(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7221 - def _reduce_591(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7227 - def _reduce_592(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7233 - def _reduce_593(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7239 - def _reduce_594(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7245 - def _reduce_595(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7251 - def _reduce_596(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7257 - def _reduce_597(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7263 - def _reduce_598(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7269 - def _reduce_599(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3909 - def _reduce_6(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7275 - def _reduce_600(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7281 - def _reduce_601(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7287 - def _reduce_602(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7293 - def _reduce_603(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7299 - def _reduce_604(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7305 - def _reduce_605(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7311 - def _reduce_606(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7317 - def _reduce_607(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7323 - def _reduce_608(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7329 - def _reduce_609(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7337 - def _reduce_610(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7345 - def _reduce_611(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7354 - def _reduce_612(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7361 - def _reduce_613(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7368 - def _reduce_614(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7374 - def _reduce_615(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7380 - def _reduce_616(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7386 - def _reduce_617(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7392 - def _reduce_618(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7398 - def _reduce_619(val, _values, result); end - - # reduce 61 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4254 - def _reduce_62(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7404 - def _reduce_620(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7410 - def _reduce_621(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7419 - def _reduce_622(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7429 - def _reduce_623(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7437 - def _reduce_624(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7446 - def _reduce_625(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7454 - def _reduce_626(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7463 - def _reduce_627(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7470 - def _reduce_628(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7478 - def _reduce_629(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4261 - def _reduce_63(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7487 - def _reduce_630(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7494 - def _reduce_631(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7502 - def _reduce_632(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7509 - def _reduce_633(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7517 - def _reduce_634(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7523 - def _reduce_635(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7529 - def _reduce_636(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7535 - def _reduce_637(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7541 - def _reduce_638(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7547 - def _reduce_639(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4268 - def _reduce_64(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7553 - def _reduce_640(val, _values, result); end - - # reduce 641 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7561 - def _reduce_642(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7571 - def _reduce_643(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7578 - def _reduce_644(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7585 - def _reduce_645(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7591 - def _reduce_646(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7597 - def _reduce_647(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7603 - def _reduce_648(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7617 - def _reduce_649(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7624 - def _reduce_650(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7631 - def _reduce_651(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7637 - def _reduce_652(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7643 - def _reduce_653(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7649 - def _reduce_654(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7655 - def _reduce_655(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7661 - def _reduce_656(val, _values, result); end - - # reduce 658 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7671 - def _reduce_659(val, _values, result); end - - # reduce 65 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4277 - def _reduce_66(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7677 - def _reduce_660(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7685 - def _reduce_661(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7691 - def _reduce_662(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7698 - def _reduce_663(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7705 - def _reduce_664(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7711 - def _reduce_665(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7717 - def _reduce_666(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7723 - def _reduce_667(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4284 - def _reduce_67(val, _values, result); end - - # reduce 669 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7733 - def _reduce_670(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7741 - def _reduce_671(val, _values, result); end - - # reduce 673 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7751 - def _reduce_674(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7759 - def _reduce_675(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7765 - def _reduce_676(val, _values, result); end - - # reduce 677 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7773 - def _reduce_678(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7779 - def _reduce_679(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4295 - def _reduce_68(val, _values, result); end - - # reduce 680 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7787 - def _reduce_681(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7793 - def _reduce_682(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7799 - def _reduce_683(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7805 - def _reduce_684(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7811 - def _reduce_685(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7817 - def _reduce_686(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4302 - def _reduce_69(val, _values, result); end - - # reduce 698 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7847 - def _reduce_699(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3915 - def _reduce_7(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4313 - def _reduce_70(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7853 - def _reduce_700(val, _values, result); end - - # reduce 704 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7867 - def _reduce_705(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7873 - def _reduce_706(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7879 - def _reduce_707(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4320 - def _reduce_71(val, _values, result); end - - # reduce 710 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7891 - def _reduce_711(val, _values, result); end - - # reduce 714 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7903 - def _reduce_715(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4331 - def _reduce_72(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4338 - def _reduce_73(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4345 - def _reduce_74(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4352 - def _reduce_75(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4359 - def _reduce_76(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4366 - def _reduce_77(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4372 - def _reduce_78(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4378 - def _reduce_79(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4384 - def _reduce_80(val, _values, result); end - - # reduce 81 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4392 - def _reduce_82(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4399 - def _reduce_83(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4406 - def _reduce_84(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4414 - def _reduce_85(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4421 - def _reduce_86(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4429 - def _reduce_87(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4435 - def _reduce_88(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4442 - def _reduce_89(val, _values, result); end - - # reduce 8 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:3923 - def _reduce_9(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4448 - def _reduce_90(val, _values, result); end - - # reduce 91 omitted - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4457 - def _reduce_92(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4463 - def _reduce_93(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4469 - def _reduce_94(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4475 - def _reduce_95(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4481 - def _reduce_96(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4487 - def _reduce_97(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4493 - def _reduce_98(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:4499 - def _reduce_99(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:7909 - def _reduce_none(val, _values, result); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:21 - def default_encoding; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:32 - def local_pop; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:25 - def local_push; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:39 - def try_declare_numparam(node); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/ruby27.rb:17 - def version; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/ruby27.rb:3476 -Parser::Ruby27::Racc_arg = T.let(T.unsafe(nil), Array) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/ruby27.rb:3492 -Parser::Ruby27::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) - -# @api public -# -# source://parser-3.1.2.1/lib/parser.rb:30 -module Parser::Source; end - -# A buffer with source code. {Buffer} contains the source code itself, -# associated location information (name and first line), and takes care -# of encoding. -# -# A source buffer is immutable once populated. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/buffer.rb:25 -class Parser::Source::Buffer - # @api public - # @return [Buffer] a new instance of Buffer - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:105 - def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end - - # Convert a character index into the source to a column number. - # - # @api private - # @param position [Integer] - # @return [Integer] column - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:233 - def column_for_position(position); end - - # Convert a character index into the source to a `[line, column]` tuple. - # - # @api public - # @param position [Integer] - # @return [[Integer, Integer]] `[line, column]` - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:208 - def decompose_position(position); end - - # First line of the buffer, 1 by default. - # - # @api public - # @return [Integer] first line - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:26 - def first_line; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:303 - def freeze; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:309 - def inspect; end - - # Number of last line in the buffer - # - # @api public - # @return [Integer] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:298 - def last_line; end - - # Convert a character index into the source to a line number. - # - # @api private - # @param position [Integer] - # @return [Integer] line - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:222 - def line_for_position(position); end - - # Extract line `lineno` as a new `Range`, taking `first_line` into account. - # - # @api public - # @param lineno [Integer] - # @raise [IndexError] if `lineno` is out of bounds - # @return [Range] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:275 - def line_range(lineno); end - - # Buffer name. If the buffer was created from a file, the name corresponds - # to relative path to the file. - # - # @api public - # @return [String] buffer name - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:26 - def name; end - - # Populate this buffer from a string without encoding autodetection. - # - # @api public - # @param input [String] - # @raise [ArgumentError] if already populated - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:180 - def raw_source=(input); end - - # Populate this buffer from correspondingly named file. - # - # @api public - # @example - # Parser::Source::Buffer.new('foo/bar.rb').read - # @raise [ArgumentError] if already populated - # @return [Buffer] self - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:131 - def read; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:194 - def slice(range); end - - # Source code contained in this buffer. - # - # @api public - # @raise [RuntimeError] if buffer is not populated yet - # @return [String] source code - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:145 - def source; end - - # Populate this buffer from a string with encoding autodetection. - # `input` is mutated if not frozen. - # - # @api public - # @param input [String] - # @raise [ArgumentError] if already populated - # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:162 - def source=(input); end - - # Extract line `lineno` from source, taking `first_line` into account. - # - # @api public - # @param lineno [Integer] - # @raise [IndexError] if `lineno` is out of bounds - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:264 - def source_line(lineno); end - - # Return an `Array` of source code lines. - # - # @api public - # @return [Array] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:243 - def source_lines; end - - # @api public - # @return [Range] A range covering the whole source - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:289 - def source_range; end - - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:339 - def bsearch(line_begins, position); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:316 - def line_begins; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:330 - def line_index_for_position(position); end - - class << self - # Try to recognize encoding of `string` as Ruby would, i.e. by looking for - # magic encoding comment or UTF-8 BOM. `string` can be in any encoding. - # - # @api public - # @param string [String] - # @return [String, nil] encoding name, if recognized - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:51 - def recognize_encoding(string); end - - # Recognize encoding of `input` and process it so it could be lexed. - # - # * If `input` does not contain BOM or magic encoding comment, it is - # kept in the original encoding. - # * If the detected encoding is binary, `input` is kept in binary. - # * Otherwise, `input` is re-encoded into UTF-8 and returned as a - # new string. - # - # This method mutates the encoding of `input`, but not its content. - # - # @api public - # @param input [String] - # @raise [EncodingError] - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/buffer.rb:90 - def reencode_string(input); end - end -end - -# @api private -# -# source://parser-3.1.2.1/lib/parser/source/buffer.rb:31 -Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp) - -# A comment in the source code. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/comment.rb:17 -class Parser::Source::Comment - # @api public - # @param range [Parser::Source::Range] - # @return [Comment] a new instance of Comment - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:67 - def initialize(range); end - - # Compares comments. Two comments are equal if they - # correspond to the same source range. - # - # @api public - # @param other [Object] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:120 - def ==(other); end - - # @api public - # @return [Boolean] true if this is a block comment. - # @see #type - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:109 - def document?; end - - # @api public - # @return [Boolean] true if this is an inline comment. - # @see #type - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:101 - def inline?; end - - # @api public - # @return [String] a human-readable representation of this comment - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:128 - def inspect; end - - # @api public - # @return [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:20 - def loc; end - - # @api public - # @return [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:20 - def location; end - - # @api public - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:18 - def text; end - - # Type of this comment. - # - # * Inline comments correspond to `:inline`: - # - # # whatever - # - # * Block comments correspond to `:document`: - # - # =begin - # hi i am a document - # =end - # - # @api public - # @return [Symbol] - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:89 - def type; end - - class << self - # Associate `comments` with `ast` nodes by their corresponding node. - # - # @api public - # @deprecated Use {associate_locations}. - # @param ast [Parser::AST::Node] - # @param comments [Array] - # @return [Hash>] - # @see Parser::Source::Comment::Associator#associate - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:32 - def associate(ast, comments); end - - # Associate `comments` with `ast` nodes using identity. - # - # @api public - # @param ast [Parser::AST::Node] - # @param comments [Array] - # @return [Hash>] - # @see Parser::Source::Comment::Associator#associate_by_identity - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:59 - def associate_by_identity(ast, comments); end - - # Associate `comments` with `ast` nodes by their location in the - # source. - # - # @api public - # @param ast [Parser::AST::Node] - # @param comments [Array] - # @return [Hash>] - # @see Parser::Source::Comment::Associator#associate_locations - # - # source://parser-3.1.2.1/lib/parser/source/comment.rb:46 - def associate_locations(ast, comments); end - end -end - -# source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:45 -class Parser::Source::Comment::Associator - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:51 - def initialize(ast, comments); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:92 - def associate; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:115 - def associate_by_identity; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:103 - def associate_locations; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:46 - def skip_directives; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:46 - def skip_directives=(_arg0); end - - private - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:182 - def advance_comment; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:214 - def advance_through_directives; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:206 - def associate_and_advance_comment(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:123 - def children_in_source_order(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:187 - def current_comment_before?(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:194 - def current_comment_before_end?(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:201 - def current_comment_decorates?(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:135 - def do_associate; end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:166 - def process_leading_comments(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:173 - def process_trailing_comments(node); end - - # source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:148 - def visit(node); end -end - -# source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:212 -Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp) - -# source://parser-3.1.2.1/lib/parser/source/comment/associator.rb:122 -Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set) - -# {Map} relates AST nodes to the source code they were parsed from. -# More specifically, a {Map} or its subclass contains a set of ranges: -# -# * `expression`: smallest range which includes all source corresponding -# to the node and all `expression` ranges of its children. -# * other ranges (`begin`, `end`, `operator`, ...): node-specific ranges -# pointing to various interesting tokens corresponding to the node. -# -# Note that the {Map::Heredoc} map is the only one whose `expression` does -# not include other ranges. It only covers the heredoc marker (`< 2]').children[0].loc -# # => > -# -# The {file:doc/AST_FORMAT.md} document describes how ranges associated to source -# code tokens. For example, the entry -# -# (array (int 1) (int 2)) -# -# "[1, 2]" -# ^ begin -# ^ end -# ~~~~~~ expression -# -# means that if `node` is an {Parser::AST::Node} `(array (int 1) (int 2))`, -# then `node.loc` responds to `begin`, `end` and `expression`, and -# `node.loc.begin` returns a range pointing at the opening bracket, and so on. -# -# If you want to write code polymorphic by the source map (i.e. accepting -# several subclasses of {Map}), use `respond_to?` instead of `is_a?` to -# check whether the map features the range you need. Concrete {Map} -# subclasses may not be preserved between versions, but their interfaces -# will be kept compatible. -# -# You can visualize the source maps with `ruby-parse -E` command-line tool. -# -# @api public -# @example -# require 'parser/current' -# -# p Parser::CurrentRuby.parse('[1, 2]').loc -# # => #, -# # @begin=#, -# # @expression=#> -# -# source://parser-3.1.2.1/lib/parser/source/map.rb:70 -class Parser::Source::Map - # @api public - # @param expression [Range] - # @return [Map] a new instance of Map - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:76 - def initialize(expression); end - - # Compares source maps. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:140 - def ==(other); end - - # A shortcut for `self.expression.column`. - # - # @api public - # @return [Integer] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:109 - def column; end - - # @api public - # @return [Range] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:72 - def expression; end - - # A shortcut for `self.expression.line`. - # - # @api public - # @return [Integer] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:99 - def first_line; end - - # A shortcut for `self.expression.last_column`. - # - # @api public - # @return [Integer] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:125 - def last_column; end - - # A shortcut for `self.expression.last_line`. - # - # @api public - # @return [Integer] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:117 - def last_line; end - - # A shortcut for `self.expression.line`. - # - # @api public - # @return [Integer] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:99 - def line; end - - # The node that is described by this map. Nodes and maps have 1:1 correspondence. - # - # @api public - # @return [Parser::AST::Node] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:71 - def node; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:89 - def node=(node); end - - # Converts this source map to a hash with keys corresponding to - # ranges. For example, if called on an instance of {Collection}, - # which adds the `begin` and `end` ranges, the resulting hash - # will contain keys `:expression`, `:begin` and `:end`. - # - # @api public - # @example - # require 'parser/current' - # - # p Parser::CurrentRuby.parse('[1, 2]').loc.to_hash - # # => { - # # :begin => #, - # # :end => #, - # # :expression => # - # # } - # @return [Hash] - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:166 - def to_hash; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:132 - def with_expression(expression_l); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:180 - def update_expression(expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:176 - def with(&block); end - - private - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map.rb:82 - def initialize_copy(other); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/collection.rb:6 -class Parser::Source::Map::Collection < ::Parser::Source::Map - # @api public - # @return [Collection] a new instance of Collection - # - # source://parser-3.1.2.1/lib/parser/source/map/collection.rb:10 - def initialize(begin_l, end_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/collection.rb:7 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/collection.rb:8 - def end; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/condition.rb:6 -class Parser::Source::Map::Condition < ::Parser::Source::Map - # @api public - # @return [Condition] a new instance of Condition - # - # source://parser-3.1.2.1/lib/parser/source/map/condition.rb:12 - def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/condition.rb:8 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/condition.rb:9 - def else; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/condition.rb:10 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/condition.rb:7 - def keyword; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/constant.rb:6 -class Parser::Source::Map::Constant < ::Parser::Source::Map - # @api public - # @return [Constant] a new instance of Constant - # - # source://parser-3.1.2.1/lib/parser/source/map/constant.rb:11 - def initialize(double_colon, name, expression); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/constant.rb:7 - def double_colon; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/constant.rb:8 - def name; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/constant.rb:9 - def operator; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map/constant.rb:20 - def with_operator(operator_l); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/constant.rb:26 - def update_operator(operator_l); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/definition.rb:6 -class Parser::Source::Map::Definition < ::Parser::Source::Map - # @api public - # @return [Definition] a new instance of Definition - # - # source://parser-3.1.2.1/lib/parser/source/map/definition.rb:12 - def initialize(keyword_l, operator_l, name_l, end_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/definition.rb:10 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/definition.rb:7 - def keyword; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/definition.rb:9 - def name; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/definition.rb:8 - def operator; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/for.rb:6 -class Parser::Source::Map::For < ::Parser::Source::Map - # @api public - # @return [For] a new instance of For - # - # source://parser-3.1.2.1/lib/parser/source/map/for.rb:10 - def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/for.rb:8 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/for.rb:8 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/for.rb:7 - def in; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/for.rb:7 - def keyword; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/heredoc.rb:6 -class Parser::Source::Map::Heredoc < ::Parser::Source::Map - # @api public - # @return [Heredoc] a new instance of Heredoc - # - # source://parser-3.1.2.1/lib/parser/source/map/heredoc.rb:10 - def initialize(begin_l, body_l, end_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/heredoc.rb:7 - def heredoc_body; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/heredoc.rb:8 - def heredoc_end; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/index.rb:6 -class Parser::Source::Map::Index < ::Parser::Source::Map - # @api public - # @return [Index] a new instance of Index - # - # source://parser-3.1.2.1/lib/parser/source/map/index.rb:11 - def initialize(begin_l, end_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/index.rb:7 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/index.rb:8 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/index.rb:9 - def operator; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map/index.rb:21 - def with_operator(operator_l); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/index.rb:27 - def update_operator(operator_l); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/keyword.rb:6 -class Parser::Source::Map::Keyword < ::Parser::Source::Map - # @api public - # @return [Keyword] a new instance of Keyword - # - # source://parser-3.1.2.1/lib/parser/source/map/keyword.rb:11 - def initialize(keyword_l, begin_l, end_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/keyword.rb:8 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/keyword.rb:9 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/keyword.rb:7 - def keyword; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:6 -class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map - # @api public - # @return [MethodDefinition] a new instance of MethodDefinition - # - # source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:13 - def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:11 - def assignment; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:10 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:7 - def keyword; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:9 - def name; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/method_definition.rb:8 - def operator; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/objc_kwarg.rb:6 -class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map - # @api public - # @return [ObjcKwarg] a new instance of ObjcKwarg - # - # source://parser-3.1.2.1/lib/parser/source/map/objc_kwarg.rb:11 - def initialize(keyword_l, operator_l, argument_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/objc_kwarg.rb:9 - def argument; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/objc_kwarg.rb:7 - def keyword; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/objc_kwarg.rb:8 - def operator; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/operator.rb:6 -class Parser::Source::Map::Operator < ::Parser::Source::Map - # @api public - # @return [Operator] a new instance of Operator - # - # source://parser-3.1.2.1/lib/parser/source/map/operator.rb:9 - def initialize(operator, expression); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/operator.rb:7 - def operator; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/rescue_body.rb:6 -class Parser::Source::Map::RescueBody < ::Parser::Source::Map - # @api public - # @return [RescueBody] a new instance of RescueBody - # - # source://parser-3.1.2.1/lib/parser/source/map/rescue_body.rb:11 - def initialize(keyword_l, assoc_l, begin_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/rescue_body.rb:8 - def assoc; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/rescue_body.rb:9 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/rescue_body.rb:7 - def keyword; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/send.rb:6 -class Parser::Source::Map::Send < ::Parser::Source::Map - # @api public - # @return [Send] a new instance of Send - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:13 - def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:10 - def begin; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:7 - def dot; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:11 - def end; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:9 - def operator; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:8 - def selector; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:24 - def with_operator(operator_l); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/send.rb:30 - def update_operator(operator_l); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/ternary.rb:6 -class Parser::Source::Map::Ternary < ::Parser::Source::Map - # @api public - # @return [Ternary] a new instance of Ternary - # - # source://parser-3.1.2.1/lib/parser/source/map/ternary.rb:10 - def initialize(question_l, colon_l, expression_l); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/ternary.rb:8 - def colon; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/ternary.rb:7 - def question; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/map/variable.rb:6 -class Parser::Source::Map::Variable < ::Parser::Source::Map - # @api public - # @return [Variable] a new instance of Variable - # - # source://parser-3.1.2.1/lib/parser/source/map/variable.rb:10 - def initialize(name_l, expression_l = T.unsafe(nil)); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/variable.rb:7 - def name; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/variable.rb:8 - def operator; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/map/variable.rb:19 - def with_operator(operator_l); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/map/variable.rb:25 - def update_operator(operator_l); end -end - -# A range of characters in a particular source buffer. -# -# The range is always exclusive, i.e. a range with `begin_pos` of 3 and -# `end_pos` of 5 will contain the following characters: -# -# example -# ^^ -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/range.rb:26 -class Parser::Source::Range - include ::Comparable - - # @api public - # @param source_buffer [Buffer] - # @param begin_pos [Integer] - # @param end_pos [Integer] - # @return [Range] a new instance of Range - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:37 - def initialize(source_buffer, begin_pos, end_pos); end - - # Compare ranges, first by begin_pos, then by end_pos. - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:301 - def <=>(other); end - - # by the given amount(s) - # - # @api public - # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos - # @return [Range] the same range as this range but with the given end point(s) adjusted - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:193 - def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end - - # @api public - # @return [Range] a zero-length range located just before the beginning - # of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:55 - def begin; end - - # @api public - # @return [Integer] index of the first character in the range - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:30 - def begin_pos; end - - # @api public - # @return [Integer] zero-based column number of the beginning of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:92 - def column; end - - # @api public - # @raise RangeError - # @return [::Range] a range of columns spanned by this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:114 - def column_range; end - - # Return `other.contains?(self)` - # - # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? - # - # @api public - # @param other [Range] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:274 - def contained?(other); end - - # Returns true iff this range contains (strictly) `other`. - # - # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? - # - # @api public - # @param other [Range] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:262 - def contains?(other); end - - # Returns true iff both ranges intersect and also have different elements from one another. - # - # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? - # - # @api public - # @param other [Range] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:286 - def crossing?(other); end - - # Return `true` iff this range and `other` are disjoint. - # - # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? - # - # @api public - # @param other [Range] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:236 - def disjoint?(other); end - - # Checks if a range is empty; if it contains no characters - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:294 - def empty?; end - - # @api public - # @return [Range] a zero-length range located just after the end - # of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:63 - def end; end - - # @api public - # @return [Integer] index of the character after the last character in the range - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:30 - def end_pos; end - - # @api public - def eql?(_arg0); end - - # Line number of the beginning of this range. By default, the first line - # of a buffer is 1; as such, line numbers are most commonly one-based. - # - # @api public - # @return [Integer] line number of the beginning of this range. - # @see Buffer - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:83 - def first_line; end - - # Support for Ranges be used in as Hash indices and in Sets. - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:313 - def hash; end - - # @api public - # @return [String] a human-readable representation of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:320 - def inspect; end - - # @api public - # @param other [Range] - # @return [Range] overlapping region of this range and `other`, or `nil` - # if they do not overlap - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:220 - def intersect(other); end - - # `is?` provides a concise way to compare the source corresponding to this range. - # For example, `r.source == '(' || r.source == 'begin'` is equivalent to - # `r.is?('(', 'begin')`. - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:141 - def is?(*what); end - - # @api public - # @param other [Range] - # @return [Range] smallest possible range spanning both this range and `other`. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:209 - def join(other); end - - # @api public - # @return [Integer] zero-based column number of the end of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:106 - def last_column; end - - # @api public - # @return [Integer] line number of the end of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:99 - def last_line; end - - # @api public - # @return [Integer] amount of characters included in this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:70 - def length; end - - # Line number of the beginning of this range. By default, the first line - # of a buffer is 1; as such, line numbers are most commonly one-based. - # - # @api public - # @return [Integer] line number of the beginning of this range. - # @see Buffer - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:83 - def line; end - - # Return `true` iff this range is not disjoint from `other`. - # - # @api public - # @param other [Range] - # @return [Boolean] `true` if this range and `other` overlap - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:250 - def overlaps?(other); end - - # @api public - # @param new_size [Integer] - # @return [Range] a range beginning at the same point as this range and length `new_size`. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:201 - def resize(new_size); end - - # @api public - # @return [Integer] amount of characters included in this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:70 - def size; end - - # @api public - # @return [String] all source code covered by this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:132 - def source; end - - # @api public - # @return [Parser::Source::Buffer] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:29 - def source_buffer; end - - # @api public - # @return [String] a line of source code containing the beginning of this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:125 - def source_line; end - - # @api public - # @return [Array] a set of character indexes contained in this range. - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:148 - def to_a; end - - # @api public - # @return [Range] a Ruby range with the same `begin_pos` and `end_pos` - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:155 - def to_range; end - - # Composes a GNU/Clang-style string representation of the beginning of this - # range. - # - # For example, for the following range in file `foo.rb`, - # - # def foo - # ^^^ - # - # `to_s` will return `foo.rb:1:5`. - # Note that the column index is one-based. - # - # @api public - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:173 - def to_s; end - - # to the given value(s). - # - # @api public - # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos - # @return [Range] the same range as this range but with the given end point(s) changed - # - # source://parser-3.1.2.1/lib/parser/source/range.rb:184 - def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end -end - -# {Rewriter} is deprecated. Use {TreeRewriter} instead. -# -# TreeRewriter has simplified semantics, and customizable policies -# with regards to clobbering. Please read the documentation. -# -# Keep in mind: -# - Rewriter was discarding the `end_pos` of the given range for `insert_before`, -# and the `begin_pos` for `insert_after`. These are meaningful in TreeRewriter. -# - TreeRewriter's wrap/insert_before/insert_after are multiple by default, while -# Rewriter would raise clobbering errors if the non '_multi' version was called. -# - The TreeRewriter policy closest to Rewriter's behavior is: -# different_replacements: :raise, -# swallowed_insertions: :raise, -# crossing_deletions: :accept -# -# @api public -# @deprecated Use {TreeRewriter} -# -# source://parser-3.1.2.1/lib/parser/source/rewriter.rb:31 -class Parser::Source::Rewriter - extend ::Parser::Deprecation - - # @api public - # @deprecated Use {TreeRewriter} - # @param source_buffer [Source::Buffer] - # @return [Rewriter] a new instance of Rewriter - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:39 - def initialize(source_buffer); end - - # @api public - # @return [Diagnostic::Engine] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:33 - def diagnostics; end - - # Inserts new code after the given source range. - # - # @api public - # @deprecated Use {TreeRewriter#insert_after} - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:131 - def insert_after(range, content); end - - # Inserts new code after the given source range by allowing other - # insertions at the same position. - # Note that an insertion with latter invocation comes _after_ earlier - # insertion at the same position in the rewritten source. - # - # @api public - # @deprecated Use {TreeRewriter#insert_after} - # @example Inserting ')]' - # rewriter. - # insert_after_multi(range, ')'). - # insert_after_multi(range, ']'). - # process - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:153 - def insert_after_multi(range, content); end - - # Inserts new code before the given source range. - # - # @api public - # @deprecated Use {TreeRewriter#insert_before} - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:80 - def insert_before(range, content); end - - # Inserts new code before the given source range by allowing other - # insertions at the same position. - # Note that an insertion with latter invocation comes _before_ earlier - # insertion at the same position in the rewritten source. - # - # @api public - # @deprecated Use {TreeRewriter#insert_before} - # @example Inserting '[(' - # rewriter. - # insert_before_multi(range, '('). - # insert_before_multi(range, '['). - # process - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:117 - def insert_before_multi(range, content); end - - # Applies all scheduled changes to the `source_buffer` and returns - # modified source as a new string. - # - # @api public - # @deprecated Use {TreeRewriter#process} - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:178 - def process; end - - # Removes the source range. - # - # @api public - # @deprecated Use {TreeRewriter#remove} - # @param range [Range] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:67 - def remove(range); end - - # Replaces the code of the source range `range` with `content`. - # - # @api public - # @deprecated Use {TreeRewriter#replace} - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:167 - def replace(range, content); end - - # @api public - # @return [Source::Buffer] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:32 - def source_buffer; end - - # Provides a protected block where a sequence of multiple rewrite actions - # are handled atomically. If any of the actions failed by clobbering, - # all the actions are rolled back. - # - # @api public - # @deprecated Use {TreeRewriter#transaction} - # @example - # begin - # rewriter.transaction do - # rewriter.insert_before(range_of_something, '(') - # rewriter.insert_after(range_of_something, ')') - # end - # rescue Parser::ClobberingError - # end - # @raise [RuntimeError] when no block is passed - # @raise [RuntimeError] when already in a transaction - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:216 - def transaction; end - - # Inserts new code before and after the given source range. - # - # @api public - # @deprecated Use {TreeRewriter#wrap} - # @param range [Range] - # @param before [String] - # @param after [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:94 - def wrap(range, before, after); end - - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:476 - def active_clobber; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:484 - def active_clobber=(value); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:480 - def active_insertions; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:492 - def active_insertions=(value); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:472 - def active_queue; end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:500 - def adjacent?(range1, range2); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:351 - def adjacent_insertion_mask(range); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:366 - def adjacent_insertions?(range); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:347 - def adjacent_position_mask(range); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:377 - def adjacent_updates?(range); end - - # Schedule a code update. If it overlaps with another update, check - # whether they conflict, and raise a clobbering error if they do. - # (As a special case, zero-length ranges at the same position are - # considered to "overlap".) Otherwise, merge them. - # - # Updates which are adjacent to each other, but do not overlap, are also - # merged. - # - # RULES: - # - # - Insertion ("replacing" a zero-length range): - # - Two insertions at the same point conflict. This is true even - # if the earlier insertion has already been merged with an adjacent - # update, and even if they are both inserting the same text. - # - An insertion never conflicts with a replace or remove operation - # on its right or left side, which does not overlap it (in other - # words, which does not update BOTH its right and left sides). - # - An insertion always conflicts with a remove operation which spans - # both its sides. - # - An insertion conflicts with a replace operation which spans both its - # sides, unless the replacement text is longer than the replaced text - # by the size of the insertion (or more), and the portion of - # replacement text immediately after the insertion position is - # identical to the inserted text. - # - # - Removal operations never conflict with each other. - # - # - Replacement operations: - # - Take the portion of each replacement text which falls within: - # - The other operation's replaced region - # - The other operation's replacement text, if it extends past the - # end of its own replaced region (in other words, if the replacement - # text is longer than the text it replaces) - # - If and only if the taken texts are identical for both operations, - # they do not conflict. - # - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:280 - def append(action); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:389 - def can_merge?(action, existing); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:355 - def clobbered_insertion?(insertion); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:343 - def clobbered_position_mask(range); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:468 - def in_transaction?; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:410 - def merge_actions(action, existing); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:419 - def merge_actions!(action, existing); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:425 - def merge_replacements(actions); end - - # @api public - # @raise [ClobberingError] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:450 - def raise_clobber_error(action, existing); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:335 - def record_insertion(range); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:339 - def record_replace(range); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:445 - def replace_actions(old, updated); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/rewriter.rb:383 - def replace_compatible_with_insertion?(replace, insertion); end -end - -# source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:9 -class Parser::Source::Rewriter::Action - include ::Comparable - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:15 - def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:24 - def <=>(other); end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:12 - def allow_multiple_insertions; end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:12 - def allow_multiple_insertions?; end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:12 - def order; end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:12 - def range; end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:12 - def replacement; end - - # source://parser-3.1.2.1/lib/parser/source/rewriter/action.rb:30 - def to_s; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/rewriter.rb:504 -Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) - -# {TreeRewriter} performs the heavy lifting in the source rewriting process. -# It schedules code updates to be performed in the correct order. -# -# For simple cases, the resulting source will be obvious. -# -# Examples for more complex cases follow. Assume these examples are acting on -# the source `'puts(:hello, :world)`. The methods #wrap, #remove, etc. -# receive a Range as first argument; for clarity, examples below use english -# sentences and a string of raw code instead. -# -# ## Overlapping ranges: -# -# Any two rewriting actions on overlapping ranges will fail and raise -# a `ClobberingError`, unless they are both deletions (covered next). -# -# * wrap ':hello, ' with '(' and ')' -# * wrap ', :world' with '(' and ')' -# => CloberringError -# -# ## Overlapping deletions: -# -# * remove ':hello, ' -# * remove ', :world' -# -# The overlapping ranges are merged and `':hello, :world'` will be removed. -# This policy can be changed. `:crossing_deletions` defaults to `:accept` -# but can be set to `:warn` or `:raise`. -# -# ## Multiple actions at the same end points: -# -# Results will always be independent on the order they were given. -# Exception: rewriting actions done on exactly the same range (covered next). -# -# Example: -# * replace ', ' by ' => ' -# * wrap ':hello, :world' with '{' and '}' -# * replace ':world' with ':everybody' -# * wrap ':world' with '[', ']' -# -# The resulting string will be `'puts({:hello => [:everybody]})'` -# and this result is independent on the order the instructions were given in. -# -# Note that if the two "replace" were given as a single replacement of ', :world' -# for ' => :everybody', the result would be a `ClobberingError` because of the wrap -# in square brackets. -# -# ## Multiple wraps on same range: -# * wrap ':hello' with '(' and ')' -# * wrap ':hello' with '[' and ']' -# -# The wraps are combined in order given and results would be `'puts([(:hello)], :world)'`. -# -# ## Multiple replacements on same range: -# * replace ':hello' by ':hi', then -# * replace ':hello' by ':hey' -# -# The replacements are made in the order given, so the latter replacement -# supersedes the former and ':hello' will be replaced by ':hey'. -# -# This policy can be changed. `:different_replacements` defaults to `:accept` -# but can be set to `:warn` or `:raise`. -# -# ## Swallowed insertions: -# wrap 'world' by '__', '__' -# replace ':hello, :world' with ':hi' -# -# A containing replacement will swallow the contained rewriting actions -# and `':hello, :world'` will be replaced by `':hi'`. -# -# This policy can be changed for swallowed insertions. `:swallowed_insertions` -# defaults to `:accept` but can be set to `:warn` or `:raise` -# -# ## Implementation -# The updates are organized in a tree, according to the ranges they act on -# (where children are strictly contained by their parent), hence the name. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:91 -class Parser::Source::TreeRewriter - extend ::Parser::Deprecation - - # @api public - # @param source_buffer [Source::Buffer] - # @return [TreeRewriter] a new instance of TreeRewriter - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:98 - def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end - - # Returns a representation of the rewriter as nested insertions (:wrap) and replacements. - # - # rewriter.as_actions # =>[ [:wrap, 1...10, '(', ')'], - # [:wrap, 2...6, '', '!'], # aka "insert_after" - # [:replace, 2...4, 'foo'], - # [:replace, 5...6, ''], # aka "removal" - # ], - # - # Contrary to `as_replacements`, this representation is sufficient to recreate exactly - # the rewriter. - # - # @api public - # @return [Array<(Symbol, Range, String{, String})>] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:299 - def as_nested_actions; end - - # Returns a representation of the rewriter as an ordered list of replacements. - # - # rewriter.as_replacements # => [ [1...1, '('], - # [2...4, 'foo'], - # [5...6, ''], - # [6...6, '!'], - # [10...10, ')'], - # ] - # - # This representation is sufficient to recreate the result of `process` but it is - # not sufficient to recreate completely the rewriter for further merging/actions. - # See `as_nested_actions` - # - # @api public - # @return [Array] an ordered list of pairs of range & replacement - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:281 - def as_replacements; end - - # @api public - # @return [Diagnostic::Engine] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:93 - def diagnostics; end - - # Returns true iff no (non trivial) update has been recorded - # - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:125 - def empty?; end - - # For special cases where one needs to merge a rewriter attached to a different source_buffer - # or that needs to be offset. Policies of the receiver are used. - # - # @api public - # @param rewriter [TreeRewriter] from different source_buffer - # @param offset [Integer] - # @raise [IndexError] if action ranges (once offset) don't fit the current buffer - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:168 - def import!(foreign_rewriter, offset: T.unsafe(nil)); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:329 - def in_transaction?; end - - # Shortcut for `wrap(range, nil, content)` - # - # @api public - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:242 - def insert_after(range, content); end - - # @api private - # @deprecated Use insert_after or wrap - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:351 - def insert_after_multi(range, text); end - - # Shortcut for `wrap(range, content, nil)` - # - # @api public - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:230 - def insert_before(range, content); end - - # @api private - # @deprecated Use insert_after or wrap - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:342 - def insert_before_multi(range, text); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:334 - def inspect; end - - # Returns a new rewriter that consists of the updates of the received - # and the given argument. Policies of the receiver are used. - # - # @api public - # @param with [Rewriter] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] merge of receiver and argument - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:155 - def merge(with); end - - # Merges the updates of argument with the receiver. - # Policies of the receiver are used. - # This action is atomic in that it won't change the receiver - # unless it succeeds. - # - # @api public - # @param with [Rewriter] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:139 - def merge!(with); end - - # Applies all scheduled changes to the `source_buffer` and returns - # modified source as a new string. - # - # @api public - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:252 - def process; end - - # Shortcut for `replace(range, '')` - # - # @api public - # @param range [Range] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:217 - def remove(range); end - - # Replaces the code of the source range `range` with `content`. - # - # @api public - # @param range [Range] - # @param content [String] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:193 - def replace(range, content); end - - # @api public - # @return [Source::Buffer] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:92 - def source_buffer; end - - # Provides a protected block where a sequence of multiple rewrite actions - # are handled atomically. If any of the actions failed by clobbering, - # all the actions are rolled back. Transactions can be nested. - # - # @api public - # @raise [RuntimeError] when no block is passed - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:310 - def transaction; end - - # Inserts the given strings before and after the given range. - # - # @api public - # @param range [Range] - # @param insert_before [String, nil] - # @param insert_after [String, nil] - # @raise [ClobberingError] when clobbering is detected - # @return [Rewriter] self - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:206 - def wrap(range, insert_before, insert_after); end - - protected - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:365 - def action_root; end - - private - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:369 - def action_summary; end - - # @api public - # @raise [ArgumentError] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:392 - def check_policy_validity; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:404 - def check_range_validity(range); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:397 - def combine(range, attributes); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:411 - def enforce_policy(event); end - - # @api public - # @raise [Parser::ClobberingError] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:418 - def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:391 -Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array) - -# Actions are arranged in a tree and get combined so that: -# children are strictly contained by their parent -# sibblings all disjoint from one another and ordered -# only actions with replacement==nil may have children -# -# @api private -# -# source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:13 -class Parser::Source::TreeRewriter::Action - # @api private - # @return [Action] a new instance of Action - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:16 - def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:28 - def combine(action); end - - # A root action has its range set to the whole source range, even - # though it typically do not act on that range. - # This method returns the action as if it was a child action with - # its range contracted. - # - # @api private - # @return [Action] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:67 - def contract; end - - # @api private - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:33 - def empty?; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:14 - def insert_after; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:14 - def insert_before; end - - # @api private - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:57 - def insertion?; end - - # No check is done on validity of resulting range. - # - # @api private - # @return [Action] that has been moved to the given source_buffer and with the given offset - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:80 - def moved(source_buffer, offset); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:49 - def nested_actions; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:40 - def ordered_replacements; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:14 - def range; end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:14 - def replacement; end - - protected - - # Returns the children in a hierarchy with respect to `action`: - # :sibbling_left, sibbling_right (for those that are disjoint from `action`) - # :parent (in case one of our children contains `action`) - # :child (in case `action` strictly contains some of our children) - # :fusible (in case `action` overlaps some children but they can be fused in one deletion) - # or raises a `CloberingError` - # In case a child has equal range to `action`, it is returned as `:parent` - # Reminder: an empty range 1...1 is considered disjoint from 1...10 - # - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:158 - def analyse_hierarchy(action); end - - # Similar to @children.bsearch_index || size - # except allows for a starting point - # and `bsearch_index` is only Ruby 2.3+ - # - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:145 - def bsearch_child_index(from = T.unsafe(nil)); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:224 - def call_enforcer_for_merge(action); end - - # @api private - # @param fusible [Array(Action | nil)] - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:204 - def check_fusible(action, *fusible); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:94 - def children; end - - # Assumes `more_children` all contained within `@range` - # - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:129 - def combine_children(more_children); end - - # Assumes range.contains?(action.range) && action.children.empty? - # - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:102 - def do_combine(action); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:135 - def fuse_deletions(action, fusible, other_sibblings); end - - # Assumes action.range == range && action.children.empty? - # - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:215 - def merge(action); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:110 - def place_in_hierarchy(action); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:232 - def swallow(children); end - - # @api private - # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter/action.rb:96 - def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:356 -Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:417 -Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/static_environment.rb:5 -class Parser::StaticEnvironment - # @api public - # @return [StaticEnvironment] a new instance of StaticEnvironment - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:9 - def initialize; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:38 - def declare(name); end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:56 - def declare_anonymous_blockarg; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:48 - def declare_forward_args; end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:44 - def declared?(name); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:60 - def declared_anonymous_blockarg?; end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:52 - def declared_forward_args?; end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:64 - def empty?; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:25 - def extend_dynamic; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:18 - def extend_static; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:13 - def reset; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/static_environment.rb:32 - def unextend; end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/static_environment.rb:7 -Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/static_environment.rb:6 -Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) - -# {Parser::SyntaxError} is raised whenever parser detects a syntax error, -# similar to the standard SyntaxError class. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/syntax_error.rb:13 -class Parser::SyntaxError < ::StandardError - # @api public - # @return [SyntaxError] a new instance of SyntaxError - # - # source://parser-3.1.2.1/lib/parser/syntax_error.rb:16 - def initialize(diagnostic); end - - # @api public - # @return [Parser::Diagnostic] - # - # source://parser-3.1.2.1/lib/parser/syntax_error.rb:14 - def diagnostic; end -end - -# {Parser::TreeRewriter} offers a basic API that makes it easy to rewrite -# existing ASTs. It's built on top of {Parser::AST::Processor} and -# {Parser::Source::TreeRewriter} -# -# For example, assume you want to remove `do` tokens from a while statement. -# You can do this as following: -# -# require 'parser/current' -# -# class RemoveDo < Parser::TreeRewriter -# def on_while(node) -# # Check if the statement starts with "do" -# if node.location.begin.is?('do') -# remove(node.location.begin) -# end -# end -# end -# -# code = <<-EOF -# while true do -# puts 'hello' -# end -# EOF -# -# ast = Parser::CurrentRuby.parse code -# buffer = Parser::Source::Buffer.new('(example)', source: code) -# rewriter = RemoveDo.new -# -# # Rewrite the AST, returns a String with the new form. -# puts rewriter.rewrite(buffer, ast) -# -# This would result in the following Ruby code: -# -# while true -# puts 'hello' -# end -# -# Keep in mind that {Parser::TreeRewriter} does not take care of indentation when -# inserting/replacing code so you'll have to do this yourself. -# -# See also [a blog entry](http://whitequark.org/blog/2013/04/26/lets-play-with-ruby-code/) -# describing rewriters in greater detail. -# -# @api public -# -# source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:61 -class Parser::TreeRewriter < ::Parser::AST::Processor - # Returns `true` if the specified node is an assignment node, returns false - # otherwise. - # - # @api public - # @param node [Parser::AST::Node] - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:79 - def assignment?(node); end - - # Inserts new code after the given source range. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:118 - def insert_after(range, content); end - - # Inserts new code before the given source range. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:108 - def insert_before(range, content); end - - # Removes the source range. - # - # @api public - # @param range [Parser::Source::Range] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:88 - def remove(range); end - - # Replaces the code of the source range `range` with `content`. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:128 - def replace(range, content); end - - # Rewrites the AST/source buffer and returns a String containing the new - # version. - # - # @api public - # @param source_buffer [Parser::Source::Buffer] - # @param ast [Parser::AST::Node] - # @param crossing_deletions:, [Symbol] different_replacements:, swallowed_insertions: - # policy arguments for TreeRewriter (optional) - # @return [String] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:62 - def rewrite(source_buffer, ast, **policy); end - - # Wraps the given source range with the given values. - # - # @api public - # @param range [Parser::Source::Range] - # @param content [String] - # - # source://parser-3.1.2.1/lib/parser/tree_rewriter.rb:98 - def wrap(range, before, after); end -end - -# @api public -# -# source://parser-3.1.2.1/lib/parser/version.rb:4 -Parser::VERSION = T.let(T.unsafe(nil), String) - -# @api public -# -# source://parser-3.1.2.1/lib/parser/variables_stack.rb:5 -class Parser::VariablesStack - # @api public - # @return [VariablesStack] a new instance of VariablesStack - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:6 - def initialize; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:27 - def declare(name); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:31 - def declared?(name); end - - # @api public - # @return [Boolean] - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:11 - def empty?; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:19 - def pop; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:15 - def push; end - - # @api public - # - # source://parser-3.1.2.1/lib/parser/variables_stack.rb:23 - def reset; end -end diff --git a/sorbet/rbi/gems/parser@3.2.0.0.rbi b/sorbet/rbi/gems/parser@3.2.0.0.rbi new file mode 100644 index 00000000..7890427d --- /dev/null +++ b/sorbet/rbi/gems/parser@3.2.0.0.rbi @@ -0,0 +1,6918 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `parser` gem. +# Please instead update this file by running `bin/tapioca gem parser`. + +# @api public +# +# source://parser//lib/parser.rb#19 +module Parser + class << self + private + + # source://parser//lib/parser/current.rb#5 + def warn_syntax_deviation(feature, version); end + end +end + +# @api public +# +# source://parser//lib/parser.rb#24 +module Parser::AST; end + +# {Parser::AST::Node} contains information about a single AST node and its +# child nodes. It extends the basic [AST::Node](http://rdoc.info/gems/ast/AST/Node) +# class provided by gem [ast](http://rdoc.info/gems/ast). +# +# @api public +# +# source://parser//lib/parser/ast/node.rb#17 +class Parser::AST::Node < ::AST::Node + # Assigns various properties to this AST node. Currently only the + # location can be set. + # + # @api public + # @option properties + # @param properties [Hash] + # + # source://parser//lib/parser/ast/node.rb#30 + def assign_properties(properties); end + + # Source map for this Node. + # + # @api public + # @return [Parser::Source::Map] + # + # source://parser//lib/parser/ast/node.rb#18 + def loc; end + + # Source map for this Node. + # + # @api public + # @return [Parser::Source::Map] + # + # source://parser//lib/parser/ast/node.rb#18 + def location; end +end + +# @api public +# +# source://parser//lib/parser/ast/processor.rb#9 +class Parser::AST::Processor < ::AST::Processor + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_alias(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_and(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_and_asgn(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_arg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_arg_expr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_args(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#103 + def on_argument(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_array(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_array_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_array_pattern_with_tail(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_back_ref(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_begin(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_block(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_block_pass(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_blockarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_blockarg_expr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_break(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_case(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_case_match(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#87 + def on_casgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_class(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#79 + def on_const(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_const_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#179 + def on_csend(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_cvar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_cvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#158 + def on_def(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_defined?(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#167 + def on_defs(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_dstr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_dsym(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_eflipflop(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#286 + def on_empty_else(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_ensure(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_erange(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_find_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_for(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_forward_arg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_forwarded_kwrestarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_forwarded_restarg(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_gvar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_gvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_hash(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_hash_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_if(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_if_guard(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_iflipflop(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_in_match(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_in_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_index(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_indexasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_irange(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_ivar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_ivasgn(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_kwarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_kwargs(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_kwbegin(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_kwoptarg(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_kwrestarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_kwsplat(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_lambda(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_lvar(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#56 + def on_lvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_masgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_alt(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_as(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_current_line(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_pattern(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_pattern_p(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_rest(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_match_var(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_match_with_lvasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_mlhs(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_module(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_next(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_not(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#32 + def on_nth_ref(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#196 + def on_numblock(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#68 + def on_op_asgn(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_optarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_or(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_or_asgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_pair(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_pin(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_postexe(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_preexe(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#130 + def on_procarg0(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_redo(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_regexp(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_resbody(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_rescue(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_restarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_restarg_expr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_retry(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_return(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_sclass(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#179 + def on_send(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#116 + def on_shadowarg(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_splat(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_super(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_undef(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_unless_guard(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_until(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_until_post(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#27 + def on_var(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#43 + def on_vasgn(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_when(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_while(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_while_post(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_xstr(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def on_yield(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#279 + def process_argument_node(node); end + + # @api public + # + # source://parser//lib/parser/ast/processor.rb#10 + def process_regular_node(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#271 + def process_var_asgn_node(node); end + + # @api public + # @private + # + # source://parser//lib/parser/ast/processor.rb#263 + def process_variable_node(node); end +end + +# Base class for version-specific parsers. +# +# @api public +# +# source://parser//lib/parser/base.rb#29 +class Parser::Base < ::Racc::Parser + # @api public + # @param builder [Parser::Builders::Default] The AST builder to use. + # @return [Base] a new instance of Base + # + # source://parser//lib/parser/base.rb#126 + def initialize(builder = T.unsafe(nil)); end + + # @api public + # + # source://parser//lib/parser/base.rb#114 + def builder; end + + # @api public + # + # source://parser//lib/parser/base.rb#117 + def context; end + + # @api public + # + # source://parser//lib/parser/base.rb#119 + def current_arg_stack; end + + # @api public + # @return [Parser::Diagnostic::Engine] + # + # source://parser//lib/parser/base.rb#113 + def diagnostics; end + + # @api public + # + # source://parser//lib/parser/base.rb#112 + def lexer; end + + # @api public + # + # source://parser//lib/parser/base.rb#118 + def max_numparam_stack; end + + # Parses a source buffer and returns the AST, or `nil` in case of a non fatal error. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] The source buffer to parse. + # @return [Parser::AST::Node, nil] + # + # source://parser//lib/parser/base.rb#186 + def parse(source_buffer); end + + # Parses a source buffer and returns the AST and the source code comments. + # + # @api public + # @return [Array] + # @see #parse + # @see Parser::Source::Comment#associate + # + # source://parser//lib/parser/base.rb#204 + def parse_with_comments(source_buffer); end + + # @api public + # + # source://parser//lib/parser/base.rb#121 + def pattern_hash_keys; end + + # @api public + # + # source://parser//lib/parser/base.rb#120 + def pattern_variables; end + + # Resets the state of the parser. + # + # @api public + # + # source://parser//lib/parser/base.rb#167 + def reset; end + + # @api public + # + # source://parser//lib/parser/base.rb#116 + def source_buffer; end + + # @api public + # @return [Parser::StaticEnvironment] + # + # source://parser//lib/parser/base.rb#115 + def static_env; end + + # Parses a source buffer and returns the AST, the source code comments, + # and the tokens emitted by the lexer. In case of a fatal error, a {SyntaxError} + # is raised, unless `recover` is true. In case of an error + # (non-fatal or recovered), `nil` is returned instead of the AST, and + # comments as well as tokens are only returned up to the location of + # the error. + # + # Currently, token stream format returned by #tokenize is not documented, + # but is considered part of a public API and only changed according + # to Semantic Versioning. + # + # However, note that the exact token composition of various constructs + # might vary. For example, a string `"foo"` is represented equally well + # by `:tSTRING_BEG " :tSTRING_CONTENT foo :tSTRING_END "` and + # `:tSTRING "foo"`; such details must not be relied upon. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param recover [Boolean] If true, recover from syntax errors. False by default. + # @return [Array] + # + # source://parser//lib/parser/base.rb#233 + def tokenize(source_buffer, recover = T.unsafe(nil)); end + + private + + # @api public + # + # source://parser//lib/parser/base.rb#257 + def check_kwarg_name(name_t); end + + # @api public + # + # source://parser//lib/parser/base.rb#266 + def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end + + # @api public + # + # source://parser//lib/parser/base.rb#251 + def next_token; end + + # @api public + # + # source://parser//lib/parser/base.rb#282 + def on_error(error_token_id, error_value, value_stack); end + + class << self + # @api public + # @return [Parser::Base] parser with the default options set. + # + # source://parser//lib/parser/base.rb#84 + def default_parser; end + + # Parses a string of Ruby code and returns the AST. If the source + # cannot be parsed, {SyntaxError} is raised and a diagnostic is + # printed to `stderr`. + # + # @api public + # @example + # Parser::Base.parse('puts "hello"') + # @param string [String] The block of code to parse. + # @param file [String] The name of the file the code originated from. + # @param line [Numeric] The initial line number. + # @return [Parser::AST::Node] + # + # source://parser//lib/parser/base.rb#30 + def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end + + # Parses Ruby source code by reading it from a file. If the source + # cannot be parsed, {SyntaxError} is raised and a diagnostic is + # printed to `stderr`. + # + # @api public + # @param filename [String] Path to the file to parse. + # @return [Parser::AST::Node] + # @see #parse + # + # source://parser//lib/parser/base.rb#64 + def parse_file(filename); end + + # Parses Ruby source code by reading it from a file and returns the AST and + # comments. If the source cannot be parsed, {SyntaxError} is raised and a + # diagnostic is printed to `stderr`. + # + # @api public + # @param filename [String] Path to the file to parse. + # @return [Array] + # @see #parse + # + # source://parser//lib/parser/base.rb#77 + def parse_file_with_comments(filename); end + + # Parses a string of Ruby code and returns the AST and comments. If the + # source cannot be parsed, {SyntaxError} is raised and a diagnostic is + # printed to `stderr`. + # + # @api public + # @example + # Parser::Base.parse_with_comments('puts "hello"') + # @param string [String] The block of code to parse. + # @param file [String] The name of the file the code originated from. + # @param line [Numeric] The initial line number. + # @return [Array] + # + # source://parser//lib/parser/base.rb#49 + def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end + + private + + # @api public + # + # source://parser//lib/parser/base.rb#97 + def setup_source_buffer(file, line, string, encoding); end + end +end + +# @api public +# +# source://parser//lib/parser.rb#76 +module Parser::Builders; end + +# source://parser//lib/parser/builders/default.rb#8 +class Parser::Builders::Default + # source://parser//lib/parser/builders/default.rb#243 + def initialize; end + + # source://parser//lib/parser/builders/default.rb#696 + def __ENCODING__(__ENCODING__t); end + + # source://parser//lib/parser/builders/default.rb#348 + def __FILE__(__FILE__t); end + + # source://parser//lib/parser/builders/default.rb#312 + def __LINE__(__LINE__t); end + + # source://parser//lib/parser/builders/default.rb#622 + def accessible(node); end + + # source://parser//lib/parser/builders/default.rb#871 + def alias(alias_t, to, from); end + + # source://parser//lib/parser/builders/default.rb#910 + def arg(name_t); end + + # source://parser//lib/parser/builders/default.rb#1000 + def arg_expr(expr); end + + # source://parser//lib/parser/builders/default.rb#880 + def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#440 + def array(begin_t, elements, end_t); end + + # source://parser//lib/parser/builders/default.rb#1583 + def array_pattern(lbrack_t, elements, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#760 + def assign(lhs, eql_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#705 + def assignable(node); end + + # source://parser//lib/parser/builders/default.rb#540 + def associate(begin_t, pairs, end_t); end + + # source://parser//lib/parser/builders/default.rb#1164 + def attr_asgn(receiver, dot_t, selector_t); end + + # source://parser//lib/parser/builders/default.rb#612 + def back_ref(token); end + + # source://parser//lib/parser/builders/default.rb#1428 + def begin(begin_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1370 + def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1446 + def begin_keyword(begin_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1198 + def binary_op(receiver, operator_t, arg); end + + # source://parser//lib/parser/builders/default.rb#1115 + def block(method_call, begin_t, args, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1150 + def block_pass(amper_t, arg); end + + # source://parser//lib/parser/builders/default.rb#975 + def blockarg(amper_t, name_t); end + + # source://parser//lib/parser/builders/default.rb#1020 + def blockarg_expr(amper_t, expr); end + + # source://parser//lib/parser/builders/default.rb#1106 + def call_lambda(lambda_t); end + + # source://parser//lib/parser/builders/default.rb#1089 + def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1061 + def call_type_for_dot(dot_t); end + + # source://parser//lib/parser/builders/default.rb#1303 + def case(case_t, expr, when_bodies, else_t, else_body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1466 + def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end + + # source://parser//lib/parser/builders/default.rb#343 + def character(char_t); end + + # source://parser//lib/parser/builders/default.rb#284 + def complex(complex_t); end + + # source://parser//lib/parser/builders/default.rb#1416 + def compstmt(statements); end + + # source://parser//lib/parser/builders/default.rb#1279 + def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end + + # source://parser//lib/parser/builders/default.rb#1285 + def condition_mod(if_true, if_false, cond_t, cond); end + + # source://parser//lib/parser/builders/default.rb#679 + def const(name_t); end + + # source://parser//lib/parser/builders/default.rb#691 + def const_fetch(scope, t_colon2, name_t); end + + # source://parser//lib/parser/builders/default.rb#684 + def const_global(t_colon3, name_t); end + + # source://parser//lib/parser/builders/default.rb#756 + def const_op_assignable(node); end + + # source://parser//lib/parser/builders/default.rb#1613 + def const_pattern(const, ldelim_t, pattern, rdelim_t); end + + # source://parser//lib/parser/builders/default.rb#607 + def cvar(token); end + + # source://parser//lib/parser/builders/default.rb#388 + def dedent_string(node, dedent_level); end + + # source://parser//lib/parser/builders/default.rb#807 + def def_class(class_t, name, lt_t, superclass, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#838 + def def_endless_method(def_t, name_t, args, assignment_t, body); end + + # source://parser//lib/parser/builders/default.rb#856 + def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end + + # source://parser//lib/parser/builders/default.rb#830 + def def_method(def_t, name_t, args, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#820 + def def_module(module_t, name, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#814 + def def_sclass(class_t, lshft_t, expr, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#846 + def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#237 + def emit_file_line_as_literals; end + + # source://parser//lib/parser/builders/default.rb#237 + def emit_file_line_as_literals=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#265 + def false(false_t); end + + # source://parser//lib/parser/builders/default.rb#1604 + def find_pattern(lbrack_t, elements, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#276 + def float(float_t); end + + # source://parser//lib/parser/builders/default.rb#1324 + def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#906 + def forward_arg(dots_t); end + + # source://parser//lib/parser/builders/default.rb#896 + def forward_only_args(begin_t, dots_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1077 + def forwarded_args(dots_t); end + + # source://parser//lib/parser/builders/default.rb#1085 + def forwarded_kwrestarg(dstar_t); end + + # source://parser//lib/parser/builders/default.rb#1081 + def forwarded_restarg(star_t); end + + # source://parser//lib/parser/builders/default.rb#602 + def gvar(token); end + + # source://parser//lib/parser/builders/default.rb#1577 + def hash_pattern(lbrace_t, kwargs, rbrace_t); end + + # source://parser//lib/parser/builders/default.rb#592 + def ident(token); end + + # source://parser//lib/parser/builders/default.rb#1493 + def if_guard(if_t, if_body); end + + # source://parser//lib/parser/builders/default.rb#1472 + def in_match(lhs, in_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1487 + def in_pattern(in_t, pattern, guard, then_t, body); end + + # source://parser//lib/parser/builders/default.rb#1173 + def index(receiver, lbrack_t, indexes, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#1187 + def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#272 + def integer(integer_t); end + + # source://parser//lib/parser/builders/default.rb#597 + def ivar(token); end + + # source://parser//lib/parser/builders/default.rb#1332 + def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#937 + def kwarg(name_t); end + + # source://parser//lib/parser/builders/default.rb#963 + def kwnilarg(dstar_t, nil_t); end + + # source://parser//lib/parser/builders/default.rb#944 + def kwoptarg(name_t, value); end + + # source://parser//lib/parser/builders/default.rb#951 + def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#535 + def kwsplat(dstar_t, arg); end + + # source://parser//lib/parser/builders/default.rb#1272 + def logical_op(type, lhs, op_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1310 + def loop(type, keyword_t, cond, do_t, body, end_t); end + + # source://parser//lib/parser/builders/default.rb#1315 + def loop_mod(type, body, keyword_t, cond); end + + # source://parser//lib/parser/builders/default.rb#1627 + def match_alt(left, pipe_t, right); end + + # source://parser//lib/parser/builders/default.rb#1634 + def match_as(value, assoc_t, as); end + + # source://parser//lib/parser/builders/default.rb#1513 + def match_hash_var(name_t); end + + # source://parser//lib/parser/builders/default.rb#1527 + def match_hash_var_from_str(begin_t, strings, end_t); end + + # source://parser//lib/parser/builders/default.rb#1665 + def match_label(label_type, label); end + + # source://parser//lib/parser/builders/default.rb#1641 + def match_nil_pattern(dstar_t, nil_t); end + + # source://parser//lib/parser/builders/default.rb#1220 + def match_op(receiver, match_t, arg); end + + # source://parser//lib/parser/builders/default.rb#1646 + def match_pair(label_type, label, value); end + + # source://parser//lib/parser/builders/default.rb#1477 + def match_pattern(lhs, match_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1482 + def match_pattern_p(lhs, match_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#1566 + def match_rest(star_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1501 + def match_var(name_t); end + + # source://parser//lib/parser/builders/default.rb#1609 + def match_with_trailing_comma(match, comma_t); end + + # source://parser//lib/parser/builders/default.rb#798 + def multi_assign(lhs, eql_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#793 + def multi_lhs(begin_t, items, end_t); end + + # source://parser//lib/parser/builders/default.rb#255 + def nil(nil_t); end + + # source://parser//lib/parser/builders/default.rb#1248 + def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#617 + def nth_ref(token); end + + # source://parser//lib/parser/builders/default.rb#892 + def numargs(max_numparam); end + + # source://parser//lib/parser/builders/default.rb#1031 + def objc_kwarg(kwname_t, assoc_t, name_t); end + + # source://parser//lib/parser/builders/default.rb#1045 + def objc_restarg(star_t, name = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1155 + def objc_varargs(pair, rest_of_varargs); end + + # source://parser//lib/parser/builders/default.rb#767 + def op_assign(lhs, op_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#917 + def optarg(name_t, eql_t, value); end + + # source://parser//lib/parser/builders/default.rb#488 + def pair(key, assoc_t, value); end + + # source://parser//lib/parser/builders/default.rb#505 + def pair_keyword(key_t, value); end + + # source://parser//lib/parser/builders/default.rb#521 + def pair_label(key_t); end + + # source://parser//lib/parser/builders/default.rb#493 + def pair_list_18(list); end + + # source://parser//lib/parser/builders/default.rb#513 + def pair_quoted(begin_t, parts, end_t, value); end + + # source://parser//lib/parser/builders/default.rb#225 + def parser; end + + # source://parser//lib/parser/builders/default.rb#225 + def parser=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#1622 + def pin(pin_t, var); end + + # source://parser//lib/parser/builders/default.rb#1355 + def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end + + # source://parser//lib/parser/builders/default.rb#1350 + def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end + + # source://parser//lib/parser/builders/default.rb#985 + def procarg0(arg); end + + # source://parser//lib/parser/builders/default.rb#578 + def range_exclusive(lhs, dot3_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#573 + def range_inclusive(lhs, dot2_t, rhs); end + + # source://parser//lib/parser/builders/default.rb#280 + def rational(rational_t); end + + # source://parser//lib/parser/builders/default.rb#426 + def regexp_compose(begin_t, parts, end_t, options); end + + # source://parser//lib/parser/builders/default.rb#417 + def regexp_options(regopt_t); end + + # source://parser//lib/parser/builders/default.rb#1362 + def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end + + # source://parser//lib/parser/builders/default.rb#926 + def restarg(star_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1009 + def restarg_expr(star_t, expr = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#587 + def self(token); end + + # source://parser//lib/parser/builders/default.rb#968 + def shadowarg(name_t); end + + # source://parser//lib/parser/builders/default.rb#445 + def splat(star_t, arg = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#319 + def string(string_t); end + + # source://parser//lib/parser/builders/default.rb#329 + def string_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#324 + def string_internal(string_t); end + + # source://parser//lib/parser/builders/default.rb#355 + def symbol(symbol_t); end + + # source://parser//lib/parser/builders/default.rb#365 + def symbol_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#360 + def symbol_internal(symbol_t); end + + # source://parser//lib/parser/builders/default.rb#469 + def symbols_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#1290 + def ternary(cond, question_t, if_true, colon_t, if_false); end + + # source://parser//lib/parser/builders/default.rb#260 + def true(true_t); end + + # source://parser//lib/parser/builders/default.rb#294 + def unary_num(unary_t, numeric); end + + # source://parser//lib/parser/builders/default.rb#1236 + def unary_op(op_t, receiver); end + + # source://parser//lib/parser/builders/default.rb#866 + def undef_method(undef_t, names); end + + # source://parser//lib/parser/builders/default.rb#1497 + def unless_guard(unless_t, unless_body); end + + # source://parser//lib/parser/builders/default.rb#1297 + def when(when_t, patterns, then_t, body); end + + # source://parser//lib/parser/builders/default.rb#455 + def word(parts); end + + # source://parser//lib/parser/builders/default.rb#464 + def words_compose(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#381 + def xstring_compose(begin_t, parts, end_t); end + + private + + # source://parser//lib/parser/builders/default.rb#1804 + def arg_name_collides?(this_name, that_name); end + + # source://parser//lib/parser/builders/default.rb#2000 + def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1974 + def binary_op_map(left_e, op_t, right_e); end + + # source://parser//lib/parser/builders/default.rb#2102 + def block_map(receiver_l, begin_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1779 + def check_assignment_to_numparam(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1681 + def check_condition(cond); end + + # source://parser//lib/parser/builders/default.rb#1750 + def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1725 + def check_duplicate_args(args, map = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1837 + def check_duplicate_pattern_key(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1827 + def check_duplicate_pattern_variable(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1819 + def check_lvar_name(name, loc); end + + # source://parser//lib/parser/builders/default.rb#1794 + def check_reserved_for_numparam(name, loc); end + + # source://parser//lib/parser/builders/default.rb#2259 + def collapse_string_parts?(parts); end + + # source://parser//lib/parser/builders/default.rb#1925 + def collection_map(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#2129 + def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end + + # source://parser//lib/parser/builders/default.rb#1960 + def constant_map(scope, colon2_t, name_t); end + + # source://parser//lib/parser/builders/default.rb#2033 + def definition_map(keyword_t, operator_t, name_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1866 + def delimited_string_map(string_t); end + + # source://parser//lib/parser/builders/default.rb#2281 + def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#2173 + def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end + + # source://parser//lib/parser/builders/default.rb#2039 + def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end + + # source://parser//lib/parser/builders/default.rb#1921 + def expr_map(loc); end + + # source://parser//lib/parser/builders/default.rb#2154 + def for_map(keyword_t, in_t, begin_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#2201 + def guard_map(keyword_t, guard_body_e); end + + # source://parser//lib/parser/builders/default.rb#2091 + def index_map(receiver_e, lbrack_t, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#1857 + def join_exprs(left_expr, right_expr); end + + # source://parser//lib/parser/builders/default.rb#2107 + def keyword_map(keyword_t, begin_t, args, end_t); end + + # source://parser//lib/parser/builders/default.rb#2124 + def keyword_mod_map(pre_e, keyword_t, post_e); end + + # source://parser//lib/parser/builders/default.rb#2010 + def kwarg_map(name_t, value_e = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#2312 + def kwargs?(node); end + + # source://parser//lib/parser/builders/default.rb#2276 + def loc(token); end + + # source://parser//lib/parser/builders/default.rb#2023 + def module_definition_map(keyword_t, name_e, operator_t, end_t); end + + # source://parser//lib/parser/builders/default.rb#1849 + def n(type, children, source_map); end + + # source://parser//lib/parser/builders/default.rb#1853 + def n0(type, source_map); end + + # source://parser//lib/parser/builders/default.rb#288 + def numeric(kind, token); end + + # source://parser//lib/parser/builders/default.rb#1891 + def pair_keyword_map(key_t, value_e); end + + # source://parser//lib/parser/builders/default.rb#1906 + def pair_quoted_map(begin_t, end_t, value_e); end + + # source://parser//lib/parser/builders/default.rb#1877 + def prefix_string_map(symbol); end + + # source://parser//lib/parser/builders/default.rb#1988 + def range_map(start_e, op_t, end_e); end + + # source://parser//lib/parser/builders/default.rb#1955 + def regexp_map(begin_t, end_t, options_e); end + + # source://parser//lib/parser/builders/default.rb#2160 + def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end + + # source://parser//lib/parser/builders/default.rb#2302 + def rewrite_hash_args_to_kwargs(args); end + + # source://parser//lib/parser/builders/default.rb#2073 + def send_binary_op_map(lhs_e, selector_t, rhs_e); end + + # source://parser//lib/parser/builders/default.rb#2096 + def send_index_map(receiver_e, lbrack_t, rbrack_t); end + + # source://parser//lib/parser/builders/default.rb#2047 + def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#2079 + def send_unary_op_map(selector_t, arg_e); end + + # source://parser//lib/parser/builders/default.rb#2232 + def static_regexp(parts, options); end + + # source://parser//lib/parser/builders/default.rb#2252 + def static_regexp_node(node); end + + # source://parser//lib/parser/builders/default.rb#2215 + def static_string(nodes); end + + # source://parser//lib/parser/builders/default.rb#1941 + def string_map(begin_t, parts, end_t); end + + # source://parser//lib/parser/builders/default.rb#2268 + def string_value(token); end + + # source://parser//lib/parser/builders/default.rb#2149 + def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end + + # source://parser//lib/parser/builders/default.rb#1862 + def token_map(token); end + + # source://parser//lib/parser/builders/default.rb#1978 + def unary_op_map(op_t, arg_e = T.unsafe(nil)); end + + # source://parser//lib/parser/builders/default.rb#1886 + def unquoted_map(token); end + + # source://parser//lib/parser/builders/default.rb#2290 + def validate_definee(definee); end + + # source://parser//lib/parser/builders/default.rb#1764 + def validate_no_forward_arg_after_restarg(args); end + + # source://parser//lib/parser/builders/default.rb#2264 + def value(token); end + + # source://parser//lib/parser/builders/default.rb#2067 + def var_send_map(variable_e); end + + # source://parser//lib/parser/builders/default.rb#1970 + def variable_map(name_t); end + + class << self + # source://parser//lib/parser/builders/default.rb#97 + def emit_arg_inside_procarg0; end + + # source://parser//lib/parser/builders/default.rb#97 + def emit_arg_inside_procarg0=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#58 + def emit_encoding; end + + # source://parser//lib/parser/builders/default.rb#58 + def emit_encoding=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#126 + def emit_forward_arg; end + + # source://parser//lib/parser/builders/default.rb#126 + def emit_forward_arg=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#80 + def emit_index; end + + # source://parser//lib/parser/builders/default.rb#80 + def emit_index=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#174 + def emit_kwargs; end + + # source://parser//lib/parser/builders/default.rb#174 + def emit_kwargs=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#22 + def emit_lambda; end + + # source://parser//lib/parser/builders/default.rb#22 + def emit_lambda=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#203 + def emit_match_pattern; end + + # source://parser//lib/parser/builders/default.rb#203 + def emit_match_pattern=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#40 + def emit_procarg0; end + + # source://parser//lib/parser/builders/default.rb#40 + def emit_procarg0=(_arg0); end + + # source://parser//lib/parser/builders/default.rb#211 + def modernize; end + end +end + +# {Parser::ClobberingError} is raised when {Parser::Source::Rewriter} +# detects a clobbering rewrite action. This class inherits {RuntimeError} +# rather than {StandardError} for backward compatibility. +# +# @api public +# +# source://parser//lib/parser/clobbering_error.rb#11 +class Parser::ClobberingError < ::RuntimeError; end + +# Context of parsing that is represented by a stack of scopes. +# +# Supported states: +# + :class - in the class body (class A; end) +# + :module - in the module body (module M; end) +# + :sclass - in the singleton class body (class << obj; end) +# + :def - in the method body (def m; end) +# + :defs - in the singleton method body (def self.m; end) +# + :def_open_args - in the arglist of the method definition +# keep in mind that it's set **only** after reducing the first argument, +# if you need to handle the first argument check `lex_state == expr_fname` +# + :block - in the block body (tap {}) +# + :lambda - in the lambda body (-> {}) +# +# source://parser//lib/parser/context.rb#18 +class Parser::Context + # @return [Context] a new instance of Context + # + # source://parser//lib/parser/context.rb#29 + def initialize; end + + # source://parser//lib/parser/context.rb#43 + def in_argdef; end + + # source://parser//lib/parser/context.rb#43 + def in_argdef=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_block; end + + # source://parser//lib/parser/context.rb#43 + def in_block=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_class; end + + # source://parser//lib/parser/context.rb#43 + def in_class=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_def; end + + # source://parser//lib/parser/context.rb#43 + def in_def=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_defined; end + + # source://parser//lib/parser/context.rb#43 + def in_defined=(_arg0); end + + # @return [Boolean] + # + # source://parser//lib/parser/context.rb#45 + def in_dynamic_block?; end + + # source://parser//lib/parser/context.rb#43 + def in_kwarg; end + + # source://parser//lib/parser/context.rb#43 + def in_kwarg=(_arg0); end + + # source://parser//lib/parser/context.rb#43 + def in_lambda; end + + # source://parser//lib/parser/context.rb#43 + def in_lambda=(_arg0); end + + # source://parser//lib/parser/context.rb#33 + def reset; end +end + +# source://parser//lib/parser/context.rb#19 +Parser::Context::FLAGS = T.let(T.unsafe(nil), Array) + +# Stack that holds names of current arguments, +# i.e. while parsing +# def m1(a = (def m2(b = def m3(c = 1); end); end)); end +# ^ +# stack is [:a, :b, :c] +# +# Emulates `p->cur_arg` in MRI's parse.y +# +# @api private +# +# source://parser//lib/parser/current_arg_stack.rb#14 +class Parser::CurrentArgStack + # @api private + # @return [CurrentArgStack] a new instance of CurrentArgStack + # + # source://parser//lib/parser/current_arg_stack.rb#17 + def initialize; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/current_arg_stack.rb#22 + def empty?; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#34 + def pop; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#26 + def push(value); end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#38 + def reset; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#30 + def set(value); end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#15 + def stack; end + + # @api private + # + # source://parser//lib/parser/current_arg_stack.rb#42 + def top; end +end + +# source://parser//lib/parser/current.rb#93 +Parser::CurrentRuby = Parser::Ruby30 + +# @api private +# +# source://parser//lib/parser/deprecation.rb#7 +module Parser::Deprecation + # @api private + # + # source://parser//lib/parser/deprecation.rb#9 + def warn_of_deprecation; end + + # @api private + # + # source://parser//lib/parser/deprecation.rb#8 + def warned_of_deprecation=(_arg0); end +end + +# @api public +# +# source://parser//lib/parser/diagnostic.rb#31 +class Parser::Diagnostic + # @api public + # @param level [Symbol] + # @param reason [Symbol] + # @param arguments [Hash] + # @param location [Parser::Source::Range] + # @param highlights [Array] + # @return [Diagnostic] a new instance of Diagnostic + # + # source://parser//lib/parser/diagnostic.rb#49 + def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end + + # @api public + # @return [Symbol] extended arguments that describe the error + # @see Parser::MESSAGES + # + # source://parser//lib/parser/diagnostic.rb#39 + def arguments; end + + # Supplementary error-related source ranges. + # + # @api public + # @return [Array] + # + # source://parser//lib/parser/diagnostic.rb#40 + def highlights; end + + # @api public + # @return [Symbol] diagnostic level + # @see LEVELS + # + # source://parser//lib/parser/diagnostic.rb#39 + def level; end + + # Main error-related source range. + # + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/diagnostic.rb#40 + def location; end + + # @api public + # @return [String] the rendered message. + # + # source://parser//lib/parser/diagnostic.rb#69 + def message; end + + # @api public + # @return [Symbol] reason for error + # @see Parser::MESSAGES + # + # source://parser//lib/parser/diagnostic.rb#39 + def reason; end + + # Renders the diagnostic message as a clang-like diagnostic. + # + # @api public + # @example + # diagnostic.render # => + # # [ + # # "(fragment:0):1:5: error: unexpected token $end", + # # "foo +", + # # " ^" + # # ] + # @return [Array] + # + # source://parser//lib/parser/diagnostic.rb#86 + def render; end + + private + + # If necessary, shrink a `Range` so as to include only the first line. + # + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/diagnostic.rb#142 + def first_line_only(range); end + + # If necessary, shrink a `Range` so as to include only the last line. + # + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/diagnostic.rb#155 + def last_line_only(range); end + + # Renders one source line in clang diagnostic style, with highlights. + # + # @api public + # @return [Array] + # + # source://parser//lib/parser/diagnostic.rb#110 + def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end +end + +# source://parser//lib/parser/diagnostic/engine.rb#36 +class Parser::Diagnostic::Engine + # source://parser//lib/parser/diagnostic/engine.rb#45 + def initialize(consumer = T.unsafe(nil)); end + + # source://parser//lib/parser/diagnostic/engine.rb#39 + def all_errors_are_fatal; end + + # source://parser//lib/parser/diagnostic/engine.rb#39 + def all_errors_are_fatal=(_arg0); end + + # source://parser//lib/parser/diagnostic/engine.rb#37 + def consumer; end + + # source://parser//lib/parser/diagnostic/engine.rb#37 + def consumer=(_arg0); end + + # source://parser//lib/parser/diagnostic/engine.rb#40 + def ignore_warnings; end + + # source://parser//lib/parser/diagnostic/engine.rb#40 + def ignore_warnings=(_arg0); end + + # source://parser//lib/parser/diagnostic/engine.rb#64 + def process(diagnostic); end + + protected + + # source://parser//lib/parser/diagnostic/engine.rb#86 + def ignore?(diagnostic); end + + # source://parser//lib/parser/diagnostic/engine.rb#97 + def raise?(diagnostic); end +end + +# Collection of the available diagnostic levels. +# +# @api public +# @return [Array] +# +# source://parser//lib/parser/diagnostic.rb#37 +Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array) + +# line 3 "lib/parser/lexer.rl" +# +# === BEFORE YOU START === +# +# Read the Ruby Hacking Guide chapter 11, available in English at +# http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/ +# +# Remember two things about Ragel scanners: +# +# 1) Longest match wins. +# +# 2) If two matches have the same length, the first +# in source code wins. +# +# General rules of making Ragel and Bison happy: +# +# * `p` (position) and `@te` contain the index of the character +# they're pointing to ("current"), plus one. `@ts` contains the index +# of the corresponding character. The code for extracting matched token is: +# +# @source_buffer.slice(@ts...@te) +# +# * If your input is `foooooooobar` and the rule is: +# +# 'f' 'o'+ +# +# the result will be: +# +# foooooooobar +# ^ ts=0 ^ p=te=9 +# +# * A Ragel lexer action should not emit more than one token, unless +# you know what you are doing. +# +# * All Ragel commands (fnext, fgoto, ...) end with a semicolon. +# +# * If an action emits the token and transitions to another state, use +# these Ragel commands: +# +# emit($whatever) +# fnext $next_state; fbreak; +# +# If you perform `fgoto` in an action which does not emit a token nor +# rewinds the stream pointer, the parser's side-effectful, +# context-sensitive lookahead actions will break in a hard to detect +# and debug way. +# +# * If an action does not emit a token: +# +# fgoto $next_state; +# +# * If an action features lookbehind, i.e. matches characters with the +# intent of passing them to another action: +# +# p = @ts - 1 +# fgoto $next_state; +# +# or, if the lookbehind consists of a single character: +# +# fhold; fgoto $next_state; +# +# * Ragel merges actions. So, if you have `e_lparen = '(' %act` and +# `c_lparen = '('` and a lexer action `e_lparen | c_lparen`, the result +# _will_ invoke the action `act`. +# +# e_something stands for "something with **e**mbedded action". +# +# * EOF is explicit and is matched by `c_eof`. If you want to introspect +# the state of the lexer, add this rule to the state: +# +# c_eof => do_eof; +# +# * If you proceed past EOF, the lexer will complain: +# +# NoMethodError: undefined method `ord' for nil:NilClass +# +# source://parser//lib/parser/lexer-F1.rb#82 +class Parser::Lexer + # @return [Lexer] a new instance of Lexer + # + # source://parser//lib/parser/lexer-F1.rb#11148 + def initialize(version); end + + # Return next token: [type, value]. + # + # source://parser//lib/parser/lexer-F1.rb#11323 + def advance; end + + # Returns the value of attribute cmdarg. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def cmdarg; end + + # Sets the attribute cmdarg + # + # @param value the value to set the attribute cmdarg to. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def cmdarg=(_arg0); end + + # Returns the value of attribute cmdarg_stack. + # + # source://parser//lib/parser/lexer-F1.rb#11146 + def cmdarg_stack; end + + # Returns the value of attribute command_start. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def command_start; end + + # Sets the attribute command_start + # + # @param value the value to set the attribute command_start to. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def command_start=(_arg0); end + + # Returns the value of attribute comments. + # + # source://parser//lib/parser/lexer-F1.rb#11144 + def comments; end + + # Sets the attribute comments + # + # @param value the value to set the attribute comments to. + # + # source://parser//lib/parser/lexer-F1.rb#11144 + def comments=(_arg0); end + + # Returns the value of attribute cond. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def cond; end + + # Sets the attribute cond + # + # @param value the value to set the attribute cond to. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def cond=(_arg0); end + + # Returns the value of attribute cond_stack. + # + # source://parser//lib/parser/lexer-F1.rb#11146 + def cond_stack; end + + # Returns the value of attribute context. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def context; end + + # Sets the attribute context + # + # @param value the value to set the attribute context to. + # + # source://parser//lib/parser/lexer-F1.rb#11142 + def context=(_arg0); end + + # source://parser//lib/parser/lexer-F1.rb#11315 + def dedent_level; end + + # Returns the value of attribute diagnostics. + # + # source://parser//lib/parser/lexer-F1.rb#11138 + def diagnostics; end + + # Sets the attribute diagnostics + # + # @param value the value to set the attribute diagnostics to. + # + # source://parser//lib/parser/lexer-F1.rb#11138 + def diagnostics=(_arg0); end + + # source://parser//lib/parser/lexer-F1.rb#11265 + def encoding; end + + # Returns the value of attribute force_utf32. + # + # source://parser//lib/parser/lexer-F1.rb#11140 + def force_utf32; end + + # Sets the attribute force_utf32 + # + # @param value the value to set the attribute force_utf32 to. + # + # source://parser//lib/parser/lexer-F1.rb#11140 + def force_utf32=(_arg0); end + + # Returns the value of attribute lambda_stack. + # + # source://parser//lib/parser/lexer-F1.rb#11146 + def lambda_stack; end + + # Returns the value of attribute paren_nest. + # + # source://parser//lib/parser/lexer-F1.rb#11146 + def paren_nest; end + + # source://parser//lib/parser/lexer-F1.rb#11302 + def pop_cmdarg; end + + # source://parser//lib/parser/lexer-F1.rb#11311 + def pop_cond; end + + # source://parser//lib/parser/lexer-F1.rb#11297 + def push_cmdarg; end + + # source://parser//lib/parser/lexer-F1.rb#11306 + def push_cond; end + + # source://parser//lib/parser/lexer-F1.rb#11179 + def reset(reset_state = T.unsafe(nil)); end + + # Returns the value of attribute source_buffer. + # + # source://parser//lib/parser/lexer-F1.rb#11136 + def source_buffer; end + + # source://parser//lib/parser/lexer-F1.rb#11244 + def source_buffer=(source_buffer); end + + # source://parser//lib/parser/lexer-F1.rb#11289 + def state; end + + # source://parser//lib/parser/lexer-F1.rb#11293 + def state=(state); end + + # Returns the value of attribute static_env. + # + # source://parser//lib/parser/lexer-F1.rb#11139 + def static_env; end + + # Sets the attribute static_env + # + # @param value the value to set the attribute static_env to. + # + # source://parser//lib/parser/lexer-F1.rb#11139 + def static_env=(_arg0); end + + # Returns the value of attribute tokens. + # + # source://parser//lib/parser/lexer-F1.rb#11144 + def tokens; end + + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. + # + # source://parser//lib/parser/lexer-F1.rb#11144 + def tokens=(_arg0); end + + # Returns the value of attribute version. + # + # source://parser//lib/parser/lexer-F1.rb#11146 + def version; end + + protected + + # source://parser//lib/parser/lexer-F1.rb#20732 + def arg_or_cmdarg(cmd_state); end + + # source://parser//lib/parser/lexer-F1.rb#21096 + def check_ambiguous_slash(tm); end + + # source://parser//lib/parser/lexer-F1.rb#21144 + def check_invalid_escapes(p); end + + # source://parser//lib/parser/lexer-F1.rb#20756 + def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#21047 + def e_heredoc_nl(p); end + + # source://parser//lib/parser/lexer-F1.rb#20901 + def e_lbrace; end + + # source://parser//lib/parser/lexer-F1.rb#20706 + def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#21086 + def emit_character_constant; end + + # source://parser//lib/parser/lexer-F1.rb#21129 + def emit_colon_with_digits(p, tm, diag_msg); end + + # source://parser//lib/parser/lexer-F1.rb#20740 + def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#20752 + def emit_comment_from_range(p, pe); end + + # source://parser//lib/parser/lexer-F1.rb#20722 + def emit_do(do_block = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#21107 + def emit_global_var; end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-F1.rb#20816 + def emit_invalid_escapes?; end + + # source://parser//lib/parser/lexer-F1.rb#21117 + def emit_rbrace_rparen_rbrack; end + + # source://parser//lib/parser/lexer-F1.rb#21139 + def emit_singleton_class; end + + # source://parser//lib/parser/lexer-F1.rb#20716 + def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#20694 + def encode_escape(ord); end + + # source://parser//lib/parser/lexer-F1.rb#21074 + def encode_escaped_char(p); end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-F1.rb#20681 + def eof_codepoint?(point); end + + # source://parser//lib/parser/lexer-F1.rb#20886 + def extend_interp_code(current_literal); end + + # source://parser//lib/parser/lexer-F1.rb#20910 + def extend_interp_digit_var; end + + # source://parser//lib/parser/lexer-F1.rb#21065 + def extend_interp_var(current_literal); end + + # source://parser//lib/parser/lexer-F1.rb#20919 + def extend_string_eol_check_eof(current_literal, pe); end + + # source://parser//lib/parser/lexer-F1.rb#20936 + def extend_string_eol_heredoc_intertwined(p); end + + # source://parser//lib/parser/lexer-F1.rb#20926 + def extend_string_eol_heredoc_line; end + + # source://parser//lib/parser/lexer-F1.rb#20952 + def extend_string_eol_words(current_literal, p); end + + # String escaping + # + # source://parser//lib/parser/lexer-F1.rb#20830 + def extend_string_escaped; end + + # source://parser//lib/parser/lexer-F1.rb#20972 + def extend_string_for_token_range(current_literal, string); end + + # source://parser//lib/parser/lexer-F1.rb#20964 + def extend_string_slice_end(lookahead); end + + # source://parser//lib/parser/lexer-F1.rb#20799 + def literal; end + + # source://parser//lib/parser/lexer-F1.rb#20771 + def next_state_for_literal(literal); end + + # source://parser//lib/parser/lexer-F1.rb#20988 + def numeric_literal_int; end + + # source://parser//lib/parser/lexer-F1.rb#20803 + def pop_literal; end + + # === LITERAL STACK === + # + # source://parser//lib/parser/lexer-F1.rb#20765 + def push_literal(*args); end + + # source://parser//lib/parser/lexer-F1.rb#20702 + def range(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#21057 + def read_post_meta_or_ctrl_char(p); end + + # source://parser//lib/parser/lexer-F1.rb#21078 + def slash_c_char; end + + # source://parser//lib/parser/lexer-F1.rb#21082 + def slash_m_char; end + + # source://parser//lib/parser/lexer-F1.rb#20689 + def stack_pop; end + + # source://parser//lib/parser/lexer-F1.rb#20698 + def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer-F1.rb#20976 + def unescape_char(p); end + + # source://parser//lib/parser/lexer-F1.rb#21007 + def unicode_points(p); end + + # @return [Boolean] + # + # source://parser//lib/parser/lexer-F1.rb#20685 + def version?(*versions); end + + class << self + # Returns the value of attribute lex_en_expr_arg. + # + # source://parser//lib/parser/lexer-F1.rb#11080 + def lex_en_expr_arg; end + + # Sets the attribute lex_en_expr_arg + # + # @param value the value to set the attribute lex_en_expr_arg to. + # + # source://parser//lib/parser/lexer-F1.rb#11080 + def lex_en_expr_arg=(_arg0); end + + # Returns the value of attribute lex_en_expr_beg. + # + # source://parser//lib/parser/lexer-F1.rb#11096 + def lex_en_expr_beg; end + + # Sets the attribute lex_en_expr_beg + # + # @param value the value to set the attribute lex_en_expr_beg to. + # + # source://parser//lib/parser/lexer-F1.rb#11096 + def lex_en_expr_beg=(_arg0); end + + # Returns the value of attribute lex_en_expr_cmdarg. + # + # source://parser//lib/parser/lexer-F1.rb#11084 + def lex_en_expr_cmdarg; end + + # Sets the attribute lex_en_expr_cmdarg + # + # @param value the value to set the attribute lex_en_expr_cmdarg to. + # + # source://parser//lib/parser/lexer-F1.rb#11084 + def lex_en_expr_cmdarg=(_arg0); end + + # Returns the value of attribute lex_en_expr_dot. + # + # source://parser//lib/parser/lexer-F1.rb#11076 + def lex_en_expr_dot; end + + # Sets the attribute lex_en_expr_dot + # + # @param value the value to set the attribute lex_en_expr_dot to. + # + # source://parser//lib/parser/lexer-F1.rb#11076 + def lex_en_expr_dot=(_arg0); end + + # Returns the value of attribute lex_en_expr_end. + # + # source://parser//lib/parser/lexer-F1.rb#11108 + def lex_en_expr_end; end + + # Sets the attribute lex_en_expr_end + # + # @param value the value to set the attribute lex_en_expr_end to. + # + # source://parser//lib/parser/lexer-F1.rb#11108 + def lex_en_expr_end=(_arg0); end + + # Returns the value of attribute lex_en_expr_endarg. + # + # source://parser//lib/parser/lexer-F1.rb#11088 + def lex_en_expr_endarg; end + + # Sets the attribute lex_en_expr_endarg + # + # @param value the value to set the attribute lex_en_expr_endarg to. + # + # source://parser//lib/parser/lexer-F1.rb#11088 + def lex_en_expr_endarg=(_arg0); end + + # Returns the value of attribute lex_en_expr_endfn. + # + # source://parser//lib/parser/lexer-F1.rb#11072 + def lex_en_expr_endfn; end + + # Sets the attribute lex_en_expr_endfn + # + # @param value the value to set the attribute lex_en_expr_endfn to. + # + # source://parser//lib/parser/lexer-F1.rb#11072 + def lex_en_expr_endfn=(_arg0); end + + # Returns the value of attribute lex_en_expr_fname. + # + # source://parser//lib/parser/lexer-F1.rb#11068 + def lex_en_expr_fname; end + + # Sets the attribute lex_en_expr_fname + # + # @param value the value to set the attribute lex_en_expr_fname to. + # + # source://parser//lib/parser/lexer-F1.rb#11068 + def lex_en_expr_fname=(_arg0); end + + # Returns the value of attribute lex_en_expr_labelarg. + # + # source://parser//lib/parser/lexer-F1.rb#11100 + def lex_en_expr_labelarg; end + + # Sets the attribute lex_en_expr_labelarg + # + # @param value the value to set the attribute lex_en_expr_labelarg to. + # + # source://parser//lib/parser/lexer-F1.rb#11100 + def lex_en_expr_labelarg=(_arg0); end + + # Returns the value of attribute lex_en_expr_mid. + # + # source://parser//lib/parser/lexer-F1.rb#11092 + def lex_en_expr_mid; end + + # Sets the attribute lex_en_expr_mid + # + # @param value the value to set the attribute lex_en_expr_mid to. + # + # source://parser//lib/parser/lexer-F1.rb#11092 + def lex_en_expr_mid=(_arg0); end + + # Returns the value of attribute lex_en_expr_value. + # + # source://parser//lib/parser/lexer-F1.rb#11104 + def lex_en_expr_value; end + + # Sets the attribute lex_en_expr_value + # + # @param value the value to set the attribute lex_en_expr_value to. + # + # source://parser//lib/parser/lexer-F1.rb#11104 + def lex_en_expr_value=(_arg0); end + + # Returns the value of attribute lex_en_expr_variable. + # + # source://parser//lib/parser/lexer-F1.rb#11064 + def lex_en_expr_variable; end + + # Sets the attribute lex_en_expr_variable + # + # @param value the value to set the attribute lex_en_expr_variable to. + # + # source://parser//lib/parser/lexer-F1.rb#11064 + def lex_en_expr_variable=(_arg0); end + + # Returns the value of attribute lex_en_interp_backslash_delimited. + # + # source://parser//lib/parser/lexer-F1.rb#11044 + def lex_en_interp_backslash_delimited; end + + # Sets the attribute lex_en_interp_backslash_delimited + # + # @param value the value to set the attribute lex_en_interp_backslash_delimited to. + # + # source://parser//lib/parser/lexer-F1.rb#11044 + def lex_en_interp_backslash_delimited=(_arg0); end + + # Returns the value of attribute lex_en_interp_backslash_delimited_words. + # + # source://parser//lib/parser/lexer-F1.rb#11052 + def lex_en_interp_backslash_delimited_words; end + + # Sets the attribute lex_en_interp_backslash_delimited_words + # + # @param value the value to set the attribute lex_en_interp_backslash_delimited_words to. + # + # source://parser//lib/parser/lexer-F1.rb#11052 + def lex_en_interp_backslash_delimited_words=(_arg0); end + + # Returns the value of attribute lex_en_interp_string. + # + # source://parser//lib/parser/lexer-F1.rb#11032 + def lex_en_interp_string; end + + # Sets the attribute lex_en_interp_string + # + # @param value the value to set the attribute lex_en_interp_string to. + # + # source://parser//lib/parser/lexer-F1.rb#11032 + def lex_en_interp_string=(_arg0); end + + # Returns the value of attribute lex_en_interp_words. + # + # source://parser//lib/parser/lexer-F1.rb#11028 + def lex_en_interp_words; end + + # Sets the attribute lex_en_interp_words + # + # @param value the value to set the attribute lex_en_interp_words to. + # + # source://parser//lib/parser/lexer-F1.rb#11028 + def lex_en_interp_words=(_arg0); end + + # Returns the value of attribute lex_en_leading_dot. + # + # source://parser//lib/parser/lexer-F1.rb#11112 + def lex_en_leading_dot; end + + # Sets the attribute lex_en_leading_dot + # + # @param value the value to set the attribute lex_en_leading_dot to. + # + # source://parser//lib/parser/lexer-F1.rb#11112 + def lex_en_leading_dot=(_arg0); end + + # Returns the value of attribute lex_en_line_begin. + # + # source://parser//lib/parser/lexer-F1.rb#11120 + def lex_en_line_begin; end + + # Sets the attribute lex_en_line_begin + # + # @param value the value to set the attribute lex_en_line_begin to. + # + # source://parser//lib/parser/lexer-F1.rb#11120 + def lex_en_line_begin=(_arg0); end + + # Returns the value of attribute lex_en_line_comment. + # + # source://parser//lib/parser/lexer-F1.rb#11116 + def lex_en_line_comment; end + + # Sets the attribute lex_en_line_comment + # + # @param value the value to set the attribute lex_en_line_comment to. + # + # source://parser//lib/parser/lexer-F1.rb#11116 + def lex_en_line_comment=(_arg0); end + + # Returns the value of attribute lex_en_plain_backslash_delimited. + # + # source://parser//lib/parser/lexer-F1.rb#11048 + def lex_en_plain_backslash_delimited; end + + # Sets the attribute lex_en_plain_backslash_delimited + # + # @param value the value to set the attribute lex_en_plain_backslash_delimited to. + # + # source://parser//lib/parser/lexer-F1.rb#11048 + def lex_en_plain_backslash_delimited=(_arg0); end + + # Returns the value of attribute lex_en_plain_backslash_delimited_words. + # + # source://parser//lib/parser/lexer-F1.rb#11056 + def lex_en_plain_backslash_delimited_words; end + + # Sets the attribute lex_en_plain_backslash_delimited_words + # + # @param value the value to set the attribute lex_en_plain_backslash_delimited_words to. + # + # source://parser//lib/parser/lexer-F1.rb#11056 + def lex_en_plain_backslash_delimited_words=(_arg0); end + + # Returns the value of attribute lex_en_plain_string. + # + # source://parser//lib/parser/lexer-F1.rb#11040 + def lex_en_plain_string; end + + # Sets the attribute lex_en_plain_string + # + # @param value the value to set the attribute lex_en_plain_string to. + # + # source://parser//lib/parser/lexer-F1.rb#11040 + def lex_en_plain_string=(_arg0); end + + # Returns the value of attribute lex_en_plain_words. + # + # source://parser//lib/parser/lexer-F1.rb#11036 + def lex_en_plain_words; end + + # Sets the attribute lex_en_plain_words + # + # @param value the value to set the attribute lex_en_plain_words to. + # + # source://parser//lib/parser/lexer-F1.rb#11036 + def lex_en_plain_words=(_arg0); end + + # Returns the value of attribute lex_en_regexp_modifiers. + # + # source://parser//lib/parser/lexer-F1.rb#11060 + def lex_en_regexp_modifiers; end + + # Sets the attribute lex_en_regexp_modifiers + # + # @param value the value to set the attribute lex_en_regexp_modifiers to. + # + # source://parser//lib/parser/lexer-F1.rb#11060 + def lex_en_regexp_modifiers=(_arg0); end + + # Returns the value of attribute lex_error. + # + # source://parser//lib/parser/lexer-F1.rb#11023 + def lex_error; end + + # Sets the attribute lex_error + # + # @param value the value to set the attribute lex_error to. + # + # source://parser//lib/parser/lexer-F1.rb#11023 + def lex_error=(_arg0); end + + # Returns the value of attribute lex_start. + # + # source://parser//lib/parser/lexer-F1.rb#11019 + def lex_start; end + + # Sets the attribute lex_start + # + # @param value the value to set the attribute lex_start to. + # + # source://parser//lib/parser/lexer-F1.rb#11019 + def lex_start=(_arg0); end + + private + + # Returns the value of attribute _lex_eof_trans. + # + # source://parser//lib/parser/lexer-F1.rb#10886 + def _lex_eof_trans; end + + # Sets the attribute _lex_eof_trans + # + # @param value the value to set the attribute _lex_eof_trans to. + # + # source://parser//lib/parser/lexer-F1.rb#10886 + def _lex_eof_trans=(_arg0); end + + # Returns the value of attribute _lex_from_state_actions. + # + # source://parser//lib/parser/lexer-F1.rb#10753 + def _lex_from_state_actions; end + + # Sets the attribute _lex_from_state_actions + # + # @param value the value to set the attribute _lex_from_state_actions to. + # + # source://parser//lib/parser/lexer-F1.rb#10753 + def _lex_from_state_actions=(_arg0); end + + # Returns the value of attribute _lex_index_offsets. + # + # source://parser//lib/parser/lexer-F1.rb#604 + def _lex_index_offsets; end + + # Sets the attribute _lex_index_offsets + # + # @param value the value to set the attribute _lex_index_offsets to. + # + # source://parser//lib/parser/lexer-F1.rb#604 + def _lex_index_offsets=(_arg0); end + + # Returns the value of attribute _lex_indicies. + # + # source://parser//lib/parser/lexer-F1.rb#737 + def _lex_indicies; end + + # Sets the attribute _lex_indicies + # + # @param value the value to set the attribute _lex_indicies to. + # + # source://parser//lib/parser/lexer-F1.rb#737 + def _lex_indicies=(_arg0); end + + # Returns the value of attribute _lex_key_spans. + # + # source://parser//lib/parser/lexer-F1.rb#471 + def _lex_key_spans; end + + # Sets the attribute _lex_key_spans + # + # @param value the value to set the attribute _lex_key_spans to. + # + # source://parser//lib/parser/lexer-F1.rb#471 + def _lex_key_spans=(_arg0); end + + # Returns the value of attribute _lex_to_state_actions. + # + # source://parser//lib/parser/lexer-F1.rb#10620 + def _lex_to_state_actions; end + + # Sets the attribute _lex_to_state_actions + # + # @param value the value to set the attribute _lex_to_state_actions to. + # + # source://parser//lib/parser/lexer-F1.rb#10620 + def _lex_to_state_actions=(_arg0); end + + # Returns the value of attribute _lex_trans_actions. + # + # source://parser//lib/parser/lexer-F1.rb#10420 + def _lex_trans_actions; end + + # Sets the attribute _lex_trans_actions + # + # @param value the value to set the attribute _lex_trans_actions to. + # + # source://parser//lib/parser/lexer-F1.rb#10420 + def _lex_trans_actions=(_arg0); end + + # Returns the value of attribute _lex_trans_keys. + # + # source://parser//lib/parser/lexer-F1.rb#87 + def _lex_trans_keys; end + + # Sets the attribute _lex_trans_keys + # + # @param value the value to set the attribute _lex_trans_keys to. + # + # source://parser//lib/parser/lexer-F1.rb#87 + def _lex_trans_keys=(_arg0); end + + # Returns the value of attribute _lex_trans_targs. + # + # source://parser//lib/parser/lexer-F1.rb#10220 + def _lex_trans_targs; end + + # Sets the attribute _lex_trans_targs + # + # @param value the value to set the attribute _lex_trans_targs to. + # + # source://parser//lib/parser/lexer-F1.rb#10220 + def _lex_trans_targs=(_arg0); end + end +end + +# source://parser//lib/parser/lexer/dedenter.rb#5 +class Parser::Lexer::Dedenter + # source://parser//lib/parser/lexer/dedenter.rb#9 + def initialize(dedent_level); end + + # source://parser//lib/parser/lexer/dedenter.rb#36 + def dedent(string); end + + # source://parser//lib/parser/lexer/dedenter.rb#83 + def interrupt; end +end + +# source://parser//lib/parser/lexer/dedenter.rb#7 +Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer) + +# % +# +# source://parser//lib/parser/lexer-F1.rb#11128 +Parser::Lexer::ESCAPES = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#21192 +Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#21178 +Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#21185 +Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#11269 +Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer/literal.rb#6 +class Parser::Lexer::Literal + # source://parser//lib/parser/lexer/literal.rb#40 + def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer/literal.rb#114 + def backslash_delimited?; end + + # source://parser//lib/parser/lexer/literal.rb#37 + def dedent_level; end + + # source://parser//lib/parser/lexer/literal.rb#189 + def end_interp_brace_and_try_closing; end + + # source://parser//lib/parser/lexer/literal.rb#216 + def extend_content; end + + # source://parser//lib/parser/lexer/literal.rb#220 + def extend_space(ts, te); end + + # source://parser//lib/parser/lexer/literal.rb#195 + def extend_string(string, ts, te); end + + # source://parser//lib/parser/lexer/literal.rb#202 + def flush_string; end + + # source://parser//lib/parser/lexer/literal.rb#102 + def heredoc?; end + + # source://parser//lib/parser/lexer/literal.rb#37 + def heredoc_e; end + + # source://parser//lib/parser/lexer/literal.rb#166 + def infer_indent_level(line); end + + # source://parser//lib/parser/lexer/literal.rb#89 + def interpolate?; end + + # source://parser//lib/parser/lexer/literal.rb#122 + def munge_escape?(character); end + + # source://parser//lib/parser/lexer/literal.rb#132 + def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end + + # source://parser//lib/parser/lexer/literal.rb#106 + def plain_heredoc?; end + + # source://parser//lib/parser/lexer/literal.rb#98 + def regexp?; end + + # source://parser//lib/parser/lexer/literal.rb#38 + def saved_herebody_s; end + + # source://parser//lib/parser/lexer/literal.rb#38 + def saved_herebody_s=(_arg0); end + + # source://parser//lib/parser/lexer/literal.rb#110 + def squiggly_heredoc?; end + + # source://parser//lib/parser/lexer/literal.rb#185 + def start_interp_brace; end + + # source://parser//lib/parser/lexer/literal.rb#37 + def str_s; end + + # source://parser//lib/parser/lexer/literal.rb#230 + def supports_line_continuation_via_slash?; end + + # source://parser//lib/parser/lexer/literal.rb#118 + def type; end + + # source://parser//lib/parser/lexer/literal.rb#93 + def words?; end + + protected + + # source://parser//lib/parser/lexer/literal.rb#248 + def clear_buffer; end + + # source://parser//lib/parser/lexer/literal.rb#244 + def coerce_encoding(string); end + + # source://parser//lib/parser/lexer/literal.rb#236 + def delimiter?(delimiter); end + + # source://parser//lib/parser/lexer/literal.rb#264 + def emit(token, type, s, e); end + + # source://parser//lib/parser/lexer/literal.rb#259 + def emit_start_tok; end +end + +# source://parser//lib/parser/lexer/literal.rb#7 +Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer/literal.rb#9 +Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash) + +# Mapping of strings to parser tokens. +# +# source://parser//lib/parser/lexer-F1.rb#21152 +Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#21172 +Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/lexer-F1.rb#11134 +Parser::Lexer::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp) + +# source://parser//lib/parser/lexer/stack_state.rb#5 +class Parser::Lexer::StackState + # source://parser//lib/parser/lexer/stack_state.rb#6 + def initialize(name); end + + # source://parser//lib/parser/lexer/stack_state.rb#34 + def active?; end + + # source://parser//lib/parser/lexer/stack_state.rb#11 + def clear; end + + # source://parser//lib/parser/lexer/stack_state.rb#38 + def empty?; end + + # source://parser//lib/parser/lexer/stack_state.rb#42 + def inspect; end + + # source://parser//lib/parser/lexer/stack_state.rb#29 + def lexpop; end + + # source://parser//lib/parser/lexer/stack_state.rb#22 + def pop; end + + # source://parser//lib/parser/lexer/stack_state.rb#15 + def push(bit); end + + # source://parser//lib/parser/lexer/stack_state.rb#42 + def to_s; end +end + +# Diagnostic messages (errors, warnings and notices) that can be generated. +# +# @api public +# @see Diagnostic +# +# source://parser//lib/parser/messages.rb#11 +Parser::MESSAGES = T.let(T.unsafe(nil), Hash) + +# Holds p->max_numparam from parse.y +# +# @api private +# +# source://parser//lib/parser/max_numparam_stack.rb#8 +class Parser::MaxNumparamStack + # @api private + # @return [MaxNumparamStack] a new instance of MaxNumparamStack + # + # source://parser//lib/parser/max_numparam_stack.rb#13 + def initialize; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/max_numparam_stack.rb#17 + def empty?; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/max_numparam_stack.rb#29 + def has_numparams?; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#21 + def has_ordinary_params!; end + + # @api private + # @return [Boolean] + # + # source://parser//lib/parser/max_numparam_stack.rb#25 + def has_ordinary_params?; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#45 + def pop; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#41 + def push(static:); end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#33 + def register(numparam); end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#9 + def stack; end + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#37 + def top; end + + private + + # @api private + # + # source://parser//lib/parser/max_numparam_stack.rb#51 + def set(value); end +end + +# @api private +# +# source://parser//lib/parser/max_numparam_stack.rb#11 +Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer) + +# @api private +# +# source://parser//lib/parser/messages.rb#107 +module Parser::Messages + class << self + # Formats the message, returns a raw template if there's nothing to interpolate + # + # Code like `format("", {})` gives a warning, and so this method tries interpolating + # only if `arguments` hash is not empty. + # + # @api private + # + # source://parser//lib/parser/messages.rb#114 + def compile(reason, arguments); end + end +end + +# Parser metadata +# +# source://parser//lib/parser/meta.rb#5 +module Parser::Meta; end + +# All node types that parser can produce. Not all parser versions +# will be able to produce every possible node. +# +# source://parser//lib/parser/meta.rb#9 +Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set) + +# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead. +# It has a backwards compatible API and uses {Parser::Source::TreeRewriter} +# instead of {Parser::Source::Rewriter}. +# Please check the documentation for {Parser::Source::Rewriter} for details. +# +# @api public +# @deprecated Use {Parser::TreeRewriter} +# +# source://parser//lib/parser/rewriter.rb#22 +class Parser::Rewriter < ::Parser::AST::Processor + extend ::Parser::Deprecation + + # @api public + # @return [Rewriter] a new instance of Rewriter + # + # source://parser//lib/parser/rewriter.rb#98 + def initialize(*_arg0); end + + # Returns `true` if the specified node is an assignment node, returns false + # otherwise. + # + # @api public + # @param node [Parser::AST::Node] + # @return [Boolean] + # + # source://parser//lib/parser/rewriter.rb#38 + def assignment?(node); end + + # Inserts new code after the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#77 + def insert_after(range, content); end + + # Inserts new code before the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#67 + def insert_before(range, content); end + + # Removes the source range. + # + # @api public + # @param range [Parser::Source::Range] + # + # source://parser//lib/parser/rewriter.rb#47 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#87 + def replace(range, content); end + + # Rewrites the AST/source buffer and returns a String containing the new + # version. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param ast [Parser::AST::Node] + # @return [String] + # + # source://parser//lib/parser/rewriter.rb#23 + def rewrite(source_buffer, ast); end + + # Wraps the given source range with the given values. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/rewriter.rb#57 + def wrap(range, before, after); end +end + +# @api public +# +# source://parser//lib/parser/rewriter.rb#91 +Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# source://parser//lib/parser/ruby30.rb#14 +class Parser::Ruby30 < ::Parser::Base + # reduce 0 omitted + # + # source://parser//lib/parser/ruby30.rb#8120 + def _reduce_1(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8174 + def _reduce_10(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8757 + def _reduce_100(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8763 + def _reduce_101(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8769 + def _reduce_102(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8775 + def _reduce_103(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8781 + def _reduce_104(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8787 + def _reduce_105(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8793 + def _reduce_106(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8803 + def _reduce_107(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8809 + def _reduce_108(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8819 + def _reduce_109(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8180 + def _reduce_11(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8826 + def _reduce_110(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8833 + def _reduce_111(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8839 + def _reduce_112(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8845 + def _reduce_113(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8851 + def _reduce_114(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8857 + def _reduce_115(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8863 + def _reduce_116(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8869 + def _reduce_117(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8875 + def _reduce_118(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8882 + def _reduce_119(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8197 + def _reduce_12(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8889 + def _reduce_120(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8895 + def _reduce_121(val, _values, result); end + + # reduce 122 omitted + # + # source://parser//lib/parser/ruby30.rb#8903 + def _reduce_123(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8909 + def _reduce_124(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8915 + def _reduce_125(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8203 + def _reduce_13(val, _values, result); end + + # reduce 130 omitted + # + # source://parser//lib/parser/ruby30.rb#8931 + def _reduce_131(val, _values, result); end + + # reduce 132 omitted + # + # source://parser//lib/parser/ruby30.rb#8939 + def _reduce_133(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8945 + def _reduce_134(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8951 + def _reduce_135(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8209 + def _reduce_14(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8215 + def _reduce_15(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8221 + def _reduce_16(val, _values, result); end + + # reduce 17 omitted + # + # source://parser//lib/parser/ruby30.rb#8229 + def _reduce_18(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8235 + def _reduce_19(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8127 + def _reduce_2(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8241 + def _reduce_20(val, _values, result); end + + # reduce 206 omitted + # + # source://parser//lib/parser/ruby30.rb#9099 + def _reduce_207(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9105 + def _reduce_208(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9111 + def _reduce_209(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8247 + def _reduce_21(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9120 + def _reduce_210(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9129 + def _reduce_211(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9138 + def _reduce_212(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9147 + def _reduce_213(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9155 + def _reduce_214(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9163 + def _reduce_215(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9169 + def _reduce_216(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9175 + def _reduce_217(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9181 + def _reduce_218(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9187 + def _reduce_219(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8255 + def _reduce_22(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9193 + def _reduce_220(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9199 + def _reduce_221(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9205 + def _reduce_222(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9211 + def _reduce_223(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9217 + def _reduce_224(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9223 + def _reduce_225(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9229 + def _reduce_226(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9235 + def _reduce_227(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9241 + def _reduce_228(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9249 + def _reduce_229(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8263 + def _reduce_23(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9255 + def _reduce_230(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9261 + def _reduce_231(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9267 + def _reduce_232(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9273 + def _reduce_233(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9279 + def _reduce_234(val, _values, result); end + + # reduce 235 omitted + # + # source://parser//lib/parser/ruby30.rb#9287 + def _reduce_236(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9293 + def _reduce_237(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9299 + def _reduce_238(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9305 + def _reduce_239(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8269 + def _reduce_24(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9311 + def _reduce_240(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9317 + def _reduce_241(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9323 + def _reduce_242(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9329 + def _reduce_243(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9335 + def _reduce_244(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9341 + def _reduce_245(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9347 + def _reduce_246(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9353 + def _reduce_247(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9359 + def _reduce_248(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9366 + def _reduce_249(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8275 + def _reduce_25(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9380 + def _reduce_250(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9400 + def _reduce_251(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9414 + def _reduce_252(val, _values, result); end + + # reduce 257 omitted + # + # source://parser//lib/parser/ruby30.rb#9444 + def _reduce_258(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9450 + def _reduce_259(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8282 + def _reduce_26(val, _values, result); end + + # reduce 262 omitted + # + # source://parser//lib/parser/ruby30.rb#9462 + def _reduce_263(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9468 + def _reduce_264(val, _values, result); end + + # reduce 265 omitted + # + # source://parser//lib/parser/ruby30.rb#9476 + def _reduce_266(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9486 + def _reduce_267(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9492 + def _reduce_268(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9502 + def _reduce_269(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8289 + def _reduce_27(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9512 + def _reduce_270(val, _values, result); end + + # reduce 271 omitted + # + # source://parser//lib/parser/ruby30.rb#9520 + def _reduce_272(val, _values, result); end + + # reduce 274 omitted + # + # source://parser//lib/parser/ruby30.rb#9530 + def _reduce_275(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9536 + def _reduce_276(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9542 + def _reduce_277(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9548 + def _reduce_278(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9554 + def _reduce_279(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8295 + def _reduce_28(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9561 + def _reduce_280(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9569 + def _reduce_281(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9575 + def _reduce_282(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9602 + def _reduce_283(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9623 + def _reduce_284(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9629 + def _reduce_285(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9635 + def _reduce_286(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9641 + def _reduce_287(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9647 + def _reduce_288(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9653 + def _reduce_289(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8301 + def _reduce_29(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9659 + def _reduce_290(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9665 + def _reduce_291(val, _values, result); end + + # reduce 292 omitted + # + # source://parser//lib/parser/ruby30.rb#9673 + def _reduce_293(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9679 + def _reduce_294(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9685 + def _reduce_295(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8136 + def _reduce_3(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8311 + def _reduce_30(val, _values, result); end + + # reduce 305 omitted + # + # source://parser//lib/parser/ruby30.rb#9711 + def _reduce_306(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9717 + def _reduce_307(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9723 + def _reduce_308(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9731 + def _reduce_309(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9737 + def _reduce_310(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9743 + def _reduce_311(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9749 + def _reduce_312(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9755 + def _reduce_313(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9761 + def _reduce_314(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9767 + def _reduce_315(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9773 + def _reduce_316(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9779 + def _reduce_317(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9785 + def _reduce_318(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9791 + def _reduce_319(val, _values, result); end + + # reduce 31 omitted + # + # source://parser//lib/parser/ruby30.rb#8319 + def _reduce_32(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9797 + def _reduce_320(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9803 + def _reduce_321(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9809 + def _reduce_322(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9816 + def _reduce_323(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9822 + def _reduce_324(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9828 + def _reduce_325(val, _values, result); end + + # reduce 326 omitted + # + # source://parser//lib/parser/ruby30.rb#9840 + def _reduce_327(val, _values, result); end + + # reduce 328 omitted + # + # source://parser//lib/parser/ruby30.rb#9850 + def _reduce_329(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8325 + def _reduce_33(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9859 + def _reduce_330(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9868 + def _reduce_331(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9874 + def _reduce_332(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9880 + def _reduce_333(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9890 + def _reduce_334(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9900 + def _reduce_335(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9910 + def _reduce_336(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9916 + def _reduce_337(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9923 + def _reduce_338(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9940 + def _reduce_339(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8332 + def _reduce_34(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9948 + def _reduce_340(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9960 + def _reduce_341(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9967 + def _reduce_342(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9982 + def _reduce_343(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#9994 + def _reduce_344(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10006 + def _reduce_345(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10012 + def _reduce_346(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10018 + def _reduce_347(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10024 + def _reduce_348(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8343 + def _reduce_35(val, _values, result); end + + # reduce 349 omitted + # + # source://parser//lib/parser/ruby30.rb#10032 + def _reduce_350(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10038 + def _reduce_351(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10044 + def _reduce_352(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10050 + def _reduce_353(val, _values, result); end + + # reduce 355 omitted + # + # source://parser//lib/parser/ruby30.rb#10062 + def _reduce_356(val, _values, result); end + + # reduce 359 omitted + # + # source://parser//lib/parser/ruby30.rb#10074 + def _reduce_360(val, _values, result); end + + # reduce 361 omitted + # + # source://parser//lib/parser/ruby30.rb#10087 + def _reduce_362(val, _values, result); end + + # reduce 364 omitted + # + # source://parser//lib/parser/ruby30.rb#10097 + def _reduce_365(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10103 + def _reduce_366(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10109 + def _reduce_367(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10115 + def _reduce_368(val, _values, result); end + + # reduce 36 omitted + # + # source://parser//lib/parser/ruby30.rb#8351 + def _reduce_37(val, _values, result); end + + # reduce 369 omitted + # + # source://parser//lib/parser/ruby30.rb#10123 + def _reduce_370(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10130 + def _reduce_371(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10138 + def _reduce_372(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10144 + def _reduce_373(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10150 + def _reduce_374(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10156 + def _reduce_375(val, _values, result); end + + # reduce 377 omitted + # + # source://parser//lib/parser/ruby30.rb#10166 + def _reduce_378(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10172 + def _reduce_379(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8357 + def _reduce_38(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10178 + def _reduce_380(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10184 + def _reduce_381(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10190 + def _reduce_382(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10196 + def _reduce_383(val, _values, result); end + + # reduce 384 omitted + # + # source://parser//lib/parser/ruby30.rb#10204 + def _reduce_385(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10213 + def _reduce_386(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10223 + def _reduce_387(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10231 + def _reduce_388(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10240 + def _reduce_389(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8363 + def _reduce_39(val, _values, result); end + + # reduce 390 omitted + # + # source://parser//lib/parser/ruby30.rb#10250 + def _reduce_391(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10259 + def _reduce_392(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10269 + def _reduce_393(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10277 + def _reduce_394(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10286 + def _reduce_395(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10293 + def _reduce_396(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10301 + def _reduce_397(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10308 + def _reduce_398(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8142 + def _reduce_4(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8372 + def _reduce_40(val, _values, result); end + + # reduce 399 omitted + # + # source://parser//lib/parser/ruby30.rb#10318 + def _reduce_400(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10324 + def _reduce_401(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10330 + def _reduce_402(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10338 + def _reduce_403(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10346 + def _reduce_404(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10352 + def _reduce_405(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10358 + def _reduce_406(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10364 + def _reduce_407(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10370 + def _reduce_408(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8381 + def _reduce_41(val, _values, result); end + + # reduce 409 omitted + # + # source://parser//lib/parser/ruby30.rb#10379 + def _reduce_410(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10388 + def _reduce_411(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10394 + def _reduce_412(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10410 + def _reduce_413(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10417 + def _reduce_414(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10426 + def _reduce_415(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10433 + def _reduce_416(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10440 + def _reduce_417(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10447 + def _reduce_418(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10454 + def _reduce_419(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8390 + def _reduce_42(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10461 + def _reduce_420(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10468 + def _reduce_421(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10476 + def _reduce_422(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10484 + def _reduce_423(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10496 + def _reduce_424(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10507 + def _reduce_425(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10515 + def _reduce_426(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10523 + def _reduce_427(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10531 + def _reduce_428(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10537 + def _reduce_429(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8398 + def _reduce_43(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10545 + def _reduce_430(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10553 + def _reduce_431(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10561 + def _reduce_432(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10567 + def _reduce_433(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10573 + def _reduce_434(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10580 + def _reduce_435(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10587 + def _reduce_436(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10594 + def _reduce_437(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10601 + def _reduce_438(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10608 + def _reduce_439(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8407 + def _reduce_44(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10618 + def _reduce_440(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10625 + def _reduce_441(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10631 + def _reduce_442(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10642 + def _reduce_443(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10649 + def _reduce_444(val, _values, result); end + + # reduce 445 omitted + # + # source://parser//lib/parser/ruby30.rb#10657 + def _reduce_446(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10669 + def _reduce_447(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10677 + def _reduce_448(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10684 + def _reduce_449(val, _values, result); end + + # reduce 450 omitted + # + # source://parser//lib/parser/ruby30.rb#10692 + def _reduce_451(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10698 + def _reduce_452(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10704 + def _reduce_453(val, _values, result); end + + # reduce 454 omitted + # + # source://parser//lib/parser/ruby30.rb#10712 + def _reduce_455(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10722 + def _reduce_456(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10728 + def _reduce_457(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10734 + def _reduce_458(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10740 + def _reduce_459(val, _values, result); end + + # reduce 45 omitted + # + # source://parser//lib/parser/ruby30.rb#8415 + def _reduce_46(val, _values, result); end + + # reduce 460 omitted + # + # source://parser//lib/parser/ruby30.rb#10748 + def _reduce_461(val, _values, result); end + + # reduce 462 omitted + # + # source://parser//lib/parser/ruby30.rb#10756 + def _reduce_463(val, _values, result); end + + # reduce 464 omitted + # + # source://parser//lib/parser/ruby30.rb#10764 + def _reduce_465(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10771 + def _reduce_466(val, _values, result); end + + # reduce 467 omitted + # + # source://parser//lib/parser/ruby30.rb#10780 + def _reduce_468(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10788 + def _reduce_469(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10796 + def _reduce_470(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10804 + def _reduce_471(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10811 + def _reduce_472(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10819 + def _reduce_473(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10827 + def _reduce_474(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10835 + def _reduce_475(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10842 + def _reduce_476(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10848 + def _reduce_477(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10854 + def _reduce_478(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10860 + def _reduce_479(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10868 + def _reduce_480(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10876 + def _reduce_481(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10882 + def _reduce_482(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10888 + def _reduce_483(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10895 + def _reduce_484(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10901 + def _reduce_485(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10907 + def _reduce_486(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10913 + def _reduce_487(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10920 + def _reduce_488(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10927 + def _reduce_489(val, _values, result); end + + # reduce 48 omitted + # + # source://parser//lib/parser/ruby30.rb#8429 + def _reduce_49(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10933 + def _reduce_490(val, _values, result); end + + # reduce 491 omitted + # + # source://parser//lib/parser/ruby30.rb#10941 + def _reduce_492(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10951 + def _reduce_493(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10961 + def _reduce_494(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10967 + def _reduce_495(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10973 + def _reduce_496(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10979 + def _reduce_497(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10985 + def _reduce_498(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10991 + def _reduce_499(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8148 + def _reduce_5(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8435 + def _reduce_50(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#10997 + def _reduce_500(val, _values, result); end + + # reduce 501 omitted + # + # source://parser//lib/parser/ruby30.rb#11005 + def _reduce_502(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11011 + def _reduce_503(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11017 + def _reduce_504(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11023 + def _reduce_505(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11029 + def _reduce_506(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11035 + def _reduce_507(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11041 + def _reduce_508(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11047 + def _reduce_509(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8441 + def _reduce_51(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11053 + def _reduce_510(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11059 + def _reduce_511(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11065 + def _reduce_512(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11071 + def _reduce_513(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11077 + def _reduce_514(val, _values, result); end + + # reduce 517 omitted + # + # source://parser//lib/parser/ruby30.rb#11089 + def _reduce_518(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11095 + def _reduce_519(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8447 + def _reduce_52(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11101 + def _reduce_520(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11107 + def _reduce_521(val, _values, result); end + + # reduce 524 omitted + # + # source://parser//lib/parser/ruby30.rb#11119 + def _reduce_525(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11125 + def _reduce_526(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8453 + def _reduce_53(val, _values, result); end + + # reduce 534 omitted + # + # source://parser//lib/parser/ruby30.rb#11147 + def _reduce_535(val, _values, result); end + + # reduce 536 omitted + # + # source://parser//lib/parser/ruby30.rb#11155 + def _reduce_537(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11161 + def _reduce_538(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11173 + def _reduce_539(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8464 + def _reduce_54(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11179 + def _reduce_540(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11185 + def _reduce_541(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11191 + def _reduce_542(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11206 + def _reduce_543(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11212 + def _reduce_544(val, _values, result); end + + # reduce 546 omitted + # + # source://parser//lib/parser/ruby30.rb#11222 + def _reduce_547(val, _values, result); end + + # reduce 548 omitted + # + # source://parser//lib/parser/ruby30.rb#11230 + def _reduce_549(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8472 + def _reduce_55(val, _values, result); end + + # reduce 552 omitted + # + # source://parser//lib/parser/ruby30.rb#11242 + def _reduce_553(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11248 + def _reduce_554(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11254 + def _reduce_555(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11260 + def _reduce_556(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11267 + def _reduce_557(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11274 + def _reduce_558(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11280 + def _reduce_559(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8483 + def _reduce_56(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11287 + def _reduce_560(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11294 + def _reduce_561(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11300 + def _reduce_562(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11306 + def _reduce_563(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11312 + def _reduce_564(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11318 + def _reduce_565(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11324 + def _reduce_566(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11330 + def _reduce_567(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11336 + def _reduce_568(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11342 + def _reduce_569(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11348 + def _reduce_570(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11354 + def _reduce_571(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11360 + def _reduce_572(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11366 + def _reduce_573(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11372 + def _reduce_574(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11378 + def _reduce_575(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11384 + def _reduce_576(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11390 + def _reduce_577(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11396 + def _reduce_578(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11402 + def _reduce_579(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11408 + def _reduce_580(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11414 + def _reduce_581(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11420 + def _reduce_582(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11426 + def _reduce_583(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11433 + def _reduce_584(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11442 + def _reduce_585(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11448 + def _reduce_586(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11454 + def _reduce_587(val, _values, result); end + + # reduce 58 omitted + # + # source://parser//lib/parser/ruby30.rb#8495 + def _reduce_59(val, _values, result); end + + # reduce 590 omitted + # + # source://parser//lib/parser/ruby30.rb#11466 + def _reduce_591(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11473 + def _reduce_592(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11480 + def _reduce_593(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11486 + def _reduce_594(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11497 + def _reduce_595(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11504 + def _reduce_596(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11511 + def _reduce_597(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11518 + def _reduce_598(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11525 + def _reduce_599(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8154 + def _reduce_6(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8501 + def _reduce_60(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11531 + def _reduce_600(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11537 + def _reduce_601(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11543 + def _reduce_602(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11549 + def _reduce_603(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11555 + def _reduce_604(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11561 + def _reduce_605(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11567 + def _reduce_606(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11573 + def _reduce_607(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11579 + def _reduce_608(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11585 + def _reduce_609(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8508 + def _reduce_61(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11591 + def _reduce_610(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11597 + def _reduce_611(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11603 + def _reduce_612(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11609 + def _reduce_613(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11615 + def _reduce_614(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11621 + def _reduce_615(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11627 + def _reduce_616(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11633 + def _reduce_617(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11639 + def _reduce_618(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11645 + def _reduce_619(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8518 + def _reduce_62(val, _values, result); end + + # reduce 620 omitted + # + # source://parser//lib/parser/ruby30.rb#11653 + def _reduce_621(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11659 + def _reduce_622(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11667 + def _reduce_623(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11676 + def _reduce_624(val, _values, result); end + + # reduce 625 omitted + # + # source://parser//lib/parser/ruby30.rb#11687 + def _reduce_626(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11694 + def _reduce_627(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11701 + def _reduce_628(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11707 + def _reduce_629(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8524 + def _reduce_63(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11713 + def _reduce_630(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11719 + def _reduce_631(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11725 + def _reduce_632(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11731 + def _reduce_633(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11737 + def _reduce_634(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11746 + def _reduce_635(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11756 + def _reduce_636(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11764 + def _reduce_637(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11773 + def _reduce_638(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11781 + def _reduce_639(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8530 + def _reduce_64(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11790 + def _reduce_640(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11797 + def _reduce_641(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11805 + def _reduce_642(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11814 + def _reduce_643(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11821 + def _reduce_644(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11829 + def _reduce_645(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11836 + def _reduce_646(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11844 + def _reduce_647(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11850 + def _reduce_648(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11856 + def _reduce_649(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11862 + def _reduce_650(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11868 + def _reduce_651(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11874 + def _reduce_652(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11880 + def _reduce_653(val, _values, result); end + + # reduce 654 omitted + # + # source://parser//lib/parser/ruby30.rb#11888 + def _reduce_655(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11898 + def _reduce_656(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11905 + def _reduce_657(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11912 + def _reduce_658(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11918 + def _reduce_659(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11924 + def _reduce_660(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11930 + def _reduce_661(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11944 + def _reduce_662(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11951 + def _reduce_663(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11958 + def _reduce_664(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11964 + def _reduce_665(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11970 + def _reduce_666(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11976 + def _reduce_667(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11982 + def _reduce_668(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#11988 + def _reduce_669(val, _values, result); end + + # reduce 671 omitted + # + # source://parser//lib/parser/ruby30.rb#11998 + def _reduce_672(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12004 + def _reduce_673(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12012 + def _reduce_674(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12018 + def _reduce_675(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12025 + def _reduce_676(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12032 + def _reduce_677(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12038 + def _reduce_678(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12044 + def _reduce_679(val, _values, result); end + + # reduce 67 omitted + # + # source://parser//lib/parser/ruby30.rb#8542 + def _reduce_68(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12050 + def _reduce_680(val, _values, result); end + + # reduce 682 omitted + # + # source://parser//lib/parser/ruby30.rb#12060 + def _reduce_683(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12068 + def _reduce_684(val, _values, result); end + + # reduce 686 omitted + # + # source://parser//lib/parser/ruby30.rb#12078 + def _reduce_687(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12086 + def _reduce_688(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12092 + def _reduce_689(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8549 + def _reduce_69(val, _values, result); end + + # reduce 690 omitted + # + # source://parser//lib/parser/ruby30.rb#12100 + def _reduce_691(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12106 + def _reduce_692(val, _values, result); end + + # reduce 693 omitted + # + # source://parser//lib/parser/ruby30.rb#12114 + def _reduce_694(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12120 + def _reduce_695(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12126 + def _reduce_696(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12132 + def _reduce_697(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12138 + def _reduce_698(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12144 + def _reduce_699(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8160 + def _reduce_7(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8556 + def _reduce_70(val, _values, result); end + + # reduce 711 omitted + # + # source://parser//lib/parser/ruby30.rb#12174 + def _reduce_712(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12180 + def _reduce_713(val, _values, result); end + + # reduce 717 omitted + # + # source://parser//lib/parser/ruby30.rb#12194 + def _reduce_718(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12200 + def _reduce_719(val, _values, result); end + + # reduce 71 omitted + # + # source://parser//lib/parser/ruby30.rb#8565 + def _reduce_72(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12206 + def _reduce_720(val, _values, result); end + + # reduce 723 omitted + # + # source://parser//lib/parser/ruby30.rb#12218 + def _reduce_724(val, _values, result); end + + # reduce 727 omitted + # + # source://parser//lib/parser/ruby30.rb#12230 + def _reduce_728(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8572 + def _reduce_73(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8583 + def _reduce_74(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8590 + def _reduce_75(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8601 + def _reduce_76(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8608 + def _reduce_77(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8619 + def _reduce_78(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8626 + def _reduce_79(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8633 + def _reduce_80(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8640 + def _reduce_81(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8647 + def _reduce_82(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8654 + def _reduce_83(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8660 + def _reduce_84(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8666 + def _reduce_85(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8672 + def _reduce_86(val, _values, result); end + + # reduce 87 omitted + # + # source://parser//lib/parser/ruby30.rb#8680 + def _reduce_88(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8687 + def _reduce_89(val, _values, result); end + + # reduce 8 omitted + # + # source://parser//lib/parser/ruby30.rb#8168 + def _reduce_9(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8694 + def _reduce_90(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8702 + def _reduce_91(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8709 + def _reduce_92(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8717 + def _reduce_93(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8723 + def _reduce_94(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8730 + def _reduce_95(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8736 + def _reduce_96(val, _values, result); end + + # reduce 97 omitted + # + # source://parser//lib/parser/ruby30.rb#8745 + def _reduce_98(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#8751 + def _reduce_99(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#12236 + def _reduce_none(val, _values, result); end + + # source://parser//lib/parser/ruby30.rb#21 + def default_encoding; end + + # source://parser//lib/parser/ruby30.rb#25 + def endless_method_name(name_t); end + + # source://parser//lib/parser/ruby30.rb#38 + def local_pop; end + + # source://parser//lib/parser/ruby30.rb#31 + def local_push; end + + # source://parser//lib/parser/ruby30.rb#45 + def try_declare_numparam(node); end + + # source://parser//lib/parser/ruby30.rb#17 + def version; end +end + +# source://parser//lib/parser/ruby30.rb#7715 +Parser::Ruby30::Racc_arg = T.let(T.unsafe(nil), Array) + +# source://parser//lib/parser/ruby30.rb#8114 +Parser::Ruby30::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) + +# source://parser//lib/parser/ruby30.rb#7731 +Parser::Ruby30::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) + +# @api public +# +# source://parser//lib/parser.rb#30 +module Parser::Source; end + +# A buffer with source code. {Buffer} contains the source code itself, +# associated location information (name and first line), and takes care +# of encoding. +# +# A source buffer is immutable once populated. +# +# @api public +# +# source://parser//lib/parser/source/buffer.rb#25 +class Parser::Source::Buffer + # @api public + # @return [Buffer] a new instance of Buffer + # + # source://parser//lib/parser/source/buffer.rb#105 + def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end + + # Convert a character index into the source to a column number. + # + # @api private + # @param position [Integer] + # @return [Integer] column + # + # source://parser//lib/parser/source/buffer.rb#242 + def column_for_position(position); end + + # Convert a character index into the source to a `[line, column]` tuple. + # + # @api public + # @param position [Integer] + # @return [[Integer, Integer]] `[line, column]` + # + # source://parser//lib/parser/source/buffer.rb#217 + def decompose_position(position); end + + # First line of the buffer, 1 by default. + # + # @api public + # @return [Integer] first line + # + # source://parser//lib/parser/source/buffer.rb#26 + def first_line; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#312 + def freeze; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#318 + def inspect; end + + # Number of last line in the buffer + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/buffer.rb#307 + def last_line; end + + # Convert a character index into the source to a line number. + # + # @api private + # @param position [Integer] + # @return [Integer] line + # + # source://parser//lib/parser/source/buffer.rb#231 + def line_for_position(position); end + + # Extract line `lineno` as a new `Range`, taking `first_line` into account. + # + # @api public + # @param lineno [Integer] + # @raise [IndexError] if `lineno` is out of bounds + # @return [Range] + # + # source://parser//lib/parser/source/buffer.rb#284 + def line_range(lineno); end + + # Buffer name. If the buffer was created from a file, the name corresponds + # to relative path to the file. + # + # @api public + # @return [String] buffer name + # + # source://parser//lib/parser/source/buffer.rb#26 + def name; end + + # Populate this buffer from a string without encoding autodetection. + # + # @api public + # @param input [String] + # @raise [ArgumentError] if already populated + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#180 + def raw_source=(input); end + + # Populate this buffer from correspondingly named file. + # + # @api public + # @example + # Parser::Source::Buffer.new('foo/bar.rb').read + # @raise [ArgumentError] if already populated + # @return [Buffer] self + # + # source://parser//lib/parser/source/buffer.rb#131 + def read; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#194 + def slice(start, length = T.unsafe(nil)); end + + # Source code contained in this buffer. + # + # @api public + # @raise [RuntimeError] if buffer is not populated yet + # @return [String] source code + # + # source://parser//lib/parser/source/buffer.rb#145 + def source; end + + # Populate this buffer from a string with encoding autodetection. + # `input` is mutated if not frozen. + # + # @api public + # @param input [String] + # @raise [ArgumentError] if already populated + # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#162 + def source=(input); end + + # Extract line `lineno` from source, taking `first_line` into account. + # + # @api public + # @param lineno [Integer] + # @raise [IndexError] if `lineno` is out of bounds + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#273 + def source_line(lineno); end + + # Return an `Array` of source code lines. + # + # @api public + # @return [Array] + # + # source://parser//lib/parser/source/buffer.rb#252 + def source_lines; end + + # @api public + # @return [Range] A range covering the whole source + # + # source://parser//lib/parser/source/buffer.rb#298 + def source_range; end + + private + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#348 + def bsearch(line_begins, position); end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#325 + def line_begins; end + + # @api public + # + # source://parser//lib/parser/source/buffer.rb#339 + def line_index_for_position(position); end + + class << self + # Try to recognize encoding of `string` as Ruby would, i.e. by looking for + # magic encoding comment or UTF-8 BOM. `string` can be in any encoding. + # + # @api public + # @param string [String] + # @return [String, nil] encoding name, if recognized + # + # source://parser//lib/parser/source/buffer.rb#51 + def recognize_encoding(string); end + + # Recognize encoding of `input` and process it so it could be lexed. + # + # * If `input` does not contain BOM or magic encoding comment, it is + # kept in the original encoding. + # * If the detected encoding is binary, `input` is kept in binary. + # * Otherwise, `input` is re-encoded into UTF-8 and returned as a + # new string. + # + # This method mutates the encoding of `input`, but not its content. + # + # @api public + # @param input [String] + # @raise [EncodingError] + # @return [String] + # + # source://parser//lib/parser/source/buffer.rb#90 + def reencode_string(input); end + end +end + +# @api private +# +# source://parser//lib/parser/source/buffer.rb#31 +Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp) + +# A comment in the source code. +# +# @api public +# +# source://parser//lib/parser/source/comment.rb#17 +class Parser::Source::Comment + # @api public + # @param range [Parser::Source::Range] + # @return [Comment] a new instance of Comment + # + # source://parser//lib/parser/source/comment.rb#67 + def initialize(range); end + + # Compares comments. Two comments are equal if they + # correspond to the same source range. + # + # @api public + # @param other [Object] + # @return [Boolean] + # + # source://parser//lib/parser/source/comment.rb#120 + def ==(other); end + + # @api public + # @return [Boolean] true if this is a block comment. + # @see #type + # + # source://parser//lib/parser/source/comment.rb#109 + def document?; end + + # @api public + # @return [Boolean] true if this is an inline comment. + # @see #type + # + # source://parser//lib/parser/source/comment.rb#101 + def inline?; end + + # @api public + # @return [String] a human-readable representation of this comment + # + # source://parser//lib/parser/source/comment.rb#128 + def inspect; end + + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/source/comment.rb#20 + def loc; end + + # @api public + # @return [Parser::Source::Range] + # + # source://parser//lib/parser/source/comment.rb#20 + def location; end + + # @api public + # @return [String] + # + # source://parser//lib/parser/source/comment.rb#18 + def text; end + + # Type of this comment. + # + # * Inline comments correspond to `:inline`: + # + # # whatever + # + # * Block comments correspond to `:document`: + # + # =begin + # hi i am a document + # =end + # + # @api public + # @return [Symbol] + # + # source://parser//lib/parser/source/comment.rb#89 + def type; end + + class << self + # Associate `comments` with `ast` nodes by their corresponding node. + # + # @api public + # @deprecated Use {associate_locations}. + # @param ast [Parser::AST::Node] + # @param comments [Array] + # @return [Hash>] + # @see Parser::Source::Comment::Associator#associate + # + # source://parser//lib/parser/source/comment.rb#32 + def associate(ast, comments); end + + # Associate `comments` with `ast` nodes using identity. + # + # @api public + # @param ast [Parser::AST::Node] + # @param comments [Array] + # @return [Hash>] + # @see Parser::Source::Comment::Associator#associate_by_identity + # + # source://parser//lib/parser/source/comment.rb#59 + def associate_by_identity(ast, comments); end + + # Associate `comments` with `ast` nodes by their location in the + # source. + # + # @api public + # @param ast [Parser::AST::Node] + # @param comments [Array] + # @return [Hash>] + # @see Parser::Source::Comment::Associator#associate_locations + # + # source://parser//lib/parser/source/comment.rb#46 + def associate_locations(ast, comments); end + end +end + +# source://parser//lib/parser/source/comment/associator.rb#45 +class Parser::Source::Comment::Associator + # source://parser//lib/parser/source/comment/associator.rb#51 + def initialize(ast, comments); end + + # source://parser//lib/parser/source/comment/associator.rb#92 + def associate; end + + # source://parser//lib/parser/source/comment/associator.rb#115 + def associate_by_identity; end + + # source://parser//lib/parser/source/comment/associator.rb#103 + def associate_locations; end + + # source://parser//lib/parser/source/comment/associator.rb#46 + def skip_directives; end + + # source://parser//lib/parser/source/comment/associator.rb#46 + def skip_directives=(_arg0); end + + private + + # source://parser//lib/parser/source/comment/associator.rb#182 + def advance_comment; end + + # source://parser//lib/parser/source/comment/associator.rb#214 + def advance_through_directives; end + + # source://parser//lib/parser/source/comment/associator.rb#206 + def associate_and_advance_comment(node); end + + # source://parser//lib/parser/source/comment/associator.rb#123 + def children_in_source_order(node); end + + # source://parser//lib/parser/source/comment/associator.rb#187 + def current_comment_before?(node); end + + # source://parser//lib/parser/source/comment/associator.rb#194 + def current_comment_before_end?(node); end + + # source://parser//lib/parser/source/comment/associator.rb#201 + def current_comment_decorates?(node); end + + # source://parser//lib/parser/source/comment/associator.rb#135 + def do_associate; end + + # source://parser//lib/parser/source/comment/associator.rb#166 + def process_leading_comments(node); end + + # source://parser//lib/parser/source/comment/associator.rb#173 + def process_trailing_comments(node); end + + # source://parser//lib/parser/source/comment/associator.rb#148 + def visit(node); end +end + +# source://parser//lib/parser/source/comment/associator.rb#212 +Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp) + +# source://parser//lib/parser/source/comment/associator.rb#122 +Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set) + +# {Map} relates AST nodes to the source code they were parsed from. +# More specifically, a {Map} or its subclass contains a set of ranges: +# +# * `expression`: smallest range which includes all source corresponding +# to the node and all `expression` ranges of its children. +# * other ranges (`begin`, `end`, `operator`, ...): node-specific ranges +# pointing to various interesting tokens corresponding to the node. +# +# Note that the {Map::Heredoc} map is the only one whose `expression` does +# not include other ranges. It only covers the heredoc marker (`< 2]').children[0].loc +# # => > +# +# The {file:doc/AST_FORMAT.md} document describes how ranges associated to source +# code tokens. For example, the entry +# +# (array (int 1) (int 2)) +# +# "[1, 2]" +# ^ begin +# ^ end +# ~~~~~~ expression +# +# means that if `node` is an {Parser::AST::Node} `(array (int 1) (int 2))`, +# then `node.loc` responds to `begin`, `end` and `expression`, and +# `node.loc.begin` returns a range pointing at the opening bracket, and so on. +# +# If you want to write code polymorphic by the source map (i.e. accepting +# several subclasses of {Map}), use `respond_to?` instead of `is_a?` to +# check whether the map features the range you need. Concrete {Map} +# subclasses may not be preserved between versions, but their interfaces +# will be kept compatible. +# +# You can visualize the source maps with `ruby-parse -E` command-line tool. +# +# @api public +# @example +# require 'parser/current' +# +# p Parser::CurrentRuby.parse('[1, 2]').loc +# # => #, +# # @begin=#, +# # @expression=#> +# +# source://parser//lib/parser/source/map.rb#70 +class Parser::Source::Map + # @api public + # @param expression [Range] + # @return [Map] a new instance of Map + # + # source://parser//lib/parser/source/map.rb#76 + def initialize(expression); end + + # Compares source maps. + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/map.rb#140 + def ==(other); end + + # A shortcut for `self.expression.column`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#109 + def column; end + + # @api public + # @return [Range] + # + # source://parser//lib/parser/source/map.rb#72 + def expression; end + + # A shortcut for `self.expression.line`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#99 + def first_line; end + + # A shortcut for `self.expression.last_column`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#125 + def last_column; end + + # A shortcut for `self.expression.last_line`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#117 + def last_line; end + + # A shortcut for `self.expression.line`. + # + # @api public + # @return [Integer] + # + # source://parser//lib/parser/source/map.rb#99 + def line; end + + # The node that is described by this map. Nodes and maps have 1:1 correspondence. + # + # @api public + # @return [Parser::AST::Node] + # + # source://parser//lib/parser/source/map.rb#71 + def node; end + + # @api private + # + # source://parser//lib/parser/source/map.rb#89 + def node=(node); end + + # Converts this source map to a hash with keys corresponding to + # ranges. For example, if called on an instance of {Collection}, + # which adds the `begin` and `end` ranges, the resulting hash + # will contain keys `:expression`, `:begin` and `:end`. + # + # @api public + # @example + # require 'parser/current' + # + # p Parser::CurrentRuby.parse('[1, 2]').loc.to_hash + # # => { + # # :begin => #, + # # :end => #, + # # :expression => # + # # } + # @return [Hash] + # + # source://parser//lib/parser/source/map.rb#166 + def to_hash; end + + # @api private + # + # source://parser//lib/parser/source/map.rb#132 + def with_expression(expression_l); end + + protected + + # @api public + # + # source://parser//lib/parser/source/map.rb#180 + def update_expression(expression_l); end + + # @api public + # + # source://parser//lib/parser/source/map.rb#176 + def with(&block); end + + private + + # @api private + # + # source://parser//lib/parser/source/map.rb#82 + def initialize_copy(other); end +end + +# source://parser//lib/parser/source/map/collection.rb#6 +class Parser::Source::Map::Collection < ::Parser::Source::Map + # source://parser//lib/parser/source/map/collection.rb#10 + def initialize(begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/collection.rb#7 + def begin; end + + # source://parser//lib/parser/source/map/collection.rb#8 + def end; end +end + +# source://parser//lib/parser/source/map/condition.rb#6 +class Parser::Source::Map::Condition < ::Parser::Source::Map + # source://parser//lib/parser/source/map/condition.rb#12 + def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/condition.rb#8 + def begin; end + + # source://parser//lib/parser/source/map/condition.rb#9 + def else; end + + # source://parser//lib/parser/source/map/condition.rb#10 + def end; end + + # source://parser//lib/parser/source/map/condition.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/constant.rb#6 +class Parser::Source::Map::Constant < ::Parser::Source::Map + # source://parser//lib/parser/source/map/constant.rb#11 + def initialize(double_colon, name, expression); end + + # source://parser//lib/parser/source/map/constant.rb#7 + def double_colon; end + + # source://parser//lib/parser/source/map/constant.rb#8 + def name; end + + # source://parser//lib/parser/source/map/constant.rb#9 + def operator; end + + # source://parser//lib/parser/source/map/constant.rb#20 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/constant.rb#26 + def update_operator(operator_l); end +end + +# source://parser//lib/parser/source/map/definition.rb#6 +class Parser::Source::Map::Definition < ::Parser::Source::Map + # source://parser//lib/parser/source/map/definition.rb#12 + def initialize(keyword_l, operator_l, name_l, end_l); end + + # source://parser//lib/parser/source/map/definition.rb#10 + def end; end + + # source://parser//lib/parser/source/map/definition.rb#7 + def keyword; end + + # source://parser//lib/parser/source/map/definition.rb#9 + def name; end + + # source://parser//lib/parser/source/map/definition.rb#8 + def operator; end +end + +# source://parser//lib/parser/source/map/for.rb#6 +class Parser::Source::Map::For < ::Parser::Source::Map + # source://parser//lib/parser/source/map/for.rb#10 + def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/for.rb#8 + def begin; end + + # source://parser//lib/parser/source/map/for.rb#8 + def end; end + + # source://parser//lib/parser/source/map/for.rb#7 + def in; end + + # source://parser//lib/parser/source/map/for.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/heredoc.rb#6 +class Parser::Source::Map::Heredoc < ::Parser::Source::Map + # source://parser//lib/parser/source/map/heredoc.rb#10 + def initialize(begin_l, body_l, end_l); end + + # source://parser//lib/parser/source/map/heredoc.rb#7 + def heredoc_body; end + + # source://parser//lib/parser/source/map/heredoc.rb#8 + def heredoc_end; end +end + +# source://parser//lib/parser/source/map/index.rb#6 +class Parser::Source::Map::Index < ::Parser::Source::Map + # source://parser//lib/parser/source/map/index.rb#11 + def initialize(begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/index.rb#7 + def begin; end + + # source://parser//lib/parser/source/map/index.rb#8 + def end; end + + # source://parser//lib/parser/source/map/index.rb#9 + def operator; end + + # source://parser//lib/parser/source/map/index.rb#21 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/index.rb#27 + def update_operator(operator_l); end +end + +# source://parser//lib/parser/source/map/keyword.rb#6 +class Parser::Source::Map::Keyword < ::Parser::Source::Map + # source://parser//lib/parser/source/map/keyword.rb#11 + def initialize(keyword_l, begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/keyword.rb#8 + def begin; end + + # source://parser//lib/parser/source/map/keyword.rb#9 + def end; end + + # source://parser//lib/parser/source/map/keyword.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/method_definition.rb#6 +class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map + # source://parser//lib/parser/source/map/method_definition.rb#13 + def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end + + # source://parser//lib/parser/source/map/method_definition.rb#11 + def assignment; end + + # source://parser//lib/parser/source/map/method_definition.rb#10 + def end; end + + # source://parser//lib/parser/source/map/method_definition.rb#7 + def keyword; end + + # source://parser//lib/parser/source/map/method_definition.rb#9 + def name; end + + # source://parser//lib/parser/source/map/method_definition.rb#8 + def operator; end +end + +# source://parser//lib/parser/source/map/objc_kwarg.rb#6 +class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map + # source://parser//lib/parser/source/map/objc_kwarg.rb#11 + def initialize(keyword_l, operator_l, argument_l, expression_l); end + + # source://parser//lib/parser/source/map/objc_kwarg.rb#9 + def argument; end + + # source://parser//lib/parser/source/map/objc_kwarg.rb#7 + def keyword; end + + # source://parser//lib/parser/source/map/objc_kwarg.rb#8 + def operator; end +end + +# source://parser//lib/parser/source/map/operator.rb#6 +class Parser::Source::Map::Operator < ::Parser::Source::Map + # source://parser//lib/parser/source/map/operator.rb#9 + def initialize(operator, expression); end + + # source://parser//lib/parser/source/map/operator.rb#7 + def operator; end +end + +# source://parser//lib/parser/source/map/rescue_body.rb#6 +class Parser::Source::Map::RescueBody < ::Parser::Source::Map + # source://parser//lib/parser/source/map/rescue_body.rb#11 + def initialize(keyword_l, assoc_l, begin_l, expression_l); end + + # source://parser//lib/parser/source/map/rescue_body.rb#8 + def assoc; end + + # source://parser//lib/parser/source/map/rescue_body.rb#9 + def begin; end + + # source://parser//lib/parser/source/map/rescue_body.rb#7 + def keyword; end +end + +# source://parser//lib/parser/source/map/send.rb#6 +class Parser::Source::Map::Send < ::Parser::Source::Map + # source://parser//lib/parser/source/map/send.rb#13 + def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end + + # source://parser//lib/parser/source/map/send.rb#10 + def begin; end + + # source://parser//lib/parser/source/map/send.rb#7 + def dot; end + + # source://parser//lib/parser/source/map/send.rb#11 + def end; end + + # source://parser//lib/parser/source/map/send.rb#9 + def operator; end + + # source://parser//lib/parser/source/map/send.rb#8 + def selector; end + + # source://parser//lib/parser/source/map/send.rb#24 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/send.rb#30 + def update_operator(operator_l); end +end + +# source://parser//lib/parser/source/map/ternary.rb#6 +class Parser::Source::Map::Ternary < ::Parser::Source::Map + # source://parser//lib/parser/source/map/ternary.rb#10 + def initialize(question_l, colon_l, expression_l); end + + # source://parser//lib/parser/source/map/ternary.rb#8 + def colon; end + + # source://parser//lib/parser/source/map/ternary.rb#7 + def question; end +end + +# source://parser//lib/parser/source/map/variable.rb#6 +class Parser::Source::Map::Variable < ::Parser::Source::Map + # source://parser//lib/parser/source/map/variable.rb#10 + def initialize(name_l, expression_l = T.unsafe(nil)); end + + # source://parser//lib/parser/source/map/variable.rb#7 + def name; end + + # source://parser//lib/parser/source/map/variable.rb#8 + def operator; end + + # source://parser//lib/parser/source/map/variable.rb#19 + def with_operator(operator_l); end + + protected + + # source://parser//lib/parser/source/map/variable.rb#25 + def update_operator(operator_l); end +end + +# A range of characters in a particular source buffer. +# +# The range is always exclusive, i.e. a range with `begin_pos` of 3 and +# `end_pos` of 5 will contain the following characters: +# +# example +# ^^ +# +# @api public +# +# source://parser//lib/parser/source/range.rb#26 +class Parser::Source::Range + include ::Comparable + + # @api public + # @param source_buffer [Buffer] + # @param begin_pos [Integer] + # @param end_pos [Integer] + # @return [Range] a new instance of Range + # + # source://parser//lib/parser/source/range.rb#37 + def initialize(source_buffer, begin_pos, end_pos); end + + # Compare ranges, first by begin_pos, then by end_pos. + # + # @api public + # + # source://parser//lib/parser/source/range.rb#301 + def <=>(other); end + + # by the given amount(s) + # + # @api public + # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos + # @return [Range] the same range as this range but with the given end point(s) adjusted + # + # source://parser//lib/parser/source/range.rb#193 + def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end + + # @api public + # @return [Range] a zero-length range located just before the beginning + # of this range. + # + # source://parser//lib/parser/source/range.rb#55 + def begin; end + + # @api public + # @return [Integer] index of the first character in the range + # + # source://parser//lib/parser/source/range.rb#30 + def begin_pos; end + + # @api public + # @return [Integer] zero-based column number of the beginning of this range. + # + # source://parser//lib/parser/source/range.rb#92 + def column; end + + # @api public + # @raise RangeError + # @return [::Range] a range of columns spanned by this range. + # + # source://parser//lib/parser/source/range.rb#114 + def column_range; end + + # Return `other.contains?(self)` + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#274 + def contained?(other); end + + # Returns true iff this range contains (strictly) `other`. + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#262 + def contains?(other); end + + # Returns true iff both ranges intersect and also have different elements from one another. + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#286 + def crossing?(other); end + + # Return `true` iff this range and `other` are disjoint. + # + # Two ranges must be one and only one of ==, disjoint?, contains?, contained? or crossing? + # + # @api public + # @param other [Range] + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#236 + def disjoint?(other); end + + # Checks if a range is empty; if it contains no characters + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#294 + def empty?; end + + # @api public + # @return [Range] a zero-length range located just after the end + # of this range. + # + # source://parser//lib/parser/source/range.rb#63 + def end; end + + # @api public + # @return [Integer] index of the character after the last character in the range + # + # source://parser//lib/parser/source/range.rb#30 + def end_pos; end + + # @api public + def eql?(_arg0); end + + # Line number of the beginning of this range. By default, the first line + # of a buffer is 1; as such, line numbers are most commonly one-based. + # + # @api public + # @return [Integer] line number of the beginning of this range. + # @see Buffer + # + # source://parser//lib/parser/source/range.rb#83 + def first_line; end + + # Support for Ranges be used in as Hash indices and in Sets. + # + # @api public + # + # source://parser//lib/parser/source/range.rb#313 + def hash; end + + # @api public + # @return [String] a human-readable representation of this range. + # + # source://parser//lib/parser/source/range.rb#320 + def inspect; end + + # @api public + # @param other [Range] + # @return [Range] overlapping region of this range and `other`, or `nil` + # if they do not overlap + # + # source://parser//lib/parser/source/range.rb#220 + def intersect(other); end + + # `is?` provides a concise way to compare the source corresponding to this range. + # For example, `r.source == '(' || r.source == 'begin'` is equivalent to + # `r.is?('(', 'begin')`. + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/range.rb#141 + def is?(*what); end + + # @api public + # @param other [Range] + # @return [Range] smallest possible range spanning both this range and `other`. + # + # source://parser//lib/parser/source/range.rb#209 + def join(other); end + + # @api public + # @return [Integer] zero-based column number of the end of this range. + # + # source://parser//lib/parser/source/range.rb#106 + def last_column; end + + # @api public + # @return [Integer] line number of the end of this range. + # + # source://parser//lib/parser/source/range.rb#99 + def last_line; end + + # @api public + # @return [Integer] amount of characters included in this range. + # + # source://parser//lib/parser/source/range.rb#70 + def length; end + + # Line number of the beginning of this range. By default, the first line + # of a buffer is 1; as such, line numbers are most commonly one-based. + # + # @api public + # @return [Integer] line number of the beginning of this range. + # @see Buffer + # + # source://parser//lib/parser/source/range.rb#83 + def line; end + + # Return `true` iff this range is not disjoint from `other`. + # + # @api public + # @param other [Range] + # @return [Boolean] `true` if this range and `other` overlap + # + # source://parser//lib/parser/source/range.rb#250 + def overlaps?(other); end + + # @api public + # @param new_size [Integer] + # @return [Range] a range beginning at the same point as this range and length `new_size`. + # + # source://parser//lib/parser/source/range.rb#201 + def resize(new_size); end + + # @api public + # @return [Integer] amount of characters included in this range. + # + # source://parser//lib/parser/source/range.rb#70 + def size; end + + # @api public + # @return [String] all source code covered by this range. + # + # source://parser//lib/parser/source/range.rb#132 + def source; end + + # @api public + # @return [Parser::Source::Buffer] + # + # source://parser//lib/parser/source/range.rb#29 + def source_buffer; end + + # @api public + # @return [String] a line of source code containing the beginning of this range. + # + # source://parser//lib/parser/source/range.rb#125 + def source_line; end + + # @api public + # @return [Array] a set of character indexes contained in this range. + # + # source://parser//lib/parser/source/range.rb#148 + def to_a; end + + # @api public + # @return [Range] a Ruby range with the same `begin_pos` and `end_pos` + # + # source://parser//lib/parser/source/range.rb#155 + def to_range; end + + # Composes a GNU/Clang-style string representation of the beginning of this + # range. + # + # For example, for the following range in file `foo.rb`, + # + # def foo + # ^^^ + # + # `to_s` will return `foo.rb:1:5`. + # Note that the column index is one-based. + # + # @api public + # @return [String] + # + # source://parser//lib/parser/source/range.rb#173 + def to_s; end + + # to the given value(s). + # + # @api public + # @param Endpoint(s) [Hash] to change, any combination of :begin_pos or :end_pos + # @return [Range] the same range as this range but with the given end point(s) changed + # + # source://parser//lib/parser/source/range.rb#184 + def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end +end + +# {Rewriter} is deprecated. Use {TreeRewriter} instead. +# +# TreeRewriter has simplified semantics, and customizable policies +# with regards to clobbering. Please read the documentation. +# +# Keep in mind: +# - Rewriter was discarding the `end_pos` of the given range for `insert_before`, +# and the `begin_pos` for `insert_after`. These are meaningful in TreeRewriter. +# - TreeRewriter's wrap/insert_before/insert_after are multiple by default, while +# Rewriter would raise clobbering errors if the non '_multi' version was called. +# - The TreeRewriter policy closest to Rewriter's behavior is: +# different_replacements: :raise, +# swallowed_insertions: :raise, +# crossing_deletions: :accept +# +# @api public +# @deprecated Use {TreeRewriter} +# +# source://parser//lib/parser/source/rewriter.rb#31 +class Parser::Source::Rewriter + extend ::Parser::Deprecation + + # @api public + # @deprecated Use {TreeRewriter} + # @param source_buffer [Source::Buffer] + # @return [Rewriter] a new instance of Rewriter + # + # source://parser//lib/parser/source/rewriter.rb#39 + def initialize(source_buffer); end + + # @api public + # @return [Diagnostic::Engine] + # + # source://parser//lib/parser/source/rewriter.rb#33 + def diagnostics; end + + # Inserts new code after the given source range. + # + # @api public + # @deprecated Use {TreeRewriter#insert_after} + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#131 + def insert_after(range, content); end + + # Inserts new code after the given source range by allowing other + # insertions at the same position. + # Note that an insertion with latter invocation comes _after_ earlier + # insertion at the same position in the rewritten source. + # + # @api public + # @deprecated Use {TreeRewriter#insert_after} + # @example Inserting ')]' + # rewriter. + # insert_after_multi(range, ')'). + # insert_after_multi(range, ']'). + # process + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#153 + def insert_after_multi(range, content); end + + # Inserts new code before the given source range. + # + # @api public + # @deprecated Use {TreeRewriter#insert_before} + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#80 + def insert_before(range, content); end + + # Inserts new code before the given source range by allowing other + # insertions at the same position. + # Note that an insertion with latter invocation comes _before_ earlier + # insertion at the same position in the rewritten source. + # + # @api public + # @deprecated Use {TreeRewriter#insert_before} + # @example Inserting '[(' + # rewriter. + # insert_before_multi(range, '('). + # insert_before_multi(range, '['). + # process + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#117 + def insert_before_multi(range, content); end + + # Applies all scheduled changes to the `source_buffer` and returns + # modified source as a new string. + # + # @api public + # @deprecated Use {TreeRewriter#process} + # @return [String] + # + # source://parser//lib/parser/source/rewriter.rb#178 + def process; end + + # Removes the source range. + # + # @api public + # @deprecated Use {TreeRewriter#remove} + # @param range [Range] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#67 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @deprecated Use {TreeRewriter#replace} + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#167 + def replace(range, content); end + + # @api public + # @return [Source::Buffer] + # + # source://parser//lib/parser/source/rewriter.rb#32 + def source_buffer; end + + # Provides a protected block where a sequence of multiple rewrite actions + # are handled atomically. If any of the actions failed by clobbering, + # all the actions are rolled back. + # + # @api public + # @deprecated Use {TreeRewriter#transaction} + # @example + # begin + # rewriter.transaction do + # rewriter.insert_before(range_of_something, '(') + # rewriter.insert_after(range_of_something, ')') + # end + # rescue Parser::ClobberingError + # end + # @raise [RuntimeError] when no block is passed + # @raise [RuntimeError] when already in a transaction + # + # source://parser//lib/parser/source/rewriter.rb#216 + def transaction; end + + # Inserts new code before and after the given source range. + # + # @api public + # @deprecated Use {TreeRewriter#wrap} + # @param range [Range] + # @param before [String] + # @param after [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/rewriter.rb#94 + def wrap(range, before, after); end + + private + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#476 + def active_clobber; end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#484 + def active_clobber=(value); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#480 + def active_insertions; end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#492 + def active_insertions=(value); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#472 + def active_queue; end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#500 + def adjacent?(range1, range2); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#351 + def adjacent_insertion_mask(range); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#366 + def adjacent_insertions?(range); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#347 + def adjacent_position_mask(range); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#377 + def adjacent_updates?(range); end + + # Schedule a code update. If it overlaps with another update, check + # whether they conflict, and raise a clobbering error if they do. + # (As a special case, zero-length ranges at the same position are + # considered to "overlap".) Otherwise, merge them. + # + # Updates which are adjacent to each other, but do not overlap, are also + # merged. + # + # RULES: + # + # - Insertion ("replacing" a zero-length range): + # - Two insertions at the same point conflict. This is true even + # if the earlier insertion has already been merged with an adjacent + # update, and even if they are both inserting the same text. + # - An insertion never conflicts with a replace or remove operation + # on its right or left side, which does not overlap it (in other + # words, which does not update BOTH its right and left sides). + # - An insertion always conflicts with a remove operation which spans + # both its sides. + # - An insertion conflicts with a replace operation which spans both its + # sides, unless the replacement text is longer than the replaced text + # by the size of the insertion (or more), and the portion of + # replacement text immediately after the insertion position is + # identical to the inserted text. + # + # - Removal operations never conflict with each other. + # + # - Replacement operations: + # - Take the portion of each replacement text which falls within: + # - The other operation's replaced region + # - The other operation's replacement text, if it extends past the + # end of its own replaced region (in other words, if the replacement + # text is longer than the text it replaces) + # - If and only if the taken texts are identical for both operations, + # they do not conflict. + # + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#280 + def append(action); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#389 + def can_merge?(action, existing); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#355 + def clobbered_insertion?(insertion); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#343 + def clobbered_position_mask(range); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#468 + def in_transaction?; end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#410 + def merge_actions(action, existing); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#419 + def merge_actions!(action, existing); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#425 + def merge_replacements(actions); end + + # @api public + # @raise [ClobberingError] + # + # source://parser//lib/parser/source/rewriter.rb#450 + def raise_clobber_error(action, existing); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#335 + def record_insertion(range); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#339 + def record_replace(range); end + + # @api public + # + # source://parser//lib/parser/source/rewriter.rb#445 + def replace_actions(old, updated); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/rewriter.rb#383 + def replace_compatible_with_insertion?(replace, insertion); end +end + +# source://parser//lib/parser/source/rewriter/action.rb#9 +class Parser::Source::Rewriter::Action + include ::Comparable + + # source://parser//lib/parser/source/rewriter/action.rb#15 + def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end + + # source://parser//lib/parser/source/rewriter/action.rb#24 + def <=>(other); end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def allow_multiple_insertions; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def allow_multiple_insertions?; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def order; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def range; end + + # source://parser//lib/parser/source/rewriter/action.rb#12 + def replacement; end + + # source://parser//lib/parser/source/rewriter/action.rb#30 + def to_s; end +end + +# @api public +# +# source://parser//lib/parser/source/rewriter.rb#504 +Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# {TreeRewriter} performs the heavy lifting in the source rewriting process. +# It schedules code updates to be performed in the correct order. +# +# For simple cases, the resulting source will be obvious. +# +# Examples for more complex cases follow. Assume these examples are acting on +# the source `'puts(:hello, :world)`. The methods #wrap, #remove, etc. +# receive a Range as first argument; for clarity, examples below use english +# sentences and a string of raw code instead. +# +# ## Overlapping ranges: +# +# Any two rewriting actions on overlapping ranges will fail and raise +# a `ClobberingError`, unless they are both deletions (covered next). +# +# * wrap ':hello, ' with '(' and ')' +# * wrap ', :world' with '(' and ')' +# => CloberringError +# +# ## Overlapping deletions: +# +# * remove ':hello, ' +# * remove ', :world' +# +# The overlapping ranges are merged and `':hello, :world'` will be removed. +# This policy can be changed. `:crossing_deletions` defaults to `:accept` +# but can be set to `:warn` or `:raise`. +# +# ## Multiple actions at the same end points: +# +# Results will always be independent on the order they were given. +# Exception: rewriting actions done on exactly the same range (covered next). +# +# Example: +# * replace ', ' by ' => ' +# * wrap ':hello, :world' with '{' and '}' +# * replace ':world' with ':everybody' +# * wrap ':world' with '[', ']' +# +# The resulting string will be `'puts({:hello => [:everybody]})'` +# and this result is independent on the order the instructions were given in. +# +# Note that if the two "replace" were given as a single replacement of ', :world' +# for ' => :everybody', the result would be a `ClobberingError` because of the wrap +# in square brackets. +# +# ## Multiple wraps on same range: +# * wrap ':hello' with '(' and ')' +# * wrap ':hello' with '[' and ']' +# +# The wraps are combined in order given and results would be `'puts([(:hello)], :world)'`. +# +# ## Multiple replacements on same range: +# * replace ':hello' by ':hi', then +# * replace ':hello' by ':hey' +# +# The replacements are made in the order given, so the latter replacement +# supersedes the former and ':hello' will be replaced by ':hey'. +# +# This policy can be changed. `:different_replacements` defaults to `:accept` +# but can be set to `:warn` or `:raise`. +# +# ## Swallowed insertions: +# wrap 'world' by '__', '__' +# replace ':hello, :world' with ':hi' +# +# A containing replacement will swallow the contained rewriting actions +# and `':hello, :world'` will be replaced by `':hi'`. +# +# This policy can be changed for swallowed insertions. `:swallowed_insertions` +# defaults to `:accept` but can be set to `:warn` or `:raise` +# +# ## Implementation +# The updates are organized in a tree, according to the ranges they act on +# (where children are strictly contained by their parent), hence the name. +# +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#91 +class Parser::Source::TreeRewriter + extend ::Parser::Deprecation + + # @api public + # @param source_buffer [Source::Buffer] + # @return [TreeRewriter] a new instance of TreeRewriter + # + # source://parser//lib/parser/source/tree_rewriter.rb#98 + def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end + + # Returns a representation of the rewriter as nested insertions (:wrap) and replacements. + # + # rewriter.as_actions # =>[ [:wrap, 1...10, '(', ')'], + # [:wrap, 2...6, '', '!'], # aka "insert_after" + # [:replace, 2...4, 'foo'], + # [:replace, 5...6, ''], # aka "removal" + # ], + # + # Contrary to `as_replacements`, this representation is sufficient to recreate exactly + # the rewriter. + # + # @api public + # @return [Array<(Symbol, Range, String{, String})>] + # + # source://parser//lib/parser/source/tree_rewriter.rb#299 + def as_nested_actions; end + + # Returns a representation of the rewriter as an ordered list of replacements. + # + # rewriter.as_replacements # => [ [1...1, '('], + # [2...4, 'foo'], + # [5...6, ''], + # [6...6, '!'], + # [10...10, ')'], + # ] + # + # This representation is sufficient to recreate the result of `process` but it is + # not sufficient to recreate completely the rewriter for further merging/actions. + # See `as_nested_actions` + # + # @api public + # @return [Array] an ordered list of pairs of range & replacement + # + # source://parser//lib/parser/source/tree_rewriter.rb#281 + def as_replacements; end + + # @api public + # @return [Diagnostic::Engine] + # + # source://parser//lib/parser/source/tree_rewriter.rb#93 + def diagnostics; end + + # Returns true iff no (non trivial) update has been recorded + # + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/tree_rewriter.rb#125 + def empty?; end + + # For special cases where one needs to merge a rewriter attached to a different source_buffer + # or that needs to be offset. Policies of the receiver are used. + # + # @api public + # @param rewriter [TreeRewriter] from different source_buffer + # @param offset [Integer] + # @raise [IndexError] if action ranges (once offset) don't fit the current buffer + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#168 + def import!(foreign_rewriter, offset: T.unsafe(nil)); end + + # @api public + # @return [Boolean] + # + # source://parser//lib/parser/source/tree_rewriter.rb#329 + def in_transaction?; end + + # Shortcut for `wrap(range, nil, content)` + # + # @api public + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#242 + def insert_after(range, content); end + + # @api private + # @deprecated Use insert_after or wrap + # + # source://parser//lib/parser/source/tree_rewriter.rb#351 + def insert_after_multi(range, text); end + + # Shortcut for `wrap(range, content, nil)` + # + # @api public + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#230 + def insert_before(range, content); end + + # @api private + # @deprecated Use insert_after or wrap + # + # source://parser//lib/parser/source/tree_rewriter.rb#342 + def insert_before_multi(range, text); end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#334 + def inspect; end + + # Returns a new rewriter that consists of the updates of the received + # and the given argument. Policies of the receiver are used. + # + # @api public + # @param with [Rewriter] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] merge of receiver and argument + # + # source://parser//lib/parser/source/tree_rewriter.rb#155 + def merge(with); end + + # Merges the updates of argument with the receiver. + # Policies of the receiver are used. + # This action is atomic in that it won't change the receiver + # unless it succeeds. + # + # @api public + # @param with [Rewriter] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#139 + def merge!(with); end + + # Applies all scheduled changes to the `source_buffer` and returns + # modified source as a new string. + # + # @api public + # @return [String] + # + # source://parser//lib/parser/source/tree_rewriter.rb#252 + def process; end + + # Shortcut for `replace(range, '')` + # + # @api public + # @param range [Range] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#217 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @param range [Range] + # @param content [String] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#193 + def replace(range, content); end + + # @api public + # @return [Source::Buffer] + # + # source://parser//lib/parser/source/tree_rewriter.rb#92 + def source_buffer; end + + # Provides a protected block where a sequence of multiple rewrite actions + # are handled atomically. If any of the actions failed by clobbering, + # all the actions are rolled back. Transactions can be nested. + # + # @api public + # @raise [RuntimeError] when no block is passed + # + # source://parser//lib/parser/source/tree_rewriter.rb#310 + def transaction; end + + # Inserts the given strings before and after the given range. + # + # @api public + # @param range [Range] + # @param insert_before [String, nil] + # @param insert_after [String, nil] + # @raise [ClobberingError] when clobbering is detected + # @return [Rewriter] self + # + # source://parser//lib/parser/source/tree_rewriter.rb#206 + def wrap(range, insert_before, insert_after); end + + protected + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#365 + def action_root; end + + private + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#369 + def action_summary; end + + # @api public + # @raise [ArgumentError] + # + # source://parser//lib/parser/source/tree_rewriter.rb#392 + def check_policy_validity; end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#404 + def check_range_validity(range); end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#397 + def combine(range, attributes); end + + # @api public + # + # source://parser//lib/parser/source/tree_rewriter.rb#411 + def enforce_policy(event); end + + # @api public + # @raise [Parser::ClobberingError] + # + # source://parser//lib/parser/source/tree_rewriter.rb#418 + def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end +end + +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#391 +Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array) + +# source://parser//lib/parser/source/tree_rewriter/action.rb#13 +class Parser::Source::TreeRewriter::Action + # source://parser//lib/parser/source/tree_rewriter/action.rb#16 + def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#28 + def combine(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#67 + def contract; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#33 + def empty?; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def insert_after; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def insert_before; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#57 + def insertion?; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#80 + def moved(source_buffer, offset); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#49 + def nested_actions; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#40 + def ordered_replacements; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def range; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#14 + def replacement; end + + protected + + # source://parser//lib/parser/source/tree_rewriter/action.rb#158 + def analyse_hierarchy(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#145 + def bsearch_child_index(from = T.unsafe(nil)); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#224 + def call_enforcer_for_merge(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#204 + def check_fusible(action, *fusible); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#94 + def children; end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#129 + def combine_children(more_children); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#102 + def do_combine(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#135 + def fuse_deletions(action, fusible, other_sibblings); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#215 + def merge(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#110 + def place_in_hierarchy(action); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#232 + def swallow(children); end + + # source://parser//lib/parser/source/tree_rewriter/action.rb#96 + def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end +end + +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#356 +Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# @api public +# +# source://parser//lib/parser/source/tree_rewriter.rb#417 +Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash) + +# source://parser//lib/parser/static_environment.rb#5 +class Parser::StaticEnvironment + # @return [StaticEnvironment] a new instance of StaticEnvironment + # + # source://parser//lib/parser/static_environment.rb#11 + def initialize; end + + # source://parser//lib/parser/static_environment.rb#40 + def declare(name); end + + # source://parser//lib/parser/static_environment.rb#58 + def declare_anonymous_blockarg; end + + # source://parser//lib/parser/static_environment.rb#74 + def declare_anonymous_kwrestarg; end + + # source://parser//lib/parser/static_environment.rb#66 + def declare_anonymous_restarg; end + + # source://parser//lib/parser/static_environment.rb#50 + def declare_forward_args; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#46 + def declared?(name); end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#62 + def declared_anonymous_blockarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#78 + def declared_anonymous_kwrestarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#70 + def declared_anonymous_restarg?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#54 + def declared_forward_args?; end + + # @return [Boolean] + # + # source://parser//lib/parser/static_environment.rb#82 + def empty?; end + + # source://parser//lib/parser/static_environment.rb#27 + def extend_dynamic; end + + # source://parser//lib/parser/static_environment.rb#20 + def extend_static; end + + # source://parser//lib/parser/static_environment.rb#15 + def reset; end + + # source://parser//lib/parser/static_environment.rb#34 + def unextend; end +end + +# source://parser//lib/parser/static_environment.rb#7 +Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#9 +Parser::StaticEnvironment::ANONYMOUS_KWRESTARG = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#8 +Parser::StaticEnvironment::ANONYMOUS_RESTARG = T.let(T.unsafe(nil), Symbol) + +# source://parser//lib/parser/static_environment.rb#6 +Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol) + +# {Parser::SyntaxError} is raised whenever parser detects a syntax error, +# similar to the standard SyntaxError class. +# +# @api public +# +# source://parser//lib/parser/syntax_error.rb#13 +class Parser::SyntaxError < ::StandardError + # @api public + # @return [SyntaxError] a new instance of SyntaxError + # + # source://parser//lib/parser/syntax_error.rb#16 + def initialize(diagnostic); end + + # @api public + # @return [Parser::Diagnostic] + # + # source://parser//lib/parser/syntax_error.rb#14 + def diagnostic; end +end + +# {Parser::TreeRewriter} offers a basic API that makes it easy to rewrite +# existing ASTs. It's built on top of {Parser::AST::Processor} and +# {Parser::Source::TreeRewriter} +# +# For example, assume you want to remove `do` tokens from a while statement. +# You can do this as following: +# +# require 'parser/current' +# +# class RemoveDo < Parser::TreeRewriter +# def on_while(node) +# # Check if the statement starts with "do" +# if node.location.begin.is?('do') +# remove(node.location.begin) +# end +# end +# end +# +# code = <<-EOF +# while true do +# puts 'hello' +# end +# EOF +# +# ast = Parser::CurrentRuby.parse code +# buffer = Parser::Source::Buffer.new('(example)', source: code) +# rewriter = RemoveDo.new +# +# # Rewrite the AST, returns a String with the new form. +# puts rewriter.rewrite(buffer, ast) +# +# This would result in the following Ruby code: +# +# while true +# puts 'hello' +# end +# +# Keep in mind that {Parser::TreeRewriter} does not take care of indentation when +# inserting/replacing code so you'll have to do this yourself. +# +# See also [a blog entry](http://whitequark.org/blog/2013/04/26/lets-play-with-ruby-code/) +# describing rewriters in greater detail. +# +# @api public +# +# source://parser//lib/parser/tree_rewriter.rb#61 +class Parser::TreeRewriter < ::Parser::AST::Processor + # Returns `true` if the specified node is an assignment node, returns false + # otherwise. + # + # @api public + # @param node [Parser::AST::Node] + # @return [Boolean] + # + # source://parser//lib/parser/tree_rewriter.rb#79 + def assignment?(node); end + + # Inserts new code after the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#118 + def insert_after(range, content); end + + # Inserts new code before the given source range. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#108 + def insert_before(range, content); end + + # Removes the source range. + # + # @api public + # @param range [Parser::Source::Range] + # + # source://parser//lib/parser/tree_rewriter.rb#88 + def remove(range); end + + # Replaces the code of the source range `range` with `content`. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#128 + def replace(range, content); end + + # Rewrites the AST/source buffer and returns a String containing the new + # version. + # + # @api public + # @param source_buffer [Parser::Source::Buffer] + # @param ast [Parser::AST::Node] + # @param crossing_deletions:, [Symbol] different_replacements:, swallowed_insertions: + # policy arguments for TreeRewriter (optional) + # @return [String] + # + # source://parser//lib/parser/tree_rewriter.rb#62 + def rewrite(source_buffer, ast, **policy); end + + # Wraps the given source range with the given values. + # + # @api public + # @param range [Parser::Source::Range] + # @param content [String] + # + # source://parser//lib/parser/tree_rewriter.rb#98 + def wrap(range, before, after); end +end + +# source://parser//lib/parser/version.rb#4 +Parser::VERSION = T.let(T.unsafe(nil), String) + +# source://parser//lib/parser/variables_stack.rb#5 +class Parser::VariablesStack + # @return [VariablesStack] a new instance of VariablesStack + # + # source://parser//lib/parser/variables_stack.rb#6 + def initialize; end + + # source://parser//lib/parser/variables_stack.rb#27 + def declare(name); end + + # @return [Boolean] + # + # source://parser//lib/parser/variables_stack.rb#31 + def declared?(name); end + + # @return [Boolean] + # + # source://parser//lib/parser/variables_stack.rb#11 + def empty?; end + + # source://parser//lib/parser/variables_stack.rb#19 + def pop; end + + # source://parser//lib/parser/variables_stack.rb#15 + def push; end + + # source://parser//lib/parser/variables_stack.rb#23 + def reset; end +end diff --git a/sorbet/rbi/gems/rbi@0.0.15.rbi b/sorbet/rbi/gems/rbi@0.0.16.rbi similarity index 67% rename from sorbet/rbi/gems/rbi@0.0.15.rbi rename to sorbet/rbi/gems/rbi@0.0.16.rbi index fc75efed..b1ea3d43 100644 --- a/sorbet/rbi/gems/rbi@0.0.15.rbi +++ b/sorbet/rbi/gems/rbi@0.0.16.rbi @@ -4,58 +4,58 @@ # This is an autogenerated file for types exported from the `rbi` gem. # Please instead update this file by running `bin/tapioca gem rbi`. -# source://rbi-0.0.15/lib/rbi.rb:7 +# source://rbi//lib/rbi.rb#7 module RBI; end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/parser.rb:129 +# source://rbi//lib/rbi/parser.rb#129 class RBI::ASTVisitor abstract! - # source://sorbet-runtime-0.5.10346/lib/types/private/abstract/declare.rb:37 + # source://sorbet-runtime/0.5.10611/lib/types/private/abstract/declare.rb#37 def initialize(*args, &blk); end # @abstract # - # source://rbi-0.0.15/lib/rbi/parser.rb:141 + # source://rbi//lib/rbi/parser.rb#141 sig { abstract.params(node: T.nilable(::AST::Node)).void } def visit(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:136 + # source://rbi//lib/rbi/parser.rb#136 sig { params(nodes: T::Array[::AST::Node]).void } def visit_all(nodes); end private - # source://rbi-0.0.15/lib/rbi/parser.rb:151 + # source://rbi//lib/rbi/parser.rb#151 sig { params(node: ::AST::Node).returns(::String) } def parse_expr(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:146 + # source://rbi//lib/rbi/parser.rb#146 sig { params(node: ::AST::Node).returns(::String) } def parse_name(node); end end -# source://rbi-0.0.15/lib/rbi/model.rb:960 +# source://rbi//lib/rbi/model.rb#960 class RBI::Arg < ::RBI::Node - # source://rbi-0.0.15/lib/rbi/model.rb:972 + # source://rbi//lib/rbi/model.rb#972 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/model.rb:978 + # source://rbi//lib/rbi/model.rb#978 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:611 + # source://rbi//lib/rbi/printer.rb#611 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:983 + # source://rbi//lib/rbi/model.rb#983 sig { returns(::String) } def to_s; end - # source://rbi-0.0.15/lib/rbi/model.rb:964 + # source://rbi//lib/rbi/model.rb#964 sig { returns(::String) } def value; end end @@ -64,13 +64,13 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:341 +# source://rbi//lib/rbi/model.rb#341 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:366 + # source://rbi//lib/rbi/model.rb#366 sig do params( name: ::Symbol, @@ -83,58 +83,58 @@ class RBI::Attr < ::RBI::NodeWithComments end def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:346 + # source://rbi//lib/rbi/printer.rb#346 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:406 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#406 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @abstract # - # source://rbi-0.0.15/lib/rbi/model.rb:374 + # source://rbi//lib/rbi/model.rb#374 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/index.rb:109 + # source://rbi//lib/rbi/index.rb#109 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:413 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#413 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:348 + # source://rbi//lib/rbi/model.rb#348 sig { returns(T::Array[::Symbol]) } def names; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/model.rb:348 + # source://rbi//lib/rbi/model.rb#348 def names=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:373 + # source://rbi//lib/rbi/printer.rb#373 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/model.rb:354 + # source://rbi//lib/rbi/model.rb#354 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # source://rbi-0.0.15/lib/rbi/model.rb:351 + # source://rbi//lib/rbi/model.rb#351 sig { returns(::RBI::Visibility) } def visibility; end # @return [Visibility] # - # source://rbi-0.0.15/lib/rbi/model.rb:351 + # source://rbi//lib/rbi/model.rb#351 def visibility=(_arg0); end end -# source://rbi-0.0.15/lib/rbi/model.rb:377 +# source://rbi//lib/rbi/model.rb#377 class RBI::AttrAccessor < ::RBI::Attr - # source://rbi-0.0.15/lib/rbi/model.rb:391 + # source://rbi//lib/rbi/model.rb#391 sig do params( name: ::Symbol, @@ -148,22 +148,22 @@ class RBI::AttrAccessor < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:444 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#444 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:397 + # source://rbi//lib/rbi/model.rb#397 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/model.rb:403 + # source://rbi//lib/rbi/model.rb#403 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:409 +# source://rbi//lib/rbi/model.rb#409 class RBI::AttrReader < ::RBI::Attr - # source://rbi-0.0.15/lib/rbi/model.rb:423 + # source://rbi//lib/rbi/model.rb#423 sig do params( name: ::Symbol, @@ -177,22 +177,22 @@ class RBI::AttrReader < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:426 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#426 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:429 + # source://rbi//lib/rbi/model.rb#429 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/model.rb:435 + # source://rbi//lib/rbi/model.rb#435 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:441 +# source://rbi//lib/rbi/model.rb#441 class RBI::AttrWriter < ::RBI::Attr - # source://rbi-0.0.15/lib/rbi/model.rb:455 + # source://rbi//lib/rbi/model.rb#455 sig do params( name: ::Symbol, @@ -206,35 +206,35 @@ class RBI::AttrWriter < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:435 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#435 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:461 + # source://rbi//lib/rbi/model.rb#461 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/model.rb:467 + # source://rbi//lib/rbi/model.rb#467 sig { override.returns(::String) } def to_s; end end # An arbitrary blank line that can be added both in trees and comments # -# source://rbi-0.0.15/lib/rbi/model.rb:70 +# source://rbi//lib/rbi/model.rb#70 class RBI::BlankLine < ::RBI::Comment - # source://rbi-0.0.15/lib/rbi/model.rb:74 + # source://rbi//lib/rbi/model.rb#74 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:215 + # source://rbi//lib/rbi/printer.rb#215 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end end -# source://rbi-0.0.15/lib/rbi/model.rb:733 +# source://rbi//lib/rbi/model.rb#733 class RBI::BlockParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:744 + # source://rbi//lib/rbi/model.rb#744 sig do params( name: ::String, @@ -245,26 +245,26 @@ class RBI::BlockParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:755 + # source://rbi//lib/rbi/model.rb#755 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:541 + # source://rbi//lib/rbi/printer.rb#541 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:546 + # source://rbi//lib/rbi/printer.rb#546 sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:750 + # source://rbi//lib/rbi/model.rb#750 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:213 +# source://rbi//lib/rbi/model.rb#213 class RBI::Class < ::RBI::Scope - # source://rbi-0.0.15/lib/rbi/model.rb:231 + # source://rbi//lib/rbi/model.rb#231 sig do params( name: ::String, @@ -276,58 +276,58 @@ class RBI::Class < ::RBI::Scope end def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:370 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#370 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:239 + # source://rbi//lib/rbi/model.rb#239 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/model.rb:217 + # source://rbi//lib/rbi/model.rb#217 sig { returns(::String) } def name; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:217 + # source://rbi//lib/rbi/model.rb#217 def name=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:282 + # source://rbi//lib/rbi/printer.rb#282 sig { override.params(v: ::RBI::Printer).void } def print_header(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:220 + # source://rbi//lib/rbi/model.rb#220 sig { returns(T.nilable(::String)) } def superclass_name; end # @return [String, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:220 + # source://rbi//lib/rbi/model.rb#220 def superclass_name=(_arg0); end end -# source://rbi-0.0.15/lib/rbi/model.rb:50 +# source://rbi//lib/rbi/model.rb#50 class RBI::Comment < ::RBI::Node - # source://rbi-0.0.15/lib/rbi/model.rb:57 + # source://rbi//lib/rbi/model.rb#57 sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(text, loc: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/model.rb:63 + # source://rbi//lib/rbi/model.rb#63 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:195 + # source://rbi//lib/rbi/printer.rb#195 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:54 + # source://rbi//lib/rbi/model.rb#54 sig { returns(::String) } def text; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:54 + # source://rbi//lib/rbi/model.rb#54 def text=(_arg0); end end @@ -346,33 +346,33 @@ end # end # ~~~ # -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:578 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#578 class RBI::ConflictTree < ::RBI::Tree - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:585 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#585 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:596 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#596 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:582 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 sig { returns(::RBI::Tree) } def left; end # @return [Tree] # - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:582 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 def right; end end # Consts # -# source://rbi-0.0.15/lib/rbi/model.rb:305 +# source://rbi//lib/rbi/model.rb#305 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:320 + # source://rbi//lib/rbi/model.rb#320 sig do params( name: ::String, @@ -384,70 +384,70 @@ class RBI::Const < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/printer.rb:333 + # source://rbi//lib/rbi/printer.rb#333 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:397 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#397 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:328 + # source://rbi//lib/rbi/model.rb#328 sig { returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/index.rb:99 + # source://rbi//lib/rbi/index.rb#99 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:309 + # source://rbi//lib/rbi/model.rb#309 sig { returns(::String) } def name; end - # source://rbi-0.0.15/lib/rbi/model.rb:334 + # source://rbi//lib/rbi/model.rb#334 sig { override.returns(::String) } def to_s; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:309 + # source://rbi//lib/rbi/model.rb#309 def value; end end -# source://rbi-0.0.15/lib/rbi/parser.rb:600 +# source://rbi//lib/rbi/parser.rb#600 class RBI::ConstBuilder < ::RBI::ASTVisitor - # source://rbi-0.0.15/lib/rbi/parser.rb:615 + # source://rbi//lib/rbi/parser.rb#615 sig { void } def initialize; end - # source://rbi-0.0.15/lib/rbi/parser.rb:612 + # source://rbi//lib/rbi/parser.rb#612 sig { returns(T::Array[::String]) } def names; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/parser.rb:612 + # source://rbi//lib/rbi/parser.rb#612 def names=(_arg0); end - # source://rbi-0.0.15/lib/rbi/parser.rb:621 + # source://rbi//lib/rbi/parser.rb#621 sig { override.params(node: T.nilable(::AST::Node)).void } def visit(node); end class << self - # source://rbi-0.0.15/lib/rbi/parser.rb:604 + # source://rbi//lib/rbi/parser.rb#604 sig { params(node: T.nilable(::AST::Node)).returns(T.nilable(::String)) } def visit(node); end end end -# source://rbi-0.0.15/lib/rbi.rb:8 +# source://rbi//lib/rbi.rb#8 class RBI::Error < ::StandardError; end -# source://rbi-0.0.15/lib/rbi/model.rb:808 +# source://rbi//lib/rbi/model.rb#808 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:820 + # source://rbi//lib/rbi/model.rb#820 sig do params( name: ::String, @@ -459,22 +459,22 @@ class RBI::Extend < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:492 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#492 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/index.rb:139 + # source://rbi//lib/rbi/index.rb#139 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:826 + # source://rbi//lib/rbi/model.rb#826 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:133 +# source://rbi//lib/rbi/model.rb#133 class RBI::File - # source://rbi-0.0.15/lib/rbi/model.rb:152 + # source://rbi//lib/rbi/model.rb#152 sig do params( strictness: T.nilable(::String), @@ -484,28 +484,28 @@ class RBI::File end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:160 + # source://rbi//lib/rbi/model.rb#160 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi-0.0.15/lib/rbi/printer.rb:104 + # source://rbi//lib/rbi/printer.rb#104 sig { params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:143 + # source://rbi//lib/rbi/model.rb#143 sig { returns(T::Array[::RBI::Comment]) } def comments; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/model.rb:143 + # source://rbi//lib/rbi/model.rb#143 def comments=(_arg0); end - # source://rbi-0.0.15/lib/rbi/model.rb:165 + # source://rbi//lib/rbi/model.rb#165 sig { returns(T::Boolean) } def empty?; end - # source://rbi-0.0.15/lib/rbi/printer.rb:128 + # source://rbi//lib/rbi/printer.rb#128 sig do params( out: T.any(::IO, ::StringIO), @@ -516,32 +516,32 @@ class RBI::File end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/model.rb:137 + # source://rbi//lib/rbi/model.rb#137 sig { returns(::RBI::Tree) } def root; end # @return [Tree] # - # source://rbi-0.0.15/lib/rbi/model.rb:137 + # source://rbi//lib/rbi/model.rb#137 def root=(_arg0); end - # source://rbi-0.0.15/lib/rbi/model.rb:140 + # source://rbi//lib/rbi/model.rb#140 sig { returns(T.nilable(::String)) } def strictness; end # @return [String, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:140 + # source://rbi//lib/rbi/model.rb#140 def strictness=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:134 + # source://rbi//lib/rbi/printer.rb#134 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end -# source://rbi-0.0.15/lib/rbi/formatter.rb:5 +# source://rbi//lib/rbi/formatter.rb#5 class RBI::Formatter - # source://rbi-0.0.15/lib/rbi/formatter.rb:24 + # source://rbi//lib/rbi/formatter.rb#24 sig do params( add_sig_templates: T::Boolean, @@ -554,97 +554,97 @@ class RBI::Formatter end def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_methods: T.unsafe(nil), sort_nodes: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 sig { returns(T::Boolean) } def add_sig_templates; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def add_sig_templates=(_arg0); end - # source://rbi-0.0.15/lib/rbi/formatter.rb:53 + # source://rbi//lib/rbi/formatter.rb#53 sig { params(file: ::RBI::File).void } def format_file(file); end - # source://rbi-0.0.15/lib/rbi/formatter.rb:58 + # source://rbi//lib/rbi/formatter.rb#58 sig { params(tree: ::RBI::Tree).void } def format_tree(tree); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def group_nodes; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def group_nodes=(_arg0); end - # source://rbi-0.0.15/lib/rbi/formatter.rb:12 + # source://rbi//lib/rbi/formatter.rb#12 sig { returns(T.nilable(::Integer)) } def max_line_length; end # @return [Integer, nil] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:12 + # source://rbi//lib/rbi/formatter.rb#12 def max_line_length=(_arg0); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def nest_non_public_methods; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def nest_non_public_methods=(_arg0); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def nest_singleton_methods; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def nest_singleton_methods=(_arg0); end - # source://rbi-0.0.15/lib/rbi/formatter.rb:41 + # source://rbi//lib/rbi/formatter.rb#41 sig { params(file: ::RBI::File).returns(::String) } def print_file(file); end - # source://rbi-0.0.15/lib/rbi/formatter.rb:47 + # source://rbi//lib/rbi/formatter.rb#47 sig { params(tree: ::RBI::Tree).returns(::String) } def print_tree(tree); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def sort_nodes; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/formatter.rb:9 + # source://rbi//lib/rbi/formatter.rb#9 def sort_nodes=(_arg0); end end -# source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:88 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#88 class RBI::Group < ::RBI::Tree - # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:95 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#95 sig { params(kind: ::RBI::Group::Kind).void } def initialize(kind); end - # source://rbi-0.0.15/lib/rbi/printer.rb:836 + # source://rbi//lib/rbi/printer.rb#836 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:92 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#92 sig { returns(::RBI::Group::Kind) } def kind; end end -# source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:100 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#100 class RBI::Group::Kind < ::T::Enum enums do Mixins = new @@ -665,11 +665,11 @@ end # Sorbet's misc. # -# source://rbi-0.0.15/lib/rbi/model.rb:1285 +# source://rbi//lib/rbi/model.rb#1285 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:1299 + # source://rbi//lib/rbi/model.rb#1299 sig do params( name: ::String, @@ -680,32 +680,32 @@ class RBI::Helper < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/printer.rb:823 + # source://rbi//lib/rbi/printer.rb#823 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:510 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#510 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/index.rb:169 + # source://rbi//lib/rbi/index.rb#169 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:1289 + # source://rbi//lib/rbi/model.rb#1289 sig { returns(::String) } def name; end - # source://rbi-0.0.15/lib/rbi/model.rb:1306 + # source://rbi//lib/rbi/model.rb#1306 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:785 +# source://rbi//lib/rbi/model.rb#785 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:797 + # source://rbi//lib/rbi/model.rb#797 sig do params( name: ::String, @@ -717,49 +717,49 @@ class RBI::Include < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:483 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#483 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/index.rb:129 + # source://rbi//lib/rbi/index.rb#129 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:803 + # source://rbi//lib/rbi/model.rb#803 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/index.rb:5 +# source://rbi//lib/rbi/index.rb#5 class RBI::Index < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/index.rb:17 + # source://rbi//lib/rbi/index.rb#17 sig { void } def initialize; end - # source://rbi-0.0.15/lib/rbi/index.rb:28 + # source://rbi//lib/rbi/index.rb#28 sig { params(id: ::String).returns(T::Array[::RBI::Node]) } def [](id); end - # source://rbi-0.0.15/lib/rbi/index.rb:33 + # source://rbi//lib/rbi/index.rb#33 sig { params(nodes: ::RBI::Node).void } def index(*nodes); end - # source://rbi-0.0.15/lib/rbi/index.rb:23 + # source://rbi//lib/rbi/index.rb#23 sig { returns(T::Array[::String]) } def keys; end - # source://rbi-0.0.15/lib/rbi/index.rb:38 + # source://rbi//lib/rbi/index.rb#38 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/index.rb:55 + # source://rbi//lib/rbi/index.rb#55 sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } def index_node(node); end class << self - # source://rbi-0.0.15/lib/rbi/index.rb:10 + # source://rbi//lib/rbi/index.rb#10 sig { params(node: ::RBI::Node).returns(::RBI::Index) } def index(*node); end end @@ -769,7 +769,7 @@ end # # @abstract Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/index.rb:70 +# source://rbi//lib/rbi/index.rb#70 module RBI::Indexable interface! @@ -780,37 +780,37 @@ module RBI::Indexable # # @abstract # - # source://rbi-0.0.15/lib/rbi/index.rb:81 + # source://rbi//lib/rbi/index.rb#81 sig { abstract.returns(T::Array[::String]) } def index_ids; end end -# source://rbi-0.0.15/lib/rbi/model.rb:988 +# source://rbi//lib/rbi/model.rb#988 class RBI::KwArg < ::RBI::Arg - # source://rbi-0.0.15/lib/rbi/model.rb:1001 + # source://rbi//lib/rbi/model.rb#1001 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/model.rb:1007 + # source://rbi//lib/rbi/model.rb#1007 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:620 + # source://rbi//lib/rbi/printer.rb#620 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:992 + # source://rbi//lib/rbi/model.rb#992 sig { returns(::String) } def keyword; end - # source://rbi-0.0.15/lib/rbi/model.rb:1012 + # source://rbi//lib/rbi/model.rb#1012 sig { returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:674 +# source://rbi//lib/rbi/model.rb#674 class RBI::KwOptParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:689 + # source://rbi//lib/rbi/model.rb#689 sig do params( name: ::String, @@ -822,30 +822,30 @@ class RBI::KwOptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:701 + # source://rbi//lib/rbi/model.rb#701 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:511 + # source://rbi//lib/rbi/printer.rb#511 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:516 + # source://rbi//lib/rbi/printer.rb#516 sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:696 + # source://rbi//lib/rbi/model.rb#696 sig { override.returns(::String) } def to_s; end - # source://rbi-0.0.15/lib/rbi/model.rb:678 + # source://rbi//lib/rbi/model.rb#678 sig { returns(::String) } def value; end end -# source://rbi-0.0.15/lib/rbi/model.rb:647 +# source://rbi//lib/rbi/model.rb#647 class RBI::KwParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:658 + # source://rbi//lib/rbi/model.rb#658 sig do params( name: ::String, @@ -856,26 +856,26 @@ class RBI::KwParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:669 + # source://rbi//lib/rbi/model.rb#669 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:496 + # source://rbi//lib/rbi/printer.rb#496 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:501 + # source://rbi//lib/rbi/printer.rb#501 sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:664 + # source://rbi//lib/rbi/model.rb#664 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:706 +# source://rbi//lib/rbi/model.rb#706 class RBI::KwRestParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:717 + # source://rbi//lib/rbi/model.rb#717 sig do params( name: ::String, @@ -886,26 +886,26 @@ class RBI::KwRestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:728 + # source://rbi//lib/rbi/model.rb#728 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:526 + # source://rbi//lib/rbi/printer.rb#526 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:531 + # source://rbi//lib/rbi/printer.rb#531 sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:723 + # source://rbi//lib/rbi/model.rb#723 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/loc.rb:5 +# source://rbi//lib/rbi/loc.rb#5 class RBI::Loc - # source://rbi-0.0.15/lib/rbi/loc.rb:23 + # source://rbi//lib/rbi/loc.rb#23 sig do params( file: T.nilable(::String), @@ -919,37 +919,37 @@ class RBI::Loc # @return [Integer, nil] # - # source://rbi-0.0.15/lib/rbi/loc.rb:12 + # source://rbi//lib/rbi/loc.rb#12 def begin_column; end - # source://rbi-0.0.15/lib/rbi/loc.rb:12 + # source://rbi//lib/rbi/loc.rb#12 sig { returns(T.nilable(::Integer)) } def begin_line; end # @return [Integer, nil] # - # source://rbi-0.0.15/lib/rbi/loc.rb:12 + # source://rbi//lib/rbi/loc.rb#12 def end_column; end # @return [Integer, nil] # - # source://rbi-0.0.15/lib/rbi/loc.rb:12 + # source://rbi//lib/rbi/loc.rb#12 def end_line; end - # source://rbi-0.0.15/lib/rbi/loc.rb:9 + # source://rbi//lib/rbi/loc.rb#9 sig { returns(T.nilable(::String)) } def file; end - # source://rbi-0.0.15/lib/rbi/loc.rb:37 + # source://rbi//lib/rbi/loc.rb#37 sig { returns(T.nilable(::String)) } def source; end - # source://rbi-0.0.15/lib/rbi/loc.rb:32 + # source://rbi//lib/rbi/loc.rb#32 sig { returns(::String) } def to_s; end class << self - # source://rbi-0.0.15/lib/rbi/parser.rb:707 + # source://rbi//lib/rbi/parser.rb#707 sig { params(file: ::String, ast_loc: T.any(::Parser::Source::Map, ::Parser::Source::Range)).returns(::RBI::Loc) } def from_ast_loc(file, ast_loc); end end @@ -957,9 +957,9 @@ end # A tree that _might_ contain conflicts # -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:324 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#324 class RBI::MergeTree < ::RBI::Tree - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:338 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#338 sig do params( loc: T.nilable(::RBI::Loc), @@ -970,18 +970,18 @@ class RBI::MergeTree < ::RBI::Tree end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:328 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#328 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end end # Methods and args # -# source://rbi-0.0.15/lib/rbi/model.rb:475 +# source://rbi//lib/rbi/model.rb#475 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:505 + # source://rbi//lib/rbi/model.rb#505 sig do params( name: ::String, @@ -996,88 +996,88 @@ class RBI::Method < ::RBI::NodeWithComments end def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:525 + # source://rbi//lib/rbi/model.rb#525 sig { params(param: ::RBI::Param).void } def <<(param); end - # source://rbi-0.0.15/lib/rbi/printer.rb:382 + # source://rbi//lib/rbi/printer.rb#382 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:453 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#453 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:530 + # source://rbi//lib/rbi/model.rb#530 sig { returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/index.rb:119 + # source://rbi//lib/rbi/index.rb#119 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/printer.rb:435 + # source://rbi//lib/rbi/printer.rb#435 sig { returns(T::Boolean) } def inline_params?; end - # source://rbi-0.0.15/lib/rbi/model.rb:485 + # source://rbi//lib/rbi/model.rb#485 sig { returns(T::Boolean) } def is_singleton; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:485 + # source://rbi//lib/rbi/model.rb#485 def is_singleton=(_arg0); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:461 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#461 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:479 + # source://rbi//lib/rbi/model.rb#479 sig { returns(::String) } def name; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:479 + # source://rbi//lib/rbi/model.rb#479 def name=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:430 + # source://rbi//lib/rbi/printer.rb#430 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/model.rb:482 + # source://rbi//lib/rbi/model.rb#482 sig { returns(T::Array[::RBI::Param]) } def params; end - # source://rbi-0.0.15/lib/rbi/model.rb:491 + # source://rbi//lib/rbi/model.rb#491 sig { returns(T::Array[::RBI::Sig]) } def sigs; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/model.rb:491 + # source://rbi//lib/rbi/model.rb#491 def sigs=(_arg0); end - # source://rbi-0.0.15/lib/rbi/model.rb:539 + # source://rbi//lib/rbi/model.rb#539 sig { override.returns(::String) } def to_s; end - # source://rbi-0.0.15/lib/rbi/model.rb:488 + # source://rbi//lib/rbi/model.rb#488 sig { returns(::RBI::Visibility) } def visibility; end # @return [Visibility] # - # source://rbi-0.0.15/lib/rbi/model.rb:488 + # source://rbi//lib/rbi/model.rb#488 def visibility=(_arg0); end end -# source://rbi-0.0.15/lib/rbi/model.rb:1345 +# source://rbi//lib/rbi/model.rb#1345 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:1357 + # source://rbi//lib/rbi/model.rb#1357 sig do params( name: ::String, @@ -1089,15 +1089,15 @@ class RBI::MixesInClassMethods < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:501 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#501 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/index.rb:149 + # source://rbi//lib/rbi/index.rb#149 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:1363 + # source://rbi//lib/rbi/model.rb#1363 sig { override.returns(::String) } def to_s; end end @@ -1106,11 +1106,11 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:762 +# source://rbi//lib/rbi/model.rb#762 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:779 + # source://rbi//lib/rbi/model.rb#779 sig do params( name: ::String, @@ -1121,27 +1121,27 @@ class RBI::Mixin < ::RBI::NodeWithComments end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:556 + # source://rbi//lib/rbi/printer.rb#556 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:474 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#474 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:769 + # source://rbi//lib/rbi/model.rb#769 sig { returns(T::Array[::String]) } def names; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/model.rb:769 + # source://rbi//lib/rbi/model.rb#769 def names=(_arg0); end end -# source://rbi-0.0.15/lib/rbi/model.rb:186 +# source://rbi//lib/rbi/model.rb#186 class RBI::Module < ::RBI::Scope - # source://rbi-0.0.15/lib/rbi/model.rb:200 + # source://rbi//lib/rbi/model.rb#200 sig do params( name: ::String, @@ -1152,95 +1152,95 @@ class RBI::Module < ::RBI::Scope end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:379 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#379 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:207 + # source://rbi//lib/rbi/model.rb#207 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/model.rb:190 + # source://rbi//lib/rbi/model.rb#190 sig { returns(::String) } def name; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:190 + # source://rbi//lib/rbi/model.rb#190 def name=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:268 + # source://rbi//lib/rbi/printer.rb#268 sig { override.params(v: ::RBI::Printer).void } def print_header(v); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:5 +# source://rbi//lib/rbi/model.rb#5 class RBI::Node abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:18 + # source://rbi//lib/rbi/model.rb#18 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end # @abstract # - # source://rbi-0.0.15/lib/rbi/printer.rb:145 + # source://rbi//lib/rbi/printer.rb#145 sig { abstract.params(v: ::RBI::Printer).void } def accept_printer(v); end # Can `self` and `_other` be merged into a single definition? # - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:283 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#283 sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end - # source://rbi-0.0.15/lib/rbi/model.rb:24 + # source://rbi//lib/rbi/model.rb#24 sig { void } def detach; end - # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:48 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#48 sig { returns(::RBI::Group::Kind) } def group_kind; end - # source://rbi-0.0.15/lib/rbi/model.rb:15 + # source://rbi//lib/rbi/model.rb#15 sig { returns(T.nilable(::RBI::Loc)) } def loc; end # @return [Loc, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:15 + # source://rbi//lib/rbi/model.rb#15 def loc=(_arg0); end # Merge `self` and `other` into a single definition # - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:289 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 sig { params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:177 + # source://rbi//lib/rbi/printer.rb#177 sig { returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:292 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#292 sig { returns(T.nilable(::RBI::ConflictTree)) } def parent_conflict_tree; end - # source://rbi-0.0.15/lib/rbi/model.rb:43 + # source://rbi//lib/rbi/model.rb#43 sig { returns(T.nilable(::RBI::Scope)) } def parent_scope; end - # source://rbi-0.0.15/lib/rbi/model.rb:12 + # source://rbi//lib/rbi/model.rb#12 sig { returns(T.nilable(::RBI::Tree)) } def parent_tree; end # @return [Tree, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:12 + # source://rbi//lib/rbi/model.rb#12 def parent_tree=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:155 + # source://rbi//lib/rbi/printer.rb#155 sig do params( out: T.any(::IO, ::StringIO), @@ -1251,54 +1251,54 @@ class RBI::Node end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:168 + # source://rbi//lib/rbi/printer.rb#168 sig { params(v: ::RBI::Printer).void } def print_blank_line_before(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:32 + # source://rbi//lib/rbi/model.rb#32 sig { params(node: ::RBI::Node).void } def replace(node); end - # source://rbi-0.0.15/lib/rbi/printer.rb:161 + # source://rbi//lib/rbi/printer.rb#161 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:79 +# source://rbi//lib/rbi/model.rb#79 class RBI::NodeWithComments < ::RBI::Node abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:89 + # source://rbi//lib/rbi/model.rb#89 sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/model.rb:95 + # source://rbi//lib/rbi/model.rb#95 sig { returns(T::Array[::String]) } def annotations; end - # source://rbi-0.0.15/lib/rbi/model.rb:86 + # source://rbi//lib/rbi/model.rb#86 sig { returns(T::Array[::RBI::Comment]) } def comments; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/model.rb:86 + # source://rbi//lib/rbi/model.rb#86 def comments=(_arg0); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:306 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#306 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:186 + # source://rbi//lib/rbi/printer.rb#186 sig { override.returns(T::Boolean) } def oneline?; end end -# source://rbi-0.0.15/lib/rbi/model.rb:593 +# source://rbi//lib/rbi/model.rb#593 class RBI::OptParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:608 + # source://rbi//lib/rbi/model.rb#608 sig do params( name: ::String, @@ -1310,107 +1310,107 @@ class RBI::OptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:615 + # source://rbi//lib/rbi/model.rb#615 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:466 + # source://rbi//lib/rbi/printer.rb#466 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:471 + # source://rbi//lib/rbi/printer.rb#471 sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:597 + # source://rbi//lib/rbi/model.rb#597 sig { returns(::String) } def value; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:544 +# source://rbi//lib/rbi/model.rb#544 class RBI::Param < ::RBI::NodeWithComments abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:560 + # source://rbi//lib/rbi/model.rb#560 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:444 + # source://rbi//lib/rbi/printer.rb#444 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:457 + # source://rbi//lib/rbi/printer.rb#457 sig { returns(T::Array[::String]) } def comments_lines; end - # source://rbi-0.0.15/lib/rbi/model.rb:551 + # source://rbi//lib/rbi/model.rb#551 sig { returns(::String) } def name; end - # source://rbi-0.0.15/lib/rbi/printer.rb:449 + # source://rbi//lib/rbi/printer.rb#449 sig { params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:566 + # source://rbi//lib/rbi/model.rb#566 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/parser.rb:7 +# source://rbi//lib/rbi/parser.rb#7 class RBI::ParseError < ::StandardError - # source://rbi-0.0.15/lib/rbi/parser.rb:14 + # source://rbi//lib/rbi/parser.rb#14 sig { params(message: ::String, location: ::RBI::Loc).void } def initialize(message, location); end - # source://rbi-0.0.15/lib/rbi/parser.rb:11 + # source://rbi//lib/rbi/parser.rb#11 sig { returns(::RBI::Loc) } def location; end end -# source://rbi-0.0.15/lib/rbi/parser.rb:53 +# source://rbi//lib/rbi/parser.rb#53 class RBI::Parser - # source://rbi-0.0.15/lib/rbi/parser.rb:64 + # source://rbi//lib/rbi/parser.rb#64 sig { void } def initialize; end - # source://rbi-0.0.15/lib/rbi/parser.rb:97 + # source://rbi//lib/rbi/parser.rb#97 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # source://rbi-0.0.15/lib/rbi/parser.rb:86 + # source://rbi//lib/rbi/parser.rb#86 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end private - # source://rbi-0.0.15/lib/rbi/parser.rb:104 + # source://rbi//lib/rbi/parser.rb#104 sig { params(content: ::String, file: ::String).returns(::RBI::Tree) } def parse(content, file:); end class << self - # source://rbi-0.0.15/lib/rbi/parser.rb:75 + # source://rbi//lib/rbi/parser.rb#75 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # source://rbi-0.0.15/lib/rbi/parser.rb:80 + # source://rbi//lib/rbi/parser.rb#80 sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_files(paths); end - # source://rbi-0.0.15/lib/rbi/parser.rb:70 + # source://rbi//lib/rbi/parser.rb#70 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end - # source://rbi-0.0.15/lib/rbi/parser.rb:91 + # source://rbi//lib/rbi/parser.rb#91 sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_strings(strings); end end end -# source://rbi-0.0.15/lib/rbi/printer.rb:5 +# source://rbi//lib/rbi/printer.rb#5 class RBI::Printer < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/printer.rb:28 + # source://rbi//lib/rbi/printer.rb#28 sig do params( out: T.any(::IO, ::StringIO), @@ -1421,87 +1421,87 @@ class RBI::Printer < ::RBI::Visitor end def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:15 + # source://rbi//lib/rbi/printer.rb#15 sig { returns(::Integer) } def current_indent; end - # source://rbi-0.0.15/lib/rbi/printer.rb:46 + # source://rbi//lib/rbi/printer.rb#46 sig { void } def dedent; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/printer.rb:9 + # source://rbi//lib/rbi/printer.rb#9 def in_visibility_group; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/printer.rb:9 + # source://rbi//lib/rbi/printer.rb#9 def in_visibility_group=(_arg0); end # Printing # - # source://rbi-0.0.15/lib/rbi/printer.rb:41 + # source://rbi//lib/rbi/printer.rb#41 sig { void } def indent; end - # source://rbi-0.0.15/lib/rbi/printer.rb:18 + # source://rbi//lib/rbi/printer.rb#18 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # source://rbi-0.0.15/lib/rbi/printer.rb:12 + # source://rbi//lib/rbi/printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. # - # source://rbi-0.0.15/lib/rbi/printer.rb:52 + # source://rbi//lib/rbi/printer.rb#52 sig { params(string: ::String).void } def print(string); end - # source://rbi-0.0.15/lib/rbi/printer.rb:9 + # source://rbi//lib/rbi/printer.rb#9 sig { returns(T::Boolean) } def print_locs; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/printer.rb:9 + # source://rbi//lib/rbi/printer.rb#9 def print_locs=(_arg0); end # Print a string with indentation and `\n` at the end. # - # source://rbi-0.0.15/lib/rbi/printer.rb:72 + # source://rbi//lib/rbi/printer.rb#72 sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. # - # source://rbi-0.0.15/lib/rbi/printer.rb:58 + # source://rbi//lib/rbi/printer.rb#58 sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. # - # source://rbi-0.0.15/lib/rbi/printer.rb:65 + # source://rbi//lib/rbi/printer.rb#65 sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:83 + # source://rbi//lib/rbi/printer.rb#83 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi-0.0.15/lib/rbi/printer.rb:89 + # source://rbi//lib/rbi/printer.rb#89 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi-0.0.15/lib/rbi/printer.rb:78 + # source://rbi//lib/rbi/printer.rb#78 sig { params(file: ::RBI::File).void } def visit_file(file); end end -# source://rbi-0.0.15/lib/rbi/model.rb:901 +# source://rbi//lib/rbi/model.rb#901 class RBI::Private < ::RBI::Visibility - # source://rbi-0.0.15/lib/rbi/model.rb:911 + # source://rbi//lib/rbi/model.rb#911 sig do params( loc: T.nilable(::RBI::Loc), @@ -1512,9 +1512,9 @@ class RBI::Private < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi-0.0.15/lib/rbi/model.rb:885 +# source://rbi//lib/rbi/model.rb#885 class RBI::Protected < ::RBI::Visibility - # source://rbi-0.0.15/lib/rbi/model.rb:895 + # source://rbi//lib/rbi/model.rb#895 sig do params( loc: T.nilable(::RBI::Loc), @@ -1525,9 +1525,9 @@ class RBI::Protected < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi-0.0.15/lib/rbi/model.rb:869 +# source://rbi//lib/rbi/model.rb#869 class RBI::Public < ::RBI::Visibility - # source://rbi-0.0.15/lib/rbi/model.rb:879 + # source://rbi//lib/rbi/model.rb#879 sig do params( loc: T.nilable(::RBI::Loc), @@ -1538,9 +1538,9 @@ class RBI::Public < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi-0.0.15/lib/rbi/model.rb:571 +# source://rbi//lib/rbi/model.rb#571 class RBI::ReqParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:582 + # source://rbi//lib/rbi/model.rb#582 sig do params( name: ::String, @@ -1551,39 +1551,39 @@ class RBI::ReqParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:588 + # source://rbi//lib/rbi/model.rb#588 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end end -# source://rbi-0.0.15/lib/rbi/model.rb:1368 +# source://rbi//lib/rbi/model.rb#1368 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:1381 + # source://rbi//lib/rbi/model.rb#1381 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:868 + # source://rbi//lib/rbi/printer.rb#868 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/index.rb:159 + # source://rbi//lib/rbi/index.rb#159 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:1372 + # source://rbi//lib/rbi/model.rb#1372 sig { returns(::String) } def name; end - # source://rbi-0.0.15/lib/rbi/model.rb:1387 + # source://rbi//lib/rbi/model.rb#1387 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:620 +# source://rbi//lib/rbi/model.rb#620 class RBI::RestParam < ::RBI::Param - # source://rbi-0.0.15/lib/rbi/model.rb:631 + # source://rbi//lib/rbi/model.rb#631 sig do params( name: ::String, @@ -1594,92 +1594,92 @@ class RBI::RestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:642 + # source://rbi//lib/rbi/model.rb#642 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:481 + # source://rbi//lib/rbi/printer.rb#481 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:486 + # source://rbi//lib/rbi/printer.rb#486 sig { override.params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end - # source://rbi-0.0.15/lib/rbi/model.rb:637 + # source://rbi//lib/rbi/model.rb#637 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:5 +# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#5 module RBI::Rewriters; end -# source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:6 +# source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:10 + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#10 sig { params(with_todo_comment: T::Boolean).void } def initialize(with_todo_comment: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:16 + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#16 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:30 + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#30 sig { params(attr: ::RBI::Attr).void } def add_attr_sig(attr); end - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:45 + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#45 sig { params(method: ::RBI::Method).void } def add_method_sig(method); end - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:56 + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#56 sig { params(node: ::RBI::NodeWithComments).void } def add_todo_comment(node); end end -# source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:6 +# source://rbi//lib/rbi/rewriters/annotate.rb#6 class RBI::Rewriters::Annotate < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:10 + # source://rbi//lib/rbi/rewriters/annotate.rb#10 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:18 + # source://rbi//lib/rbi/rewriters/annotate.rb#18 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:31 + # source://rbi//lib/rbi/rewriters/annotate.rb#31 sig { params(node: ::RBI::NodeWithComments).void } def annotate_node(node); end - # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:37 + # source://rbi//lib/rbi/rewriters/annotate.rb#37 sig { params(node: ::RBI::Node).returns(T::Boolean) } def root?(node); end end -# source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:6 +# source://rbi//lib/rbi/rewriters/deannotate.rb#6 class RBI::Rewriters::Deannotate < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:10 + # source://rbi//lib/rbi/rewriters/deannotate.rb#10 sig { params(annotation: ::String).void } def initialize(annotation); end - # source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:16 + # source://rbi//lib/rbi/rewriters/deannotate.rb#16 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:27 + # source://rbi//lib/rbi/rewriters/deannotate.rb#27 sig { params(node: ::RBI::NodeWithComments).void } def deannotate_node(node); end end -# source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:6 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#6 class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:10 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#10 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end @@ -1718,22 +1718,22 @@ end # end # ~~~ # -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:39 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#39 class RBI::Rewriters::Merge - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:66 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#66 sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:75 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#75 sig { params(tree: ::RBI::Tree).void } def merge(tree); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:63 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#63 sig { returns(::RBI::MergeTree) } def tree; end class << self - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:51 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#51 sig do params( left: ::RBI::Tree, @@ -1749,19 +1749,19 @@ end # Used for logging / error displaying purpose # -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:82 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#82 class RBI::Rewriters::Merge::Conflict < ::T::Struct const :left, ::RBI::Node - const :left_name, ::String const :right, ::RBI::Node + const :left_name, ::String const :right_name, ::String - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:91 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#91 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end @@ -1797,24 +1797,24 @@ end # end # ~~~ # -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:241 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#241 class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:243 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#243 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:248 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#248 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:269 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#269 sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void } def merge_conflict_trees(left, right); end end -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:42 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#42 class RBI::Rewriters::Merge::Keep < ::T::Enum enums do NONE = new @@ -1823,9 +1823,9 @@ class RBI::Rewriters::Merge::Keep < ::T::Enum end end -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:96 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#96 class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:103 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#103 sig do params( output: ::RBI::Tree, @@ -1836,47 +1836,47 @@ class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor end def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:100 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#100 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:115 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#115 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:164 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#164 sig { returns(::RBI::Tree) } def current_scope; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:181 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#181 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } def make_conflict_scope(left, right); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:188 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#188 sig { params(left: ::RBI::Node, right: ::RBI::Node).void } def make_conflict_tree(left, right); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:169 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#169 sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } def previous_definition(node); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:200 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#200 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) } def replace_scope_header(left, right); end end -# source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:6 +# source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#6 class RBI::Rewriters::NestNonPublicMethods < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:10 + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#10 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end -# source://rbi-0.0.15/lib/rbi/rewriters/nest_singleton_methods.rb:6 +# source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/nest_singleton_methods.rb:10 + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#10 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end end @@ -1924,40 +1924,40 @@ end # OPERATIONS # ~~~ # -# source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:48 +# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48 class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:67 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#67 sig { params(index: ::RBI::Index).void } def initialize(index); end - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:64 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#64 sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } def operations; end - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:79 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#79 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:74 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#74 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:107 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#107 sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) } def can_delete_node?(node, previous); end - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:125 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#125 sig { params(node: ::RBI::Node, previous: ::RBI::Node).void } def delete_node(node, previous); end - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:98 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#98 sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) } def previous_definition_for(node); end class << self - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:57 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#57 sig do params( tree: ::RBI::Tree, @@ -1968,42 +1968,42 @@ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor end end -# source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:130 +# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#130 class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct const :deleted_node, ::RBI::Node const :duplicate_of, ::RBI::Node - # source://rbi-0.0.15/lib/rbi/rewriters/remove_known_definitions.rb:137 + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#137 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:6 +# source://rbi//lib/rbi/rewriters/sort_nodes.rb#6 class RBI::Rewriters::SortNodes < ::RBI::Visitor - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:10 + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#10 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:61 + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#61 sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } def group_rank(kind); end - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:82 + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#82 sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } def node_name(node); end - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:33 + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#33 sig { params(node: ::RBI::Node).returns(::Integer) } def node_rank(node); end - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:92 + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#94 sig { params(node: ::RBI::Node).void } def sort_node_names!(node); end end @@ -2012,46 +2012,46 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:172 +# source://rbi//lib/rbi/model.rb#172 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable abstract! - # source://sorbet-runtime-0.5.10346/lib/types/private/abstract/declare.rb:37 + # source://sorbet-runtime/0.5.10611/lib/types/private/abstract/declare.rb#37 def initialize(*args, &blk); end - # source://rbi-0.0.15/lib/rbi/printer.rb:240 + # source://rbi//lib/rbi/printer.rb#240 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end # Duplicate `self` scope without its body # - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:350 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#350 sig { returns(T.self_type) } def dup_empty; end # @abstract # - # source://rbi-0.0.15/lib/rbi/model.rb:178 + # source://rbi//lib/rbi/model.rb#178 sig { abstract.returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/index.rb:89 + # source://rbi//lib/rbi/index.rb#89 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/printer.rb:254 + # source://rbi//lib/rbi/printer.rb#254 sig { params(v: ::RBI::Printer).void } def print_body(v); end # @abstract # - # source://rbi-0.0.15/lib/rbi/printer.rb:251 + # source://rbi//lib/rbi/printer.rb#251 sig { abstract.params(v: ::RBI::Printer).void } def print_header(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:181 + # source://rbi//lib/rbi/model.rb#181 sig { override.returns(::String) } def to_s; end end @@ -2069,37 +2069,37 @@ end # end # ~~~ # -# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:617 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#617 class RBI::ScopeConflict < ::RBI::Tree - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:631 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#631 sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:640 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#640 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:621 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#621 sig { returns(::RBI::Scope) } def left; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:656 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#656 sig { override.returns(T::Boolean) } def oneline?; end # @return [Scope] # - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:621 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#621 def right; end end # Sends # -# source://rbi-0.0.15/lib/rbi/model.rb:919 +# source://rbi//lib/rbi/model.rb#919 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:937 + # source://rbi//lib/rbi/model.rb#937 sig do params( method: ::String, @@ -2111,44 +2111,44 @@ class RBI::Send < ::RBI::NodeWithComments end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:945 + # source://rbi//lib/rbi/model.rb#945 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # source://rbi-0.0.15/lib/rbi/model.rb:950 + # source://rbi//lib/rbi/model.rb#950 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:590 + # source://rbi//lib/rbi/printer.rb#590 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:926 + # source://rbi//lib/rbi/model.rb#926 sig { returns(T::Array[::RBI::Arg]) } def args; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:519 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/index.rb:179 + # source://rbi//lib/rbi/index.rb#179 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:923 + # source://rbi//lib/rbi/model.rb#923 sig { returns(::String) } def method; end - # source://rbi-0.0.15/lib/rbi/model.rb:955 + # source://rbi//lib/rbi/model.rb#955 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# source://rbi-0.0.15/lib/rbi/model.rb:1019 +# source://rbi//lib/rbi/model.rb#1019 class RBI::Sig < ::RBI::Node - # source://rbi-0.0.15/lib/rbi/model.rb:1051 + # source://rbi//lib/rbi/model.rb#1051 sig do params( params: T::Array[::RBI::SigParam], @@ -2165,139 +2165,139 @@ class RBI::Sig < ::RBI::Node end def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:1076 + # source://rbi//lib/rbi/model.rb#1076 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # source://rbi-0.0.15/lib/rbi/model.rb:1081 + # source://rbi//lib/rbi/model.rb#1081 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:631 + # source://rbi//lib/rbi/printer.rb#631 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:1035 + # source://rbi//lib/rbi/model.rb#1035 sig { returns(T.nilable(::Symbol)) } def checked; end # @return [Symbol, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:1035 + # source://rbi//lib/rbi/model.rb#1035 def checked=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:654 + # source://rbi//lib/rbi/printer.rb#654 sig { returns(T::Boolean) } def inline_params?; end - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 sig { returns(T::Boolean) } def is_abstract; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_abstract=(_arg0); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_final; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_final=(_arg0); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_overridable; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_overridable=(_arg0); end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_override; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:1029 + # source://rbi//lib/rbi/model.rb#1029 def is_override=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:649 + # source://rbi//lib/rbi/printer.rb#649 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/model.rb:1023 + # source://rbi//lib/rbi/model.rb#1023 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # source://rbi-0.0.15/lib/rbi/model.rb:1026 + # source://rbi//lib/rbi/model.rb#1026 sig { returns(T.nilable(::String)) } def return_type; end # @return [String, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:1026 + # source://rbi//lib/rbi/model.rb#1026 def return_type=(_arg0); end - # source://rbi-0.0.15/lib/rbi/model.rb:1032 + # source://rbi//lib/rbi/model.rb#1032 sig { returns(T::Array[::String]) } def type_params; end private - # source://rbi-0.0.15/lib/rbi/printer.rb:696 + # source://rbi//lib/rbi/printer.rb#696 sig { params(v: ::RBI::Printer).void } def print_as_block(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:672 + # source://rbi//lib/rbi/printer.rb#672 sig { params(v: ::RBI::Printer).void } def print_as_line(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:661 + # source://rbi//lib/rbi/printer.rb#661 sig { returns(T::Array[::String]) } def sig_modifiers; end end -# source://rbi-0.0.15/lib/rbi/parser.rb:635 +# source://rbi//lib/rbi/parser.rb#635 class RBI::SigBuilder < ::RBI::ASTVisitor - # source://rbi-0.0.15/lib/rbi/parser.rb:649 + # source://rbi//lib/rbi/parser.rb#649 sig { void } def initialize; end - # source://rbi-0.0.15/lib/rbi/parser.rb:646 + # source://rbi//lib/rbi/parser.rb#646 sig { returns(::RBI::Sig) } def current; end # @return [Sig] # - # source://rbi-0.0.15/lib/rbi/parser.rb:646 + # source://rbi//lib/rbi/parser.rb#646 def current=(_arg0); end - # source://rbi-0.0.15/lib/rbi/parser.rb:655 + # source://rbi//lib/rbi/parser.rb#655 sig { override.params(node: T.nilable(::AST::Node)).void } def visit(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:664 + # source://rbi//lib/rbi/parser.rb#664 sig { params(node: ::AST::Node).void } def visit_send(node); end class << self - # source://rbi-0.0.15/lib/rbi/parser.rb:639 + # source://rbi//lib/rbi/parser.rb#639 sig { params(node: ::AST::Node).returns(::RBI::Sig) } def build(node); end end end -# source://rbi-0.0.15/lib/rbi/model.rb:1089 +# source://rbi//lib/rbi/model.rb#1089 class RBI::SigParam < ::RBI::NodeWithComments - # source://rbi-0.0.15/lib/rbi/model.rb:1104 + # source://rbi//lib/rbi/model.rb#1104 sig do params( name: ::String, @@ -2309,35 +2309,35 @@ class RBI::SigParam < ::RBI::NodeWithComments end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:1112 + # source://rbi//lib/rbi/model.rb#1112 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:749 + # source://rbi//lib/rbi/printer.rb#749 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:762 + # source://rbi//lib/rbi/printer.rb#762 sig { returns(T::Array[::String]) } def comments_lines; end - # source://rbi-0.0.15/lib/rbi/model.rb:1093 + # source://rbi//lib/rbi/model.rb#1093 sig { returns(::String) } def name; end - # source://rbi-0.0.15/lib/rbi/printer.rb:754 + # source://rbi//lib/rbi/printer.rb#754 sig { params(v: ::RBI::Printer, last: T::Boolean).void } def print_comment_leading_space(v, last:); end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:1093 + # source://rbi//lib/rbi/model.rb#1093 def type; end end -# source://rbi-0.0.15/lib/rbi/model.rb:245 +# source://rbi//lib/rbi/model.rb#245 class RBI::SingletonClass < ::RBI::Scope - # source://rbi-0.0.15/lib/rbi/model.rb:255 + # source://rbi//lib/rbi/model.rb#255 sig do params( loc: T.nilable(::RBI::Loc), @@ -2347,18 +2347,18 @@ class RBI::SingletonClass < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:261 + # source://rbi//lib/rbi/model.rb#261 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/printer.rb:319 + # source://rbi//lib/rbi/printer.rb#319 sig { override.params(v: ::RBI::Printer).void } def print_header(v); end end -# source://rbi-0.0.15/lib/rbi/model.rb:266 +# source://rbi//lib/rbi/model.rb#266 class RBI::Struct < ::RBI::Scope - # source://rbi-0.0.15/lib/rbi/model.rb:288 + # source://rbi//lib/rbi/model.rb#288 sig do params( name: ::String, @@ -2371,51 +2371,51 @@ class RBI::Struct < ::RBI::Scope end def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:388 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#388 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:297 + # source://rbi//lib/rbi/model.rb#297 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/model.rb:276 + # source://rbi//lib/rbi/model.rb#276 sig { returns(T::Boolean) } def keyword_init; end # @return [Boolean] # - # source://rbi-0.0.15/lib/rbi/model.rb:276 + # source://rbi//lib/rbi/model.rb#276 def keyword_init=(_arg0); end - # source://rbi-0.0.15/lib/rbi/model.rb:273 + # source://rbi//lib/rbi/model.rb#273 sig { returns(T::Array[::Symbol]) } def members; end # @return [Array] # - # source://rbi-0.0.15/lib/rbi/model.rb:273 + # source://rbi//lib/rbi/model.rb#273 def members=(_arg0); end - # source://rbi-0.0.15/lib/rbi/model.rb:270 + # source://rbi//lib/rbi/model.rb#270 sig { returns(::String) } def name; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:270 + # source://rbi//lib/rbi/model.rb#270 def name=(_arg0); end - # source://rbi-0.0.15/lib/rbi/printer.rb:298 + # source://rbi//lib/rbi/printer.rb#298 sig { override.params(v: ::RBI::Printer).void } def print_header(v); end end # Sorbet's T::Enum # -# source://rbi-0.0.15/lib/rbi/model.rb:1230 +# source://rbi//lib/rbi/model.rb#1230 class RBI::TEnum < ::RBI::Class - # source://rbi-0.0.15/lib/rbi/model.rb:1241 + # source://rbi//lib/rbi/model.rb#1241 sig do params( name: ::String, @@ -2427,11 +2427,11 @@ class RBI::TEnum < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi-0.0.15/lib/rbi/model.rb:1247 +# source://rbi//lib/rbi/model.rb#1247 class RBI::TEnumBlock < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:1261 + # source://rbi//lib/rbi/model.rb#1261 sig do params( names: T::Array[::String], @@ -2442,40 +2442,40 @@ class RBI::TEnumBlock < ::RBI::NodeWithComments end def initialize(names = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:1273 + # source://rbi//lib/rbi/model.rb#1273 sig { params(name: ::String).void } def <<(name); end - # source://rbi-0.0.15/lib/rbi/printer.rb:793 + # source://rbi//lib/rbi/printer.rb#793 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:1268 + # source://rbi//lib/rbi/model.rb#1268 sig { returns(T::Boolean) } def empty?; end - # source://rbi-0.0.15/lib/rbi/index.rb:209 + # source://rbi//lib/rbi/index.rb#209 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:546 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#546 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:1251 + # source://rbi//lib/rbi/model.rb#1251 sig { returns(T::Array[::String]) } def names; end - # source://rbi-0.0.15/lib/rbi/model.rb:1278 + # source://rbi//lib/rbi/model.rb#1278 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# source://rbi-0.0.15/lib/rbi/model.rb:1119 +# source://rbi//lib/rbi/model.rb#1119 class RBI::TStruct < ::RBI::Class - # source://rbi-0.0.15/lib/rbi/model.rb:1130 + # source://rbi//lib/rbi/model.rb#1130 sig do params( name: ::String, @@ -2487,11 +2487,11 @@ class RBI::TStruct < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi-0.0.15/lib/rbi/model.rb:1168 +# source://rbi//lib/rbi/model.rb#1168 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:1181 + # source://rbi//lib/rbi/model.rb#1181 sig do params( name: ::String, @@ -2504,30 +2504,30 @@ class RBI::TStructConst < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:537 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#537 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:1187 + # source://rbi//lib/rbi/model.rb#1187 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/index.rb:189 + # source://rbi//lib/rbi/index.rb#189 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:1193 + # source://rbi//lib/rbi/model.rb#1193 sig { override.returns(::String) } def to_s; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:1136 +# source://rbi//lib/rbi/model.rb#1136 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:1157 + # source://rbi//lib/rbi/model.rb#1157 sig do params( name: ::String, @@ -2539,54 +2539,54 @@ class RBI::TStructField < ::RBI::NodeWithComments end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/printer.rb:771 + # source://rbi//lib/rbi/printer.rb#771 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:528 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#528 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:1146 + # source://rbi//lib/rbi/model.rb#1146 sig { returns(T.nilable(::String)) } def default; end # @return [String, nil] # - # source://rbi-0.0.15/lib/rbi/model.rb:1146 + # source://rbi//lib/rbi/model.rb#1146 def default=(_arg0); end # @abstract # - # source://rbi-0.0.15/lib/rbi/model.rb:1165 + # source://rbi//lib/rbi/model.rb#1165 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/model.rb:1143 + # source://rbi//lib/rbi/model.rb#1143 sig { returns(::String) } def name; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:1143 + # source://rbi//lib/rbi/model.rb#1143 def name=(_arg0); end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:1143 + # source://rbi//lib/rbi/model.rb#1143 def type; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:1143 + # source://rbi//lib/rbi/model.rb#1143 def type=(_arg0); end end -# source://rbi-0.0.15/lib/rbi/model.rb:1198 +# source://rbi//lib/rbi/model.rb#1198 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # source://rbi-0.0.15/lib/rbi/model.rb:1211 + # source://rbi//lib/rbi/model.rb#1211 sig do params( name: ::String, @@ -2599,26 +2599,26 @@ class RBI::TStructProp < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:559 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#559 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi-0.0.15/lib/rbi/model.rb:1217 + # source://rbi//lib/rbi/model.rb#1217 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi-0.0.15/lib/rbi/index.rb:199 + # source://rbi//lib/rbi/index.rb#199 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi-0.0.15/lib/rbi/model.rb:1223 + # source://rbi//lib/rbi/model.rb#1223 sig { override.returns(::String) } def to_s; end end -# source://rbi-0.0.15/lib/rbi/model.rb:102 +# source://rbi//lib/rbi/model.rb#102 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi-0.0.15/lib/rbi/model.rb:115 + # source://rbi//lib/rbi/model.rb#115 sig do params( loc: T.nilable(::RBI::Loc), @@ -2628,23 +2628,23 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:122 + # source://rbi//lib/rbi/model.rb#122 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi-0.0.15/lib/rbi/printer.rb:224 + # source://rbi//lib/rbi/printer.rb#224 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:66 + # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#66 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:48 + # source://rbi//lib/rbi/rewriters/annotate.rb#48 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:38 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -2654,43 +2654,44 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:45 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:55 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:50 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:88 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#89 sig do params( name: ::String, parameters: T::Array[::RBI::TypedParam], return_type: ::String, class_method: T::Boolean, - visibility: ::RBI::Visibility + visibility: ::RBI::Visibility, + comments: T::Array[::RBI::Comment] ).void end - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:60 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:25 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#25 sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_module(name, &block); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:9 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#9 sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).void } def create_path(constant, &block); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:74 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -2703,23 +2704,23 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:40 + # source://rbi//lib/rbi/rewriters/deannotate.rb#40 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi-0.0.15/lib/rbi/model.rb:128 + # source://rbi//lib/rbi/model.rb#128 sig { returns(T::Boolean) } def empty?; end - # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:38 + # source://rbi//lib/rbi/rewriters/group_nodes.rb#38 sig { void } def group_nodes!; end - # source://rbi-0.0.15/lib/rbi/index.rb:64 + # source://rbi//lib/rbi/index.rb#64 sig { returns(::RBI::Index) } def index; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:318 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#318 sig do params( other: ::RBI::Tree, @@ -2730,40 +2731,40 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:45 + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#45 sig { void } def nest_non_public_methods!; end - # source://rbi-0.0.15/lib/rbi/rewriters/nest_singleton_methods.rb:35 + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#35 sig { void } def nest_singleton_methods!; end - # source://rbi-0.0.15/lib/rbi/model.rb:106 + # source://rbi//lib/rbi/model.rb#106 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi-0.0.15/lib/rbi/printer.rb:231 + # source://rbi//lib/rbi/printer.rb#231 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:105 + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#107 sig { void } def sort_nodes!; end private - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:108 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#116 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:103 + # source://tapioca/0.10.5/lib/tapioca/rbi_ext/model.rb#111 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://rbi-0.0.15/lib/rbi/parser.rb:156 +# source://rbi//lib/rbi/parser.rb#156 class RBI::TreeBuilder < ::RBI::ASTVisitor - # source://rbi-0.0.15/lib/rbi/parser.rb:172 + # source://rbi//lib/rbi/parser.rb#172 sig do params( file: ::String, @@ -2773,112 +2774,112 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor end def initialize(file:, comments: T.unsafe(nil), nodes_comments_assoc: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/parser.rb:163 + # source://rbi//lib/rbi/parser.rb#163 sig { returns(T.nilable(::AST::Node)) } def last_node; end - # source://rbi-0.0.15/lib/rbi/parser.rb:187 + # source://rbi//lib/rbi/parser.rb#187 sig { void } def post_process; end - # source://rbi-0.0.15/lib/rbi/parser.rb:160 + # source://rbi//lib/rbi/parser.rb#160 sig { returns(::RBI::Tree) } def tree; end - # source://rbi-0.0.15/lib/rbi/parser.rb:193 + # source://rbi//lib/rbi/parser.rb#193 sig { override.params(node: T.nilable(::Object)).void } def visit(node); end private - # source://rbi-0.0.15/lib/rbi/parser.rb:546 + # source://rbi//lib/rbi/parser.rb#546 sig { void } def assoc_dangling_comments; end - # source://rbi-0.0.15/lib/rbi/parser.rb:527 + # source://rbi//lib/rbi/parser.rb#527 sig { returns(::RBI::Tree) } def current_scope; end - # source://rbi-0.0.15/lib/rbi/parser.rb:532 + # source://rbi//lib/rbi/parser.rb#532 sig { returns(T::Array[::RBI::Sig]) } def current_sigs; end - # source://rbi-0.0.15/lib/rbi/parser.rb:539 + # source://rbi//lib/rbi/parser.rb#539 sig { returns(T::Array[::RBI::Comment]) } def current_sigs_comments; end - # source://rbi-0.0.15/lib/rbi/parser.rb:516 + # source://rbi//lib/rbi/parser.rb#516 sig { params(node: ::AST::Node).returns(T::Array[::RBI::Comment]) } def node_comments(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:511 + # source://rbi//lib/rbi/parser.rb#511 sig { params(node: ::AST::Node).returns(::RBI::Loc) } def node_loc(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:402 + # source://rbi//lib/rbi/parser.rb#402 sig { params(node: ::AST::Node).returns(T.nilable(::RBI::Node)) } def parse_block(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:249 + # source://rbi//lib/rbi/parser.rb#249 sig { params(node: ::AST::Node).returns(::RBI::Node) } def parse_const_assign(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:263 + # source://rbi//lib/rbi/parser.rb#263 sig { params(node: ::AST::Node).returns(::RBI::Method) } def parse_def(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:486 + # source://rbi//lib/rbi/parser.rb#486 sig { params(node: ::AST::Node).returns(::RBI::TEnumBlock) } def parse_enum(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:290 + # source://rbi//lib/rbi/parser.rb#290 sig { params(node: ::AST::Node).returns(::RBI::Param) } def parse_param(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:503 + # source://rbi//lib/rbi/parser.rb#503 sig { params(node: ::AST::Node).returns(::RBI::RequiresAncestor) } def parse_requires_ancestor(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:229 + # source://rbi//lib/rbi/parser.rb#229 sig { params(node: ::AST::Node).returns(::RBI::Scope) } def parse_scope(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:318 + # source://rbi//lib/rbi/parser.rb#318 sig { params(node: ::AST::Node).returns(T.nilable(::RBI::Node)) } def parse_send(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:385 + # source://rbi//lib/rbi/parser.rb#385 sig { params(node: ::AST::Node).returns(T::Array[::RBI::Arg]) } def parse_send_args(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:479 + # source://rbi//lib/rbi/parser.rb#479 sig { params(node: ::AST::Node).returns(::RBI::Sig) } def parse_sig(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:424 + # source://rbi//lib/rbi/parser.rb#424 sig { params(node: ::AST::Node).returns(::RBI::Struct) } def parse_struct(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:463 + # source://rbi//lib/rbi/parser.rb#463 sig { params(node: ::AST::Node).returns([::String, ::String, T.nilable(::String)]) } def parse_tstruct_prop(node); end - # source://rbi-0.0.15/lib/rbi/parser.rb:564 + # source://rbi//lib/rbi/parser.rb#564 sig { void } def separate_header_comments; end - # source://rbi-0.0.15/lib/rbi/parser.rb:586 + # source://rbi//lib/rbi/parser.rb#586 sig { void } def set_root_tree_loc; end - # source://rbi-0.0.15/lib/rbi/parser.rb:418 + # source://rbi//lib/rbi/parser.rb#418 sig { params(node: ::AST::Node).returns(T::Boolean) } def struct_definition?(node); end end -# source://rbi-0.0.15/lib/rbi/model.rb:1311 +# source://rbi//lib/rbi/model.rb#1311 class RBI::TypeMember < ::RBI::NodeWithComments - # source://rbi-0.0.15/lib/rbi/model.rb:1326 + # source://rbi//lib/rbi/model.rb#1326 sig do params( name: ::String, @@ -2890,118 +2891,118 @@ class RBI::TypeMember < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/printer.rb:810 + # source://rbi//lib/rbi/printer.rb#810 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:1334 + # source://rbi//lib/rbi/model.rb#1334 sig { returns(::String) } def fully_qualified_name; end - # source://rbi-0.0.15/lib/rbi/model.rb:1315 + # source://rbi//lib/rbi/model.rb#1315 sig { returns(::String) } def name; end - # source://rbi-0.0.15/lib/rbi/model.rb:1340 + # source://rbi//lib/rbi/model.rb#1340 sig { override.returns(::String) } def to_s; end # @return [String] # - # source://rbi-0.0.15/lib/rbi/model.rb:1315 + # source://rbi//lib/rbi/model.rb#1315 def value; end end -# source://rbi-0.0.15/lib/rbi/parser.rb:20 +# source://rbi//lib/rbi/parser.rb#20 class RBI::UnexpectedParserError < ::StandardError - # source://rbi-0.0.15/lib/rbi/parser.rb:27 + # source://rbi//lib/rbi/parser.rb#27 sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } def initialize(parent_exception, last_location); end - # source://rbi-0.0.15/lib/rbi/parser.rb:24 + # source://rbi//lib/rbi/parser.rb#24 sig { returns(::RBI::Loc) } def last_location; end - # source://rbi-0.0.15/lib/rbi/parser.rb:34 + # source://rbi//lib/rbi/parser.rb#34 sig { params(io: T.any(::IO, ::StringIO)).void } def print_debug(io: T.unsafe(nil)); end end -# source://rbi-0.0.15/lib/rbi/version.rb:5 +# source://rbi//lib/rbi/version.rb#5 RBI::VERSION = T.let(T.unsafe(nil), String) # Visibility # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/model.rb:833 +# source://rbi//lib/rbi/model.rb#833 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # source://rbi-0.0.15/lib/rbi/model.rb:843 + # source://rbi//lib/rbi/model.rb#843 sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/model.rb:849 + # source://rbi//lib/rbi/model.rb#849 sig { params(other: ::RBI::Visibility).returns(T::Boolean) } def ==(other); end - # source://rbi-0.0.15/lib/rbi/printer.rb:577 + # source://rbi//lib/rbi/printer.rb#577 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/model.rb:864 + # source://rbi//lib/rbi/model.rb#864 sig { returns(T::Boolean) } def private?; end - # source://rbi-0.0.15/lib/rbi/model.rb:859 + # source://rbi//lib/rbi/model.rb#859 sig { returns(T::Boolean) } def protected?; end - # source://rbi-0.0.15/lib/rbi/model.rb:854 + # source://rbi//lib/rbi/model.rb#854 sig { returns(T::Boolean) } def public?; end - # source://rbi-0.0.15/lib/rbi/model.rb:840 + # source://rbi//lib/rbi/model.rb#840 sig { returns(::Symbol) } def visibility; end end -# source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:51 +# source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#51 class RBI::VisibilityGroup < ::RBI::Tree - # source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:58 + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#58 sig { params(visibility: ::RBI::Visibility).void } def initialize(visibility); end - # source://rbi-0.0.15/lib/rbi/printer.rb:846 + # source://rbi//lib/rbi/printer.rb#846 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/printer.rb:859 + # source://rbi//lib/rbi/printer.rb#859 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:55 + # source://rbi//lib/rbi/rewriters/nest_non_public_methods.rb#55 sig { returns(::RBI::Visibility) } def visibility; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi-0.0.15/lib/rbi/visitor.rb:5 +# source://rbi//lib/rbi/visitor.rb#5 class RBI::Visitor abstract! - # source://sorbet-runtime-0.5.10346/lib/types/private/abstract/declare.rb:37 + # source://sorbet-runtime/0.5.10611/lib/types/private/abstract/declare.rb#37 def initialize(*args, &blk); end # @abstract # - # source://rbi-0.0.15/lib/rbi/visitor.rb:12 + # source://rbi//lib/rbi/visitor.rb#12 sig { abstract.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi-0.0.15/lib/rbi/visitor.rb:15 + # source://rbi//lib/rbi/visitor.rb#15 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end end diff --git a/sorbet/rbi/gems/regexp_parser@2.5.0.rbi b/sorbet/rbi/gems/regexp_parser@2.5.0.rbi deleted file mode 100644 index df5208c2..00000000 --- a/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +++ /dev/null @@ -1,3383 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `regexp_parser` gem. -# Please instead update this file by running `bin/tapioca gem regexp_parser`. - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:1 -module Regexp::Expression; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/alternation.rb:5 -class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:5 - def alternatives; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:127 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/alternation.rb:6 -Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative - -# A sequence of expressions, used by Alternation as one of its alternative. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/alternation.rb:3 -class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:2 -module Regexp::Expression::Anchor; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:18 -Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:20 -Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:3 -class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:144 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:5 -class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:8 -class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:19 -Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:21 -Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:22 -Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:6 -class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:9 -class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:11 -class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:16 -class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:14 -class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/anchor.rb:13 -class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:76 -module Regexp::Expression::Assertion; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:77 -class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:144 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:79 -class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:82 -class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:80 -class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:83 -class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base; end - -# TODO: unify name with token :backref, one way or the other, in v3.0.0 -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:3 -module Regexp::Expression::Backreference; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:4 -class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:151 - def match_length; end - - # Returns the value of attribute referenced_expression. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:5 - def referenced_expression; end - - # Sets the attribute referenced_expression - # - # @param value the value to set the attribute referenced_expression to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:5 - def referenced_expression=(_arg0); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:7 - def initialize_copy(orig); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:23 -class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base - # @return [Name] a new instance of Name - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:27 - def initialize(token, options = T.unsafe(nil)); end - - # Returns the value of attribute name. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:24 - def name; end - - # Returns the value of attribute name. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:24 - def reference; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:39 -class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:51 -class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name - # @return [NameRecursionLevel] a new instance of NameRecursionLevel - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:54 - def initialize(token, options = T.unsafe(nil)); end - - # Returns the value of attribute recursion_level. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:52 - def recursion_level; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:13 -class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base - # @return [Number] a new instance of Number - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:17 - def initialize(token, options = T.unsafe(nil)); end - - # Returns the value of attribute number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:14 - def number; end - - # Returns the value of attribute number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:14 - def reference; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:38 -class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:40 -class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:42 -class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::Number - # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:45 - def initialize(token, options = T.unsafe(nil)); end - - # Returns the value of attribute recursion_level. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:43 - def recursion_level; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:33 -class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number - # Returns the value of attribute effective_number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:34 - def effective_number; end - - # Sets the attribute effective_number - # - # @param value the value to set the attribute effective_number to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:34 - def effective_number=(_arg0); end - - # Returns the value of attribute effective_number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/backreference.rb:34 - def reference; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:2 -class Regexp::Expression::Base - include ::Regexp::Expression::Shared - extend ::Regexp::Expression::Shared::ClassMethods - - # @return [Base] a new instance of Base - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:5 - def initialize(token, options = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match.rb:8 - def =~(string, offset = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:25 - def a?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:25 - def ascii_classes?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:59 - def attributes; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:8 - def case_insensitive?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def conditional_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def conditional_level=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:20 - def d?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:20 - def default_classes?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:14 - def extended?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:14 - def free_spacing?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:46 - def greedy?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:8 - def i?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:8 - def ignore_case?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:50 - def lazy?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def level=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:3 - def m?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match.rb:8 - def match(string, offset = T.unsafe(nil)); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match.rb:3 - def match?(string); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match.rb:3 - def matches?(string); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:3 - def multiline?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:13 - def nesting_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def options; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def options=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:55 - def possessive?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def quantifier; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def quantifier=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:20 - def quantify(*args); end - - # Deprecated. Prefer `#repetitions` which has a more uniform interface. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:29 - def quantity; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:50 - def reluctant?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:34 - def repetitions; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def set_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def set_level=(_arg0); end - - # %l Level (depth) of the expression. Returns 'root' for the root - # expression, returns zero or higher for all others. - # - # %> Indentation at expression's level. - # - # %x Index of the expression at its depth. Available when using - # the sprintf_tree method only. - # - # %s Start offset within the whole expression. - # %e End offset within the whole expression. - # %S Length of expression. - # - # %o Coded offset and length, same as '@%s+%S' - # - # %y Type of expression. - # %k Token of expression. - # %i ID, same as '%y:%k' - # %c Class name - # - # %q Quantifier info, as {m[,M]} - # %Q Quantifier text - # - # %z Quantifier min - # %Z Quantifier max - # - # %t Base text of the expression (excludes quantifier, if any) - # %~t Full text if the expression is terminal, otherwise %i - # %T Full text of the expression (includes quantifier, if any) - # - # %b Basic info, same as '%o %i' - # %m Most info, same as '%b %q' - # %a All info, same as '%m %t' - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/strfregexp.rb:37 - def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end - - # %l Level (depth) of the expression. Returns 'root' for the root - # expression, returns zero or higher for all others. - # - # %> Indentation at expression's level. - # - # %x Index of the expression at its depth. Available when using - # the sprintf_tree method only. - # - # %s Start offset within the whole expression. - # %e End offset within the whole expression. - # %S Length of expression. - # - # %o Coded offset and length, same as '@%s+%S' - # - # %y Type of expression. - # %k Token of expression. - # %i ID, same as '%y:%k' - # %c Class name - # - # %q Quantifier info, as {m[,M]} - # %Q Quantifier text - # - # %z Quantifier min - # %Z Quantifier max - # - # %t Base text of the expression (excludes quantifier, if any) - # %~t Full text if the expression is terminal, otherwise %i - # %T Full text of the expression (includes quantifier, if any) - # - # %b Basic info, same as '%o %i' - # %m Most info, same as '%b %q' - # %a All info, same as '%m %t' - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/strfregexp.rb:37 - def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def te; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def te=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def text; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def text=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:59 - def to_h; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:16 - def to_re(format = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def token; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def token=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def ts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def ts=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def type; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def type=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:30 - def u?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:30 - def unicode_classes?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:24 - def unquantified_clone; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/options.rb:14 - def x?; end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/base.rb:9 - def initialize_copy(orig); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:2 -class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression - # @return [CharacterSet] a new instance of CharacterSet - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:9 - def initialize(token, options = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:19 - def close; end - - # Returns the value of attribute closed. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def closed; end - - # Sets the attribute closed - # - # @param value the value to set the attribute closed to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def closed=(_arg0); end - - # Returns the value of attribute closed. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def closed?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:15 - def negate; end - - # Returns the value of attribute negative. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def negated?; end - - # Returns the value of attribute negative. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def negative; end - - # Sets the attribute negative - # - # @param value the value to set the attribute negative to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def negative=(_arg0); end - - # Returns the value of attribute negative. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:3 - def negative?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set.rb:23 - def parts; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/intersection.rb:3 -class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/intersection.rb:5 -class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/intersection.rb:6 -Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/range.rb:3 -class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/range.rb:9 - def <<(exp); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/range.rb:15 - def complete?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/range.rb:19 - def parts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/range.rb:4 - def starts_at; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_set/range.rb:4 - def ts; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:2 -module Regexp::Expression::CharacterType; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:5 -class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:3 -class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:6 -class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:15 -class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:8 -class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:14 -class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:7 -class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:9 -class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:13 -class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:11 -class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:12 -class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/character_type.rb:10 -class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/free_space.rb:8 -class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:2 -module Regexp::Expression::Conditional; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:25 -class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:9 -class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:144 - def match_length; end - - # Name or number of the referenced capturing group that determines state. - # Returns a String if reference is by name, Integer if by number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:14 - def reference; end - - # Returns the value of attribute referenced_expression. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:10 - def referenced_expression; end - - # Sets the attribute referenced_expression - # - # @param value the value to set the attribute referenced_expression to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:10 - def referenced_expression=(_arg0); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:19 - def initialize_copy(orig); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:27 -class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:30 - def <<(exp); end - - # @raise [TooManyBranches] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:34 - def add_sequence(active_opts = T.unsafe(nil)); end - - # @raise [TooManyBranches] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:34 - def branch(active_opts = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:50 - def branches; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:46 - def condition; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:41 - def condition=(exp); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:127 - def match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:58 - def parts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:54 - def reference; end - - # Returns the value of attribute referenced_expression. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:28 - def referenced_expression; end - - # Sets the attribute referenced_expression - # - # @param value the value to set the attribute referenced_expression to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:28 - def referenced_expression=(_arg0); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:62 - def initialize_copy(orig); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:3 -class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error - # @return [TooManyBranches] a new instance of TooManyBranches - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/conditional.rb:4 - def initialize; end -end - -# TODO: unify naming with Token::Escape, on way or the other, in v3.0.0 -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:3 -module Regexp::Expression::EscapeSequence; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:64 -class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:65 - def char; end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:71 - def control_sequence_to_s(control_sequence); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:76 - def meta_char_to_codepoint(meta_char); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:28 -class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:29 -class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:4 -class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:10 - def char; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:5 - def codepoint; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:30 -class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:38 -class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:40 -class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base - # @raise [NoMethodError] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:41 - def char; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:49 - def chars; end - - # @raise [NoMethodError] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:45 - def codepoint; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:53 - def codepoints; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:160 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:82 -class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:83 - def codepoint; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:31 -class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:37 -class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:22 -class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:23 - def char; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:88 -class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:89 - def codepoint; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:94 -class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:95 - def codepoint; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:32 -class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:58 -class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:59 - def char; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:33 -class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:34 -class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/escape_sequence.rb:35 -class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/free_space.rb:2 -class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:144 - def match_length; end - - # @raise [Regexp::Parser::Error] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/free_space.rb:3 - def quantify(*_args); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:2 -module Regexp::Expression::Group; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:34 -class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:168 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:35 -class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:3 -class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:8 - def capturing?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:10 - def comment?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:4 - def parts; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:45 -class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:49 - def capturing?; end - - # Returns the value of attribute number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:46 - def identifier; end - - # Returns the value of attribute number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:46 - def number; end - - # Sets the attribute number - # - # @param value the value to set the attribute number to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:46 - def number=(_arg0); end - - # Returns the value of attribute number_at_level. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:46 - def number_at_level; end - - # Sets the attribute number_at_level - # - # @param value the value to set the attribute number_at_level to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:46 - def number_at_level=(_arg0); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:67 -class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:72 - def comment?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:68 - def parts; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:52 -class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture - # @return [Named] a new instance of Named - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:56 - def initialize(token, options = T.unsafe(nil)); end - - # Returns the value of attribute name. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:53 - def identifier; end - - # Returns the value of attribute name. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:53 - def name; end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:61 - def initialize_copy(orig); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:36 -class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base - # Returns the value of attribute option_changes. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:37 - def option_changes; end - - # Sets the attribute option_changes - # - # @param value the value to set the attribute option_changes to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:37 - def option_changes=(_arg0); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:39 - def initialize_copy(orig); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:13 -class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base - # @return [Passive] a new instance of Passive - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:16 - def initialize(*_arg0); end - - # Sets the attribute implicit - # - # @param value the value to set the attribute implicit to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:14 - def implicit=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:29 - def implicit?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/group.rb:21 - def parts; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/keep.rb:2 -module Regexp::Expression::Keep; end - -# TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression -# that contains all expressions to its left. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/keep.rb:5 -class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:144 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/literal.rb:2 -class Regexp::Expression::Literal < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:101 - def match_length; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:81 -Regexp::Expression::MatchLength = Regexp::MatchLength - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/posix_class.rb:2 -class Regexp::Expression::PosixClass < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/posix_class.rb:7 - def name; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/posix_class.rb:3 - def negative?; end -end - -# TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and -# call super in #initialize, but raise in #quantifier= and #quantify, -# or introduce an Expression::Quantifiable intermediate class. -# Or actually allow chaining as a more concise but tricky solution than PR#69. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:6 -class Regexp::Expression::Quantifier - include ::Regexp::Expression::Shared - extend ::Regexp::Expression::Shared::ClassMethods - - # @return [Quantifier] a new instance of Quantifier - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:13 - def initialize(*args); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def conditional_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def conditional_level=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:35 - def greedy?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:35 - def lazy?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def level=(_arg0); end - - # Returns the value of attribute max. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:11 - def max; end - - # Returns the value of attribute min. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:11 - def min; end - - # Returns the value of attribute mode. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:11 - def mode; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:13 - def nesting_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def options; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def options=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:35 - def possessive?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def quantifier; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def quantifier=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:35 - def reluctant?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def set_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def set_level=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def te; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def te=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def text; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def text=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:23 - def to_h; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def token; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def token=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def ts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def ts=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def type; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def type=(_arg0); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:44 - def deprecated_old_init(token, text, min, max, mode = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:59 - def minmax; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/quantifier.rb:9 -Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/root.rb:2 -class Regexp::Expression::Root < ::Regexp::Expression::Subexpression - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/root.rb:3 - def build(options = T.unsafe(nil)); end - end -end - -# A sequence of expressions. Differs from a Subexpressions by how it handles -# quantifiers, as it applies them to its last element instead of itself as -# a whole subexpression. -# -# Used as the base class for the Alternation alternatives, Conditional -# branches, and CharacterSet::Intersection intersected sequences. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence.rb:8 -class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence.rb:28 - def quantify(*args); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence.rb:23 - def starts_at; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence.rb:23 - def ts; end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence.rb:10 - def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end - end -end - -# abstract class -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence_operation.rb:3 -class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence_operation.rb:13 - def <<(exp); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence_operation.rb:17 - def add_sequence(active_opts = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:5 - def operands; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:9 - def operator; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence_operation.rb:21 - def parts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:5 - def sequences; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence_operation.rb:8 - def starts_at; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/sequence_operation.rb:8 - def ts; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:2 -module Regexp::Expression::Shared - mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods - - # Deep-compare two expressions for equality. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/tests.rb:98 - def ==(other); end - - # Deep-compare two expressions for equality. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/tests.rb:98 - def ===(other); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:42 - def base_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:71 - def coded_offset; end - - # Deep-compare two expressions for equality. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/tests.rb:98 - def eql?(other); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:46 - def full_length; end - - # Test if this expression has the given test_token, and optionally a given - # test_type. - # - # # Any expressions - # exp.is? :* # always returns true - # - # # is it a :capture - # exp.is? :capture - # - # # is it a :character and a :set - # exp.is? :character, :set - # - # # is it a :meta :dot - # exp.is? :dot, :meta - # - # # is it a :meta or :escape :dot - # exp.is? :dot, [:meta, :escape] - # - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/tests.rb:36 - def is?(test_token, test_type = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:79 - def nesting_level=(lvl); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:67 - def offset; end - - # Test if this expression matches an entry in the given scope spec. - # - # A scope spec can be one of: - # - # . An array: Interpreted as a set of tokens, tested for inclusion - # of the expression's token. - # - # . A hash: Where the key is interpreted as the expression type - # and the value is either a symbol or an array. In this - # case, when the scope is a hash, one_of? calls itself to - # evaluate the key's value. - # - # . A symbol: matches the expression's token or type, depending on - # the level of the call. If one_of? is called directly with - # a symbol then it will always be checked against the - # type of the expression. If it's being called for a value - # from a hash, it will be checked against the token of the - # expression. - # - # # any expression - # exp.one_of?(:*) # always true - # - # # like exp.type?(:group) - # exp.one_of?(:group) - # - # # any expression of type meta - # exp.one_of?(:meta => :*) - # - # # meta dots and alternations - # exp.one_of?(:meta => [:dot, :alternation]) - # - # # meta dots and any set tokens - # exp.one_of?({meta: [:dot], set: :*}) - # - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/tests.rb:75 - def one_of?(scope, top = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:55 - def parts; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:63 - def quantified?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:59 - def quantifier_affix(expression_format); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:38 - def starts_at; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:75 - def terminal?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:50 - def to_s(format = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:50 - def to_str(format = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/construct.rb:39 - def token_class; end - - # Test if this expression has the given test_type, which can be either - # a symbol or an array of symbols to check against the expression's type. - # - # # is it a :group expression - # exp.type? :group - # - # # is it a :set, or :meta - # exp.type? [:set, :meta] - # - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/tests.rb:13 - def type?(test_type); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:17 - def init_from_token_and_options(token, options = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:31 - def initialize_copy(orig); end - - class << self - # @private - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:5 - def included(mod); end - end -end - -# filled in ./methods/*.rb -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/shared.rb:3 -module Regexp::Expression::Shared::ClassMethods - # Convenience method to init a valid Expression without a Regexp::Token - # - # @raise [ArgumentError] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/construct.rb:5 - def construct(params = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/construct.rb:15 - def construct_defaults; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/construct.rb:25 - def token_class; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:2 -class Regexp::Expression::Subexpression < ::Regexp::Expression::Base - include ::Enumerable - - # @return [Subexpression] a new instance of Subexpression - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:7 - def initialize(token, options = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:18 - def <<(exp); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def [](*args, &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def at(*args, &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:35 - def dig(*indices); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def each(*args, &block); end - - # Iterates over the expressions of this expression as an array, passing - # the expression and its index within its parent to the given block. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/traverse.rb:39 - def each_expression(include_self = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def empty?(*args, &block); end - - # Returns the value of attribute expressions. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:5 - def expressions; end - - # Sets the attribute expressions - # - # @param value the value to set the attribute expressions to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:5 - def expressions=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def fetch(*args, &block); end - - # Returns a new array with the results of calling the given block once - # for every expression. If a block is not given, returns an array with - # each expression and its level index as an array. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/traverse.rb:50 - def flat_map(include_self = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def index(*args, &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:114 - def inner_match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def join(*args, &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def last(*args, &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def length(*args, &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:107 - def match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:45 - def parts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/strfregexp.rb:102 - def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/strfregexp.rb:102 - def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:41 - def te; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:49 - def to_h; end - - # Traverses the subexpression (depth-first, pre-order) and calls the given - # block for each expression with three arguments; the traversal event, - # the expression, and the index of the expression within its parent. - # - # The event argument is passed as follows: - # - # - For subexpressions, :enter upon entering the subexpression, and - # :exit upon exiting it. - # - # - For terminal expressions, :visit is called once. - # - # Returns self. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/traverse.rb:16 - def traverse(include_self = T.unsafe(nil), &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:29 - def values_at(*args, &block); end - - # Traverses the subexpression (depth-first, pre-order) and calls the given - # block for each expression with three arguments; the traversal event, - # the expression, and the index of the expression within its parent. - # - # The event argument is passed as follows: - # - # - For subexpressions, :enter upon entering the subexpression, and - # :exit upon exiting it. - # - # - For terminal expressions, :visit is called once. - # - # Returns self. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/traverse.rb:16 - def walk(include_self = T.unsafe(nil), &block); end - - private - - # Override base method to clone the expressions as well. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:13 - def initialize_copy(orig); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/subexpression.rb:58 - def intersperse(expressions, separator); end -end - -# TODO: unify name with token :property, on way or the other, in v3.0.0 -# -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:3 -module Regexp::Expression::UnicodeProperty; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:113 -class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:18 -class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:19 -class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:36 -class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:20 -class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:37 -class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:4 -class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:94 - def match_length; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:9 - def name; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:5 - def negative?; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:13 - def shortcut; end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:21 -class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:117 -class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:22 -class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:102 -module Regexp::Expression::UnicodeProperty::Codepoint; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:105 -class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:103 -class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:106 -class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:107 -class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:109 -class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:108 -class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:110 -class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:114 -class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:23 -class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:115 -class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:24 -class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:39 -module Regexp::Expression::UnicodeProperty::Letter; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:42 -class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:40 -class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:43 -class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:45 -class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:47 -class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:48 -class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:46 -class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:44 -class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:25 -class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:51 -module Regexp::Expression::UnicodeProperty::Mark; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:54 -class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:52 -class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:55 -class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:58 -class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:56 -class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:57 -class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:34 -class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:61 -module Regexp::Expression::UnicodeProperty::Number; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:64 -class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:62 -class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:65 -class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:66 -class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:67 -class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:26 -class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:27 -class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:70 -module Regexp::Expression::UnicodeProperty::Punctuation; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:73 -class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:71 -class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:77 -class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:74 -class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:75 -class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:79 -class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:78 -class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:76 -class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:80 -class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:116 -class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:83 -module Regexp::Expression::UnicodeProperty::Separator; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:86 -class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:84 -class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:88 -class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:89 -class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:87 -class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:28 -class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:92 -module Regexp::Expression::UnicodeProperty::Symbol; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:95 -class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:93 -class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:97 -class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:96 -class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:98 -class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:99 -class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:29 -class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:30 -class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:32 -class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/unicode_property.rb:31 -class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/free_space.rb:10 -class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/classes/free_space.rb:11 - def merge(exp); end -end - -# A very thin wrapper around the scanner that breaks quantified literal runs, -# collects emitted tokens into an array, calculates their nesting depth, and -# normalizes tokens for the parser, and checks if they are implemented by the -# given syntax flavor. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:5 -class Regexp::Lexer - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:20 - def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:71 - def ascend(type, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:108 - def break_codepoint_list(token); end - - # called by scan to break a literal run that is longer than one character - # into two separate tokens when it is followed by a quantifier - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:95 - def break_literal(token); end - - # Returns the value of attribute conditional_nesting. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def conditional_nesting; end - - # Sets the attribute conditional_nesting - # - # @param value the value to set the attribute conditional_nesting to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def conditional_nesting=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:82 - def descend(type, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:123 - def merge_condition(current); end - - # Returns the value of attribute nesting. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def nesting; end - - # Sets the attribute nesting - # - # @param value the value to set the attribute nesting to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def nesting=(_arg0); end - - # Returns the value of attribute set_nesting. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def set_nesting; end - - # Sets the attribute set_nesting - # - # @param value the value to set the attribute set_nesting to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def set_nesting=(_arg0); end - - # Returns the value of attribute shift. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def shift; end - - # Sets the attribute shift - # - # @param value the value to set the attribute shift to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def shift=(_arg0); end - - # Returns the value of attribute tokens. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def tokens; end - - # Sets the attribute tokens - # - # @param value the value to set the attribute tokens to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:69 - def tokens=(_arg0); end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:16 - def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:16 - def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end - end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:12 -Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:14 -Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/lexer.rb:7 -Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:1 -class Regexp::MatchLength - include ::Enumerable - - # @return [MatchLength] a new instance of MatchLength - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:9 - def initialize(exp, opts = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:24 - def each(opts = T.unsafe(nil)); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:35 - def endless_each; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:44 - def fixed?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:40 - def include?(length); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:60 - def inspect; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:52 - def max; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:48 - def min; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:56 - def minmax; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:65 - def to_re; end - - private - - # Returns the value of attribute base_max. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def base_max; end - - # Sets the attribute base_max - # - # @param value the value to set the attribute base_max to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def base_max=(_arg0); end - - # Returns the value of attribute base_min. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def base_min; end - - # Sets the attribute base_min - # - # @param value the value to set the attribute base_min to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def base_min=(_arg0); end - - # Returns the value of attribute exp_class. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def exp_class; end - - # Sets the attribute exp_class - # - # @param value the value to set the attribute exp_class to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def exp_class=(_arg0); end - - # Returns the value of attribute max_rep. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def max_rep; end - - # Sets the attribute max_rep - # - # @param value the value to set the attribute max_rep to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def max_rep=(_arg0); end - - # Returns the value of attribute min_rep. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def min_rep; end - - # Sets the attribute min_rep - # - # @param value the value to set the attribute min_rep to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def min_rep=(_arg0); end - - # Returns the value of attribute reify. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def reify; end - - # Sets the attribute reify - # - # @param value the value to set the attribute reify to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:71 - def reify=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:73 - def test_regexp; end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/expression/methods/match_length.rb:4 - def of(obj); end - end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/version.rb:2 -class Regexp::Parser - include ::Regexp::Expression - include ::Regexp::Expression::UnicodeProperty - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:25 - def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end - - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:564 - def active_opts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:99 - def anchor(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:254 - def assign_effective_number(exp); end - - # Assigns referenced expressions to refering expressions, e.g. if there is - # an instance of Backreference::Number, its #referenced_expression is set to - # the instance of Group::Capture that it refers to via its number. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:571 - def assign_referenced_expressions; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:227 - def backref(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:202 - def captured_group_count_at_level; end - - # Returns the value of attribute captured_group_counts. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def captured_group_counts; end - - # Sets the attribute captured_group_counts - # - # @param value the value to set the attribute captured_group_counts to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def captured_group_counts=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:560 - def close_completed_character_set_range; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:210 - def close_group; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:528 - def close_set; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:259 - def conditional(token); end - - # Returns the value of attribute conditional_nesting. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def conditional_nesting; end - - # Sets the attribute conditional_nesting - # - # @param value the value to set the attribute conditional_nesting to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def conditional_nesting=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:206 - def count_captured_group; end - - # @yield [node] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:216 - def decrease_nesting; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:295 - def escape(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:60 - def extract_options(input, options); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:337 - def free_space(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:114 - def group(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:501 - def increase_group_level(exp); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:539 - def intersection(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:352 - def keep(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:356 - def literal(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:360 - def meta(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:524 - def negate_set; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:289 - def nest(exp); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:284 - def nest_conditional(exp); end - - # Returns the value of attribute nesting. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def nesting; end - - # Sets the attribute nesting - # - # @param value the value to set the attribute nesting to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def nesting=(_arg0); end - - # Returns the value of attribute node. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def node; end - - # Sets the attribute node - # - # @param value the value to set the attribute node to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def node=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:165 - def open_group(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:519 - def open_set(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:130 - def options_group(token); end - - # Returns the value of attribute options_stack. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def options_stack; end - - # Sets the attribute options_stack - # - # @param value the value to set the attribute options_stack to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def options_stack=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:76 - def parse_token(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:382 - def posixclass(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:389 - def property(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:470 - def quantifier(token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:532 - def range(token); end - - # Returns the value of attribute root. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def root; end - - # Sets the attribute root - # - # @param value the value to set the attribute root to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def root=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:371 - def sequence_operation(klass, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:507 - def set(token); end - - # Returns the value of attribute switching_options. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def switching_options; end - - # Sets the attribute switching_options - # - # @param value the value to set the attribute switching_options to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:56 - def switching_options=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:198 - def total_captured_group_count; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:543 - def type(token); end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:21 - def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end - end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:128 -Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array) - -# base class for all gem-specific errors -# -# source://regexp_parser-2.5.0/lib/regexp_parser/error.rb:3 -class Regexp::Parser::Error < ::StandardError; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:127 -Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:7 -class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:387 -Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty - -# source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:15 -class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError - # @return [UnknownTokenError] a new instance of UnknownTokenError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:16 - def initialize(type, token); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:9 -class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError - # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/parser.rb:10 - def initialize(type, token); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/version.rb:3 -Regexp::Parser::VERSION = T.let(T.unsafe(nil), String) - -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:13 -class Regexp::Scanner - # Emits an array with the details of the scanned pattern - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2551 - def emit(type, token, text); end - - # @raise [PrematureEndError] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:84 - def scan(input_object, options: T.unsafe(nil), &block); end - - private - - # Appends one or more characters to the literal buffer, to be emitted later - # by a call to emit_literal. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2602 - def append_literal(data, ts, te); end - - # Returns the value of attribute block. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def block; end - - # Sets the attribute block - # - # @param value the value to set the attribute block to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def block=(_arg0); end - - # Returns the value of attribute char_pos. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def char_pos; end - - # Sets the attribute char_pos - # - # @param value the value to set the attribute char_pos to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def char_pos=(_arg0); end - - # Returns the value of attribute conditional_stack. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def conditional_stack; end - - # Sets the attribute conditional_stack - # - # @param value the value to set the attribute conditional_stack to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def conditional_stack=(_arg0); end - - # Copy from ts to te from data as text - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2596 - def copy(data, ts, te); end - - # Emits the literal run collected by calls to the append_literal method. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2608 - def emit_literal; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2643 - def emit_meta_control_sequence(data, ts, te, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2614 - def emit_options(text); end - - # Returns the value of attribute free_spacing. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def free_spacing; end - - # Sets the attribute free_spacing - # - # @param value the value to set the attribute free_spacing to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def free_spacing=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2575 - def free_spacing?(input_object, options); end - - # Returns the value of attribute group_depth. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def group_depth; end - - # Sets the attribute group_depth - # - # @param value the value to set the attribute group_depth to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def group_depth=(_arg0); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2587 - def in_group?; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2591 - def in_set?; end - - # Returns the value of attribute literal. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def literal; end - - # Sets the attribute literal - # - # @param value the value to set the attribute literal to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def literal=(_arg0); end - - # Returns the value of attribute set_depth. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def set_depth; end - - # Sets the attribute set_depth - # - # @param value the value to set the attribute set_depth to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def set_depth=(_arg0); end - - # Returns the value of attribute spacing_stack. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def spacing_stack; end - - # Sets the attribute spacing_stack - # - # @param value the value to set the attribute spacing_stack to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def spacing_stack=(_arg0); end - - # Returns the value of attribute tokens. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def tokens; end - - # Sets the attribute tokens - # - # @param value the value to set the attribute tokens to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2572 - def tokens=(_arg0); end - - # Centralizes and unifies the handling of validation related - # errors. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2652 - def validation_error(type, what, reason = T.unsafe(nil)); end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2537 - def long_prop_map; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2541 - def parse_prop_map(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2545 - def posix_classes; end - - # Scans the given regular expression text, or Regexp object and collects the - # emitted token into an array that gets returned at the end. If a block is - # given, it gets called for each emitted token. - # - # This method may raise errors if a syntax error is encountered. - # -------------------------------------------------------------------------- - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:80 - def scan(input_object, options: T.unsafe(nil), &block); end - - # lazy-load property maps when first needed - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:2533 - def short_prop_map; end - end -end - -# Invalid back reference. Used for name a number refs/calls. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:54 -class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError - # @return [InvalidBackrefError] a new instance of InvalidBackrefError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:55 - def initialize(what, reason); end -end - -# Invalid group. Used for named groups. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:39 -class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError - # @return [InvalidGroupError] a new instance of InvalidGroupError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:40 - def initialize(what, reason); end -end - -# Invalid groupOption. Used for inline options. -# TODO: should become InvalidGroupOptionError in v3.0.0 for consistency -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:47 -class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError - # @return [InvalidGroupOption] a new instance of InvalidGroupOption - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:48 - def initialize(option, text); end -end - -# Invalid sequence format. Used for escape sequences, mainly. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:32 -class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError - # @return [InvalidSequenceError] a new instance of InvalidSequenceError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:33 - def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end -end - -# Unexpected end of pattern -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:25 -class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError - # @return [PrematureEndError] a new instance of PrematureEndError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:26 - def initialize(where = T.unsafe(nil)); end -end - -# General scanner error (catch all) -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:15 -class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end - -# The POSIX class name was not recognized by the scanner. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:68 -class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError - # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:69 - def initialize(text); end -end - -# The property name was not recognized by the scanner. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:61 -class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError - # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:62 - def initialize(name); end -end - -# Base for all scanner validation errors -# -# source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:18 -class Regexp::Scanner::ValidationError < ::Regexp::Parser::Error - # @return [ValidationError] a new instance of ValidationError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/scanner.rb:19 - def initialize(reason); end -end - -# After loading all the tokens the map is full. Extract all tokens and types -# into the All and Types constants. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax.rb:3 -module Regexp::Syntax - private - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:62 - def comparable(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:45 - def const_missing(const_name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:52 - def fallback_version_class(version); end - - # Returns the syntax specification class for the given syntax - # version name. The special names 'any' and '*' return Syntax::Any. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:22 - def for(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:26 - def new(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:58 - def specified_versions; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:32 - def supported?(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:36 - def version_class(version); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:67 - def warn_if_future_version(const_name); end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:62 - def comparable(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:45 - def const_missing(const_name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:52 - def fallback_version_class(version); end - - # Returns the syntax specification class for the given syntax - # version name. The special names 'any' and '*' return Syntax::Any. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:22 - def for(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:26 - def new(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:58 - def specified_versions; end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:32 - def supported?(name); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:36 - def version_class(version); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:67 - def warn_if_future_version(const_name); end - end -end - -# A syntax that always returns true, passing all tokens as implemented. This -# is useful during development, testing, and should be useful for some types -# of transformations as well. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/any.rb:5 -class Regexp::Syntax::Any < ::Regexp::Syntax::Base - class << self - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/any.rb:8 - def implements?(_type, _token); end - end -end - -# A lookup map of supported types and tokens in a given syntax -# -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:9 -class Regexp::Syntax::Base - include ::Regexp::Syntax::Token - - # TODO: drop this backwards compatibility code in v3.0.0, do `private :new` - # - # @return [Base] a new instance of Base - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:99 - def initialize; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:104 - def method_missing(name, *args); end - - private - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:115 - def respond_to_missing?(name, include_private = T.unsafe(nil)); end - - class << self - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:46 - def added_features; end - - # @raise [NotImplementedError] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:40 - def check!(type, token); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:31 - def check?(type, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:26 - def excludes(type, tokens); end - - # Returns the value of attribute features. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:13 - def features; end - - # Sets the attribute features - # - # @param value the value to set the attribute features to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:13 - def features=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:36 - def implementations(type); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:21 - def implements(type, tokens); end - - # @raise [NotImplementedError] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:40 - def implements!(type, token); end - - # @return [Boolean] - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:31 - def implements?(type, token); end - - # automatically inherit features through the syntax class hierarchy - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:16 - def inherited(subclass); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:54 - def normalize(type, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:74 - def normalize_backref(type, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:65 - def normalize_group(type, token); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:50 - def removed_features; end - end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:6 -class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError - # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:7 - def initialize(name); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:2 -class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError - # @return [NotImplementedError] a new instance of NotImplementedError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/base.rb:3 - def initialize(syntax, type, token); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax.rb:4 -class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:3 -module Regexp::Syntax::Token; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:42 -Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:3 -module Regexp::Syntax::Token::Anchor; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:9 -Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:4 -Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:5 -Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:7 -Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:6 -Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/anchor.rb:10 -Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/assertion.rb:3 -module Regexp::Syntax::Token::Assertion; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/assertion.rb:7 -Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/assertion.rb:4 -Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/assertion.rb:5 -Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/assertion.rb:8 -Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:3 -module Regexp::Syntax::Token::Backreference; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:15 -Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:7 -Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:6 -Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:5 -Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:4 -Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:9 -Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:16 -Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:11 -Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:13 -Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_set.rb:3 -module Regexp::Syntax::Token::CharacterSet; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_set.rb:7 -Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_set.rb:4 -Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_set.rb:5 -Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_set.rb:8 -Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:3 -module Regexp::Syntax::Token::CharacterType; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:10 -Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:4 -Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:8 -Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:5 -Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:6 -Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/character_type.rb:11 -Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/conditional.rb:3 -module Regexp::Syntax::Token::Conditional; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/conditional.rb:9 -Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/conditional.rb:6 -Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/conditional.rb:4 -Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/conditional.rb:7 -Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/conditional.rb:11 -Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol) - -# TODO: unify naming with RE::EscapeSequence, one way or the other, in v3.0.0 -# -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:4 -module Regexp::Syntax::Token::Escape; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:9 -Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:25 -Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:5 -Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:7 -Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:21 -Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:14 -Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:23 -Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:26 -Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/escape.rb:12 -Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:11 -module Regexp::Syntax::Token::FreeSpace; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:12 -Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:13 -Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:3 -module Regexp::Syntax::Token::Group; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:17 -Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:8 -Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:4 -Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:10 -Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:5 -Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:7 -Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:9 -Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:18 -Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:12 -Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/group.rb:15 -Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/keep.rb:3 -module Regexp::Syntax::Token::Keep; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/keep.rb:6 -Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/keep.rb:4 -Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/keep.rb:7 -Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:6 -module Regexp::Syntax::Token::Literal; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:7 -Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:8 -Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:4 -Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/meta.rb:3 -module Regexp::Syntax::Token::Meta; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/meta.rb:7 -Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/meta.rb:4 -Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/meta.rb:5 -Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/meta.rb:8 -Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/posix_class.rb:3 -module Regexp::Syntax::Token::PosixClass; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/posix_class.rb:9 -Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/posix_class.rb:7 -Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/posix_class.rb:11 -Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/posix_class.rb:4 -Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/posix_class.rb:10 -Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:3 -module Regexp::Syntax::Token::Quantifier; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:29 -Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:4 -Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:22 -Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:26 -Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:24 -Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:23 -Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:16 -Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:10 -Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:30 -Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/quantifier.rb:28 -Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array) - -# Type is the same as Backreference so keeping it here, for now. -# -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:20 -module Regexp::Syntax::Token::SubexpressionCall; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:24 -Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:21 -Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/backreference.rb:22 -Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token.rb:43 -Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:3 -module Regexp::Syntax::Token::UnicodeProperty; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:64 -Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:40 -Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:44 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:46 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:48 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:50 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:52 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:54 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:56 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:58 -Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:60 -Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:62 -Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:708 -Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:13 -module Regexp::Syntax::Token::UnicodeProperty::Category; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:36 -Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:33 -Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:14 -Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:17 -Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:20 -Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:23 -Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:30 -Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:27 -Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:6 -Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:9 -Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:133 -Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:66 -Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:120 -Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:125 -Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:129 -Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:693 -Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:685 -Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:711 -Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:11 -Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:330 -Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:135 -Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:231 -Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:237 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:247 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:273 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:282 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:291 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:298 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:308 -Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:315 -Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:322 -Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:710 -Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:683 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:332 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:431 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:559 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:594 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:607 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:621 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:631 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:645 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:657 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:668 -Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:695 -Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:696 -Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:697 -Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:698 -Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:699 -Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:700 -Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:701 -Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:702 -Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:703 -Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:704 -Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:705 -Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/token/unicode_property.rb:706 -Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:12 -class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError - # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError - # - # source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:13 - def initialize(name); end -end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/1.8.6.rb:1 -class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/1.9.1.rb:1 -class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/1.9.3.rb:1 -class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.0.0.rb:1 -class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.2.0.rb:1 -class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.3.0.rb:1 -class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.4.0.rb:1 -class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.4.1.rb:1 -class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.5.0.rb:1 -class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.6.0.rb:1 -class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.6.2.rb:1 -class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/2.6.3.rb:1 -class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/3.1.0.rb:1 -class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/versions/3.2.0.rb:1 -class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:4 -Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:2 -Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String) - -# source://regexp_parser-2.5.0/lib/regexp_parser/syntax/version_lookup.rb:3 -Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp) - -# source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:2 -Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array) - -# source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 -class Regexp::Token < ::Struct - def conditional_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def conditional_level=(_); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:20 - def length; end - - def level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def level=(_); end - - # Returns the value of attribute next. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:14 - def next; end - - # Sets the attribute next - # - # @param value the value to set the attribute next to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:14 - def next=(_arg0); end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:16 - def offset; end - - # Returns the value of attribute previous. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:14 - def previous; end - - # Sets the attribute previous - # - # @param value the value to set the attribute previous to. - # - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:14 - def previous=(_arg0); end - - def set_level; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def set_level=(_); end - - def te; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def te=(_); end - - def text; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def text=(_); end - - def token; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def token=(_); end - - def ts; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def ts=(_); end - - def type; end - - # source://regexp_parser-2.5.0/lib/regexp_parser/token.rb:13 - def type=(_); end - - class << self - def [](*_arg0); end - def inspect; end - def members; end - def new(*_arg0); end - end -end diff --git a/sorbet/rbi/gems/regexp_parser@2.6.1.rbi b/sorbet/rbi/gems/regexp_parser@2.6.1.rbi new file mode 100644 index 00000000..6246badf --- /dev/null +++ b/sorbet/rbi/gems/regexp_parser@2.6.1.rbi @@ -0,0 +1,3501 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `regexp_parser` gem. +# Please instead update this file by running `bin/tapioca gem regexp_parser`. + +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#1 +module Regexp::Expression; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5 +class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def alternatives; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#9 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#127 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#6 +Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative + +# A sequence of expressions, used by Alternation as one of its alternative. +# +# source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#3 +class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#10 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#2 +module Regexp::Expression::Anchor; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#18 +Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#20 +Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#3 +class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#5 +class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#11 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#8 +class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#12 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#19 +Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#21 +Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#22 +Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#6 +class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#13 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#9 +class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#14 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#11 +class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#15 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#16 +class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#16 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#14 +class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13 +class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#18 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#86 +module Regexp::Expression::Assertion; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#87 +class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#89 +class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#19 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#92 +class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#20 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#90 +class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#93 +class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22 + def human_name; end +end + +# TODO: unify name with token :backref, one way or the other, in v3.0.0 +# +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#3 +module Regexp::Expression::Backreference; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4 +class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#151 + def match_length; end + + # Returns the value of attribute referenced_expression. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#5 + def referenced_expression; end + + # Sets the attribute referenced_expression + # + # @param value the value to set the attribute referenced_expression to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#5 + def referenced_expression=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#7 + def initialize_copy(orig); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#23 +class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base + # @return [Name] a new instance of Name + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#27 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#23 + def human_name; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#24 + def name; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#24 + def reference; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#39 +class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#24 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#51 +class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name + # @return [NameRecursionLevel] a new instance of NameRecursionLevel + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#54 + def initialize(token, options = T.unsafe(nil)); end + + # Returns the value of attribute recursion_level. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#52 + def recursion_level; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#13 +class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base + # @return [Number] a new instance of Number + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#17 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#25 + def human_name; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#14 + def number; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#14 + def reference; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#38 +class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#27 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#40 +class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#28 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#42 +class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::NumberRelative + # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45 + def initialize(token, options = T.unsafe(nil)); end + + # Returns the value of attribute recursion_level. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#43 + def recursion_level; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#33 +class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number + # Returns the value of attribute effective_number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 + def effective_number; end + + # Sets the attribute effective_number + # + # @param value the value to set the attribute effective_number to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 + def effective_number=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#26 + def human_name; end + + # Returns the value of attribute effective_number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34 + def reference; end +end + +# source://regexp_parser//lib/regexp_parser/expression/base.rb#2 +class Regexp::Expression::Base + include ::Regexp::Expression::Shared + extend ::Regexp::Expression::Shared::ClassMethods + + # @return [Base] a new instance of Base + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#5 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + def =~(string, offset = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + def a?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25 + def ascii_classes?; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#67 + def attributes; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + def case_insensitive?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + def d?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20 + def default_classes?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + def extended?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + def free_spacing?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#54 + def greedy?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + def i?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8 + def ignore_case?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#58 + def lazy?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + def m?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8 + def match(string, offset = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + def match?(string); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3 + def matches?(string); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3 + def multiline?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13 + def nesting_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#63 + def possessive?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13 + def quantifier; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#24 + def quantify(*args); end + + # Deprecated. Prefer `#repetitions` which has a more uniform interface. + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#33 + def quantity; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/base.rb#58 + def reluctant?; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#38 + def repetitions; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level=(_arg0); end + + # %l Level (depth) of the expression. Returns 'root' for the root + # expression, returns zero or higher for all others. + # + # %> Indentation at expression's level. + # + # %x Index of the expression at its depth. Available when using + # the sprintf_tree method only. + # + # %s Start offset within the whole expression. + # %e End offset within the whole expression. + # %S Length of expression. + # + # %o Coded offset and length, same as '@%s+%S' + # + # %y Type of expression. + # %k Token of expression. + # %i ID, same as '%y:%k' + # %c Class name + # + # %q Quantifier info, as {m[,M]} + # %Q Quantifier text + # + # %z Quantifier min + # %Z Quantifier max + # + # %t Base text of the expression (excludes quantifier, if any) + # %~t Full text if the expression is terminal, otherwise %i + # %T Full text of the expression (includes quantifier, if any) + # + # %b Basic info, same as '%o %i' + # %m Most info, same as '%b %q' + # %a All info, same as '%m %t' + # + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end + + # %l Level (depth) of the expression. Returns 'root' for the root + # expression, returns zero or higher for all others. + # + # %> Indentation at expression's level. + # + # %x Index of the expression at its depth. Available when using + # the sprintf_tree method only. + # + # %s Start offset within the whole expression. + # %e End offset within the whole expression. + # %S Length of expression. + # + # %o Coded offset and length, same as '@%s+%S' + # + # %y Type of expression. + # %k Token of expression. + # %i ID, same as '%y:%k' + # %c Class name + # + # %q Quantifier info, as {m[,M]} + # %Q Quantifier text + # + # %z Quantifier min + # %Z Quantifier max + # + # %t Base text of the expression (excludes quantifier, if any) + # %~t Full text if the expression is terminal, otherwise %i + # %T Full text of the expression (includes quantifier, if any) + # + # %b Basic info, same as '%o %i' + # %m Most info, same as '%b %q' + # %a All info, same as '%m %t' + # + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37 + def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#67 + def to_h; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#16 + def to_re(format = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + def u?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30 + def unicode_classes?; end + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#28 + def unquantified_clone; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14 + def x?; end + + private + + # source://regexp_parser//lib/regexp_parser/expression/base.rb#9 + def initialize_copy(orig); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#2 +class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression + # @return [CharacterSet] a new instance of CharacterSet + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#9 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#19 + def close; end + + # Returns the value of attribute closed. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def closed; end + + # Sets the attribute closed + # + # @param value the value to set the attribute closed to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def closed=(_arg0); end + + # Returns the value of attribute closed. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def closed?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#15 + def negate; end + + # Returns the value of attribute negative. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negated?; end + + # Returns the value of attribute negative. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negative; end + + # Sets the attribute negative + # + # @param value the value to set the attribute negative to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negative=(_arg0); end + + # Returns the value of attribute negative. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3 + def negative?; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#23 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#3 +class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#5 +class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#6 +Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#3 +class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#9 + def <<(exp); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#15 + def complete?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#19 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4 + def starts_at; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4 + def ts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#2 +module Regexp::Expression::CharacterType; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#5 +class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#32 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#3 +class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6 +class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#15 +class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#8 +class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#14 +class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#7 +class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#9 +class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#13 +class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#11 +class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#12 +class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#10 +class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#8 +class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#33 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#2 +module Regexp::Expression::Conditional; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25 +class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#34 + def human_name; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#9 +class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144 + def match_length; end + + # Name or number of the referenced capturing group that determines state. + # Returns a String if reference is by name, Integer if by number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#14 + def reference; end + + # Returns the value of attribute referenced_expression. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10 + def referenced_expression; end + + # Sets the attribute referenced_expression + # + # @param value the value to set the attribute referenced_expression to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10 + def referenced_expression=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#19 + def initialize_copy(orig); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#27 +class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#30 + def <<(exp); end + + # @raise [TooManyBranches] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 + def add_sequence(active_opts = T.unsafe(nil)); end + + # @raise [TooManyBranches] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34 + def branch(active_opts = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#50 + def branches; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#46 + def condition; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#41 + def condition=(exp); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#127 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#58 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#54 + def reference; end + + # Returns the value of attribute referenced_expression. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28 + def referenced_expression; end + + # Sets the attribute referenced_expression + # + # @param value the value to set the attribute referenced_expression to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28 + def referenced_expression=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#62 + def initialize_copy(orig); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#3 +class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error + # @return [TooManyBranches] a new instance of TooManyBranches + # + # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#4 + def initialize; end +end + +# TODO: unify naming with Token::Escape, one way or the other, in v3.0.0 +# +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#3 +module Regexp::Expression::EscapeSequence; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#64 +class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#65 + def char; end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#71 + def control_sequence_to_s(control_sequence); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#76 + def meta_char_to_codepoint(meta_char); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#28 +class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#29 +class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#4 +class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#10 + def char; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#5 + def codepoint; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#30 +class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#38 +class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#40 +class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base + # @raise [NoMethodError] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#41 + def char; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#49 + def chars; end + + # @raise [NoMethodError] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#45 + def codepoint; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#53 + def codepoints; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#160 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#82 +class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#83 + def codepoint; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#31 +class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#37 +class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#22 +class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#23 + def char; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#88 +class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#89 + def codepoint; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#94 +class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#95 + def codepoint; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#32 +class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#58 +class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base + # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#59 + def char; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#33 +class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#34 +class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#35 +class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#2 +class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144 + def match_length; end + + # @raise [Regexp::Parser::Error] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#3 + def quantify(*_args); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#2 +module Regexp::Expression::Group; end + +# Special case. Absence group can match 0.. chars, irrespective of content. +# TODO: in theory, they *can* exclude match lengths with `.`: `(?~.{3})` +# +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#34 +class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#168 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#35 +class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#3 +class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#8 + def capturing?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#10 + def comment?; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#4 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#55 +class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#59 + def capturing?; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#37 + def human_name; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56 + def identifier; end + + # Returns the value of attribute number. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56 + def number; end + + # Sets the attribute number + # + # @param value the value to set the attribute number to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56 + def number=(_arg0); end + + # Returns the value of attribute number_at_level. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56 + def number_at_level; end + + # Sets the attribute number_at_level + # + # @param value the value to set the attribute number_at_level to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56 + def number_at_level=(_arg0); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#77 +class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#82 + def comment?; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#78 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#62 +class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture + # @return [Named] a new instance of Named + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#66 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#38 + def human_name; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#63 + def identifier; end + + # Returns the value of attribute name. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#63 + def name; end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71 + def initialize_copy(orig); end +end + +# TODO: should split off OptionsSwitch in v3.0.0. Maybe even make it no +# longer inherit from Group because it is effectively a terminal expression. +# +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#38 +class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base + # Returns the value of attribute option_changes. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#39 + def option_changes; end + + # Sets the attribute option_changes + # + # @param value the value to set the attribute option_changes to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#39 + def option_changes=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46 + def quantify(*args); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41 + def initialize_copy(orig); end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#13 +class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base + # @return [Passive] a new instance of Passive + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#16 + def initialize(*_arg0); end + + # Sets the attribute implicit + # + # @param value the value to set the attribute implicit to. + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#14 + def implicit=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#29 + def implicit?; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#21 + def parts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#2 +module Regexp::Expression::Keep; end + +# TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression +# that contains all expressions to its left. +# +# source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#5 +class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/literal.rb#2 +class Regexp::Expression::Literal < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#40 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#101 + def match_length; end +end + +# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#81 +Regexp::Expression::MatchLength = Regexp::MatchLength + +# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2 +class Regexp::Expression::PosixClass < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#7 + def name; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3 + def negative?; end +end + +# TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and +# call super in #initialize, but raise in #quantifier= and #quantify, +# or introduce an Expression::Quantifiable intermediate class. +# Or actually allow chaining as a more concise but tricky solution than PR#69. +# +# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#6 +class Regexp::Expression::Quantifier + include ::Regexp::Expression::Shared + extend ::Regexp::Expression::Shared::ClassMethods + + # @return [Quantifier] a new instance of Quantifier + # + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#13 + def initialize(*args); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def conditional_level=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35 + def greedy?; end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35 + def lazy?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def level=(_arg0); end + + # Returns the value of attribute max. + # + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 + def max; end + + # Returns the value of attribute min. + # + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 + def min; end + + # Returns the value of attribute mode. + # + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11 + def mode; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13 + def nesting_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def options=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35 + def possessive?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13 + def quantifier; end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35 + def reluctant?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def set_level=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def te=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def text=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#23 + def to_h; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def token=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def ts=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def type=(_arg0); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#44 + def deprecated_old_init(token, text, min, max, mode = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#59 + def minmax; end +end + +# source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9 +Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#2 +class Regexp::Expression::Root < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#41 + def human_name; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#3 + def build(options = T.unsafe(nil)); end + end +end + +# A sequence of expressions. Differs from a Subexpressions by how it handles +# quantifiers, as it applies them to its last element instead of itself as +# a whole subexpression. +# +# Used as the base class for the Alternation alternatives, Conditional +# branches, and CharacterSet::Intersection intersected sequences. +# +# source://regexp_parser//lib/regexp_parser/expression/sequence.rb#8 +class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#28 + def quantify(*args); end + + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23 + def starts_at; end + + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23 + def ts; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#10 + def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end + end +end + +# abstract class +# +# source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#3 +class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#13 + def <<(exp); end + + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#17 + def add_sequence(active_opts = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def operands; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9 + def operator; end + + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#21 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def sequences; end + + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8 + def starts_at; end + + # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8 + def ts; end +end + +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#2 +module Regexp::Expression::Shared + mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods + + # Deep-compare two expressions for equality. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#98 + def ==(other); end + + # Deep-compare two expressions for equality. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#98 + def ===(other); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#42 + def base_length; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#75 + def coded_offset; end + + # Deep-compare two expressions for equality. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#98 + def eql?(other); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#46 + def full_length; end + + # default implementation, e.g. "atomic group", "hex escape", "word type", .. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#4 + def human_name; end + + # Test if this expression has the given test_token, and optionally a given + # test_type. + # + # # Any expressions + # exp.is? :* # always returns true + # + # # is it a :capture + # exp.is? :capture + # + # # is it a :character and a :set + # exp.is? :character, :set + # + # # is it a :meta :dot + # exp.is? :dot, :meta + # + # # is it a :meta or :escape :dot + # exp.is? :dot, [:meta, :escape] + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36 + def is?(test_token, test_type = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#83 + def nesting_level=(lvl); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#71 + def offset; end + + # Test if this expression matches an entry in the given scope spec. + # + # A scope spec can be one of: + # + # . An array: Interpreted as a set of tokens, tested for inclusion + # of the expression's token. + # + # . A hash: Where the key is interpreted as the expression type + # and the value is either a symbol or an array. In this + # case, when the scope is a hash, one_of? calls itself to + # evaluate the key's value. + # + # . A symbol: matches the expression's token or type, depending on + # the level of the call. If one_of? is called directly with + # a symbol then it will always be checked against the + # type of the expression. If it's being called for a value + # from a hash, it will be checked against the token of the + # expression. + # + # # any expression + # exp.one_of?(:*) # always true + # + # # like exp.type?(:group) + # exp.one_of?(:group) + # + # # any expression of type meta + # exp.one_of?(:meta => :*) + # + # # meta dots and alternations + # exp.one_of?(:meta => [:dot, :alternation]) + # + # # meta dots and any set tokens + # exp.one_of?({meta: [:dot], set: :*}) + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#75 + def one_of?(scope, top = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#67 + def optional?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#55 + def parts; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#63 + def quantified?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#89 + def quantifier=(qtf); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#59 + def quantifier_affix(expression_format); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#38 + def starts_at; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#79 + def terminal?; end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#50 + def to_s(format = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#50 + def to_str(format = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#39 + def token_class; end + + # Test if this expression has the given test_type, which can be either + # a symbol or an array of symbols to check against the expression's type. + # + # # is it a :group expression + # exp.type? :group + # + # # is it a :set, or :meta + # exp.type? [:set, :meta] + # + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#13 + def type?(test_type); end + + private + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#17 + def init_from_token_and_options(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#31 + def initialize_copy(orig); end + + class << self + # @private + # + # source://regexp_parser//lib/regexp_parser/expression/shared.rb#5 + def included(mod); end + end +end + +# filled in ./methods/*.rb +# +# source://regexp_parser//lib/regexp_parser/expression/shared.rb#3 +module Regexp::Expression::Shared::ClassMethods + # Convenience method to init a valid Expression without a Regexp::Token + # + # @raise [ArgumentError] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#5 + def construct(params = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#15 + def construct_defaults; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#25 + def token_class; end +end + +# source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#2 +class Regexp::Expression::Subexpression < ::Regexp::Expression::Base + include ::Enumerable + + # @return [Subexpression] a new instance of Subexpression + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7 + def initialize(token, options = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#18 + def <<(exp); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def [](*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def at(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#35 + def dig(*indices); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def each(*args, &block); end + + # Iterates over the expressions of this expression as an array, passing + # the expression and its index within its parent to the given block. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#39 + def each_expression(include_self = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def empty?(*args, &block); end + + # Returns the value of attribute expressions. + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def expressions; end + + # Sets the attribute expressions + # + # @param value the value to set the attribute expressions to. + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5 + def expressions=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def fetch(*args, &block); end + + # Returns a new array with the results of calling the given block once + # for every expression. If a block is not given, returns an array with + # each expression and its level index as an array. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#50 + def flat_map(include_self = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def index(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#114 + def inner_match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def join(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def last(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def length(*args, &block); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#107 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#45 + def parts; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102 + def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#41 + def te; end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#49 + def to_h; end + + # Traverses the subexpression (depth-first, pre-order) and calls the given + # block for each expression with three arguments; the traversal event, + # the expression, and the index of the expression within its parent. + # + # The event argument is passed as follows: + # + # - For subexpressions, :enter upon entering the subexpression, and + # :exit upon exiting it. + # + # - For terminal expressions, :visit is called once. + # + # Returns self. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#16 + def traverse(include_self = T.unsafe(nil), &block); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29 + def values_at(*args, &block); end + + # Traverses the subexpression (depth-first, pre-order) and calls the given + # block for each expression with three arguments; the traversal event, + # the expression, and the index of the expression within its parent. + # + # The event argument is passed as follows: + # + # - For subexpressions, :enter upon entering the subexpression, and + # :exit upon exiting it. + # + # - For terminal expressions, :visit is called once. + # + # Returns self. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#16 + def walk(include_self = T.unsafe(nil), &block); end + + private + + # Override base method to clone the expressions as well. + # + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#13 + def initialize_copy(orig); end + + # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#58 + def intersperse(expressions, separator); end +end + +# TODO: unify name with token :property, one way or the other, in v3.0.0 +# +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3 +module Regexp::Expression::UnicodeProperty; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113 +class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18 +class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19 +class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#36 +class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20 +class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37 +class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4 +class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94 + def match_length; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#9 + def name; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#5 + def negative?; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#13 + def shortcut; end +end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21 +class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#117 +class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22 +class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102 +module Regexp::Expression::UnicodeProperty::Codepoint; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105 +class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103 +class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#106 +class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#107 +class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109 +class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108 +class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110 +class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#114 +class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23 +class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#115 +class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24 +class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39 +module Regexp::Expression::UnicodeProperty::Letter; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42 +class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40 +class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43 +class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#45 +class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47 +class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#48 +class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46 +class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#44 +class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25 +class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51 +module Regexp::Expression::UnicodeProperty::Mark; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#54 +class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52 +class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#55 +class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#58 +class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56 +class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57 +class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34 +class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61 +module Regexp::Expression::UnicodeProperty::Number; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#64 +class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62 +class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65 +class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66 +class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#67 +class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26 +class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27 +class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70 +module Regexp::Expression::UnicodeProperty::Punctuation; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73 +class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71 +class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#77 +class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74 +class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75 +class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79 +class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78 +class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#76 +class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#80 +class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#116 +class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83 +module Regexp::Expression::UnicodeProperty::Separator; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#86 +class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84 +class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88 +class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#89 +class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87 +class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#28 +class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92 +module Regexp::Expression::UnicodeProperty::Symbol; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#95 +class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93 +class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97 +class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#96 +class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98 +class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#99 +class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29 +class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#30 +class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#32 +class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31 +class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end + +# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#10 +class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace + # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#42 + def human_name; end + + # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11 + def merge(exp); end +end + +# A very thin wrapper around the scanner that breaks quantified literal runs, +# collects emitted tokens into an array, calculates their nesting depth, and +# normalizes tokens for the parser, and checks if they are implemented by the +# given syntax flavor. +# +# source://regexp_parser//lib/regexp_parser/lexer.rb#5 +class Regexp::Lexer + # source://regexp_parser//lib/regexp_parser/lexer.rb#20 + def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + + private + + # source://regexp_parser//lib/regexp_parser/lexer.rb#71 + def ascend(type, token); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#108 + def break_codepoint_list(token); end + + # called by scan to break a literal run that is longer than one character + # into two separate tokens when it is followed by a quantifier + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#95 + def break_literal(token); end + + # Returns the value of attribute conditional_nesting. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def conditional_nesting; end + + # Sets the attribute conditional_nesting + # + # @param value the value to set the attribute conditional_nesting to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def conditional_nesting=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#82 + def descend(type, token); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#123 + def merge_condition(current); end + + # Returns the value of attribute nesting. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def nesting; end + + # Sets the attribute nesting + # + # @param value the value to set the attribute nesting to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def nesting=(_arg0); end + + # Returns the value of attribute set_nesting. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def set_nesting; end + + # Sets the attribute set_nesting + # + # @param value the value to set the attribute set_nesting to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def set_nesting=(_arg0); end + + # Returns the value of attribute shift. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def shift; end + + # Sets the attribute shift + # + # @param value the value to set the attribute shift to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def shift=(_arg0); end + + # Returns the value of attribute tokens. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def tokens; end + + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. + # + # source://regexp_parser//lib/regexp_parser/lexer.rb#69 + def tokens=(_arg0); end + + class << self + # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + + # source://regexp_parser//lib/regexp_parser/lexer.rb#16 + def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + end +end + +# source://regexp_parser//lib/regexp_parser/lexer.rb#12 +Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/lexer.rb#14 +Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/lexer.rb#7 +Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#1 +class Regexp::MatchLength + include ::Enumerable + + # @return [MatchLength] a new instance of MatchLength + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#9 + def initialize(exp, opts = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#24 + def each(opts = T.unsafe(nil)); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#35 + def endless_each; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#44 + def fixed?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#40 + def include?(length); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#60 + def inspect; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#52 + def max; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#48 + def min; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#56 + def minmax; end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#65 + def to_re; end + + private + + # Returns the value of attribute base_max. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_max; end + + # Sets the attribute base_max + # + # @param value the value to set the attribute base_max to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_max=(_arg0); end + + # Returns the value of attribute base_min. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_min; end + + # Sets the attribute base_min + # + # @param value the value to set the attribute base_min to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def base_min=(_arg0); end + + # Returns the value of attribute exp_class. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def exp_class; end + + # Sets the attribute exp_class + # + # @param value the value to set the attribute exp_class to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def exp_class=(_arg0); end + + # Returns the value of attribute max_rep. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def max_rep; end + + # Sets the attribute max_rep + # + # @param value the value to set the attribute max_rep to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def max_rep=(_arg0); end + + # Returns the value of attribute min_rep. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def min_rep; end + + # Sets the attribute min_rep + # + # @param value the value to set the attribute min_rep to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def min_rep=(_arg0); end + + # Returns the value of attribute reify. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def reify; end + + # Sets the attribute reify + # + # @param value the value to set the attribute reify to. + # + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71 + def reify=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73 + def test_regexp; end + + class << self + # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#4 + def of(obj); end + end +end + +# source://regexp_parser//lib/regexp_parser/version.rb#2 +class Regexp::Parser + include ::Regexp::Expression + include ::Regexp::Expression::UnicodeProperty + + # source://regexp_parser//lib/regexp_parser/parser.rb#25 + def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + + private + + # source://regexp_parser//lib/regexp_parser/parser.rb#574 + def active_opts; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#99 + def anchor(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#262 + def assign_effective_number(exp); end + + # Assigns referenced expressions to refering expressions, e.g. if there is + # an instance of Backreference::Number, its #referenced_expression is set to + # the instance of Group::Capture that it refers to via its number. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#581 + def assign_referenced_expressions; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#227 + def backref(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#202 + def captured_group_count_at_level; end + + # Returns the value of attribute captured_group_counts. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def captured_group_counts; end + + # Sets the attribute captured_group_counts + # + # @param value the value to set the attribute captured_group_counts to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def captured_group_counts=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#570 + def close_completed_character_set_range; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#210 + def close_group; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#538 + def close_set; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#269 + def conditional(token); end + + # Returns the value of attribute conditional_nesting. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def conditional_nesting; end + + # Sets the attribute conditional_nesting + # + # @param value the value to set the attribute conditional_nesting to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def conditional_nesting=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#206 + def count_captured_group; end + + # @yield [node] + # + # source://regexp_parser//lib/regexp_parser/parser.rb#216 + def decrease_nesting; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#305 + def escape(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#60 + def extract_options(input, options); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#347 + def free_space(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#114 + def group(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#511 + def increase_group_level(exp); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#549 + def intersection(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#362 + def keep(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#366 + def literal(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#370 + def meta(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#534 + def negate_set; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#299 + def nest(exp); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#294 + def nest_conditional(exp); end + + # Returns the value of attribute nesting. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def nesting; end + + # Sets the attribute nesting + # + # @param value the value to set the attribute nesting to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def nesting=(_arg0); end + + # Returns the value of attribute node. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def node; end + + # Sets the attribute node + # + # @param value the value to set the attribute node to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def node=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#165 + def open_group(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#529 + def open_set(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#130 + def options_group(token); end + + # Returns the value of attribute options_stack. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def options_stack; end + + # Sets the attribute options_stack + # + # @param value the value to set the attribute options_stack to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def options_stack=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#76 + def parse_token(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#392 + def posixclass(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#399 + def property(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#480 + def quantifier(token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#542 + def range(token); end + + # Returns the value of attribute root. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def root; end + + # Sets the attribute root + # + # @param value the value to set the attribute root to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def root=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#381 + def sequence_operation(klass, token); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#517 + def set(token); end + + # Returns the value of attribute switching_options. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def switching_options; end + + # Sets the attribute switching_options + # + # @param value the value to set the attribute switching_options to. + # + # source://regexp_parser//lib/regexp_parser/parser.rb#56 + def switching_options=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/parser.rb#198 + def total_captured_group_count; end + + # source://regexp_parser//lib/regexp_parser/parser.rb#553 + def type(token); end + + class << self + # source://regexp_parser//lib/regexp_parser/parser.rb#21 + def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end + end +end + +# source://regexp_parser//lib/regexp_parser/parser.rb#128 +Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array) + +# base class for all gem-specific errors +# +# source://regexp_parser//lib/regexp_parser/error.rb#3 +class Regexp::Parser::Error < ::StandardError; end + +# source://regexp_parser//lib/regexp_parser/parser.rb#127 +Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/parser.rb#7 +class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end + +# source://regexp_parser//lib/regexp_parser/parser.rb#397 +Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty + +# source://regexp_parser//lib/regexp_parser/parser.rb#15 +class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError + # @return [UnknownTokenError] a new instance of UnknownTokenError + # + # source://regexp_parser//lib/regexp_parser/parser.rb#16 + def initialize(type, token); end +end + +# source://regexp_parser//lib/regexp_parser/parser.rb#9 +class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError + # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError + # + # source://regexp_parser//lib/regexp_parser/parser.rb#10 + def initialize(type, token); end +end + +# source://regexp_parser//lib/regexp_parser/version.rb#3 +Regexp::Parser::VERSION = T.let(T.unsafe(nil), String) + +# source://regexp_parser//lib/regexp_parser/scanner.rb#13 +class Regexp::Scanner + # Emits an array with the details of the scanned pattern + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2555 + def emit(type, token, text); end + + # @raise [PrematureEndError] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#84 + def scan(input_object, options: T.unsafe(nil), &block); end + + private + + # Appends one or more characters to the literal buffer, to be emitted later + # by a call to emit_literal. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2606 + def append_literal(data, ts, te); end + + # Returns the value of attribute block. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def block; end + + # Sets the attribute block + # + # @param value the value to set the attribute block to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def block=(_arg0); end + + # Returns the value of attribute char_pos. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def char_pos; end + + # Sets the attribute char_pos + # + # @param value the value to set the attribute char_pos to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def char_pos=(_arg0); end + + # Returns the value of attribute conditional_stack. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def conditional_stack; end + + # Sets the attribute conditional_stack + # + # @param value the value to set the attribute conditional_stack to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def conditional_stack=(_arg0); end + + # Copy from ts to te from data as text + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2600 + def copy(data, ts, te); end + + # Emits the literal run collected by calls to the append_literal method. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2612 + def emit_literal; end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2647 + def emit_meta_control_sequence(data, ts, te, token); end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2618 + def emit_options(text); end + + # Returns the value of attribute free_spacing. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def free_spacing; end + + # Sets the attribute free_spacing + # + # @param value the value to set the attribute free_spacing to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def free_spacing=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2579 + def free_spacing?(input_object, options); end + + # Returns the value of attribute group_depth. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def group_depth; end + + # Sets the attribute group_depth + # + # @param value the value to set the attribute group_depth to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def group_depth=(_arg0); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2591 + def in_group?; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2595 + def in_set?; end + + # Returns the value of attribute literal. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def literal; end + + # Sets the attribute literal + # + # @param value the value to set the attribute literal to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def literal=(_arg0); end + + # Returns the value of attribute set_depth. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def set_depth; end + + # Sets the attribute set_depth + # + # @param value the value to set the attribute set_depth to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def set_depth=(_arg0); end + + # Returns the value of attribute spacing_stack. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def spacing_stack; end + + # Sets the attribute spacing_stack + # + # @param value the value to set the attribute spacing_stack to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def spacing_stack=(_arg0); end + + # Returns the value of attribute tokens. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def tokens; end + + # Sets the attribute tokens + # + # @param value the value to set the attribute tokens to. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2576 + def tokens=(_arg0); end + + # Centralizes and unifies the handling of validation related + # errors. + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2656 + def validation_error(type, what, reason = T.unsafe(nil)); end + + class << self + # source://regexp_parser//lib/regexp_parser/scanner.rb#2541 + def long_prop_map; end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2545 + def parse_prop_map(name); end + + # source://regexp_parser//lib/regexp_parser/scanner.rb#2549 + def posix_classes; end + + # Scans the given regular expression text, or Regexp object and collects the + # emitted token into an array that gets returned at the end. If a block is + # given, it gets called for each emitted token. + # + # This method may raise errors if a syntax error is encountered. + # -------------------------------------------------------------------------- + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#80 + def scan(input_object, options: T.unsafe(nil), &block); end + + # lazy-load property maps when first needed + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#2537 + def short_prop_map; end + end +end + +# Invalid back reference. Used for name a number refs/calls. +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#54 +class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError + # @return [InvalidBackrefError] a new instance of InvalidBackrefError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#55 + def initialize(what, reason); end +end + +# Invalid group. Used for named groups. +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#39 +class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError + # @return [InvalidGroupError] a new instance of InvalidGroupError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#40 + def initialize(what, reason); end +end + +# Invalid groupOption. Used for inline options. +# TODO: should become InvalidGroupOptionError in v3.0.0 for consistency +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#47 +class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError + # @return [InvalidGroupOption] a new instance of InvalidGroupOption + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#48 + def initialize(option, text); end +end + +# Invalid sequence format. Used for escape sequences, mainly. +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#32 +class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError + # @return [InvalidSequenceError] a new instance of InvalidSequenceError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#33 + def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end +end + +# Unexpected end of pattern +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#25 +class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError + # @return [PrematureEndError] a new instance of PrematureEndError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#26 + def initialize(where = T.unsafe(nil)); end +end + +# General scanner error (catch all) +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#15 +class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end + +# The POSIX class name was not recognized by the scanner. +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#68 +class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError + # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#69 + def initialize(text); end +end + +# The property name was not recognized by the scanner. +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#61 +class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError + # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#62 + def initialize(name); end +end + +# Base for all scanner validation errors +# +# source://regexp_parser//lib/regexp_parser/scanner.rb#18 +class Regexp::Scanner::ValidationError < ::Regexp::Parser::Error + # @return [ValidationError] a new instance of ValidationError + # + # source://regexp_parser//lib/regexp_parser/scanner.rb#19 + def initialize(reason); end +end + +# After loading all the tokens the map is full. Extract all tokens and types +# into the All and Types constants. +# +# source://regexp_parser//lib/regexp_parser/syntax.rb#3 +module Regexp::Syntax + private + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#62 + def comparable(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#45 + def const_missing(const_name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#52 + def fallback_version_class(version); end + + # Returns the syntax specification class for the given syntax + # version name. The special names 'any' and '*' return Syntax::Any. + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + def for(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + def new(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#58 + def specified_versions; end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + def supported?(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + def version_class(version); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#67 + def warn_if_future_version(const_name); end + + class << self + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#62 + def comparable(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#45 + def const_missing(const_name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#52 + def fallback_version_class(version); end + + # Returns the syntax specification class for the given syntax + # version name. The special names 'any' and '*' return Syntax::Any. + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22 + def for(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26 + def new(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#58 + def specified_versions; end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32 + def supported?(name); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36 + def version_class(version); end + + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#67 + def warn_if_future_version(const_name); end + end +end + +# A syntax that always returns true, passing all tokens as implemented. This +# is useful during development, testing, and should be useful for some types +# of transformations as well. +# +# source://regexp_parser//lib/regexp_parser/syntax/any.rb#5 +class Regexp::Syntax::Any < ::Regexp::Syntax::Base + class << self + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/any.rb#8 + def implements?(_type, _token); end + end +end + +# A lookup map of supported types and tokens in a given syntax +# +# source://regexp_parser//lib/regexp_parser/syntax/base.rb#9 +class Regexp::Syntax::Base + include ::Regexp::Syntax::Token + + # TODO: drop this backwards compatibility code in v3.0.0, do `private :new` + # + # @return [Base] a new instance of Base + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#99 + def initialize; end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#104 + def method_missing(name, *args); end + + private + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#115 + def respond_to_missing?(name, include_private = T.unsafe(nil)); end + + class << self + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#46 + def added_features; end + + # @raise [NotImplementedError] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + def check!(type, token); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + def check?(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#26 + def excludes(type, tokens); end + + # Returns the value of attribute features. + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + def features; end + + # Sets the attribute features + # + # @param value the value to set the attribute features to. + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13 + def features=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#36 + def implementations(type); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#21 + def implements(type, tokens); end + + # @raise [NotImplementedError] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40 + def implements!(type, token); end + + # @return [Boolean] + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31 + def implements?(type, token); end + + # automatically inherit features through the syntax class hierarchy + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#16 + def inherited(subclass); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#54 + def normalize(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#74 + def normalize_backref(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#65 + def normalize_group(type, token); end + + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#50 + def removed_features; end + end +end + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6 +class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError + # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#7 + def initialize(name); end +end + +# source://regexp_parser//lib/regexp_parser/syntax/base.rb#2 +class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError + # @return [NotImplementedError] a new instance of NotImplementedError + # + # source://regexp_parser//lib/regexp_parser/syntax/base.rb#3 + def initialize(syntax, type, token); end +end + +# source://regexp_parser//lib/regexp_parser/syntax.rb#4 +class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#3 +module Regexp::Syntax::Token; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#42 +Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#3 +module Regexp::Syntax::Token::Anchor; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#9 +Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#4 +Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#5 +Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#7 +Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#6 +Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#10 +Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#3 +module Regexp::Syntax::Token::Assertion; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#7 +Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#4 +Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#5 +Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#8 +Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#3 +module Regexp::Syntax::Token::Backreference; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#15 +Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#7 +Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#6 +Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#5 +Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#4 +Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#9 +Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#16 +Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#11 +Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#13 +Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#3 +module Regexp::Syntax::Token::CharacterSet; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#7 +Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#4 +Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#5 +Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#8 +Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#3 +module Regexp::Syntax::Token::CharacterType; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#10 +Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#4 +Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#8 +Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#5 +Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#6 +Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#11 +Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#3 +module Regexp::Syntax::Token::Conditional; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#9 +Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#6 +Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#4 +Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#7 +Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#11 +Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol) + +# TODO: unify naming with RE::EscapeSequence, one way or the other, in v3.0.0 +# +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#4 +module Regexp::Syntax::Token::Escape; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#9 +Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#25 +Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#5 +Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#7 +Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#21 +Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#14 +Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#23 +Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#26 +Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#12 +Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#11 +module Regexp::Syntax::Token::FreeSpace; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#12 +Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#13 +Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#3 +module Regexp::Syntax::Token::Group; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#17 +Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#8 +Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#4 +Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#10 +Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#5 +Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#7 +Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#9 +Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#18 +Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#12 +Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#15 +Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#3 +module Regexp::Syntax::Token::Keep; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#6 +Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#4 +Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#7 +Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#6 +module Regexp::Syntax::Token::Literal; end + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#7 +Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#8 +Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#4 +Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#3 +module Regexp::Syntax::Token::Meta; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#7 +Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#4 +Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#5 +Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#8 +Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#3 +module Regexp::Syntax::Token::PosixClass; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#9 +Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#7 +Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#11 +Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#4 +Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#10 +Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3 +module Regexp::Syntax::Token::Quantifier; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#29 +Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#4 +Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#22 +Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#26 +Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#24 +Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#23 +Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#16 +Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#10 +Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#30 +Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#28 +Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array) + +# Type is the same as Backreference so keeping it here, for now. +# +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#20 +module Regexp::Syntax::Token::SubexpressionCall; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#24 +Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#21 +Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#22 +Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token.rb#43 +Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#3 +module Regexp::Syntax::Token::UnicodeProperty; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#64 +Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#40 +Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#44 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#46 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#48 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#50 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#52 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#54 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#56 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#58 +Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#60 +Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62 +Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#708 +Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13 +module Regexp::Syntax::Token::UnicodeProperty::Category; end + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#36 +Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#33 +Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#14 +Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#17 +Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#20 +Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#23 +Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#30 +Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#27 +Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#6 +Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#9 +Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#133 +Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#66 +Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#120 +Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#125 +Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129 +Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#693 +Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#685 +Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#711 +Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11 +Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#330 +Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#135 +Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#231 +Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#237 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#247 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#273 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#282 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#291 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#298 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#308 +Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#315 +Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322 +Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#710 +Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#683 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#332 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#431 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#559 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#594 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#607 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#621 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#631 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#645 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#657 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#668 +Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#695 +Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#696 +Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#697 +Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#698 +Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#699 +Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#700 +Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#701 +Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702 +Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#703 +Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#704 +Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#705 +Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706 +Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12 +class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError + # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError + # + # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#13 + def initialize(name); end +end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.8.6.rb#1 +class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.1.rb#1 +class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.3.rb#1 +class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.0.0.rb#1 +class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.2.0.rb#1 +class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.3.0.rb#1 +class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.0.rb#1 +class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.1.rb#1 +class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.5.0.rb#1 +class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.0.rb#1 +class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.2.rb#1 +class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.3.rb#1 +class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.1.0.rb#1 +class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end + +# source://regexp_parser//lib/regexp_parser/syntax/versions/3.2.0.rb#1 +class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#4 +Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#2 +Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String) + +# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#3 +Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp) + +# source://regexp_parser//lib/regexp_parser/token.rb#2 +Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array) + +# source://regexp_parser//lib/regexp_parser/token.rb#13 +class Regexp::Token < ::Struct + def conditional_level; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def conditional_level=(_); end + + # source://regexp_parser//lib/regexp_parser/token.rb#20 + def length; end + + def level; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def level=(_); end + + # Returns the value of attribute next. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def next; end + + # Sets the attribute next + # + # @param value the value to set the attribute next to. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def next=(_arg0); end + + # source://regexp_parser//lib/regexp_parser/token.rb#16 + def offset; end + + # Returns the value of attribute previous. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def previous; end + + # Sets the attribute previous + # + # @param value the value to set the attribute previous to. + # + # source://regexp_parser//lib/regexp_parser/token.rb#14 + def previous=(_arg0); end + + def set_level; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def set_level=(_); end + + def te; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def te=(_); end + + def text; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def text=(_); end + + def token; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def token=(_); end + + def ts; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def ts=(_); end + + def type; end + + # source://regexp_parser//lib/regexp_parser/token.rb#13 + def type=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def members; end + def new(*_arg0); end + end +end diff --git a/sorbet/rbi/gems/rspec-core@3.11.0.rbi b/sorbet/rbi/gems/rspec-core@3.12.0.rbi similarity index 67% rename from sorbet/rbi/gems/rspec-core@3.11.0.rbi rename to sorbet/rbi/gems/rspec-core@3.12.0.rbi index 96b0f9a8..0d02edc7 100644 --- a/sorbet/rbi/gems/rspec-core@3.11.0.rbi +++ b/sorbet/rbi/gems/rspec-core@3.12.0.rbi @@ -6,7 +6,7 @@ # Namespace for all core RSpec code. # -# source://rspec-core-3.11.0/lib/rspec/core/version.rb:1 +# source://rspec-core//lib/rspec/core/version.rb#1 module RSpec extend ::RSpec::Core::Warnings @@ -18,7 +18,7 @@ module RSpec # current configuration when they use the runner multiple times within the # same process. # - # source://rspec-core-3.11.0/lib/rspec/core.rb:70 + # source://rspec-core//lib/rspec/core.rb#70 def clear_examples; end # Returns the global [Configuration](RSpec/Core/Configuration) object. While @@ -30,14 +30,14 @@ module RSpec # @see RSpec.configure # @see Core::Configuration # - # source://rspec-core-3.11.0/lib/rspec/core.rb:85 + # source://rspec-core//lib/rspec/core.rb#85 def configuration; end # Setters for shared global objects # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core//lib/rspec/core.rb#49 def configuration=(_arg0); end # Yields the global configuration to a block. @@ -49,15 +49,15 @@ module RSpec # @see Core::Configuration # @yield [Configuration] global configuration # - # source://rspec-core-3.11.0/lib/rspec/core.rb:97 + # source://rspec-core//lib/rspec/core.rb#97 def configure; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core.rb:194 + # source://rspec-core//lib/rspec/core.rb#194 def const_missing(name); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def context(*args, &example_group_block); end # The example being executed. @@ -81,14 +81,14 @@ module RSpec # end # end # - # source://rspec-core-3.11.0/lib/rspec/core.rb:122 + # source://rspec-core//lib/rspec/core.rb#122 def current_example; end # Set the current example being executed. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core.rb:128 + # source://rspec-core//lib/rspec/core.rb#128 def current_example=(example); end # Get the current RSpec execution scope @@ -108,26 +108,26 @@ module RSpec # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core.rb:154 + # source://rspec-core//lib/rspec/core.rb#154 def current_scope; end # Set the current scope rspec is executing in # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core.rb:134 + # source://rspec-core//lib/rspec/core.rb#134 def current_scope=(scope); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def describe(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def example_group(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def fcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def fdescribe(*args, &example_group_block); end # Used to ensure examples get reloaded and user configuration gets reset to @@ -137,48 +137,48 @@ module RSpec # they use the runner multiple times within the same process. Users must deal # themselves with re-configuration of RSpec before run. # - # source://rspec-core-3.11.0/lib/rspec/core.rb:58 + # source://rspec-core//lib/rspec/core.rb#58 def reset; end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 def shared_context(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 def shared_examples(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 def shared_examples_for(name, *args, &block); end # Internal container for global non-configuration data. # # @private # - # source://rspec-core-3.11.0/lib/rspec/core.rb:160 + # source://rspec-core//lib/rspec/core.rb#160 def world; end # Setters for shared global objects # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core//lib/rspec/core.rb#49 def world=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def xcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core//lib/rspec/core/dsl.rb#42 def xdescribe(*args, &example_group_block); end end end # Namespace for the rspec-core code. # -# source://rspec-core-3.11.0/lib/rspec/core/version.rb:2 +# source://rspec-core//lib/rspec/core/version.rb#2 module RSpec::Core class << self # @private path to executable file. # - # source://rspec-core-3.11.0/lib/rspec/core.rb:181 + # source://rspec-core//lib/rspec/core.rb#181 def path_to_executable; end end end @@ -187,88 +187,88 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:775 +# source://rspec-core//lib/rspec/core/example_group.rb#775 class RSpec::Core::AnonymousExampleGroup < ::RSpec::Core::ExampleGroup class << self - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:776 + # source://rspec-core//lib/rspec/core/example_group.rb#776 def metadata; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:4 +# source://rspec-core//lib/rspec/core/backtrace_formatter.rb#4 class RSpec::Core::BacktraceFormatter # @return [BacktraceFormatter] a new instance of BacktraceFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:8 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#8 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:49 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#49 def backtrace_line(line); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:53 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#53 def exclude?(line); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:6 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 def exclusion_patterns; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:6 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 def exclusion_patterns=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:28 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#28 def filter_gem(gem_name); end - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:33 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#33 def format_backtrace(backtrace, options = T.unsafe(nil)); end # Sets the attribute full_backtrace # # @param value the value to set the attribute full_backtrace to. # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:22 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#22 def full_backtrace=(_arg0); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:24 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#24 def full_backtrace?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:6 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 def inclusion_patterns; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:6 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#6 def inclusion_patterns=(_arg0); end private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/backtrace_formatter.rb:60 + # source://rspec-core//lib/rspec/core/backtrace_formatter.rb#60 def matches?(patterns, line); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:3 +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#3 module RSpec::Core::Bisect; end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:8 +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#8 class RSpec::Core::Bisect::BisectFailedError < ::StandardError class << self - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:9 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#9 def for_failed_spec_run(spec_output); end end end @@ -280,29 +280,29 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:36 +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#36 class RSpec::Core::Bisect::Channel # @return [Channel] a new instance of Channel # - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:41 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#41 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:62 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#62 def close; end - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:56 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#56 def receive; end - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:50 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#50 def send(message); end end -# source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:38 +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#38 RSpec::Core::Bisect::Channel::MARSHAL_DUMP_ENCODING = T.let(T.unsafe(nil), Encoding) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:5 +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#5 class RSpec::Core::Bisect::ExampleSetDescriptor < ::Struct # Returns the value of attribute all_example_ids # @@ -314,7 +314,7 @@ class RSpec::Core::Bisect::ExampleSetDescriptor < ::Struct # @param value [Object] the value to set the attribute all_example_ids to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:5 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#5 def all_example_ids=(_); end # Returns the value of attribute failed_example_ids @@ -327,7 +327,7 @@ class RSpec::Core::Bisect::ExampleSetDescriptor < ::Struct # @param value [Object] the value to set the attribute failed_example_ids to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:5 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#5 def failed_example_ids=(_); end class << self @@ -344,14 +344,14 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:19 +# source://rspec-core//lib/rspec/core/bisect/utilities.rb#19 class RSpec::Core::Bisect::Notifier # @return [Notifier] a new instance of Notifier # - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:20 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#20 def initialize(formatter); end - # source://rspec-core-3.11.0/lib/rspec/core/bisect/utilities.rb:24 + # source://rspec-core//lib/rspec/core/bisect/utilities.rb#24 def publish(event, *args); end end @@ -391,7 +391,7 @@ end # @see RSpec.configure # @see Hooks # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:47 +# source://rspec-core//lib/rspec/core/configuration.rb#47 class RSpec::Core::Configuration include ::RSpec::Core::Hooks include ::RSpec::Core::Configuration::Readers @@ -400,7 +400,7 @@ class RSpec::Core::Configuration # # @return [Configuration] a new instance of Configuration # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:508 + # source://rspec-core//lib/rspec/core/configuration.rb#509 def initialize; end # Adds a formatter to the set RSpec will use for this run. @@ -417,7 +417,7 @@ class RSpec::Core::Configuration # the configured `output_stream` (`$stdout`, by default) will be used. # @see RSpec::Core::Formatters::Protocol # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:973 + # source://rspec-core//lib/rspec/core/configuration.rb#975 def add_formatter(formatter, output = T.unsafe(nil)); end # Adds a custom setting to the RSpec.configuration object. @@ -446,7 +446,7 @@ class RSpec::Core::Configuration # @overload add_setting # @param opts [Hash] a customizable set of options # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:636 + # source://rspec-core//lib/rspec/core/configuration.rb#638 def add_setting(name, opts = T.unsafe(nil)); end # Defines a `after` hook. See {Hooks#after} for full docs. @@ -460,7 +460,7 @@ class RSpec::Core::Configuration # @see #before # @see #prepend_before # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2002 + # source://rspec-core//lib/rspec/core/configuration.rb#2004 def after(scope = T.unsafe(nil), *meta, &block); end # Creates a method that defines an example group with the provided @@ -490,7 +490,7 @@ class RSpec::Core::Configuration # @see #alias_example_to # @see #expose_dsl_globally= # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1186 + # source://rspec-core//lib/rspec/core/configuration.rb#1188 def alias_example_group_to(new_name, *args); end # Creates a method that delegates to `example` including the submitted @@ -525,7 +525,7 @@ class RSpec::Core::Configuration # @param name [String] example name alias # @param args [Array, Hash] metadata for the generated example # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1154 + # source://rspec-core//lib/rspec/core/configuration.rb#1156 def alias_example_to(name, *args); end # Define an alias for it_should_behave_like that allows different @@ -554,7 +554,7 @@ class RSpec::Core::Configuration # in RSpec to define `it_should_behave_like` (for backward # compatibility), but we also add docs for that method. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1217 + # source://rspec-core//lib/rspec/core/configuration.rb#1219 def alias_it_behaves_like_to(new_name, report_label = T.unsafe(nil)); end # Define an alias for it_should_behave_like that allows different @@ -583,7 +583,7 @@ class RSpec::Core::Configuration # in RSpec to define `it_should_behave_like` (for backward # compatibility), but we also add docs for that method. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1217 + # source://rspec-core//lib/rspec/core/configuration.rb#1219 def alias_it_should_behave_like_to(new_name, report_label = T.unsafe(nil)); end # Adds `block` to the end of the list of `after` blocks in the same @@ -601,7 +601,7 @@ class RSpec::Core::Configuration # @see #before # @see #prepend_before # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2032 + # source://rspec-core//lib/rspec/core/configuration.rb#2034 def append_after(scope = T.unsafe(nil), *meta, &block); end # Defines a `before` hook. See {Hooks#before} for full docs. @@ -615,20 +615,20 @@ class RSpec::Core::Configuration # @see #after # @see #append_after # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1947 + # source://rspec-core//lib/rspec/core/configuration.rb#1949 def append_before(scope = T.unsafe(nil), *meta, &block); end # @private # @raise [SystemStackError] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1912 + # source://rspec-core//lib/rspec/core/configuration.rb#1914 def apply_derived_metadata_to(metadata); end # Registers `block` as an `around` hook. # # See {Hooks#around} for full `around` hook docs. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2050 + # source://rspec-core//lib/rspec/core/configuration.rb#2052 def around(scope = T.unsafe(nil), *meta, &block); end # Regexps used to exclude lines from backtraces. @@ -645,19 +645,19 @@ class RSpec::Core::Configuration # # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:674 + # source://rspec-core//lib/rspec/core/configuration.rb#676 def backtrace_exclusion_patterns; end # Set regular expressions used to exclude lines in backtrace. # # @param patterns [Array] set backtrace_formatter exlusion_patterns # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:680 + # source://rspec-core//lib/rspec/core/configuration.rb#682 def backtrace_exclusion_patterns=(patterns); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:503 + # source://rspec-core//lib/rspec/core/configuration.rb#503 def backtrace_formatter; end # Regexps used to include lines in backtraces. @@ -671,14 +671,14 @@ class RSpec::Core::Configuration # # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:693 + # source://rspec-core//lib/rspec/core/configuration.rb#695 def backtrace_inclusion_patterns; end # Set regular expressions used to include lines in backtrace. # # @attr patterns [Array] set backtrace_formatter inclusion_patterns # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:699 + # source://rspec-core//lib/rspec/core/configuration.rb#701 def backtrace_inclusion_patterns=(patterns); end # Defines a `before` hook. See {Hooks#before} for full docs. @@ -692,7 +692,7 @@ class RSpec::Core::Configuration # @see #after # @see #append_after # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1947 + # source://rspec-core//lib/rspec/core/configuration.rb#1949 def before(scope = T.unsafe(nil), *meta, &block); end # Determines which bisect runner implementation gets used to run subsets @@ -714,15 +714,15 @@ class RSpec::Core::Configuration # loaded via `--require`. # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:480 + # source://rspec-core//lib/rspec/core/configuration.rb#480 def bisect_runner; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:481 + # source://rspec-core//lib/rspec/core/configuration.rb#481 def bisect_runner=(value); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2096 + # source://rspec-core//lib/rspec/core/configuration.rb#2098 def bisect_runner_class; end # Enables color output if the output is a TTY. As of RSpec 3.6, this is @@ -736,7 +736,7 @@ class RSpec::Core::Configuration # @see color_mode # @see color_enabled? # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:899 + # source://rspec-core//lib/rspec/core/configuration.rb#901 def color; end # Toggle output color. @@ -745,7 +745,7 @@ class RSpec::Core::Configuration # rely on the fact that TTYs will display color by default, or set # {:color_mode} to :on to display color on a non-TTY output. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:937 + # source://rspec-core//lib/rspec/core/configuration.rb#939 def color=(_arg0); end # Check if color is enabled for a particular output. @@ -754,7 +754,7 @@ class RSpec::Core::Configuration # `output_stream` # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:920 + # source://rspec-core//lib/rspec/core/configuration.rb#922 def color_enabled?(output = T.unsafe(nil)); end # The mode for determining whether to display output in color. One of: @@ -767,12 +767,12 @@ class RSpec::Core::Configuration # @return [Boolean] # @see color_enabled? # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:912 + # source://rspec-core//lib/rspec/core/configuration.rb#914 def color_mode; end # Set the color mode. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:930 + # source://rspec-core//lib/rspec/core/configuration.rb#932 def color_mode=(_arg0); end # Used internally to extend the singleton class of a single example's @@ -780,12 +780,12 @@ class RSpec::Core::Configuration # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1554 + # source://rspec-core//lib/rspec/core/configuration.rb#1556 def configure_example(example, example_hooks); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1594 + # source://rspec-core//lib/rspec/core/configuration.rb#1596 def configure_expectation_framework; end # Used internally to extend a group with modules using `include`, `prepend` and/or @@ -793,12 +793,12 @@ class RSpec::Core::Configuration # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1542 + # source://rspec-core//lib/rspec/core/configuration.rb#1544 def configure_group(group); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1588 + # source://rspec-core//lib/rspec/core/configuration.rb#1590 def configure_mock_framework; end # The default output color. Defaults to `:white` but can be set to one of @@ -807,7 +807,7 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def default_color; end # The default output color. Defaults to `:white` but can be set to one of @@ -816,16 +816,16 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def default_color=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def default_color?; end # The formatter that will be used if no formatter has been set. # Defaults to 'progress'. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:980 + # source://rspec-core//lib/rspec/core/configuration.rb#982 def default_formatter; end # Sets a fallback formatter to use if none other has been set. @@ -836,7 +836,7 @@ class RSpec::Core::Configuration # rspec.default_formatter = 'doc' # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:991 + # source://rspec-core//lib/rspec/core/configuration.rb#993 def default_formatter=(value); end # Path to use if no path is provided to the `rspec` command (default: @@ -847,7 +847,7 @@ class RSpec::Core::Configuration # setting. # @return [String] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def default_path; end # Path to use if no path is provided to the `rspec` command (default: @@ -858,10 +858,10 @@ class RSpec::Core::Configuration # setting. # @return [String] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:121 + # source://rspec-core//lib/rspec/core/configuration.rb#121 def default_path=(path); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def default_path?; end # Defines a callback that can assign derived metadata values. @@ -881,7 +881,7 @@ class RSpec::Core::Configuration # @yieldparam metadata [Hash] original metadata hash from an example or # group. Mutate this in your block as needed. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1871 + # source://rspec-core//lib/rspec/core/configuration.rb#1873 def define_derived_metadata(*filters, &block); end # Determines where deprecation warnings are printed. @@ -889,14 +889,14 @@ class RSpec::Core::Configuration # # @return [IO, String] IO or filename to write to # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def deprecation_stream; end # Determines where deprecation warnings are printed. # # @param value [IO, String] IO to write to or filename to write to # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:168 + # source://rspec-core//lib/rspec/core/configuration.rb#168 def deprecation_stream=(value); end # Color used to print details. Defaults to `:cyan` but can be set to one @@ -905,7 +905,7 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def detail_color; end # Color used to print details. Defaults to `:cyan` but can be set to one @@ -914,15 +914,15 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def detail_color=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def detail_color?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1852 + # source://rspec-core//lib/rspec/core/configuration.rb#1854 def disable_monkey_patching; end # Enables zero monkey patching mode for RSpec. It removes monkey @@ -960,12 +960,12 @@ class RSpec::Core::Configuration # (or similiar) they will still have monkey patching active # in their test environment from mocha. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1844 + # source://rspec-core//lib/rspec/core/configuration.rb#1846 def disable_monkey_patching!; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1852 + # source://rspec-core//lib/rspec/core/configuration.rb#1854 def disable_monkey_patching=(_arg0); end # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb @@ -973,7 +973,7 @@ class RSpec::Core::Configuration # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def drb; end # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb @@ -981,68 +981,68 @@ class RSpec::Core::Configuration # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def drb=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def drb?; end # The drb_port (default: nil). # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def drb_port; end # The drb_port (default: nil). # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def drb_port=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def drb_port?; end # Prints the formatter output of your suite without running any # examples or hooks. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def dry_run; end # Prints the formatter output of your suite without running any # examples or hooks. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def dry_run=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def dry_run?; end # The exit code to return if there are any errors outside examples (default: failure_exit_code) # # @return [Integer] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def error_exit_code; end # The exit code to return if there are any errors outside examples (default: failure_exit_code) # # @return [Integer] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def error_exit_code=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def error_exit_code?; end # Default: `$stderr`. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def error_stream; end # Default: `$stderr`. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def error_stream=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def error_stream?; end # The file path to use for persisting example statuses. Necessary for the @@ -1051,33 +1051,33 @@ class RSpec::Core::Configuration # @overload example_status_persistence_file_path # @overload example_status_persistence_file_path= # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def example_status_persistence_file_path; end # Sets the file path to use for persisting example statuses. Necessary for the # `--only-failures` and `--next-failure` CLI options. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:192 + # source://rspec-core//lib/rspec/core/configuration.rb#192 def example_status_persistence_file_path=(value); end # Exclude files matching this pattern. # # @return [String] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def exclude_pattern; end # Set pattern to match files to exclude. # # @attr value [String] the filename pattern to exclude spec files by # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:304 + # source://rspec-core//lib/rspec/core/configuration.rb#304 def exclude_pattern=(value); end # Returns the `exclusion_filter`. If none has been set, returns an empty # hash. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1346 + # source://rspec-core//lib/rspec/core/configuration.rb#1348 def exclusion_filter; end # Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't @@ -1088,7 +1088,7 @@ class RSpec::Core::Configuration # This overrides any exclusion filters/tags set on the command line or in # configuration files. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1339 + # source://rspec-core//lib/rspec/core/configuration.rb#1341 def exclusion_filter=(filter); end # Sets the expectation framework module(s) to be included in each example @@ -1115,17 +1115,17 @@ class RSpec::Core::Configuration # custom_config.custom_setting = true # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:835 + # source://rspec-core//lib/rspec/core/configuration.rb#837 def expect_with(*frameworks); end # Delegates to expect_with(framework). # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:808 + # source://rspec-core//lib/rspec/core/configuration.rb#810 def expectation_framework=(framework); end # Returns the configured expectation framework adapter module(s) # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:796 + # source://rspec-core//lib/rspec/core/configuration.rb#798 def expectation_frameworks; end # Exposes the current running example via the named @@ -1150,7 +1150,7 @@ class RSpec::Core::Configuration # end # @param method_name [Symbol] the name of the helper method # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1782 + # source://rspec-core//lib/rspec/core/configuration.rb#1784 def expose_current_running_example_as(method_name); end # Use this to expose the core RSpec DSL via `Module` and the `main` @@ -1158,7 +1158,7 @@ class RSpec::Core::Configuration # remove the DSL. # Default: true # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:151 + # source://rspec-core//lib/rspec/core/configuration.rb#151 def expose_dsl_globally=(value); end # Indicates if the DSL has been exposed off of modules and `main`. @@ -1166,7 +1166,7 @@ class RSpec::Core::Configuration # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:143 + # source://rspec-core//lib/rspec/core/configuration.rb#143 def expose_dsl_globally?; end # Tells RSpec to extend example groups with `mod`. Methods defined in @@ -1207,36 +1207,36 @@ class RSpec::Core::Configuration # @see #include # @see #prepend # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1492 + # source://rspec-core//lib/rspec/core/configuration.rb#1494 def extend(mod, *filters); end # If specified, indicates the number of failures required before cleaning # up and exit (default: `nil`). Can also be `true` to fail and exit on first # failure # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def fail_fast; end # @see fail_fast # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:214 + # source://rspec-core//lib/rspec/core/configuration.rb#214 def fail_fast=(value); end # Whether or not to fail when there are no RSpec examples (default: false). # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def fail_if_no_examples; end # Whether or not to fail when there are no RSpec examples (default: false). # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def fail_if_no_examples=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def fail_if_no_examples?; end # Color to use to indicate failure. Defaults to `:red` but can be set to @@ -1245,7 +1245,7 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def failure_color; end # Color to use to indicate failure. Defaults to `:red` but can be set to @@ -1254,50 +1254,50 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def failure_color=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def failure_color?; end # The exit code to return if there are any failures (default: 1). # # @return [Integer] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def failure_exit_code; end # The exit code to return if there are any failures (default: 1). # # @return [Integer] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def failure_exit_code=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def failure_exit_code?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1060 + # source://rspec-core//lib/rspec/core/configuration.rb#1062 def files_or_directories_to_run=(*files); end # The spec files RSpec will run. # # @return [Array] specified files about to run # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1073 + # source://rspec-core//lib/rspec/core/configuration.rb#1075 def files_to_run; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:497 + # source://rspec-core//lib/rspec/core/configuration.rb#497 def files_to_run=(_arg0); end # Returns the `inclusion_filter`. If none has been set, returns an empty # hash. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1290 + # source://rspec-core//lib/rspec/core/configuration.rb#1292 def filter; end # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't @@ -1308,7 +1308,7 @@ class RSpec::Core::Configuration # This overrides any inclusion filters/tags set on the command line or in # configuration files. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1281 + # source://rspec-core//lib/rspec/core/configuration.rb#1283 def filter=(filter); end # Adds {#backtrace_exclusion_patterns} that will filter lines from @@ -1326,17 +1326,17 @@ class RSpec::Core::Configuration # :path option, this will not filter it. # @param gem_names [Array] Names of the gems to filter # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:719 + # source://rspec-core//lib/rspec/core/configuration.rb#721 def filter_gems_from_backtrace(*gem_names); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:499 + # source://rspec-core//lib/rspec/core/configuration.rb#499 def filter_manager; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:499 + # source://rspec-core//lib/rspec/core/configuration.rb#499 def filter_manager=(_arg0); end # Adds key/value pairs to the `inclusion_filter`. If `args` @@ -1370,7 +1370,7 @@ class RSpec::Core::Configuration # # filter_run_including :foo # same as filter_run_including :foo => true # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1252 + # source://rspec-core//lib/rspec/core/configuration.rb#1254 def filter_run(*args); end # Adds key/value pairs to the `exclusion_filter`. If `args` @@ -1404,7 +1404,7 @@ class RSpec::Core::Configuration # # filter_run_excluding :foo # same as filter_run_excluding :foo => true # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1326 + # source://rspec-core//lib/rspec/core/configuration.rb#1328 def filter_run_excluding(*args); end # Adds key/value pairs to the `inclusion_filter`. If `args` @@ -1438,7 +1438,7 @@ class RSpec::Core::Configuration # # filter_run_including :foo # same as filter_run_including :foo => true # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1252 + # source://rspec-core//lib/rspec/core/configuration.rb#1254 def filter_run_including(*args); end # Applies the provided filter only if any of examples match, in constrast @@ -1451,7 +1451,7 @@ class RSpec::Core::Configuration # (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for # `describe`/`context`/`it` with `:focus` metadata. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1268 + # source://rspec-core//lib/rspec/core/configuration.rb#1270 def filter_run_when_matching(*args); end # Color used when a pending example is fixed. Defaults to `:blue` but can @@ -1460,7 +1460,7 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def fixed_color; end # Color used when a pending example is fixed. Defaults to `:blue` but can @@ -1469,17 +1469,17 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def fixed_color=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def fixed_color?; end # Used to set higher priority option values from the command line. # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:569 + # source://rspec-core//lib/rspec/core/configuration.rb#571 def force(hash); end # Formats the docstring output using the block provided. @@ -1491,12 +1491,12 @@ class RSpec::Core::Configuration # config.format_docstrings { |s| s.strip } # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1633 + # source://rspec-core//lib/rspec/core/configuration.rb#1635 def format_docstrings(&block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1638 + # source://rspec-core//lib/rspec/core/configuration.rb#1640 def format_docstrings_block; end # Adds a formatter to the set RSpec will use for this run. @@ -1513,12 +1513,12 @@ class RSpec::Core::Configuration # the configured `output_stream` (`$stdout`, by default) will be used. # @see RSpec::Core::Formatters::Protocol # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:973 + # source://rspec-core//lib/rspec/core/configuration.rb#975 def formatter=(formatter, output = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1006 + # source://rspec-core//lib/rspec/core/configuration.rb#1008 def formatter_loader; end # Returns a duplicate of the formatters currently loaded in @@ -1528,33 +1528,33 @@ class RSpec::Core::Configuration # # @return [Array] the formatters currently loaded # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1001 + # source://rspec-core//lib/rspec/core/configuration.rb#1003 def formatters; end # Toggle full backtrace. # # @attr true_or_false [Boolean] toggle full backtrace display # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:885 + # source://rspec-core//lib/rspec/core/configuration.rb#887 def full_backtrace=(true_or_false); end # Check if full backtrace is enabled. # # @return [Boolean] is full backtrace enabled # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:879 + # source://rspec-core//lib/rspec/core/configuration.rb#881 def full_backtrace?; end # @return [Array] full description filter # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:954 + # source://rspec-core//lib/rspec/core/configuration.rb#956 def full_description; end # Run examples matching on `description` in all files to run. # # @param description [String, Regexp] the pattern to filter on # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:949 + # source://rspec-core//lib/rspec/core/configuration.rb#951 def full_description=(description); end # Holds the various registered hooks. Here we use a FilterableItemRepository @@ -1563,12 +1563,12 @@ class RSpec::Core::Configuration # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2080 + # source://rspec-core//lib/rspec/core/configuration.rb#2082 def hooks; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1579 + # source://rspec-core//lib/rspec/core/configuration.rb#1581 def in_project_source_dir_regex; end # Tells RSpec to include `mod` in example groups. Methods defined in @@ -1622,7 +1622,7 @@ class RSpec::Core::Configuration # @see #extend # @see #prepend # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1402 + # source://rspec-core//lib/rspec/core/configuration.rb#1404 def include(mod, *filters); end # Tells RSpec to include the named shared example group in example groups. @@ -1665,13 +1665,13 @@ class RSpec::Core::Configuration # example. # @see #include # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1449 + # source://rspec-core//lib/rspec/core/configuration.rb#1451 def include_context(shared_group_name, *filters); end # Returns the `inclusion_filter`. If none has been set, returns an empty # hash. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1290 + # source://rspec-core//lib/rspec/core/configuration.rb#1292 def inclusion_filter; end # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't @@ -1682,12 +1682,12 @@ class RSpec::Core::Configuration # This overrides any inclusion filters/tags set on the command line or in # configuration files. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1281 + # source://rspec-core//lib/rspec/core/configuration.rb#1283 def inclusion_filter=(filter); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1078 + # source://rspec-core//lib/rspec/core/configuration.rb#1080 def last_run_statuses; end # Returns dirs that have been prepended to the load path by the `-I` @@ -1695,51 +1695,51 @@ class RSpec::Core::Configuration # # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def libs; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:940 + # source://rspec-core//lib/rspec/core/configuration.rb#942 def libs=(libs); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1602 + # source://rspec-core//lib/rspec/core/configuration.rb#1604 def load_spec_files; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:503 + # source://rspec-core//lib/rspec/core/configuration.rb#503 def loaded_spec_files; end # Maximum count of failed source lines to display in the failure reports. # (default `10`). # return [Integer] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def max_displayed_failure_line_count; end # Maximum count of failed source lines to display in the failure reports. # (default `10`). # return [Integer] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def max_displayed_failure_line_count=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def max_displayed_failure_line_count?; end # Returns the configured mock framework adapter module. # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:646 + # source://rspec-core//lib/rspec/core/configuration.rb#648 def mock_framework; end # Delegates to mock_framework=(framework). # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:658 + # source://rspec-core//lib/rspec/core/configuration.rb#660 def mock_framework=(framework); end # Sets the mock framework adapter module. @@ -1772,35 +1772,35 @@ class RSpec::Core::Configuration # mod_config.custom_setting = true # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:763 + # source://rspec-core//lib/rspec/core/configuration.rb#765 def mock_with(framework); end # Invokes block before defining an example group # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2085 + # source://rspec-core//lib/rspec/core/configuration.rb#2087 def on_example_group_definition(&block); end # Returns an array of blocks to call before defining an example group # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2091 + # source://rspec-core//lib/rspec/core/configuration.rb#2093 def on_example_group_definition_callbacks; end # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def only_failures; end # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def only_failures?; end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:203 + # source://rspec-core//lib/rspec/core/configuration.rb#203 def only_failures_but_not_configured?; end # Sets the default global ordering strategy. By default this can be one @@ -1810,15 +1810,15 @@ class RSpec::Core::Configuration # # @see #register_ordering # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1645 + # source://rspec-core//lib/rspec/core/configuration.rb#1647 def order=(*args, &block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:503 + # source://rspec-core//lib/rspec/core/configuration.rb#503 def ordering_manager; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1645 + # source://rspec-core//lib/rspec/core/configuration.rb#1647 def ordering_registry(*args, &block); end # Determines where RSpec will send its output. @@ -1826,28 +1826,28 @@ class RSpec::Core::Configuration # # @return [IO, String] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def output_stream; end # Set the output stream for reporter. # # @attr value [IO, String] IO to write to or filename to write to, defaults to $stdout # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:274 + # source://rspec-core//lib/rspec/core/configuration.rb#274 def output_stream=(value); end # Load files matching this pattern (default: `'**{,/*/**}/*_spec.rb'`). # # @return [String] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def pattern; end # Set pattern to match files to load. # # @attr value [String] the filename pattern to filter spec files by # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:293 + # source://rspec-core//lib/rspec/core/configuration.rb#293 def pattern=(value); end # Color to use to print pending examples. Defaults to `:yellow` but can @@ -1856,7 +1856,7 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def pending_color; end # Color to use to print pending examples. Defaults to `:yellow` but can @@ -1865,10 +1865,10 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def pending_color=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def pending_color?; end # Tells RSpec to prepend example groups with `mod`. Methods defined in @@ -1903,7 +1903,7 @@ class RSpec::Core::Configuration # @see #include # @see #extend # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1531 + # source://rspec-core//lib/rspec/core/configuration.rb#1533 def prepend(mod, *filters); end # Defines a `after` hook. See {Hooks#after} for full docs. @@ -1917,7 +1917,7 @@ class RSpec::Core::Configuration # @see #before # @see #prepend_before # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2002 + # source://rspec-core//lib/rspec/core/configuration.rb#2004 def prepend_after(scope = T.unsafe(nil), *meta, &block); end # Adds `block` to the start of the list of `before` blocks in the same @@ -1935,7 +1935,7 @@ class RSpec::Core::Configuration # @see #after # @see #append_after # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1977 + # source://rspec-core//lib/rspec/core/configuration.rb#1979 def prepend_before(scope = T.unsafe(nil), *meta, &block); end # Defaults `profile_examples` to 10 examples when `@profile_examples` is @@ -1943,7 +1943,7 @@ class RSpec::Core::Configuration # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1050 + # source://rspec-core//lib/rspec/core/configuration.rb#1052 def profile_examples; end # Report the times for the slowest examples (default: `false`). @@ -1951,10 +1951,10 @@ class RSpec::Core::Configuration # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:322 + # source://rspec-core//lib/rspec/core/configuration.rb#322 def profile_examples=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def profile_examples?; end # Specifies which directories contain the source code for your project. @@ -1966,7 +1966,7 @@ class RSpec::Core::Configuration # # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def project_source_dirs; end # Specifies which directories contain the source code for your project. @@ -1978,10 +1978,10 @@ class RSpec::Core::Configuration # # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def project_source_dirs=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def project_source_dirs?; end # Turns deprecation warnings into errors, in order to surface @@ -1995,7 +1995,7 @@ class RSpec::Core::Configuration # rspec.raise_errors_for_deprecations! # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1804 + # source://rspec-core//lib/rspec/core/configuration.rb#1806 def raise_errors_for_deprecations!; end # Turns warnings into errors. This can be useful when @@ -2007,7 +2007,7 @@ class RSpec::Core::Configuration # rspec.raise_on_warning = true # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1752 + # source://rspec-core//lib/rspec/core/configuration.rb#1754 def raise_on_warning=(value); end # Registers a named ordering strategy that can later be @@ -2049,39 +2049,39 @@ class RSpec::Core::Configuration # @yieldparam list [Array, Array] The examples or groups to order # @yieldreturn [Array, Array] The re-ordered examples or groups # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1645 + # source://rspec-core//lib/rspec/core/configuration.rb#1647 def register_ordering(*args, &block); end # @return [RSpec::Core::Reporter] the currently configured reporter # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1033 + # source://rspec-core//lib/rspec/core/configuration.rb#1035 def reporter; end # Indicates files configured to be required. # # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def requires; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1571 + # source://rspec-core//lib/rspec/core/configuration.rb#1573 def requires=(paths); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:578 + # source://rspec-core//lib/rspec/core/configuration.rb#580 def reset; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:591 + # source://rspec-core//lib/rspec/core/configuration.rb#593 def reset_filters; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:584 + # source://rspec-core//lib/rspec/core/configuration.rb#586 def reset_reporter; end # Run all examples if none match the configured filters @@ -2090,7 +2090,7 @@ class RSpec::Core::Configuration # @deprecated Use {#filter_run_when_matching} instead for the specific # filters that you want to be ignored if none match. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def run_all_when_everything_filtered; end # Run all examples if none match the configured filters @@ -2099,10 +2099,10 @@ class RSpec::Core::Configuration # @deprecated Use {#filter_run_when_matching} instead for the specific # filters that you want to be ignored if none match. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def run_all_when_everything_filtered=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def run_all_when_everything_filtered?; end # Seed for random ordering (default: generated randomly each run). @@ -2117,15 +2117,15 @@ class RSpec::Core::Configuration # We recommend, actually, that you use the command line approach so you # don't accidentally leave the seed encoded. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1645 + # source://rspec-core//lib/rspec/core/configuration.rb#1647 def seed(*args, &block); end # Sets the seed value and sets the default global ordering to random. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1645 + # source://rspec-core//lib/rspec/core/configuration.rb#1647 def seed=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1645 + # source://rspec-core//lib/rspec/core/configuration.rb#1647 def seed_used?(*args, &block); end # Configures how RSpec treats metadata passed as part of a shared example @@ -2166,53 +2166,53 @@ class RSpec::Core::Configuration # @overload shared_context_metadata_behavior # @overload shared_context_metadata_behavior= # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def shared_context_metadata_behavior; end # @see shared_context_metadata_behavior # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:434 + # source://rspec-core//lib/rspec/core/configuration.rb#434 def shared_context_metadata_behavior=(value); end # Don't print filter info i.e. "Run options: include {:focus=>true}" # (default `false`). # return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def silence_filter_announcements; end # Don't print filter info i.e. "Run options: include {:focus=>true}" # (default `false`). # return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def silence_filter_announcements=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def silence_filter_announcements?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1115 + # source://rspec-core//lib/rspec/core/configuration.rb#1117 def spec_files_with_failures; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def start_time; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def start_time=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def start_time?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:501 + # source://rspec-core//lib/rspec/core/configuration.rb#501 def static_config_filter_manager; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:501 + # source://rspec-core//lib/rspec/core/configuration.rb#501 def static_config_filter_manager=(_arg0); end # Color to use to indicate success. Defaults to `:green` but can be set @@ -2221,7 +2221,7 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def success_color; end # Color to use to indicate success. Defaults to `:green` but can be set @@ -2230,53 +2230,53 @@ class RSpec::Core::Configuration # # @return [Symbol] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def success_color=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def success_color?; end # Use threadsafe options where available. # Currently this will place a mutex around memoized values such as let blocks. # return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def threadsafe; end # Use threadsafe options where available. # Currently this will place a mutex around memoized values such as let blocks. # return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def threadsafe=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def threadsafe?; end # @deprecated This config option was added in RSpec 2 to pave the way # for this being the default behavior in RSpec 3. Now this option is # a no-op. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:383 + # source://rspec-core//lib/rspec/core/configuration.rb#383 def treat_symbols_as_metadata_keys_with_true_values=(_value); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:66 + # source://rspec-core//lib/rspec/core/configuration.rb#66 def tty; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:89 + # source://rspec-core//lib/rspec/core/configuration.rb#89 def tty=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:78 + # source://rspec-core//lib/rspec/core/configuration.rb#78 def tty?; end # Set Ruby warnings on or off. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1732 + # source://rspec-core//lib/rspec/core/configuration.rb#1734 def warnings=(value); end # @return [Boolean] Whether or not ruby warnings are enabled. # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1737 + # source://rspec-core//lib/rspec/core/configuration.rb#1739 def warnings?; end # Defines a callback that runs after the first example with matching @@ -2298,22 +2298,22 @@ class RSpec::Core::Configuration # end # end # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1894 + # source://rspec-core//lib/rspec/core/configuration.rb#1896 def when_first_matching_example_defined(*filters); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2062 + # source://rspec-core//lib/rspec/core/configuration.rb#2064 def with_suite_hooks; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:499 + # source://rspec-core//lib/rspec/core/configuration.rb#499 def world; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:499 + # source://rspec-core//lib/rspec/core/configuration.rb#499 def world=(_arg0); end private @@ -2322,111 +2322,111 @@ class RSpec::Core::Configuration # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2218 + # source://rspec-core//lib/rspec/core/configuration.rb#2220 def absolute_pattern?(pattern); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2319 + # source://rspec-core//lib/rspec/core/configuration.rb#2321 def add_hook_to_existing_matching_groups(meta, scope, &block); end # @raise [MustBeConfiguredBeforeExampleGroupsError] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2258 + # source://rspec-core//lib/rspec/core/configuration.rb#2260 def assert_no_example_groups_defined(config_option); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2308 + # source://rspec-core//lib/rspec/core/configuration.rb#2310 def clear_values_derived_from_example_status_persistence_file_path; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2240 + # source://rspec-core//lib/rspec/core/configuration.rb#2242 def command; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2284 + # source://rspec-core//lib/rspec/core/configuration.rb#2286 def conditionally_disable_expectations_monkey_patching; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2275 + # source://rspec-core//lib/rspec/core/configuration.rb#2277 def conditionally_disable_mocks_monkey_patching; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2313 + # source://rspec-core//lib/rspec/core/configuration.rb#2315 def configure_group_with(group, module_list, application_method); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2248 + # source://rspec-core//lib/rspec/core/configuration.rb#2250 def define_built_in_hooks; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2371 + # source://rspec-core//lib/rspec/core/configuration.rb#2373 def define_mixed_in_module(mod, filters, mod_list, config_method, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2223 + # source://rspec-core//lib/rspec/core/configuration.rb#2225 def extract_location(path); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2200 + # source://rspec-core//lib/rspec/core/configuration.rb#2202 def file_glob_from(path, pattern); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2189 + # source://rspec-core//lib/rspec/core/configuration.rb#2191 def gather_directories(path); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2168 + # source://rspec-core//lib/rspec/core/configuration.rb#2170 def get_files_to_run(paths); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2195 + # source://rspec-core//lib/rspec/core/configuration.rb#2197 def get_matching_files(path, pattern); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2135 + # source://rspec-core//lib/rspec/core/configuration.rb#2137 def handle_suite_hook(scope, meta); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2114 + # source://rspec-core//lib/rspec/core/configuration.rb#2116 def load_file_handling_errors(method, file); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2341 + # source://rspec-core//lib/rspec/core/configuration.rb#2343 def metadata_applies_to_group?(meta, group); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2333 + # source://rspec-core//lib/rspec/core/configuration.rb#2335 def on_existing_matching_groups(meta); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2271 + # source://rspec-core//lib/rspec/core/configuration.rb#2273 def output_to_tty?(output = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2267 + # source://rspec-core//lib/rspec/core/configuration.rb#2269 def output_wrapper; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2180 + # source://rspec-core//lib/rspec/core/configuration.rb#2182 def paths_to_check(paths); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2185 + # source://rspec-core//lib/rspec/core/configuration.rb#2187 def pattern_might_load_specs_from_vendored_dirs?; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2294 + # source://rspec-core//lib/rspec/core/configuration.rb#2296 def rspec_expectations_loaded?; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2290 + # source://rspec-core//lib/rspec/core/configuration.rb#2292 def rspec_mocks_loaded?; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2150 + # source://rspec-core//lib/rspec/core/configuration.rb#2152 def run_suite_hooks(hook_description, hooks); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2356 + # source://rspec-core//lib/rspec/core/configuration.rb#2358 def safe_extend(mod, host); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2352 + # source://rspec-core//lib/rspec/core/configuration.rb#2354 def safe_include(mod, host); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2346 + # source://rspec-core//lib/rspec/core/configuration.rb#2348 def safe_prepend(mod, host); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2298 + # source://rspec-core//lib/rspec/core/configuration.rb#2300 def update_pattern_attr(name, value); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:2244 + # source://rspec-core//lib/rspec/core/configuration.rb#2246 def value_for(key); end class << self @@ -2434,7 +2434,7 @@ class RSpec::Core::Configuration # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:100 + # source://rspec-core//lib/rspec/core/configuration.rb#100 def add_read_only_setting(name, opts = T.unsafe(nil)); end # Invoked by the `add_setting` instance method. Use that method on a @@ -2442,34 +2442,34 @@ class RSpec::Core::Configuration # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:87 + # source://rspec-core//lib/rspec/core/configuration.rb#87 def add_setting(name, opts = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:70 + # source://rspec-core//lib/rspec/core/configuration.rb#70 def define_alias(name, alias_name); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:77 + # source://rspec-core//lib/rspec/core/configuration.rb#77 def define_predicate(name); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:60 + # source://rspec-core//lib/rspec/core/configuration.rb#60 def define_reader(name); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1643 + # source://rspec-core//lib/rspec/core/configuration.rb#1645 def delegate_to_ordering_manager(*methods); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1623 +# source://rspec-core//lib/rspec/core/configuration.rb#1625 RSpec::Core::Configuration::DEFAULT_FORMATTER = T.let(T.unsafe(nil), Proc) # This buffer is used to capture all messages sent to the reporter during @@ -2479,53 +2479,53 @@ RSpec::Core::Configuration::DEFAULT_FORMATTER = T.let(T.unsafe(nil), Proc) # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1016 +# source://rspec-core//lib/rspec/core/configuration.rb#1018 class RSpec::Core::Configuration::DeprecationReporterBuffer # @return [DeprecationReporterBuffer] a new instance of DeprecationReporterBuffer # - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1017 + # source://rspec-core//lib/rspec/core/configuration.rb#1019 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1021 + # source://rspec-core//lib/rspec/core/configuration.rb#1023 def deprecation(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1025 + # source://rspec-core//lib/rspec/core/configuration.rb#1027 def play_onto(reporter); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1792 +# source://rspec-core//lib/rspec/core/configuration.rb#1794 module RSpec::Core::Configuration::ExposeCurrentExample; end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1103 +# source://rspec-core//lib/rspec/core/configuration.rb#1105 RSpec::Core::Configuration::FAILED_STATUS = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:726 +# source://rspec-core//lib/rspec/core/configuration.rb#728 RSpec::Core::Configuration::MOCKING_ADAPTERS = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:57 +# source://rspec-core//lib/rspec/core/configuration.rb#57 class RSpec::Core::Configuration::MustBeConfiguredBeforeExampleGroupsError < ::StandardError; end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1106 +# source://rspec-core//lib/rspec/core/configuration.rb#1108 RSpec::Core::Configuration::PASSED_STATUS = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1109 +# source://rspec-core//lib/rspec/core/configuration.rb#1111 RSpec::Core::Configuration::PENDING_STATUS = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1742 +# source://rspec-core//lib/rspec/core/configuration.rb#1744 RSpec::Core::Configuration::RAISE_ERROR_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc) # Module that holds `attr_reader` declarations. It's in a separate @@ -2533,110 +2533,110 @@ RSpec::Core::Configuration::RAISE_ERROR_WARNING_NOTIFIER = T.let(T.unsafe(nil), # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:53 +# source://rspec-core//lib/rspec/core/configuration.rb#53 module RSpec::Core::Configuration::Readers - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def default_color; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def default_path; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def deprecation_stream; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def detail_color; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def drb; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def drb_port; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def dry_run; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def error_exit_code; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def error_stream; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def example_status_persistence_file_path; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def exclude_pattern; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def fail_fast; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def fail_if_no_examples; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def failure_color; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def failure_exit_code; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def fixed_color; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def libs; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def max_displayed_failure_line_count; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def only_failures; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def output_stream; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def pattern; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def pending_color; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def project_source_dirs; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def requires; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def run_all_when_everything_filtered; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def shared_context_metadata_behavior; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def silence_filter_announcements; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def start_time; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def success_color; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def threadsafe; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:63 + # source://rspec-core//lib/rspec/core/configuration.rb#63 def tty; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1100 +# source://rspec-core//lib/rspec/core/configuration.rb#1102 RSpec::Core::Configuration::UNKNOWN_STATUS = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/configuration.rb:1112 +# source://rspec-core//lib/rspec/core/configuration.rb#1114 RSpec::Core::Configuration::VALID_STATUSES = T.let(T.unsafe(nil), Array) # Responsible for utilizing externally provided configuration options, @@ -2644,17 +2644,17 @@ RSpec::Core::Configuration::VALID_STATUSES = T.let(T.unsafe(nil), Array) # `$XDG_CONFIG_HOME/rspec/options`, `.rspec-local` or a custom options # file. # -# source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:10 +# source://rspec-core//lib/rspec/core/configuration_options.rb#10 class RSpec::Core::ConfigurationOptions # @param args [Array] command line arguments # @return [ConfigurationOptions] a new instance of ConfigurationOptions # - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:12 + # source://rspec-core//lib/rspec/core/configuration_options.rb#12 def initialize(args); end # @return [Array] the original command-line arguments # - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:40 + # source://rspec-core//lib/rspec/core/configuration_options.rb#40 def args; end # Updates the provided {Configuration} instance based on the provided @@ -2662,7 +2662,7 @@ class RSpec::Core::ConfigurationOptions # # @param config [Configuration] the configuration instance to update # - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:21 + # source://rspec-core//lib/rspec/core/configuration_options.rb#21 def configure(config); end # Updates the provided {FilterManager} based on the filter options. @@ -2670,98 +2670,98 @@ class RSpec::Core::ConfigurationOptions # @api private # @param filter_manager [FilterManager] instance to update # - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:30 + # source://rspec-core//lib/rspec/core/configuration_options.rb#30 def configure_filter_manager(filter_manager); end # @return [Hash] the final merged options, drawn from all external sources # - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:37 + # source://rspec-core//lib/rspec/core/configuration_options.rb#37 def options; end private - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:169 + # source://rspec-core//lib/rspec/core/configuration_options.rb#169 def args_from_options_file(path); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:138 + # source://rspec-core//lib/rspec/core/configuration_options.rb#138 def command_line_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:142 + # source://rspec-core//lib/rspec/core/configuration_options.rb#142 def custom_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:183 + # source://rspec-core//lib/rspec/core/configuration_options.rb#183 def custom_options_file; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:129 + # source://rspec-core//lib/rspec/core/configuration_options.rb#129 def env_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:121 + # source://rspec-core//lib/rspec/core/configuration_options.rb#121 def file_options; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:66 + # source://rspec-core//lib/rspec/core/configuration_options.rb#66 def force?(key); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:154 + # source://rspec-core//lib/rspec/core/configuration_options.rb#154 def global_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:195 + # source://rspec-core//lib/rspec/core/configuration_options.rb#195 def global_options_file; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:206 + # source://rspec-core//lib/rspec/core/configuration_options.rb#206 def home_options_file_path; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:117 + # source://rspec-core//lib/rspec/core/configuration_options.rb#117 def load_formatters_into(config); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:146 + # source://rspec-core//lib/rspec/core/configuration_options.rb#146 def local_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:191 + # source://rspec-core//lib/rspec/core/configuration_options.rb#191 def local_options_file; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:175 + # source://rspec-core//lib/rspec/core/configuration_options.rb#175 def options_file_as_erb_string(path); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:158 + # source://rspec-core//lib/rspec/core/configuration_options.rb#158 def options_from(path); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:70 + # source://rspec-core//lib/rspec/core/configuration_options.rb#70 def order(keys); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:44 + # source://rspec-core//lib/rspec/core/configuration_options.rb#44 def organize_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:163 + # source://rspec-core//lib/rspec/core/configuration_options.rb#163 def parse_args_ignoring_files_or_dirs_to_run(args, source); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:109 + # source://rspec-core//lib/rspec/core/configuration_options.rb#109 def process_options_into(config); end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:150 + # source://rspec-core//lib/rspec/core/configuration_options.rb#150 def project_options; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:187 + # source://rspec-core//lib/rspec/core/configuration_options.rb#187 def project_options_file; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:222 + # source://rspec-core//lib/rspec/core/configuration_options.rb#222 def resolve_xdg_config_home; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:199 + # source://rspec-core//lib/rspec/core/configuration_options.rb#199 def xdg_options_file_if_exists; end - # source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:215 + # source://rspec-core//lib/rspec/core/configuration_options.rb#215 def xdg_options_file_path; end end -# source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:77 +# source://rspec-core//lib/rspec/core/configuration_options.rb#77 RSpec::Core::ConfigurationOptions::OPTIONS_ORDER = T.let(T.unsafe(nil), Array) -# source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:59 +# source://rspec-core//lib/rspec/core/configuration_options.rb#59 RSpec::Core::ConfigurationOptions::UNFORCED_OPTIONS = T.let(T.unsafe(nil), RSpec::Core::Set) -# source://rspec-core-3.11.0/lib/rspec/core/configuration_options.rb:64 +# source://rspec-core//lib/rspec/core/configuration_options.rb#64 RSpec::Core::ConfigurationOptions::UNPROCESSABLE_OPTIONS = T.let(T.unsafe(nil), RSpec::Core::Set) # DSL defines methods to group examples, most notably `describe`, @@ -2787,96 +2787,96 @@ RSpec::Core::ConfigurationOptions::UNPROCESSABLE_OPTIONS = T.let(T.unsafe(nil), # @see ExampleGroup # @see ExampleGroup.example_group # -# source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:25 +# source://rspec-core//lib/rspec/core/dsl.rb#25 module RSpec::Core::DSL class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:89 + # source://rspec-core//lib/rspec/core/dsl.rb#89 def change_global_dsl(&changes); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:27 + # source://rspec-core//lib/rspec/core/dsl.rb#27 def example_group_aliases; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:37 + # source://rspec-core//lib/rspec/core/dsl.rb#37 def expose_example_group_alias(name); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:81 + # source://rspec-core//lib/rspec/core/dsl.rb#81 def expose_example_group_alias_globally(method_name); end # Adds the describe method to Module and the top level binding. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:58 + # source://rspec-core//lib/rspec/core/dsl.rb#58 def expose_globally!; end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:32 + # source://rspec-core//lib/rspec/core/dsl.rb#32 def exposed_globally?; end # Removes the describe method from Module and the top level binding. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:70 + # source://rspec-core//lib/rspec/core/dsl.rb#70 def remove_globally!; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:53 + # source://rspec-core//lib/rspec/core/dsl.rb#53 def top_level; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:53 + # source://rspec-core//lib/rspec/core/dsl.rb#53 def top_level=(_arg0); end end end # Deprecation Error. # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:221 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#221 class RSpec::Core::DeprecationError < ::StandardError; end # Wrapper around Ruby's `DidYouMean::SpellChecker` when available to provide file name suggestions. # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:5 +# source://rspec-core//lib/rspec/core/did_you_mean.rb#5 class RSpec::Core::DidYouMean # @return [DidYouMean] a new instance of DidYouMean # - # source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:8 + # source://rspec-core//lib/rspec/core/did_you_mean.rb#8 def initialize(relative_file_name); end # return a hint if API for ::DidYouMean::SpellChecker not supported # - # source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:14 + # source://rspec-core//lib/rspec/core/did_you_mean.rb#14 def call; end # Returns the value of attribute relative_file_name. # - # source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:6 + # source://rspec-core//lib/rspec/core/did_you_mean.rb#6 def relative_file_name; end private - # source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:30 + # source://rspec-core//lib/rspec/core/did_you_mean.rb#30 def formats(probables); end - # source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:40 + # source://rspec-core//lib/rspec/core/did_you_mean.rb#40 def red_font(mytext); end - # source://rspec-core-3.11.0/lib/rspec/core/did_you_mean.rb:35 + # source://rspec-core//lib/rspec/core/did_you_mean.rb#35 def top_and_tail(rspec_format); end end @@ -2921,7 +2921,7 @@ end # of an `ExampleGroup`, not in the context of an instance of `Example`. # @see ExampleGroup # -# source://rspec-core-3.11.0/lib/rspec/core/example.rb:44 +# source://rspec-core//lib/rspec/core/example.rb#44 class RSpec::Core::Example # Creates a new instance of Example. # @@ -2936,19 +2936,19 @@ class RSpec::Core::Example # example # @return [Example] a new instance of Example # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:186 + # source://rspec-core//lib/rspec/core/example.rb#186 def initialize(example_group_class, description, user_metadata, example_block = T.unsafe(nil)); end # @attr # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:174 + # source://rspec-core//lib/rspec/core/example.rb#174 def clock; end # @attr # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:174 + # source://rspec-core//lib/rspec/core/example.rb#174 def clock=(_arg0); end # Returns the string submitted to `example` or its aliases (e.g. @@ -2957,7 +2957,7 @@ class RSpec::Core::Example # by the matcher if there is one, otherwise returns a message including # the location of the example. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:76 + # source://rspec-core//lib/rspec/core/example.rb#76 def description; end # The exception that will be displayed to the user -- either the failure of @@ -2965,7 +2965,7 @@ class RSpec::Core::Example # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:388 + # source://rspec-core//lib/rspec/core/example.rb#388 def display_exception; end # Assigns the exception that will be displayed to the user -- either the failure of @@ -2973,7 +2973,7 @@ class RSpec::Core::Example # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:396 + # source://rspec-core//lib/rspec/core/example.rb#396 def display_exception=(ex); end # Duplicates the example and overrides metadata with the provided @@ -2982,13 +2982,13 @@ class RSpec::Core::Example # @param metadata_overrides [Hash] the hash to override the example metadata # @return [Example] a duplicate of the example with modified metadata # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:132 + # source://rspec-core//lib/rspec/core/example.rb#132 def duplicate_with(metadata_overrides = T.unsafe(nil)); end # Returns the example group class that provides the context for running # this example. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:230 + # source://rspec-core//lib/rspec/core/example.rb#230 def example_group; end # Returns the example_group_instance that provides the context for @@ -2997,7 +2997,7 @@ class RSpec::Core::Example # @attr_reader # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:170 + # source://rspec-core//lib/rspec/core/example.rb#170 def example_group_instance; end # Returns the first exception raised in the context of running this @@ -3005,12 +3005,12 @@ class RSpec::Core::Example # # @attr_reader # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:158 + # source://rspec-core//lib/rspec/core/example.rb#158 def exception; end # @return [ExecutionResult] represents the result of running this example. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:49 + # source://rspec-core//lib/rspec/core/example.rb#49 def execution_result; end # Used internally to set an exception and fail without actually executing @@ -3018,75 +3018,75 @@ class RSpec::Core::Example # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:439 + # source://rspec-core//lib/rspec/core/example.rb#439 def fail_with_exception(reporter, exception); end # @return [String] the relative path to the file where this example was # defined. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:49 + # source://rspec-core//lib/rspec/core/example.rb#49 def file_path; end # @return [String] the full description (including the docstrings of # all parent example groups). # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:49 + # source://rspec-core//lib/rspec/core/example.rb#49 def full_description; end # @return [String] the unique id of this example. Pass # this at the command line to re-run this exact example. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:117 + # source://rspec-core//lib/rspec/core/example.rb#117 def id; end # Provide a human-readable representation of this class # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:220 + # source://rspec-core//lib/rspec/core/example.rb#220 def inspect; end # Returns a description of the example that always includes the location. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:87 + # source://rspec-core//lib/rspec/core/example.rb#87 def inspect_output; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:456 + # source://rspec-core//lib/rspec/core/example.rb#456 def instance_exec(*args, &block); end # @return [String] the exact source location of this example in a form # like `./path/to/spec.rb:17` # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:49 + # source://rspec-core//lib/rspec/core/example.rb#49 def location; end # Returns the location-based argument that can be passed to the `rspec` command to rerun this example. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:96 + # source://rspec-core//lib/rspec/core/example.rb#96 def location_rerun_argument; end # Returns the metadata object associated with this example. # # @attr_reader # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:163 + # source://rspec-core//lib/rspec/core/example.rb#163 def metadata; end # @return [Boolean] flag that indicates that the example is not expected # to pass. It will be run and will either have a pending result (if a # failure occurs) or a failed result (if no failure occurs). # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:49 + # source://rspec-core//lib/rspec/core/example.rb#49 def pending; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:234 + # source://rspec-core//lib/rspec/core/example.rb#234 def pending?; end # @return [RSpec::Core::Reporter] the current reporter for the example # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:226 + # source://rspec-core//lib/rspec/core/example.rb#226 def reporter; end # Returns the location-based argument that can be passed to the `rspec` command to rerun this example. @@ -3095,7 +3095,7 @@ class RSpec::Core::Example # @note If there are multiple examples identified by this location, they will use {#id} # to rerun instead, but this method will still return the location (that's why it is deprecated!). # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:111 + # source://rspec-core//lib/rspec/core/example.rb#111 def rerun_argument; end # instance_execs the block passed to the constructor in the context of @@ -3104,14 +3104,14 @@ class RSpec::Core::Example # @api private # @param example_group_instance the instance of an ExampleGroup subclass # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:246 + # source://rspec-core//lib/rspec/core/example.rb#246 def run(example_group_instance, reporter); end # Used to set the exception when `aggregate_failures` fails. # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:425 + # source://rspec-core//lib/rspec/core/example.rb#425 def set_aggregate_failures_exception(exception); end # Used internally to set an exception in an after hook, which @@ -3119,13 +3119,13 @@ class RSpec::Core::Example # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:412 + # source://rspec-core//lib/rspec/core/example.rb#412 def set_exception(exception); end # @return [Boolean] flag that will cause the example to not run. # The {ExecutionResult} status will be `:pending`. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:49 + # source://rspec-core//lib/rspec/core/example.rb#49 def skip; end # Used internally to skip without actually executing the example when @@ -3133,65 +3133,65 @@ class RSpec::Core::Example # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:449 + # source://rspec-core//lib/rspec/core/example.rb#449 def skip_with_exception(reporter, exception); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:238 + # source://rspec-core//lib/rspec/core/example.rb#238 def skipped?; end # Provide a human-readable representation of this class # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:220 + # source://rspec-core//lib/rspec/core/example.rb#220 def to_s; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:148 + # source://rspec-core//lib/rspec/core/example.rb#148 def update_inherited_metadata(updates); end private - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:534 + # source://rspec-core//lib/rspec/core/example.rb#534 def assign_generated_description; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:478 + # source://rspec-core//lib/rspec/core/example.rb#478 def finish(reporter); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:543 + # source://rspec-core//lib/rspec/core/example.rb#543 def generate_description; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:462 + # source://rspec-core//lib/rspec/core/example.rb#462 def hooks; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:550 + # source://rspec-core//lib/rspec/core/example.rb#550 def location_description; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:530 + # source://rspec-core//lib/rspec/core/example.rb#530 def mocks_need_verification?; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:498 + # source://rspec-core//lib/rspec/core/example.rb#498 def record_finished(status, reporter); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:516 + # source://rspec-core//lib/rspec/core/example.rb#516 def run_after_example; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:503 + # source://rspec-core//lib/rspec/core/example.rb#503 def run_before_example; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:473 + # source://rspec-core//lib/rspec/core/example.rb#473 def start(reporter); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:524 + # source://rspec-core//lib/rspec/core/example.rb#524 def verify_mocks; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:508 + # source://rspec-core//lib/rspec/core/example.rb#508 def with_around_and_singleton_context_hooks; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:466 + # source://rspec-core//lib/rspec/core/example.rb#466 def with_around_example_hooks; end class << self @@ -3199,25 +3199,25 @@ class RSpec::Core::Example # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:48 + # source://rspec-core//lib/rspec/core/example.rb#48 def delegate_to_metadata(key); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:122 + # source://rspec-core//lib/rspec/core/example.rb#122 def parse_id(id); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example.rb:310 +# source://rspec-core//lib/rspec/core/example.rb#310 RSpec::Core::Example::AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt = RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue # Represents the result of executing an example. # Behaves like a hash for backwards compatibility. # -# source://rspec-core-3.11.0/lib/rspec/core/example.rb:556 +# source://rspec-core//lib/rspec/core/example.rb#556 class RSpec::Core::Example::ExecutionResult include ::RSpec::Core::HashImitatable extend ::RSpec::Core::HashImitatable::ClassMethods @@ -3226,7 +3226,7 @@ class RSpec::Core::Example::ExecutionResult # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:610 + # source://rspec-core//lib/rspec/core/example.rb#610 def ensure_timing_set(clock); end # @return [Boolean] Indicates if the example was completely skipped @@ -3235,27 +3235,27 @@ class RSpec::Core::Example::ExecutionResult # that were marked as `:pending`, which causes them to be run, and produces a # `:failed` result if the example passes. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:597 + # source://rspec-core//lib/rspec/core/example.rb#597 def example_skipped?; end # @return [Exception, nil] The failure, if there was one. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def exception; end # @return [Exception, nil] The failure, if there was one. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def exception=(_arg0); end # @return [Time] When the example finished. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def finished_at; end # @return [Time] When the example finished. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def finished_at=(_arg0); end # @return [Exception, nil] The exception triggered while @@ -3263,7 +3263,7 @@ class RSpec::Core::Example::ExecutionResult # it would no longer get a status of `:pending` unless it was # tagged with `:skip`. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def pending_exception; end # @return [Exception, nil] The exception triggered while @@ -3271,93 +3271,93 @@ class RSpec::Core::Example::ExecutionResult # it would no longer get a status of `:pending` unless it was # tagged with `:skip`. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def pending_exception=(_arg0); end # @return [Boolean] For examples tagged with `:pending`, # this indicates whether or not it now passes. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def pending_fixed; end # @return [Boolean] For examples tagged with `:pending`, # this indicates whether or not it now passes. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def pending_fixed=(_arg0); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:588 + # source://rspec-core//lib/rspec/core/example.rb#588 def pending_fixed?; end # @return [String, nil] The reason the example was pending, # or nil if the example was not pending. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def pending_message; end # @return [String, nil] The reason the example was pending, # or nil if the example was not pending. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def pending_message=(_arg0); end # Records the finished status of the example. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:603 + # source://rspec-core//lib/rspec/core/example.rb#603 def record_finished(status, finished_at); end # @return [Float] How long the example took in seconds. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def run_time; end # @return [Float] How long the example took in seconds. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def run_time=(_arg0); end # @return [Time] When the example started. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def started_at; end # @return [Time] When the example started. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def started_at=(_arg0); end # @return [Symbol] `:passed`, `:failed` or `:pending`. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def status; end # @return [Symbol] `:passed`, `:failed` or `:pending`. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:442 + # source://rspec-core//lib/rspec/core/metadata.rb#442 def status=(_arg0); end private - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:616 + # source://rspec-core//lib/rspec/core/example.rb#616 def calculate_run_time(finished_at); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:634 + # source://rspec-core//lib/rspec/core/example.rb#634 def get_value(name); end # For backwards compatibility we present `status` as a string # when presenting the legacy hash interface. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:623 + # source://rspec-core//lib/rspec/core/example.rb#623 def hash_for_delegation; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:642 + # source://rspec-core//lib/rspec/core/example.rb#642 def issue_deprecation(_method_name, *_args); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:629 + # source://rspec-core//lib/rspec/core/example.rb#629 def set_value(name, value); end end @@ -3379,160 +3379,166 @@ end # @note This class also exposes the instance methods of {Example}, # proxying them through to the wrapped {Example} instance. # -# source://rspec-core-3.11.0/lib/rspec/core/example.rb:331 +# source://rspec-core//lib/rspec/core/example.rb#331 class RSpec::Core::Example::Procsy # @return [Procsy] a new instance of Procsy # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:362 + # source://rspec-core//lib/rspec/core/example.rb#362 def initialize(example, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def <<(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 + def ==(*a, &b); end + + # source://rspec-core//lib/rspec/core/example.rb#346 def ===(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def >>(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def [](*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def arity(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def binding(*a, &b); end # Calls the proc and notes that the example has been executed. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:350 + # source://rspec-core//lib/rspec/core/example.rb#350 def call(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def clock(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def clock=(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def clone(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def curry(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def description(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def dup(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def duplicate_with(*a, &b); end + # source://rspec-core//lib/rspec/core/example.rb#346 + def eql?(*a, &b); end + # The {Example} instance. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:333 + # source://rspec-core//lib/rspec/core/example.rb#333 def example; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def example_group(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def example_group_instance(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def exception(*a, &b); end # Indicates whether or not the around hook has executed the example. # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:374 + # source://rspec-core//lib/rspec/core/example.rb#374 def executed?; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def execution_result(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def file_path(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def full_description(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def hash(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def id(*a, &b); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:379 + # source://rspec-core//lib/rspec/core/example.rb#379 def inspect; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def inspect_output(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def lambda?(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def location(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def location_rerun_argument(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def metadata(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def parameters(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def pending(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def pending?(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def reporter(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def rerun_argument(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def ruby2_keywords(*a, &b); end # Calls the proc and notes that the example has been executed. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:350 + # source://rspec-core//lib/rspec/core/example.rb#350 def run(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def skip(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def skipped?(*a, &b); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def source_location(*a, &b); end # Provides a wrapped proc that will update our `executed?` state when # executed. # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:358 + # source://rspec-core//lib/rspec/core/example.rb#358 def to_proc; end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:339 + # source://rspec-core//lib/rspec/core/example.rb#339 def update_inherited_metadata(*a, &b); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:369 + # source://rspec-core//lib/rspec/core/example.rb#369 def wrap(&block); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:346 + # source://rspec-core//lib/rspec/core/example.rb#346 def yield(*a, &b); end end @@ -3559,7 +3565,7 @@ end # {SharedExampleGroup}. There are additional instance methods available to # your examples defined in {MemoizedHelpers} and {Pending}. # -# source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:29 +# source://rspec-core//lib/rspec/core/example_group.rb#29 class RSpec::Core::ExampleGroup include ::RSpec::Core::MemoizedHelpers include ::RSpec::Core::Pending @@ -3567,7 +3573,7 @@ class RSpec::Core::ExampleGroup extend ::RSpec::Core::MemoizedHelpers::ClassMethods extend ::RSpec::Core::SharedExampleGroup - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:707 + # source://rspec-core//lib/rspec/core/example_group.rb#707 def initialize(inspect_output = T.unsafe(nil)); end # Returns the class or module passed to the `describe` method (or alias). @@ -3580,34 +3586,34 @@ class RSpec::Core::ExampleGroup # end # end # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:99 + # source://rspec-core//lib/rspec/core/example_group.rb#99 def described_class; end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:713 + # source://rspec-core//lib/rspec/core/example_group.rb#713 def inspect; end private - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:758 + # source://rspec-core//lib/rspec/core/example_group.rb#758 def method_missing(name, *args); end class << self # Adds an example to the example group # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:367 + # source://rspec-core//lib/rspec/core/example_group.rb#367 def add_example(example); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:529 + # source://rspec-core//lib/rspec/core/example_group.rb#529 def before_context_ivars; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:466 + # source://rspec-core//lib/rspec/core/example_group.rb#466 def children; end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def context(*args, &example_group_block); end # Returns true if a `before(:context)` or `after(:context)` @@ -3615,18 +3621,18 @@ class RSpec::Core::ExampleGroup # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:542 + # source://rspec-core//lib/rspec/core/example_group.rb#542 def currently_executing_a_context_hook?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:667 + # source://rspec-core//lib/rspec/core/example_group.rb#667 def declaration_locations; end # @private # @see DSL#describe # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:246 + # source://rspec-core//lib/rspec/core/example_group.rb#246 def define_example_group_method(name, metadata = T.unsafe(nil)); end # @example @@ -3635,48 +3641,48 @@ class RSpec::Core::ExampleGroup # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:145 + # source://rspec-core//lib/rspec/core/example_group.rb#145 def define_example_method(name, extra_options = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:317 + # source://rspec-core//lib/rspec/core/example_group.rb#317 def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:76 + # source://rspec-core//lib/rspec/core/example_group.rb#76 def delegate_to_metadata(*names); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:460 + # source://rspec-core//lib/rspec/core/example_group.rb#460 def descendant_filtered_examples; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:503 + # source://rspec-core//lib/rspec/core/example_group.rb#503 def descendants; end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def describe(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:78 + # source://rspec-core//lib/rspec/core/example_group.rb#78 def described_class; end # @return [String] the current example group description # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:85 + # source://rspec-core//lib/rspec/core/example_group.rb#85 def description; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:700 + # source://rspec-core//lib/rspec/core/example_group.rb#700 def each_instance_variable_for_example(group); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:518 + # source://rspec-core//lib/rspec/core/example_group.rb#518 def ensure_example_groups_are_configured; end # Defines an example within a group. @@ -3703,21 +3709,21 @@ class RSpec::Core::ExampleGroup # @overload example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def example(*all_args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def example_group(*args, &example_group_block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:450 + # source://rspec-core//lib/rspec/core/example_group.rb#450 def examples; end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def fcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def fdescribe(*args, &example_group_block); end # Shortcut to define an example with `:focus => true`. @@ -3745,20 +3751,20 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def fexample(*all_args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:78 + # source://rspec-core//lib/rspec/core/example_group.rb#78 def file_path; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:455 + # source://rspec-core//lib/rspec/core/example_group.rb#455 def filtered_examples; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:379 + # source://rspec-core//lib/rspec/core/example_group.rb#379 def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end # Shortcut to define an example with `:focus => true`. @@ -3786,7 +3792,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def fit(*all_args, &block); end # Shortcut to define an example with `:focus => true`. @@ -3814,12 +3820,12 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def focus(*all_args, &block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:655 + # source://rspec-core//lib/rspec/core/example_group.rb#655 def for_filtered_examples(reporter, &block); end # Shortcut to define an example with `:focus => true`. @@ -3847,13 +3853,13 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def fspecify(*all_args, &block); end # @return [String] the unique id of this example group. Pass # this at the command line to re-run this exact example group. # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:675 + # source://rspec-core//lib/rspec/core/example_group.rb#675 def id; end # Define a singleton method for the singleton class (remove the method if @@ -3861,7 +3867,7 @@ class RSpec::Core::ExampleGroup # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:40 + # source://rspec-core//lib/rspec/core/example_group.rb#40 def idempotently_define_singleton_method(name, &definition); end # Includes shared content mapped to `name` directly in the group in which @@ -3871,7 +3877,7 @@ class RSpec::Core::ExampleGroup # # @see SharedExampleGroup # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:343 + # source://rspec-core//lib/rspec/core/example_group.rb#343 def include_context(name, *args, &block); end # Includes shared content mapped to `name` directly in the group in which @@ -3881,7 +3887,7 @@ class RSpec::Core::ExampleGroup # # @see SharedExampleGroup # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:353 + # source://rspec-core//lib/rspec/core/example_group.rb#353 def include_examples(name, *args, &block); end # Defines an example within a group. @@ -3909,38 +3915,38 @@ class RSpec::Core::ExampleGroup # @overload it # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def it(*all_args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:318 + # source://rspec-core//lib/rspec/core/example_group.rb#318 def it_behaves_like(name, *args, &customization_block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:318 + # source://rspec-core//lib/rspec/core/example_group.rb#318 def it_should_behave_like(name, *args, &customization_block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:78 + # source://rspec-core//lib/rspec/core/example_group.rb#78 def location; end # The [Metadata](Metadata) object associated with this group. # # @see Metadata # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:51 + # source://rspec-core//lib/rspec/core/example_group.rb#51 def metadata; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:485 + # source://rspec-core//lib/rspec/core/example_group.rb#485 def next_runnable_index_for(file); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:625 + # source://rspec-core//lib/rspec/core/example_group.rb#625 def ordering_strategy; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:508 + # source://rspec-core//lib/rspec/core/example_group.rb#508 def parent_groups; end # Shortcut to define an example with `:pending => true` @@ -3968,49 +3974,49 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def pending(*all_args, &block); end # Removes an example from the example group # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:373 + # source://rspec-core//lib/rspec/core/example_group.rb#373 def remove_example(example); end # Clear memoized values when adding/removing examples # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:359 + # source://rspec-core//lib/rspec/core/example_group.rb#359 def reset_memoized; end # Runs all the examples in this group. # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:599 + # source://rspec-core//lib/rspec/core/example_group.rb#599 def run(reporter = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:585 + # source://rspec-core//lib/rspec/core/example_group.rb#585 def run_after_context_hooks(example_group_instance); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:547 + # source://rspec-core//lib/rspec/core/example_group.rb#547 def run_before_context_hooks(example_group_instance); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:641 + # source://rspec-core//lib/rspec/core/example_group.rb#641 def run_examples(reporter); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:410 + # source://rspec-core//lib/rspec/core/example_group.rb#410 def set_it_up(description, args, registration_collection, &example_group_block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:685 + # source://rspec-core//lib/rspec/core/example_group.rb#685 def set_ivars(instance, ivars); end # Shortcut to define an example with `:skip => true` @@ -4038,7 +4044,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def skip(*all_args, &block); end # Defines an example within a group. @@ -4072,41 +4078,41 @@ class RSpec::Core::ExampleGroup # @overload specify # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def specify(*all_args, &block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:534 + # source://rspec-core//lib/rspec/core/example_group.rb#534 def store_before_context_ivars(example_group_instance); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:395 + # source://rspec-core//lib/rspec/core/example_group.rb#395 def subclass(parent, description, args, registration_collection, &example_group_block); end # :nocov: # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:562 + # source://rspec-core//lib/rspec/core/example_group.rb#562 def superclass_before_context_ivars; end # @private # @return [Metadata] belonging to the parent of a nested {ExampleGroup} # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:71 + # source://rspec-core//lib/rspec/core/example_group.rb#71 def superclass_metadata; end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:513 + # source://rspec-core//lib/rspec/core/example_group.rb#513 def top_level?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:680 + # source://rspec-core//lib/rspec/core/example_group.rb#680 def top_level_description; end # Traverses the tree of groups, starting with `self`, then the children, recursively. @@ -4117,12 +4123,12 @@ class RSpec::Core::ExampleGroup # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:476 + # source://rspec-core//lib/rspec/core/example_group.rb#476 def traverse_tree_until(&block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:727 + # source://rspec-core//lib/rspec/core/example_group.rb#727 def update_inherited_metadata(updates); end # Temporarily replace the provided metadata. @@ -4133,13 +4139,13 @@ class RSpec::Core::ExampleGroup # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:61 + # source://rspec-core//lib/rspec/core/example_group.rb#61 def with_replaced_metadata(meta); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def xcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247 + # source://rspec-core//lib/rspec/core/example_group.rb#247 def xdescribe(*args, &example_group_block); end # Shortcut to define an example with `:skip => 'Temporarily skipped with xexample'`. @@ -4167,7 +4173,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def xexample(*all_args, &block); end # Shortcut to define an example with `:skip => 'Temporarily skipped with xit'`. @@ -4195,7 +4201,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def xit(*all_args, &block); end # Shortcut to define an example with `:skip => 'Temporarily skipped with xspecify'`. @@ -4223,26 +4229,26 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146 + # source://rspec-core//lib/rspec/core/example_group.rb#146 def xspecify(*all_args, &block); end private - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:742 + # source://rspec-core//lib/rspec/core/example_group.rb#742 def method_missing(name, *args); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:696 +# source://rspec-core//lib/rspec/core/example_group.rb#696 RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol) # Raised when an RSpec API is called in the wrong scope, such as `before` # being called from within an example rather than from within an example # group block. # -# source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:740 +# source://rspec-core//lib/rspec/core/example_group.rb#740 class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end # Dumps a list of hashes in a pretty, human readable format @@ -4252,38 +4258,38 @@ class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:143 +# source://rspec-core//lib/rspec/core/example_status_persister.rb#143 class RSpec::Core::ExampleStatusDumper # @return [ExampleStatusDumper] a new instance of ExampleStatusDumper # - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:148 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#148 def initialize(examples); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:152 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#152 def dump; end private - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:188 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#188 def column_widths; end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:159 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#159 def formatted_header_rows; end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:176 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#176 def formatted_row_from(row_values); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:166 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#166 def formatted_value_rows; end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:184 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#184 def headers; end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:172 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#172 def rows; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:144 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#144 def dump(examples); end end end @@ -4305,40 +4311,40 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:74 +# source://rspec-core//lib/rspec/core/example_status_persister.rb#74 class RSpec::Core::ExampleStatusMerger # @return [ExampleStatusMerger] a new instance of ExampleStatusMerger # - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:79 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#79 def initialize(this_run, from_previous_runs); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:85 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#85 def merge; end private - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:102 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#102 def delete_previous_examples_that_no_longer_exist; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:108 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#108 def example_must_no_longer_exist?(ex_id); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:95 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#95 def hash_from(example_list); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:124 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#124 def loaded_spec_files; end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:132 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#132 def sort_value_from(example); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:128 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#128 def spec_file_from(ex_id); end class << self - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:75 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#75 def merge(this_run, from_previous_runs); end end end @@ -4352,29 +4358,29 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:207 +# source://rspec-core//lib/rspec/core/example_status_persister.rb#207 class RSpec::Core::ExampleStatusParser # @return [ExampleStatusParser] a new instance of ExampleStatusParser # - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:212 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#212 def initialize(string); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:216 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#216 def parse; end private - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:226 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#226 def headers; end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:222 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#222 def parse_row(line); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:230 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#230 def split_line(line); end class << self - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:208 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#208 def parse(string); end end end @@ -4384,96 +4390,96 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:8 +# source://rspec-core//lib/rspec/core/example_status_persister.rb#8 class RSpec::Core::ExampleStatusPersister # @return [ExampleStatusPersister] a new instance of ExampleStatusPersister # - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:18 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#18 def initialize(examples, file_name); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:23 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#23 def persist; end private - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:40 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#40 def dump_statuses(unparsed_previous_runs); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:46 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#46 def statuses_from_this_run; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:9 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#9 def load_from(file_name); end - # source://rspec-core-3.11.0/lib/rspec/core/example_status_persister.rb:14 + # source://rspec-core//lib/rspec/core/example_status_persister.rb#14 def persist(examples, file_name); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:183 +# source://rspec-core//lib/rspec/core/filter_manager.rb#183 RSpec::Core::ExclusionRules = RSpec::Core::FilterRules # @private # -# source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:4 +# source://rspec-core//lib/rspec/core/filter_manager.rb#4 class RSpec::Core::FilterManager # @return [FilterManager] a new instance of FilterManager # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:7 + # source://rspec-core//lib/rspec/core/filter_manager.rb#7 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:22 + # source://rspec-core//lib/rspec/core/filter_manager.rb#22 def add_ids(rerun_path, scoped_ids); end # @api private # @param file_path [String] # @param line_numbers [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:15 + # source://rspec-core//lib/rspec/core/filter_manager.rb#15 def add_location(file_path, line_numbers); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:30 + # source://rspec-core//lib/rspec/core/filter_manager.rb#30 def empty?; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:57 + # source://rspec-core//lib/rspec/core/filter_manager.rb#57 def exclude(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:61 + # source://rspec-core//lib/rspec/core/filter_manager.rb#61 def exclude_only(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:65 + # source://rspec-core//lib/rspec/core/filter_manager.rb#65 def exclude_with_low_priority(*args); end # Returns the value of attribute exclusions. # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:5 + # source://rspec-core//lib/rspec/core/filter_manager.rb#5 def exclusions; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:69 + # source://rspec-core//lib/rspec/core/filter_manager.rb#69 def include(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:73 + # source://rspec-core//lib/rspec/core/filter_manager.rb#73 def include_only(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:77 + # source://rspec-core//lib/rspec/core/filter_manager.rb#77 def include_with_low_priority(*args); end # Returns the value of attribute inclusions. # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:5 + # source://rspec-core//lib/rspec/core/filter_manager.rb#5 def inclusions; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:34 + # source://rspec-core//lib/rspec/core/filter_manager.rb#34 def prune(examples); end private - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:83 + # source://rspec-core//lib/rspec/core/filter_manager.rb#83 def add_path_to_arrays_filter(filter_key, path, values); end # When a user specifies a particular spec location, that takes priority @@ -4484,86 +4490,86 @@ class RSpec::Core::FilterManager # # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:101 + # source://rspec-core//lib/rspec/core/filter_manager.rb#101 def file_scoped_include?(ex_metadata, ids, locations); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:89 + # source://rspec-core//lib/rspec/core/filter_manager.rb#89 def prune_conditionally_filtered_examples(examples); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:115 +# source://rspec-core//lib/rspec/core/filter_manager.rb#115 class RSpec::Core::FilterRules # @return [FilterRules] a new instance of FilterRules # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:130 + # source://rspec-core//lib/rspec/core/filter_manager.rb#130 def initialize(rules = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:161 + # source://rspec-core//lib/rspec/core/filter_manager.rb#161 def [](key); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:134 + # source://rspec-core//lib/rspec/core/filter_manager.rb#134 def add(updated); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:138 + # source://rspec-core//lib/rspec/core/filter_manager.rb#138 def add_with_low_priority(updated); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:149 + # source://rspec-core//lib/rspec/core/filter_manager.rb#149 def clear; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:153 + # source://rspec-core//lib/rspec/core/filter_manager.rb#153 def delete(key); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:173 + # source://rspec-core//lib/rspec/core/filter_manager.rb#173 def description; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:169 + # source://rspec-core//lib/rspec/core/filter_manager.rb#169 def each_pair(&block); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:165 + # source://rspec-core//lib/rspec/core/filter_manager.rb#165 def empty?; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:157 + # source://rspec-core//lib/rspec/core/filter_manager.rb#157 def fetch(*args, &block); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:177 + # source://rspec-core//lib/rspec/core/filter_manager.rb#177 def include_example?(example); end # Returns the value of attribute opposite. # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:119 + # source://rspec-core//lib/rspec/core/filter_manager.rb#119 def opposite; end # Sets the attribute opposite # # @param value the value to set the attribute opposite to. # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:119 + # source://rspec-core//lib/rspec/core/filter_manager.rb#119 def opposite=(_arg0); end # Returns the value of attribute rules. # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:120 + # source://rspec-core//lib/rspec/core/filter_manager.rb#120 def rules; end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:144 + # source://rspec-core//lib/rspec/core/filter_manager.rb#144 def use_only(updated); end class << self - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:122 + # source://rspec-core//lib/rspec/core/filter_manager.rb#122 def build; end end end -# source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:116 +# source://rspec-core//lib/rspec/core/filter_manager.rb#116 RSpec::Core::FilterRules::PROC_HEX_NUMBER = T.let(T.unsafe(nil), Regexp) -# source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:117 +# source://rspec-core//lib/rspec/core/filter_manager.rb#117 RSpec::Core::FilterRules::PROJECT_DIR = T.let(T.unsafe(nil), String) # Tracks a collection of filterable items (e.g. modules, hooks, etc) @@ -4574,7 +4580,7 @@ RSpec::Core::FilterRules::PROJECT_DIR = T.let(T.unsafe(nil), String) # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:87 +# source://rspec-core//lib/rspec/core/metadata_filter.rb#87 module RSpec::Core::FilterableItemRepository; end # This implementation is much more complex, and is optimized for @@ -4591,40 +4597,40 @@ module RSpec::Core::FilterableItemRepository; end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:151 +# source://rspec-core//lib/rspec/core/metadata_filter.rb#151 class RSpec::Core::FilterableItemRepository::QueryOptimized < ::RSpec::Core::FilterableItemRepository::UpdateOptimized # @return [QueryOptimized] a new instance of QueryOptimized # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:155 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#155 def initialize(applies_predicate); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:164 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#164 def append(item, metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:174 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#174 def delete(item, metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:179 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#179 def items_for(metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:169 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#169 def prepend(item, metadata); end private - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:217 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#217 def applicable_metadata_from(metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:118 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 def find_items_for(request_meta); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:211 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#211 def handle_mutation(metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:235 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#235 def proc_keys_from(metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:203 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#203 def reconstruct_caches; end end @@ -4640,46 +4646,46 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:98 +# source://rspec-core//lib/rspec/core/metadata_filter.rb#98 class RSpec::Core::FilterableItemRepository::UpdateOptimized # @return [UpdateOptimized] a new instance of UpdateOptimized # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:101 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#101 def initialize(applies_predicate); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:106 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#106 def append(item, metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:114 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#114 def delete(item, metadata); end # Returns the value of attribute items_and_filters. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:99 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#99 def items_and_filters; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:118 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 def items_for(request_meta); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:110 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#110 def prepend(item, metadata); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/flat_map.rb:4 +# source://rspec-core//lib/rspec/core/flat_map.rb#4 module RSpec::Core::FlatMap private # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/flat_map.rb:6 + # source://rspec-core//lib/rspec/core/flat_map.rb#6 def flat_map(array, &block); end class << self # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/flat_map.rb:6 + # source://rspec-core//lib/rspec/core/flat_map.rb#6 def flat_map(array, &block); end end end @@ -4751,7 +4757,7 @@ end # @see RSpec::Core::Formatters::BaseTextFormatter # @see RSpec::Core::Reporter # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:3 +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#3 module RSpec::Core::Formatters class << self # Register the formatter class @@ -4761,7 +4767,7 @@ module RSpec::Core::Formatters # registered to the specified formatter # @see RSpec::Core::Formatters::BaseFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:86 + # source://rspec-core//lib/rspec/core/formatters.rb#86 def register(formatter_class, *notifications); end end end @@ -4774,26 +4780,26 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/base_bisect_formatter.rb:12 +# source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#12 class RSpec::Core::Formatters::BaseBisectFormatter # @return [BaseBisectFormatter] a new instance of BaseBisectFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_bisect_formatter.rb:17 + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#17 def initialize(expected_failures); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_bisect_formatter.rb:23 + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#23 def example_failed(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_bisect_formatter.rb:27 + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#27 def example_finished(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_bisect_formatter.rb:37 + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#37 def start_dump(_notification); end class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_bisect_formatter.rb:13 + # source://rspec-core//lib/rspec/core/formatters/base_bisect_formatter.rb#13 def inherited(formatter); end end end @@ -4805,33 +4811,33 @@ end # @see RSpec::Core::Reporter # @see RSpec::Core::Formatters::Protocol # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:13 +# source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#13 class RSpec::Core::Formatters::BaseFormatter # @api public # @param output [IO] the formatter output # @return [BaseFormatter] a new instance of BaseFormatter # @see RSpec::Core::Formatters::Protocol#initialize # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:23 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#23 def initialize(output); end # @api public # @param _notification [NullNotification] (Ignored) # @see RSpec::Core::Formatters::Protocol#close # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:50 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#50 def close(_notification); end # Returns the value of attribute example_group. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:17 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#17 def example_group; end # Sets the attribute example_group # # @param value the value to set the attribute example_group to. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:17 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#17 def example_group=(_arg0); end # @api public @@ -4839,30 +4845,30 @@ class RSpec::Core::Formatters::BaseFormatter # subclass of `RSpec::Core::ExampleGroup` # @see RSpec::Core::Formatters::Protocol#example_group_started # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:42 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#42 def example_group_started(notification); end # Returns the value of attribute output. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:18 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#18 def output; end # @api public # @param notification [StartNotification] # @see RSpec::Core::Formatters::Protocol#start # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:32 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#32 def start(notification); end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:64 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#64 def output_supports_sync; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:60 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#60 def restore_sync_output; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_formatter.rb:56 + # source://rspec-core//lib/rspec/core/formatters/base_formatter.rb#56 def start_sync_output; end end @@ -4873,7 +4879,7 @@ end # @see RSpec::Core::Formatters::BaseFormatter # @see RSpec::Core::Reporter # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:12 +# source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#12 class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::BaseFormatter # Invoked at the end of a suite run. Allows the formatter to do any # tidying up, but be aware that formatter output streams may be used @@ -4882,7 +4888,7 @@ class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::Ba # @api public # @param _notification [NullNotification] (Ignored) # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:65 + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#65 def close(_notification); end # Dumps detailed information about each example failure. @@ -4890,12 +4896,12 @@ class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::Ba # @api public # @param notification [NullNotification] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:30 + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#30 def dump_failures(notification); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:47 + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#47 def dump_pending(notification); end # This method is invoked after the dumping of examples and failures. @@ -4905,7 +4911,7 @@ class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::Ba # @param summary [SummaryNotification] containing duration, # example_count, failure_count and pending_count # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:42 + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#42 def dump_summary(summary); end # Used by the reporter to send messages to the output stream. @@ -4913,12 +4919,12 @@ class RSpec::Core::Formatters::BaseTextFormatter < ::RSpec::Core::Formatters::Ba # @api public # @param notification [MessageNotification] containing message # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:21 + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#21 def message(notification); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/base_text_formatter.rb:53 + # source://rspec-core//lib/rspec/core/formatters/base_text_formatter.rb#53 def seed(notification); end end @@ -4932,27 +4938,27 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/bisect_drb_formatter.rb:15 +# source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#15 class RSpec::Core::Formatters::BisectDRbFormatter < ::RSpec::Core::Formatters::BaseBisectFormatter # @return [BisectDRbFormatter] a new instance of BisectDRbFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/bisect_drb_formatter.rb:16 + # source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#16 def initialize(_output); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/bisect_drb_formatter.rb:23 + # source://rspec-core//lib/rspec/core/formatters/bisect_drb_formatter.rb#23 def notify_results(results); end end # ConsoleCodes provides helpers for formatting console output # with ANSI codes, e.g. color's and bold. # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:6 +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#6 module RSpec::Core::Formatters::ConsoleCodes private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:34 + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34 def config_colors_to_methods; end # Fetches the correct code for the supplied symbol, or checks @@ -4961,7 +4967,7 @@ module RSpec::Core::Formatters::ConsoleCodes # @param code_or_symbol [Symbol, Fixnum] Symbol or code to check # @return [Fixnum] a console code # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:47 + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47 def console_code_for(code_or_symbol); end # Wraps a piece of text in ANSI codes with the supplied code. Will @@ -4972,13 +4978,13 @@ module RSpec::Core::Formatters::ConsoleCodes # @param code_or_symbol [Symbol, Fixnum] the desired control code # @return [String] the wrapped text # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:66 + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66 def wrap(text, code_or_symbol); end class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:34 + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#34 def config_colors_to_methods; end # Fetches the correct code for the supplied symbol, or checks @@ -4987,7 +4993,7 @@ module RSpec::Core::Formatters::ConsoleCodes # @param code_or_symbol [Symbol, Fixnum] Symbol or code to check # @return [Fixnum] a console code # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:47 + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#47 def console_code_for(code_or_symbol); end # Wraps a piece of text in ANSI codes with the supplied code. Will @@ -4998,137 +5004,137 @@ module RSpec::Core::Formatters::ConsoleCodes # @param code_or_symbol [Symbol, Fixnum] the desired control code # @return [String] the wrapped text # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:66 + # source://rspec-core//lib/rspec/core/formatters/console_codes.rb#66 def wrap(text, code_or_symbol); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:8 +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#8 RSpec::Core::Formatters::ConsoleCodes::VT100_CODES = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/console_codes.rb:29 +# source://rspec-core//lib/rspec/core/formatters/console_codes.rb#29 RSpec::Core::Formatters::ConsoleCodes::VT100_CODE_VALUES = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:7 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#7 class RSpec::Core::Formatters::DeprecationFormatter # @return [DeprecationFormatter] a new instance of DeprecationFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#12 def initialize(deprecation_stream, summary_stream); end # Returns the value of attribute count. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:10 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 def count; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:32 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#32 def deprecation(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:44 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#44 def deprecation_message_for(data); end # Returns the value of attribute deprecation_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:10 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 def deprecation_stream; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:40 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#40 def deprecation_summary(_notification); end # Returns the value of attribute deprecation_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:10 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 def output; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:20 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#20 def printer; end # Returns the value of attribute summary_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:10 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 def summary_stream; end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:60 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#60 RSpec::Core::Formatters::DeprecationFormatter::DEPRECATION_STREAM_NOTICE = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:135 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#135 class RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter # @return [DelayedPrinter] a new instance of DelayedPrinter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:140 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#140 def initialize(deprecation_stream, summary_stream, deprecation_formatter); end # Returns the value of attribute deprecation_formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:138 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 def deprecation_formatter; end # Returns the value of attribute deprecation_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:138 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 def deprecation_stream; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:163 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#163 def deprecation_summary; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:172 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#172 def print_deferred_deprecation_warnings; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:148 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#148 def print_deprecation_message(data); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:155 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#155 def stash_deprecation_message(deprecation_message); end # Returns the value of attribute summary_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:138 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#138 def summary_stream; end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:136 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#136 RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter::TOO_MANY_USES_LIMIT = T.let(T.unsafe(nil), Integer) # Wraps a File object and provides file-specific operations. # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:196 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#196 class RSpec::Core::Formatters::DeprecationFormatter::FileStream # @return [FileStream] a new instance of FileStream # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:197 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#197 def initialize(file); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:207 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#207 def puts(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:211 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#211 def summarize(summary_stream, deprecation_count); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:94 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 class RSpec::Core::Formatters::DeprecationFormatter::GeneratedDeprecationMessage < ::Struct # @return [GeneratedDeprecationMessage] a new instance of GeneratedDeprecationMessage # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:95 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#95 def initialize(data); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:100 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#100 def to_s; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:107 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#107 def too_many_warnings_message; end # Returns the value of attribute type @@ -5141,7 +5147,7 @@ class RSpec::Core::Formatters::DeprecationFormatter::GeneratedDeprecationMessage # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:94 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def type=(_); end class << self @@ -5154,66 +5160,66 @@ end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:113 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#113 class RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter # @return [ImmediatePrinter] a new instance of ImmediatePrinter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:116 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#116 def initialize(deprecation_stream, summary_stream, deprecation_formatter); end # Returns the value of attribute deprecation_formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:114 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 def deprecation_formatter; end # Returns the value of attribute deprecation_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:114 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 def deprecation_stream; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:128 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#128 def deprecation_summary; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:123 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#123 def print_deprecation_message(data); end # Returns the value of attribute summary_stream. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:114 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#114 def summary_stream; end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:52 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#52 RSpec::Core::Formatters::DeprecationFormatter::RAISE_ERROR_CONFIG_NOTICE = T.let(T.unsafe(nil), String) # Not really a stream, but is usable in place of one. # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:184 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#184 class RSpec::Core::Formatters::DeprecationFormatter::RaiseErrorStream # @raise [DeprecationError] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:185 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#185 def puts(message); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:189 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#189 def summarize(summary_stream, deprecation_count); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:66 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage < ::Struct # @return [SpecifiedDeprecationMessage] a new instance of SpecifiedDeprecationMessage # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:67 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#67 def initialize(data); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:72 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#72 def to_s; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:76 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#76 def too_many_warnings_message; end # Returns the value of attribute type @@ -5226,15 +5232,15 @@ class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:66 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def type=(_); end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:88 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#88 def deprecation_type_for(data); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:82 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#82 def output_formatted(str); end class << self @@ -5245,179 +5251,179 @@ class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/deprecation_formatter.rb:62 +# source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#62 RSpec::Core::Formatters::DeprecationFormatter::TOO_MANY_WARNINGS_NOTICE = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:8 +# source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#8 class RSpec::Core::Formatters::DocumentationFormatter < ::RSpec::Core::Formatters::BaseTextFormatter # @return [DocumentationFormatter] a new instance of DocumentationFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#12 def initialize(output); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:50 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#50 def example_failed(failure); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:31 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#31 def example_group_finished(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:24 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#24 def example_group_started(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:35 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#35 def example_passed(passed); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:42 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#42 def example_pending(pending); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:20 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#20 def example_started(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:57 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#57 def message(notification); end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:96 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#96 def current_indentation(offset = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:85 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#85 def failure_output(example); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:67 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#67 def flush_messages; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:91 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#91 def next_failure_index; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:75 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#75 def passed_output(example); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/documentation_formatter.rb:79 + # source://rspec-core//lib/rspec/core/formatters/documentation_formatter.rb#79 def pending_output(example, message); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:11 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#11 class RSpec::Core::Formatters::ExceptionPresenter # @return [ExceptionPresenter] a new instance of ExceptionPresenter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:16 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#16 def initialize(exception, example, options = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:73 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#73 def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:33 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#33 def colorized_message_lines(colorizer = T.unsafe(nil)); end # Returns the value of attribute description. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def description; end # Returns the value of attribute example. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def example; end # Returns the value of attribute exception. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def exception; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:39 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#39 def formatted_backtrace(exception = T.unsafe(nil)); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:45 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#45 def formatted_cause(exception); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:79 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#79 def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:84 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#84 def fully_formatted_lines(failure_number, colorizer); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:29 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#29 def message_lines; end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:207 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#207 def add_shared_group_lines(lines, colorizer); end # Returns the value of attribute backtrace_formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def backtrace_formatter; end # Returns the value of attribute detail_formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def detail_formatter; end # for 1.8.7 # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:261 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#265 def encoded_description(description); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:115 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#115 def encoded_string(string); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:111 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#111 def encoding_of(string); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:271 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#275 def exception_backtrace; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:145 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#145 def exception_class_name(exception = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:185 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#185 def exception_lines; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:178 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#178 def exception_message_string(exception); end # Returns the value of attribute extra_detail_formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def extra_detail_formatter; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:196 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#196 def extra_failure_lines; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:151 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#151 def failure_lines; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:165 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#165 def failure_slash_error_lines; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:99 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#99 def final_exception(exception, previous = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:241 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#241 def find_failed_line; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:252 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#256 def formatted_message_and_backtrace(colorizer); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:129 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#129 def indent_lines(lines, failure_number); end # Returns the value of attribute message_color. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#12 def message_color; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:217 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#217 def read_failed_lines; end end @@ -5428,49 +5434,49 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:280 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#284 class RSpec::Core::Formatters::ExceptionPresenter::Factory # @return [Factory] a new instance of Factory # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:287 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#291 def initialize(example); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:281 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#285 def build; end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:338 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#342 def multiple_exception_summarizer(exception, prior_detail_formatter, color); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:334 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#338 def multiple_exceptions_error?(exception); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:297 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#301 def options; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:301 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#305 def pending_options; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:359 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#363 def sub_failure_list_formatter(exception, message_color); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:318 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#322 def with_multiple_error_options_as_needed(exception, options); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:392 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#396 class RSpec::Core::Formatters::ExceptionPresenter::Factory::CommonBacktraceTruncater # @return [CommonBacktraceTruncater] a new instance of CommonBacktraceTruncater # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:393 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#397 def initialize(parent); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:397 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#401 def with_truncated_backtrace(child); end end @@ -5479,35 +5485,35 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:385 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#389 module RSpec::Core::Formatters::ExceptionPresenter::Factory::EmptyBacktraceFormatter class << self - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:386 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#390 def format_backtrace(*_arg0); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:417 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#421 RSpec::Core::Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER = T.let(T.unsafe(nil), Proc) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/failure_list_formatter.rb:7 +# source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#7 class RSpec::Core::Formatters::FailureListFormatter < ::RSpec::Core::Formatters::BaseFormatter # Discard profile and messages # # These outputs are not really relevant in the context of this failure # list formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/failure_list_formatter.rb:18 + # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#18 def dump_profile(_profile); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/failure_list_formatter.rb:10 + # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#10 def example_failed(failure); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/failure_list_formatter.rb:19 + # source://rspec-core//lib/rspec/core/formatters/failure_list_formatter.rb#19 def message(_message); end end @@ -5516,12 +5522,12 @@ end # # @api private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/fallback_message_formatter.rb:7 +# source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#7 class RSpec::Core::Formatters::FallbackMessageFormatter # @api private # @return [FallbackMessageFormatter] a new instance of FallbackMessageFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/fallback_message_formatter.rb:10 + # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#10 def initialize(output); end # Used by the reporter to send messages to the output stream. @@ -5529,19 +5535,19 @@ class RSpec::Core::Formatters::FallbackMessageFormatter # @api public # @param notification [MessageNotification] containing message # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/fallback_message_formatter.rb:22 + # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#22 def message(notification); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/fallback_message_formatter.rb:15 + # source://rspec-core//lib/rspec/core/formatters/fallback_message_formatter.rb#15 def output; end end # Formatters helpers. # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:7 +# source://rspec-core//lib/rspec/core/formatters/helpers.rb#7 module RSpec::Core::Formatters::Helpers class << self # Formats seconds into a human-readable string. @@ -5553,7 +5559,7 @@ module RSpec::Core::Formatters::Helpers # @param duration [Float, Fixnum] in seconds # @return [String] human-readable time # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:24 + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#24 def format_duration(duration); end # Formats seconds to have 5 digits of precision with trailing zeros @@ -5572,14 +5578,14 @@ module RSpec::Core::Formatters::Helpers # @return [String] formatted float # @see #strip_trailing_zeroes # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:60 + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#60 def format_seconds(float, precision = T.unsafe(nil)); end # Given a list of example ids, organizes them into a compact, ordered list. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:102 + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#102 def organize_ids(ids); end # Pluralize a word based on a count. @@ -5589,7 +5595,7 @@ module RSpec::Core::Formatters::Helpers # @param string [String] word to be pluralized # @return [String] pluralized word # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:88 + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#88 def pluralize(count, string); end private @@ -5603,190 +5609,190 @@ module RSpec::Core::Formatters::Helpers # @param string [String] string with trailing zeros # @return [String] string with trailing zeros removed # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:76 + # source://rspec-core//lib/rspec/core/formatters/helpers.rb#76 def strip_trailing_zeroes(string); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:12 +# source://rspec-core//lib/rspec/core/formatters/helpers.rb#12 RSpec::Core::Formatters::Helpers::DEFAULT_PRECISION = T.let(T.unsafe(nil), Integer) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/helpers.rb:9 +# source://rspec-core//lib/rspec/core/formatters/helpers.rb#9 RSpec::Core::Formatters::Helpers::SUB_SECOND_PRECISION = T.let(T.unsafe(nil), Integer) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:8 +# source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#8 class RSpec::Core::Formatters::HtmlFormatter < ::RSpec::Core::Formatters::BaseFormatter # @return [HtmlFormatter] a new instance of HtmlFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:13 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#13 def initialize(output); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:103 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#103 def dump_summary(summary); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:55 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#55 def example_failed(failure); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:28 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#28 def example_group_started(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:49 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#49 def example_passed(passed); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:93 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#93 def example_pending(pending); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:45 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#45 def example_started(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:22 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#22 def start(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:40 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#40 def start_dump(_notification); end private # The number of the currently running example_group. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:120 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#120 def example_group_number; end # The number of the currently running example (a global counter). # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:125 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#125 def example_number; end # Override this method if you wish to output extra HTML for a failed # spec. For example, you could output links to images or other files # produced during the specs. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:141 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#141 def extra_failure_content(failure); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_formatter.rb:130 + # source://rspec-core//lib/rspec/core/formatters/html_formatter.rb#130 def percent_done; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:7 +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#7 class RSpec::Core::Formatters::HtmlPrinter include ::ERB::Util # @return [HtmlPrinter] a new instance of HtmlPrinter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:9 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#9 def initialize(output); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:81 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#79 def flush; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:98 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#96 def make_example_group_header_red(group_id); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:105 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#103 def make_example_group_header_yellow(group_id); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:90 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#88 def make_header_red; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:94 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#92 def make_header_yellow; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:85 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#83 def move_progress(percent_done); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:37 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#36 def print_example_failed(pending_fixed, description, run_time, failure_id, exception, extra_content); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:18 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#18 def print_example_group_end; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:23 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#23 def print_example_group_start(group_id, description, number_of_parents); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:29 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#29 def print_example_passed(description, run_time); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:55 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#53 def print_example_pending(description, pending_message); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:13 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#13 def print_html_start; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:61 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#59 def print_summary(duration, example_count, failure_count, pending_count); end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:114 + # source://rspec-core//lib/rspec/core/formatters/html_printer.rb#112 def indentation_style(number_of_parents); end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:142 +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#140 RSpec::Core::Formatters::HtmlPrinter::GLOBAL_SCRIPTS = T.let(T.unsafe(nil), String) -# source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:220 +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#218 RSpec::Core::Formatters::HtmlPrinter::GLOBAL_STYLES = T.let(T.unsafe(nil), String) -# source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:384 +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#382 RSpec::Core::Formatters::HtmlPrinter::HTML_HEADER = T.let(T.unsafe(nil), String) -# source://rspec-core-3.11.0/lib/rspec/core/formatters/html_printer.rb:118 +# source://rspec-core//lib/rspec/core/formatters/html_printer.rb#116 RSpec::Core::Formatters::HtmlPrinter::REPORT_HEADER = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:8 +# source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#8 class RSpec::Core::Formatters::JsonFormatter < ::RSpec::Core::Formatters::BaseFormatter # @return [JsonFormatter] a new instance of JsonFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:13 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#13 def initialize(output); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:55 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#55 def close(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:59 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#59 def dump_profile(profile); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:78 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#78 def dump_profile_slowest_example_groups(profile); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:66 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#66 def dump_profile_slowest_examples(profile); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:24 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#24 def dump_summary(summary); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:20 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#20 def message(notification); end # Returns the value of attribute output_hash. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:11 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#11 def output_hash; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:50 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#50 def seed(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:35 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#35 def stop(notification); end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/json_formatter.rb:87 + # source://rspec-core//lib/rspec/core/formatters/json_formatter.rb#87 def format_example(example); end end @@ -5797,127 +5803,127 @@ end # # @api private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:96 +# source://rspec-core//lib/rspec/core/formatters.rb#96 class RSpec::Core::Formatters::Loader # @api private # @return [Loader] a new instance of Loader # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:105 + # source://rspec-core//lib/rspec/core/formatters.rb#105 def initialize(reporter); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:144 + # source://rspec-core//lib/rspec/core/formatters.rb#144 def add(formatter_to_use, *paths); end # @api private # @return [String] the default formatter to setup, defaults to `progress` # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:118 + # source://rspec-core//lib/rspec/core/formatters.rb#118 def default_formatter; end # @api private # @return [String] the default formatter to setup, defaults to `progress` # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:118 + # source://rspec-core//lib/rspec/core/formatters.rb#118 def default_formatter=(_arg0); end # @api private # @return [Array] the loaded formatters # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:112 + # source://rspec-core//lib/rspec/core/formatters.rb#112 def formatters; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:121 + # source://rspec-core//lib/rspec/core/formatters.rb#121 def prepare_default(output_stream, deprecation_stream); end # @api private # @return [Reporter] the reporter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:115 + # source://rspec-core//lib/rspec/core/formatters.rb#115 def reporter; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:126 + # source://rspec-core//lib/rspec/core/formatters.rb#126 def setup_default(output_stream, deprecation_stream); end private # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:211 + # source://rspec-core//lib/rspec/core/formatters.rb#211 def built_in_formatter(key); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:234 + # source://rspec-core//lib/rspec/core/formatters.rb#234 def custom_formatter(formatter_ref); end # @api private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:195 + # source://rspec-core//lib/rspec/core/formatters.rb#195 def duplicate_formatter_exists?(new_formatter); end # @api private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:207 + # source://rspec-core//lib/rspec/core/formatters.rb#207 def existing_formatter_implements?(notification); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:181 + # source://rspec-core//lib/rspec/core/formatters.rb#181 def find_formatter(formatter_to_use); end # @api private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:202 + # source://rspec-core//lib/rspec/core/formatters.rb#202 def has_matching_output?(formatter, new_formatter); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:228 + # source://rspec-core//lib/rspec/core/formatters.rb#228 def notifications_for(formatter_class); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:269 + # source://rspec-core//lib/rspec/core/formatters.rb#269 def open_stream(path_or_wrapper); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:250 + # source://rspec-core//lib/rspec/core/formatters.rb#250 def path_for(const_ref); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:188 + # source://rspec-core//lib/rspec/core/formatters.rb#188 def register(formatter, notifications); end # @api private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:246 + # source://rspec-core//lib/rspec/core/formatters.rb#246 def string_const?(str); end # activesupport/lib/active_support/inflector/methods.rb, line 48 # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:259 + # source://rspec-core//lib/rspec/core/formatters.rb#259 def underscore(camel_cased_word); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:254 + # source://rspec-core//lib/rspec/core/formatters.rb#254 def underscore_with_fix_for_non_standard_rspec_naming(string); end class << self @@ -5925,7 +5931,7 @@ class RSpec::Core::Formatters::Loader # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters.rb:100 + # source://rspec-core//lib/rspec/core/formatters.rb#100 def formatters; end end end @@ -5934,12 +5940,12 @@ end # # @api private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:8 +# source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#8 class RSpec::Core::Formatters::ProfileFormatter # @api private # @return [ProfileFormatter] a new instance of ProfileFormatter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:11 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#11 def initialize(output); end # This method is invoked after the dumping the summary if profiling is @@ -5949,134 +5955,134 @@ class RSpec::Core::Formatters::ProfileFormatter # @param profile [ProfileNotification] containing duration, # slowest_examples and slowest_example_groups # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:25 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#25 def dump_profile(profile); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:16 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#16 def output; end private # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:62 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#62 def bold(text); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:44 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#44 def dump_profile_slowest_example_groups(profile); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:32 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#32 def dump_profile_slowest_examples(profile); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/profile_formatter.rb:57 + # source://rspec-core//lib/rspec/core/formatters/profile_formatter.rb#57 def format_caller(caller_info); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/progress_formatter.rb:8 +# source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#8 class RSpec::Core::Formatters::ProgressFormatter < ::RSpec::Core::Formatters::BaseTextFormatter - # source://rspec-core-3.11.0/lib/rspec/core/formatters/progress_formatter.rb:19 + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#19 def example_failed(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/progress_formatter.rb:11 + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#11 def example_passed(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/progress_formatter.rb:15 + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#15 def example_pending(_notification); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/progress_formatter.rb:23 + # source://rspec-core//lib/rspec/core/formatters/progress_formatter.rb#23 def start_dump(_notification); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:5 +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#5 class RSpec::Core::Formatters::SnippetExtractor # @return [SnippetExtractor] a new instance of SnippetExtractor # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:35 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#35 def initialize(source, beginning_line_number, max_line_count = T.unsafe(nil)); end # Returns the value of attribute beginning_line_number. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:24 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 def beginning_line_number; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:41 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#41 def expression_lines; end # Returns the value of attribute max_line_count. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:24 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 def max_line_count; end # Returns the value of attribute source. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:24 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#24 def source; end private # @raise [NoExpressionAtLineError] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:95 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#95 def expression_node; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:107 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#107 def expression_outmost_node?(node); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:55 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#55 def line_range_of_expression; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:87 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#87 def line_range_of_location_nodes_in_expression; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:117 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#117 def location_nodes_at_beginning_line; end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:70 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#70 def unclosed_tokens_in_line_range(line_range); end class << self # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:26 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#26 def extract_expression_lines_at(file_path, beginning_line_number, max_line_count = T.unsafe(nil)); end # @raise [NoSuchLineError] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:9 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#9 def extract_line_at(file_path, line_number); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:128 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#128 def least_indentation_from(lines); end # @raise [NoSuchFileError] # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:16 + # source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#16 def source_from_file(path); end end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:22 +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#22 class RSpec::Core::Formatters::SnippetExtractor::NoExpressionAtLineError < ::StandardError; end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:6 +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#6 class RSpec::Core::Formatters::SnippetExtractor::NoSuchFileError < ::StandardError; end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/snippet_extractor.rb:7 +# source://rspec-core//lib/rspec/core/formatters/snippet_extractor.rb#7 class RSpec::Core::Formatters::SnippetExtractor::NoSuchLineError < ::StandardError; end # Provides terminal syntax highlighting of code snippets @@ -6084,51 +6090,51 @@ class RSpec::Core::Formatters::SnippetExtractor::NoSuchLineError < ::StandardErr # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:7 +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#7 class RSpec::Core::Formatters::SyntaxHighlighter # @return [SyntaxHighlighter] a new instance of SyntaxHighlighter # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:8 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#8 def initialize(configuration); end - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:12 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#12 def highlight(lines); end private - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:50 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#50 def color_enabled_implementation; end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:44 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#44 def implementation; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:18 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#18 def attempt_to_add_rspec_terms_to_coderay_keywords; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:61 +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#61 module RSpec::Core::Formatters::SyntaxHighlighter::CodeRayImplementation class << self - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:64 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#64 def highlight_syntax(lines); end end end -# source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:62 +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#62 RSpec::Core::Formatters::SyntaxHighlighter::CodeRayImplementation::RESET_CODE = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:78 +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#78 module RSpec::Core::Formatters::SyntaxHighlighter::NoSyntaxHighlightingImplementation class << self - # source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:79 + # source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#79 def highlight_syntax(lines); end end end @@ -6138,7 +6144,7 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/syntax_highlighter.rb:87 +# source://rspec-core//lib/rspec/core/formatters/syntax_highlighter.rb#87 RSpec::Core::Formatters::SyntaxHighlighter::WindowsImplementation = RSpec::Core::Formatters::SyntaxHighlighter::NoSyntaxHighlightingImplementation # Mixin that makes the including class imitate a hash for backwards @@ -6147,405 +6153,405 @@ RSpec::Core::Formatters::SyntaxHighlighter::WindowsImplementation = RSpec::Core: # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:349 +# source://rspec-core//lib/rspec/core/metadata.rb#349 module RSpec::Core::HashImitatable mixes_in_class_methods ::RSpec::Core::HashImitatable::ClassMethods - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def <(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def <=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def >(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def >=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:388 + # source://rspec-core//lib/rspec/core/metadata.rb#388 def [](key); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:398 + # source://rspec-core//lib/rspec/core/metadata.rb#398 def []=(key, value); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def all?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def any?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def assoc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def chain(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def chunk(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def chunk_while(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def clear(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def collect(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def collect_concat(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def compact(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def compact!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def compare_by_identity(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def compare_by_identity?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def count(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def cycle(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def deconstruct_keys(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def default(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def default=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def default_proc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def default_proc=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def delete(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def delete_if(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def detect(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def dig(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def drop(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def drop_while(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_cons(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_entry(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_key(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_pair(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_slice(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_value(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_with_index(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def each_with_object(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def empty?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def entries(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 + def except(*args, &block); end + + # source://rspec-core//lib/rspec/core/metadata.rb#367 def fetch(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def fetch_values(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def filter(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def filter!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def filter_map(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def find(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def find_all(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def find_index(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def first(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def flat_map(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def flatten(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def grep(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def grep_v(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def group_by(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def has_key?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def has_value?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def include?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 - def index(*args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def inject(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def invert(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def keep_if(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def key(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def key?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def keys(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def lazy(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def length(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def map(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def max(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def max_by(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def member?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def merge(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def merge!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def min(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def min_by(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def minmax(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def minmax_by(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def none?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def one?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def partition(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def rassoc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def reduce(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def rehash(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def reject(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def reject!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def replace(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def reverse_each(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def select(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def select!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def shift(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def size(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def slice(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def slice_after(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def slice_before(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def slice_when(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def sort(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def sort_by(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def store(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def sum(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def take(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def take_while(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def tally(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def to_a(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:354 + # source://rspec-core//lib/rspec/core/metadata.rb#354 def to_h; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def to_hash(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def to_proc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def to_set(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def transform_keys(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def transform_keys!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def transform_values(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def transform_values!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def uniq(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def update(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def value?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def values(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def values_at(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:367 + # source://rspec-core//lib/rspec/core/metadata.rb#367 def zip(*args, &block); end private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:414 + # source://rspec-core//lib/rspec/core/metadata.rb#414 def directly_supports_attribute?(name); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:410 + # source://rspec-core//lib/rspec/core/metadata.rb#410 def extra_hash_attributes; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:418 + # source://rspec-core//lib/rspec/core/metadata.rb#418 def get_value(name); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:426 + # source://rspec-core//lib/rspec/core/metadata.rb#426 def hash_for_delegation; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:430 + # source://rspec-core//lib/rspec/core/metadata.rb#430 def issue_deprecation(_method_name, *_args); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:422 + # source://rspec-core//lib/rspec/core/metadata.rb#422 def set_value(name, value); end class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:350 + # source://rspec-core//lib/rspec/core/metadata.rb#350 def included(klass); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:435 +# source://rspec-core//lib/rspec/core/metadata.rb#435 module RSpec::Core::HashImitatable::ClassMethods - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:440 + # source://rspec-core//lib/rspec/core/metadata.rb#440 def attr_accessor(*names); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:436 + # source://rspec-core//lib/rspec/core/metadata.rb#436 def hash_attribute_names; end end @@ -6556,7 +6562,7 @@ end # available off of the configuration object to define global setup # or teardown logic. # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:9 +# source://rspec-core//lib/rspec/core/hooks.rb#9 module RSpec::Core::Hooks # Declare a block of code to be run after each example (using `:example`) # or once after all examples n the context (using `:context`). See @@ -6607,7 +6613,7 @@ module RSpec::Core::Hooks # @see SharedExampleGroup # @see Configuration # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:277 + # source://rspec-core//lib/rspec/core/hooks.rb#277 def after(*args, &block); end # Adds `block` to the back of the list of `after` blocks in the same @@ -6615,7 +6621,7 @@ module RSpec::Core::Hooks # # See {#after} for scoping semantics. # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:287 + # source://rspec-core//lib/rspec/core/hooks.rb#287 def append_after(*args, &block); end # Declare a block of code to be run before each example (using `:example`) @@ -6789,7 +6795,7 @@ module RSpec::Core::Hooks # @see SharedExampleGroup # @see Configuration # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:200 + # source://rspec-core//lib/rspec/core/hooks.rb#200 def append_before(*args, &block); end # Declare a block of code, parts of which will be run before and parts @@ -6834,7 +6840,7 @@ module RSpec::Core::Hooks # @overload around # @yield [Example] the example to run # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:349 + # source://rspec-core//lib/rspec/core/hooks.rb#349 def around(*args, &block); end # Declare a block of code to be run before each example (using `:example`) @@ -7010,14 +7016,14 @@ module RSpec::Core::Hooks # @see SharedExampleGroup # @see Configuration # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:200 + # source://rspec-core//lib/rspec/core/hooks.rb#200 def before(*args, &block); end # Holds the various registered hooks. # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:355 + # source://rspec-core//lib/rspec/core/hooks.rb#355 def hooks; end # Declare a block of code to be run after each example (using `:example`) @@ -7069,7 +7075,7 @@ module RSpec::Core::Hooks # @see SharedExampleGroup # @see Configuration # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:277 + # source://rspec-core//lib/rspec/core/hooks.rb#277 def prepend_after(*args, &block); end # Adds `block` to the front of the list of `before` blocks in the same @@ -7077,50 +7083,50 @@ module RSpec::Core::Hooks # # See {#before} for scoping semantics. # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:210 + # source://rspec-core//lib/rspec/core/hooks.rb#210 def prepend_before(*args, &block); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:379 +# source://rspec-core//lib/rspec/core/hooks.rb#379 class RSpec::Core::Hooks::AfterContextHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:380 + # source://rspec-core//lib/rspec/core/hooks.rb#380 def run(example); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:370 +# source://rspec-core//lib/rspec/core/hooks.rb#370 class RSpec::Core::Hooks::AfterHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:371 + # source://rspec-core//lib/rspec/core/hooks.rb#371 def run(example); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:388 +# source://rspec-core//lib/rspec/core/hooks.rb#388 class RSpec::Core::Hooks::AroundHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:389 + # source://rspec-core//lib/rspec/core/hooks.rb#389 def execute_with(example, procsy); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:397 + # source://rspec-core//lib/rspec/core/hooks.rb#397 def hook_description; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:363 +# source://rspec-core//lib/rspec/core/hooks.rb#363 class RSpec::Core::Hooks::BeforeHook < ::RSpec::Core::Hooks::Hook - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:364 + # source://rspec-core//lib/rspec/core/hooks.rb#364 def run(example); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:360 +# source://rspec-core//lib/rspec/core/hooks.rb#360 class RSpec::Core::Hooks::Hook < ::Struct # Returns the value of attribute block # @@ -7132,7 +7138,7 @@ class RSpec::Core::Hooks::Hook < ::Struct # @param value [Object] the value to set the attribute block to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:360 + # source://rspec-core//lib/rspec/core/hooks.rb#360 def block=(_); end # Returns the value of attribute options @@ -7145,7 +7151,7 @@ class RSpec::Core::Hooks::Hook < ::Struct # @param value [Object] the value to set the attribute options to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:360 + # source://rspec-core//lib/rspec/core/hooks.rb#360 def options=(_); end class << self @@ -7168,20 +7174,20 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:420 +# source://rspec-core//lib/rspec/core/hooks.rb#420 class RSpec::Core::Hooks::HookCollections # @return [HookCollections] a new instance of HookCollections # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:421 + # source://rspec-core//lib/rspec/core/hooks.rb#421 def initialize(owner, filterable_item_repo_class); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:449 + # source://rspec-core//lib/rspec/core/hooks.rb#449 def register(prepend_or_append, position, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:442 + # source://rspec-core//lib/rspec/core/hooks.rb#442 def register_global_singleton_context_hooks(example, globals); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:431 + # source://rspec-core//lib/rspec/core/hooks.rb#431 def register_globals(host, globals); end # Runs all of the blocks stored with the hook in the context of the @@ -7189,148 +7195,148 @@ class RSpec::Core::Hooks::HookCollections # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:475 + # source://rspec-core//lib/rspec/core/hooks.rb#475 def run(position, scope, example_or_group); end protected - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:523 + # source://rspec-core//lib/rspec/core/hooks.rb#523 def all_hooks_for(position, scope); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:507 + # source://rspec-core//lib/rspec/core/hooks.rb#507 def matching_hooks_for(position, scope, example_or_group); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:533 + # source://rspec-core//lib/rspec/core/hooks.rb#533 def processable_hooks_for(position, scope, host); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:527 + # source://rspec-core//lib/rspec/core/hooks.rb#527 def run_owned_hooks_for(position, scope, example_or_group); end private - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:553 + # source://rspec-core//lib/rspec/core/hooks.rb#553 def ensure_hooks_initialized_for(position, scope); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:591 + # source://rspec-core//lib/rspec/core/hooks.rb#591 def extract_scope_from(args); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:543 + # source://rspec-core//lib/rspec/core/hooks.rb#543 def hooks_for(position, scope); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:605 + # source://rspec-core//lib/rspec/core/hooks.rb#605 def known_scope?(scope); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:609 + # source://rspec-core//lib/rspec/core/hooks.rb#609 def normalized_scope_for(scope); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:633 + # source://rspec-core//lib/rspec/core/hooks.rb#633 def owner_parent_groups; end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:571 + # source://rspec-core//lib/rspec/core/hooks.rb#571 def process(host, parent_groups, globals, position, scope); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:619 + # source://rspec-core//lib/rspec/core/hooks.rb#619 def run_around_example_hooks_for(example); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:613 + # source://rspec-core//lib/rspec/core/hooks.rb#613 def run_example_hooks_for(example, position, each_method); end - # source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:584 + # source://rspec-core//lib/rspec/core/hooks.rb#584 def scope_and_options_from(*args); end end -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:505 +# source://rspec-core//lib/rspec/core/hooks.rb#505 RSpec::Core::Hooks::HookCollections::EMPTY_HOOK_ARRAY = T.let(T.unsafe(nil), Array) -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:495 +# source://rspec-core//lib/rspec/core/hooks.rb#495 RSpec::Core::Hooks::HookCollections::HOOK_TYPES = T.let(T.unsafe(nil), Hash) -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:491 +# source://rspec-core//lib/rspec/core/hooks.rb#491 RSpec::Core::Hooks::HookCollections::SCOPES = T.let(T.unsafe(nil), Array) -# source://rspec-core-3.11.0/lib/rspec/core/hooks.rb:493 +# source://rspec-core//lib/rspec/core/hooks.rb#493 RSpec::Core::Hooks::HookCollections::SCOPE_ALIASES = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:186 +# source://rspec-core//lib/rspec/core/filter_manager.rb#186 class RSpec::Core::InclusionRules < ::RSpec::Core::FilterRules - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:187 + # source://rspec-core//lib/rspec/core/filter_manager.rb#187 def add(*args); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:191 + # source://rspec-core//lib/rspec/core/filter_manager.rb#191 def add_with_low_priority(*args); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:195 + # source://rspec-core//lib/rspec/core/filter_manager.rb#195 def include_example?(example); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:203 + # source://rspec-core//lib/rspec/core/filter_manager.rb#203 def split_file_scoped_rules; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:199 + # source://rspec-core//lib/rspec/core/filter_manager.rb#199 def standalone?; end private - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:213 + # source://rspec-core//lib/rspec/core/filter_manager.rb#213 def apply_standalone_filter(updated); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:226 + # source://rspec-core//lib/rspec/core/filter_manager.rb#226 def is_standalone_filter?(rules); end - # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:221 + # source://rspec-core//lib/rspec/core/filter_manager.rb#221 def replace_filters(new_rules); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:4 +# source://rspec-core//lib/rspec/core/invocations.rb#4 module RSpec::Core::Invocations; end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:28 +# source://rspec-core//lib/rspec/core/invocations.rb#28 class RSpec::Core::Invocations::Bisect - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:29 + # source://rspec-core//lib/rspec/core/invocations.rb#29 def call(options, err, out); end private - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:45 + # source://rspec-core//lib/rspec/core/invocations.rb#45 def bisect_formatter_klass_for(argument); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:15 +# source://rspec-core//lib/rspec/core/invocations.rb#15 class RSpec::Core::Invocations::DRbWithFallback - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:16 + # source://rspec-core//lib/rspec/core/invocations.rb#16 def call(options, err, out); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:6 +# source://rspec-core//lib/rspec/core/invocations.rb#6 class RSpec::Core::Invocations::InitializeProject - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:7 + # source://rspec-core//lib/rspec/core/invocations.rb#7 def call(*_args); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:78 +# source://rspec-core//lib/rspec/core/invocations.rb#78 class RSpec::Core::Invocations::PrintHelp < ::Struct - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:79 + # source://rspec-core//lib/rspec/core/invocations.rb#79 def call(_options, _err, out); end # Returns the value of attribute hidden_options @@ -7343,7 +7349,7 @@ class RSpec::Core::Invocations::PrintHelp < ::Struct # @param value [Object] the value to set the attribute hidden_options to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:78 + # source://rspec-core//lib/rspec/core/invocations.rb#78 def hidden_options=(_); end # Returns the value of attribute parser @@ -7356,7 +7362,7 @@ class RSpec::Core::Invocations::PrintHelp < ::Struct # @param value [Object] the value to set the attribute parser to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:78 + # source://rspec-core//lib/rspec/core/invocations.rb#78 def parser=(_); end class << self @@ -7369,9 +7375,9 @@ end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:52 +# source://rspec-core//lib/rspec/core/invocations.rb#52 class RSpec::Core::Invocations::PrintVersion - # source://rspec-core-3.11.0/lib/rspec/core/invocations.rb:53 + # source://rspec-core//lib/rspec/core/invocations.rb#53 def call(_options, _err, out); end end @@ -7400,30 +7406,30 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:470 +# source://rspec-core//lib/rspec/core/metadata.rb#470 class RSpec::Core::LegacyExampleGroupHash include ::RSpec::Core::HashImitatable extend ::RSpec::Core::HashImitatable::ClassMethods # @return [LegacyExampleGroupHash] a new instance of LegacyExampleGroupHash # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:473 + # source://rspec-core//lib/rspec/core/metadata.rb#473 def initialize(metadata); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:479 + # source://rspec-core//lib/rspec/core/metadata.rb#479 def to_h; end private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:485 + # source://rspec-core//lib/rspec/core/metadata.rb#485 def directly_supports_attribute?(name); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:489 + # source://rspec-core//lib/rspec/core/metadata.rb#489 def get_value(name); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:493 + # source://rspec-core//lib/rspec/core/metadata.rb#493 def set_value(name, value); end end @@ -7432,11 +7438,11 @@ end # # @see ClassMethods # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:9 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#9 module RSpec::Core::MemoizedHelpers # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:135 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#135 def initialize(*_arg0); end # Wraps the `subject` in `expect` to make it the target of an expectation. @@ -7453,7 +7459,7 @@ module RSpec::Core::MemoizedHelpers # @see #should # @see #should_not # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:120 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#120 def is_expected; end # When `should` is called with no explicit receiver, the call is @@ -7471,7 +7477,7 @@ module RSpec::Core::MemoizedHelpers # @see #subject # @see #is_expected # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:80 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#80 def should(matcher = T.unsafe(nil), message = T.unsafe(nil)); end # Just like `should`, `should_not` delegates to the subject (implicit or @@ -7488,7 +7494,7 @@ module RSpec::Core::MemoizedHelpers # @see #subject # @see #is_expected # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:100 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#100 def should_not(matcher = T.unsafe(nil), message = T.unsafe(nil)); end # @example @@ -7536,14 +7542,14 @@ module RSpec::Core::MemoizedHelpers # @see #should_not # @see #is_expected # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:57 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#57 def subject; end private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:141 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#141 def __init_memoized; end # should just be placed in private section, @@ -7553,23 +7559,23 @@ module RSpec::Core::MemoizedHelpers # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:129 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#129 def __memoized; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:150 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#150 def enforce_value_expectation(matcher, method_name); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:163 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#163 def matcher_supports_value_expectations?(matcher); end class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:542 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#542 def define_helpers_on(example_group); end # Gets the named constant or yields. @@ -7581,7 +7587,7 @@ module RSpec::Core::MemoizedHelpers # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:570 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#570 def get_constant_or_yield(example_group, name); end # Gets the LetDefinitions module. The module is mixed into @@ -7597,7 +7603,7 @@ module RSpec::Core::MemoizedHelpers # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:528 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#528 def module_for(example_group); end end end @@ -7606,7 +7612,7 @@ end # available to be called from within example group blocks. # You can think of them as being analagous to class macros. # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:274 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#274 module RSpec::Core::MemoizedHelpers::ClassMethods # Generates a method whose return value is memoized after the first # call. Useful for reducing duplication between examples that assign @@ -7637,7 +7643,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods # is shared across _all_ examples in an example group, `let` is _not_ # intended to be used in a `before(:context)` hook. # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:306 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#306 def let(name, &block); end # Just like `let`, except the block is invoked by an implicit `before` @@ -7694,7 +7700,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods # end # end # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:400 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#400 def let!(name, &block); end # Declares a `subject` for an example group which can then be wrapped @@ -7734,7 +7740,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods # @see MemoizedHelpers#should_not # @see MemoizedHelpers#is_expected # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:444 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#444 def subject(name = T.unsafe(nil), &block); end # Just like `subject`, except the block is invoked by an implicit @@ -7791,7 +7797,7 @@ module RSpec::Core::MemoizedHelpers::ClassMethods # end # end # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:510 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#510 def subject!(name = T.unsafe(nil), &block); end end @@ -7800,72 +7806,72 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:200 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#200 class RSpec::Core::MemoizedHelpers::ContextHookMemoized class << self - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:222 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#222 def fetch_or_store(key, &_block); end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:201 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#201 def isolate_for_context_hook(example_group_instance); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:256 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#256 class RSpec::Core::MemoizedHelpers::ContextHookMemoized::After < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized class << self - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:261 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#261 def article; end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:257 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#257 def hook_expression; end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:265 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#265 def hook_intention; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:241 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#241 class RSpec::Core::MemoizedHelpers::ContextHookMemoized::Before < ::RSpec::Core::MemoizedHelpers::ContextHookMemoized class << self - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:246 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#246 def article; end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:242 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#242 def hook_expression; end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:250 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#250 def hook_intention; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:186 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#186 class RSpec::Core::MemoizedHelpers::NonThreadSafeMemoized # @return [NonThreadSafeMemoized] a new instance of NonThreadSafeMemoized # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:187 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#187 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:191 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#191 def fetch_or_store(key); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:170 +# source://rspec-core//lib/rspec/core/memoized_helpers.rb#170 class RSpec::Core::MemoizedHelpers::ThreadsafeMemoized # @return [ThreadsafeMemoized] a new instance of ThreadsafeMemoized # - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:171 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#171 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/memoized_helpers.rb:176 + # source://rspec-core//lib/rspec/core/memoized_helpers.rb#176 def fetch_or_store(key); end end @@ -7894,7 +7900,7 @@ end # @see Configuration#filter_run_including # @see Configuration#filter_run_excluding # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:27 +# source://rspec-core//lib/rspec/core/metadata.rb#27 module RSpec::Core::Metadata class << self # Returns an enumerator that iteratively walks up the given metadata through all @@ -7902,7 +7908,7 @@ module RSpec::Core::Metadata # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:71 + # source://rspec-core//lib/rspec/core/metadata.rb#71 def ascend(metadata); end # Iteratively walks up from the given metadata through all @@ -7911,7 +7917,7 @@ module RSpec::Core::Metadata # @private # @yield [metadata] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:58 + # source://rspec-core//lib/rspec/core/metadata.rb#58 def ascending(metadata); end # Used internally to build a hash from an args array. @@ -7921,29 +7927,29 @@ module RSpec::Core::Metadata # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:80 + # source://rspec-core//lib/rspec/core/metadata.rb#80 def build_hash_from(args, warn_about_example_group_filtering = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:94 + # source://rspec-core//lib/rspec/core/metadata.rb#94 def deep_hash_dup(object); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:105 + # source://rspec-core//lib/rspec/core/metadata.rb#105 def id_from(metadata); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:110 + # source://rspec-core//lib/rspec/core/metadata.rb#110 def location_tuple_from(metadata); end # @api private # @param line [String] current code line # @return [String] relative path to line # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:44 + # source://rspec-core//lib/rspec/core/metadata.rb#44 def relative_path(line); end # Matches strings either at the beginning of the input or prefixed with a @@ -7955,49 +7961,49 @@ module RSpec::Core::Metadata # http://rubular.com/r/duOrD4i3wb # http://rubular.com/r/sbAMHFrOx1 # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:36 + # source://rspec-core//lib/rspec/core/metadata.rb#36 def relative_path_regex; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:247 +# source://rspec-core//lib/rspec/core/metadata.rb#247 class RSpec::Core::Metadata::ExampleGroupHash < ::RSpec::Core::Metadata::HashPopulator private - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:304 + # source://rspec-core//lib/rspec/core/metadata.rb#304 def described_class; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:311 + # source://rspec-core//lib/rspec/core/metadata.rb#311 def full_description; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:265 + # source://rspec-core//lib/rspec/core/metadata.rb#265 def backwards_compatibility_default_proc(&example_group_selector); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:248 + # source://rspec-core//lib/rspec/core/metadata.rb#248 def create(parent_group_metadata, user_metadata, example_group_index, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:261 + # source://rspec-core//lib/rspec/core/metadata.rb#261 def hash_with_backwards_compatibility_default_proc; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:213 +# source://rspec-core//lib/rspec/core/metadata.rb#213 class RSpec::Core::Metadata::ExampleHash < ::RSpec::Core::Metadata::HashPopulator private - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:234 + # source://rspec-core//lib/rspec/core/metadata.rb#234 def described_class; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:238 + # source://rspec-core//lib/rspec/core/metadata.rb#238 def full_description; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:214 + # source://rspec-core//lib/rspec/core/metadata.rb#214 def create(group_metadata, user_metadata, index_provider, description, block); end end end @@ -8007,60 +8013,60 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:117 +# source://rspec-core//lib/rspec/core/metadata.rb#117 class RSpec::Core::Metadata::HashPopulator # @return [HashPopulator] a new instance of HashPopulator # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:120 + # source://rspec-core//lib/rspec/core/metadata.rb#120 def initialize(metadata, user_metadata, index_provider, description_args, block); end # Returns the value of attribute block. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:118 + # source://rspec-core//lib/rspec/core/metadata.rb#118 def block; end # Returns the value of attribute description_args. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:118 + # source://rspec-core//lib/rspec/core/metadata.rb#118 def description_args; end # Returns the value of attribute metadata. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:118 + # source://rspec-core//lib/rspec/core/metadata.rb#118 def metadata; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:128 + # source://rspec-core//lib/rspec/core/metadata.rb#128 def populate; end # Returns the value of attribute user_metadata. # - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:118 + # source://rspec-core//lib/rspec/core/metadata.rb#118 def user_metadata; end private - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:178 + # source://rspec-core//lib/rspec/core/metadata.rb#178 def build_description_from(parent_description = T.unsafe(nil), my_description = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:185 + # source://rspec-core//lib/rspec/core/metadata.rb#185 def build_scoped_id_for(file_path); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:170 + # source://rspec-core//lib/rspec/core/metadata.rb#170 def description_separator(parent_part, child_part); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:191 + # source://rspec-core//lib/rspec/core/metadata.rb#191 def ensure_valid_user_keys; end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:164 + # source://rspec-core//lib/rspec/core/metadata.rb#164 def file_path_and_line_number_from(backtrace); end - # source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:143 + # source://rspec-core//lib/rspec/core/metadata.rb#143 def populate_location_attributes; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/metadata.rb:325 +# source://rspec-core//lib/rspec/core/metadata.rb#325 RSpec::Core::Metadata::RESERVED_KEYS = T.let(T.unsafe(nil), Array) # Contains metadata filtering logic. This has been extracted from @@ -8069,51 +8075,51 @@ RSpec::Core::Metadata::RESERVED_KEYS = T.let(T.unsafe(nil), Array) # having metadata be a raw hash (not a custom subclass), so externalizing # this filtering logic helps us move in that direction. # -# source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:8 +# source://rspec-core//lib/rspec/core/metadata_filter.rb#8 module RSpec::Core::MetadataFilter class << self # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:11 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#11 def apply?(predicate, filters, metadata); end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:16 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#16 def filter_applies?(key, filter_value, metadata); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:33 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#33 def silence_metadata_example_group_deprecations; end private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:42 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#42 def filter_applies_to_any_value?(key, value, metadata); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:73 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#73 def filters_apply?(key, value, metadata); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:46 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#46 def id_filter_applies?(rerun_paths_to_scoped_ids, metadata); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:54 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#54 def location_filter_applies?(locations, metadata); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/metadata_filter.rb:65 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#65 def proc_filter_applies?(key, proc, metadata); end end end @@ -8123,57 +8129,57 @@ end # individual spec has multiple exceptions, such as one in the `it` block # and one in an `after` block. # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:432 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#436 class RSpec::Core::MultipleExceptionError < ::StandardError include ::RSpec::Core::MultipleExceptionError::InterfaceTag # @param exceptions [Array] The initial list of exceptions. # @return [MultipleExceptionError] a new instance of MultipleExceptionError # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:488 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#492 def initialize(*exceptions); end # @return [nil] Provided only for interface compatibility with # `RSpec::Expectations::MultipleExpectationsNotMetError`. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:485 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#489 def aggregation_block_label; end # @return [Hash] Metadata used by RSpec for formatting purposes. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:481 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#485 def aggregation_metadata; end # @return [Array] The list of failures and other exceptions, combined. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:478 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#482 def all_exceptions; end # return [String] A description of the failure/error counts. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:513 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#517 def exception_count_description; end # @return [Array] The list of failures. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:472 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#476 def failures; end # @note RSpec does not actually use this -- instead it formats each exception # individually. # @return [String] Combines all the exception messages into a single string. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:503 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#507 def message; end # @return [Array] The list of other errors. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:475 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#479 def other_errors; end # @return [String] A summary of the failure, including the block label and a count of failures. # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:508 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#512 def summary; end end @@ -8184,14 +8190,14 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:433 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#437 module RSpec::Core::MultipleExceptionError::InterfaceTag # Appends the provided exception to the list. # # @param exception [Exception] Exception to append to the list. # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:437 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#441 def add(exception); end class << self @@ -8201,7 +8207,7 @@ module RSpec::Core::MultipleExceptionError::InterfaceTag # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/formatters/exception_presenter.rb:463 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#467 def for(ex); end end end @@ -8209,14 +8215,14 @@ end # Notifications are value objects passed to formatters to provide them # with information about a particular event of interest. # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:9 +# source://rspec-core//lib/rspec/core/notifications.rb#9 module RSpec::Core::Notifications; end # `CustomNotification` is used when sending custom events to formatters / # other registered listeners, it creates attributes based on supplied hash # of options. # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:514 +# source://rspec-core//lib/rspec/core/notifications.rb#514 class RSpec::Core::Notifications::CustomNotification < ::Struct class << self # Build a custom notification based on the supplied option key / values. @@ -8224,7 +8230,7 @@ class RSpec::Core::Notifications::CustomNotification < ::Struct # @param options [Hash] A hash of method / value pairs to create on this notification # @return [CustomNotification] # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:515 + # source://rspec-core//lib/rspec/core/notifications.rb#515 def for(options = T.unsafe(nil)); end end end @@ -8240,7 +8246,7 @@ end # @attr call_site [String] An optional call site from which the deprecation # was issued # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:491 +# source://rspec-core//lib/rspec/core/notifications.rb#491 class RSpec::Core::Notifications::DeprecationNotification < ::Struct # An optional call site from which the deprecation # was issued @@ -8254,7 +8260,7 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # @param value [String] the value to set the attribute call_site to. # @return [String] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:491 + # source://rspec-core//lib/rspec/core/notifications.rb#491 def call_site=(_); end # A custom message about the deprecation (alias of @@ -8269,7 +8275,7 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # @param value [String] the value to set the attribute deprecated to. # @return [String] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:491 + # source://rspec-core//lib/rspec/core/notifications.rb#491 def deprecated=(_); end # A custom message about the deprecation @@ -8282,7 +8288,7 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # @param value [String] the value to set the attribute message to. # @return [String] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:491 + # source://rspec-core//lib/rspec/core/notifications.rb#491 def message=(_); end # An optional replacement for the deprecation @@ -8295,7 +8301,7 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # @param value [String] the value to set the attribute replacement to. # @return [String] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:491 + # source://rspec-core//lib/rspec/core/notifications.rb#491 def replacement=(_); end class << self @@ -8305,7 +8311,7 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # # @api # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:497 + # source://rspec-core//lib/rspec/core/notifications.rb#497 def from_hash(data); end def inspect; end @@ -8327,7 +8333,7 @@ end # puts "Hey I started #{notification.example.description}" # end # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:38 +# source://rspec-core//lib/rspec/core/notifications.rb#38 class RSpec::Core::Notifications::ExampleNotification < ::Struct # the current example # @@ -8339,7 +8345,7 @@ class RSpec::Core::Notifications::ExampleNotification < ::Struct # @param value [RSpec::Core::Example] the value to set the attribute example to. # @return [RSpec::Core::Example] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:38 + # source://rspec-core//lib/rspec/core/notifications.rb#38 def example=(_); end class << self @@ -8347,7 +8353,7 @@ class RSpec::Core::Notifications::ExampleNotification < ::Struct # @private # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:41 + # source://rspec-core//lib/rspec/core/notifications.rb#41 def for(example); end def inspect; end @@ -8367,48 +8373,48 @@ end # puts "Hey I ran #{notification.examples.size}" # end # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:69 +# source://rspec-core//lib/rspec/core/notifications.rb#69 class RSpec::Core::Notifications::ExamplesNotification # @return [ExamplesNotification] a new instance of ExamplesNotification # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:70 + # source://rspec-core//lib/rspec/core/notifications.rb#70 def initialize(reporter); end # @return [Array] list of examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:75 + # source://rspec-core//lib/rspec/core/notifications.rb#75 def examples; end # @return [Array] list of failed examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:80 + # source://rspec-core//lib/rspec/core/notifications.rb#80 def failed_examples; end # @return [Array] returns failed examples as notifications # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:97 + # source://rspec-core//lib/rspec/core/notifications.rb#97 def failure_notifications; end # @return [String] The list of failed examples, fully formatted in the way # that RSpec's built-in formatters emit. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:110 + # source://rspec-core//lib/rspec/core/notifications.rb#110 def fully_formatted_failed_examples(colorizer = T.unsafe(nil)); end # @return [String] The list of pending examples, fully formatted in the # way that RSpec's built-in formatters emit. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:122 + # source://rspec-core//lib/rspec/core/notifications.rb#122 def fully_formatted_pending_examples(colorizer = T.unsafe(nil)); end # @return [Array] returns examples as notifications # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:91 + # source://rspec-core//lib/rspec/core/notifications.rb#91 def notifications; end # @return [Array] list of pending examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:85 + # source://rspec-core//lib/rspec/core/notifications.rb#85 def pending_examples; end # returns pending examples as notifications @@ -8416,12 +8422,12 @@ class RSpec::Core::Notifications::ExamplesNotification # @return [Array] # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:104 + # source://rspec-core//lib/rspec/core/notifications.rb#104 def pending_notifications; end private - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:134 + # source://rspec-core//lib/rspec/core/notifications.rb#134 def format_examples(examples); end end @@ -8438,11 +8444,11 @@ end # end # @see ExampleNotification # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:154 +# source://rspec-core//lib/rspec/core/notifications.rb#154 class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification # @return [FailedExampleNotification] a new instance of FailedExampleNotification # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:211 + # source://rspec-core//lib/rspec/core/notifications.rb#211 def initialize(example, exception_presenter = T.unsafe(nil)); end # Returns the failures colorized formatted backtrace. @@ -8450,7 +8456,7 @@ class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Not # @param colorizer [#wrap] An object to colorize the message_lines by # @return [Array] the examples colorized backtrace lines # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:193 + # source://rspec-core//lib/rspec/core/notifications.rb#193 def colorized_formatted_backtrace(colorizer = T.unsafe(nil)); end # Returns the message generated for this failure colorized line by line. @@ -8458,43 +8464,43 @@ class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Not # @param colorizer [#wrap] An object to colorize the message_lines by # @return [Array] The example failure message colorized # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:178 + # source://rspec-core//lib/rspec/core/notifications.rb#178 def colorized_message_lines(colorizer = T.unsafe(nil)); end # @return [String] The example description # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:163 + # source://rspec-core//lib/rspec/core/notifications.rb#163 def description; end # @return [Exception] The example failure # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:158 + # source://rspec-core//lib/rspec/core/notifications.rb#158 def exception; end # Returns the failures formatted backtrace. # # @return [Array] the examples backtrace lines # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:185 + # source://rspec-core//lib/rspec/core/notifications.rb#185 def formatted_backtrace; end # @return [String] The failure information fully formatted in the way that # RSpec's built-in formatters emit. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:199 + # source://rspec-core//lib/rspec/core/notifications.rb#199 def fully_formatted(failure_number, colorizer = T.unsafe(nil)); end # @return [Array] The failure information fully formatted in the way that # RSpec's built-in formatters emit, split by line. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:205 + # source://rspec-core//lib/rspec/core/notifications.rb#205 def fully_formatted_lines(failure_number, colorizer = T.unsafe(nil)); end # Returns the message generated for this failure line by line. # # @return [Array] The example failure message # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:170 + # source://rspec-core//lib/rspec/core/notifications.rb#170 def message_lines; end end @@ -8509,7 +8515,7 @@ end # puts "Hey I started #{notification.group.description}" # end # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:256 +# source://rspec-core//lib/rspec/core/notifications.rb#256 class RSpec::Core::Notifications::GroupNotification < ::Struct # the current group # @@ -8521,7 +8527,7 @@ class RSpec::Core::Notifications::GroupNotification < ::Struct # @param value [RSpec::Core::ExampleGroup] the value to set the attribute group to. # @return [RSpec::Core::ExampleGroup] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:256 + # source://rspec-core//lib/rspec/core/notifications.rb#256 def group=(_); end class << self @@ -8537,7 +8543,7 @@ end # # @attr message [String] the message # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:262 +# source://rspec-core//lib/rspec/core/notifications.rb#262 class RSpec::Core::Notifications::MessageNotification < ::Struct # the message # @@ -8549,7 +8555,7 @@ class RSpec::Core::Notifications::MessageNotification < ::Struct # @param value [String] the value to set the attribute message to. # @return [String] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:262 + # source://rspec-core//lib/rspec/core/notifications.rb#262 def message=(_); end class << self @@ -8562,15 +8568,15 @@ end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:11 +# source://rspec-core//lib/rspec/core/notifications.rb#11 module RSpec::Core::Notifications::NullColorizer private - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:14 + # source://rspec-core//lib/rspec/core/notifications.rb#14 def wrap(line, _code_or_symbol); end class << self - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:14 + # source://rspec-core//lib/rspec/core/notifications.rb#14 def wrap(line, _code_or_symbol); end end end @@ -8578,17 +8584,17 @@ end # `NullNotification` represents a placeholder value for notifications that # currently require no information, but we may wish to extend in future. # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:504 +# source://rspec-core//lib/rspec/core/notifications.rb#504 class RSpec::Core::Notifications::NullNotification; end # @deprecated Use {FailedExampleNotification} instead. # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:221 +# source://rspec-core//lib/rspec/core/notifications.rb#221 class RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end # @deprecated Use {FailedExampleNotification} instead. # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:218 +# source://rspec-core//lib/rspec/core/notifications.rb#218 class RSpec::Core::Notifications::PendingExampleFixedNotification < ::RSpec::Core::Notifications::FailedExampleNotification; end # The `ProfileNotification` holds information about the results of running a @@ -8600,57 +8606,57 @@ class RSpec::Core::Notifications::PendingExampleFixedNotification < ::RSpec::Cor # @attr number_of_examples [Fixnum] the number of examples to profile # @attr example_groups [Array] example groups run # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:427 +# source://rspec-core//lib/rspec/core/notifications.rb#427 class RSpec::Core::Notifications::ProfileNotification # @return [ProfileNotification] a new instance of ProfileNotification # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:428 + # source://rspec-core//lib/rspec/core/notifications.rb#428 def initialize(duration, examples, number_of_examples, example_groups); end # the time taken (in seconds) to run the suite # # @return [Float] the current value of duration # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:434 + # source://rspec-core//lib/rspec/core/notifications.rb#434 def duration; end # the examples run # # @return [Array] the current value of examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:434 + # source://rspec-core//lib/rspec/core/notifications.rb#434 def examples; end # the number of examples to profile # # @return [Fixnum] the current value of number_of_examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:434 + # source://rspec-core//lib/rspec/core/notifications.rb#434 def number_of_examples; end # @return [String] the percentage of total time taken # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:453 + # source://rspec-core//lib/rspec/core/notifications.rb#453 def percentage; end # @return [Float] the time taken (in seconds) to run the slowest examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:445 + # source://rspec-core//lib/rspec/core/notifications.rb#445 def slow_duration; end # @return [Array] the slowest examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:437 + # source://rspec-core//lib/rspec/core/notifications.rb#437 def slowest_examples; end # @return [Array] the slowest example groups # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:462 + # source://rspec-core//lib/rspec/core/notifications.rb#462 def slowest_groups; end private - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:468 + # source://rspec-core//lib/rspec/core/notifications.rb#468 def calculate_slowest_groups; end end @@ -8660,12 +8666,12 @@ end # @attr seed [Fixnum] the seed used to randomize ordering # @attr used [Boolean] whether the seed has been used or not # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:269 +# source://rspec-core//lib/rspec/core/notifications.rb#269 class RSpec::Core::Notifications::SeedNotification < ::Struct # @return [String] The seed information fully formatted in the way that # RSpec's built-in formatters emit. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:280 + # source://rspec-core//lib/rspec/core/notifications.rb#280 def fully_formatted; end # the seed used to randomize ordering @@ -8678,13 +8684,13 @@ class RSpec::Core::Notifications::SeedNotification < ::Struct # @param value [Fixnum] the value to set the attribute seed to. # @return [Fixnum] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:269 + # source://rspec-core//lib/rspec/core/notifications.rb#269 def seed=(_); end # @api # @return [Boolean] has the seed been used? # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:273 + # source://rspec-core//lib/rspec/core/notifications.rb#273 def seed_used?; end # whether the seed has been used or not @@ -8692,7 +8698,7 @@ class RSpec::Core::Notifications::SeedNotification < ::Struct # @param value [Boolean] the value to set the attribute used to. # @return [Boolean] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:269 + # source://rspec-core//lib/rspec/core/notifications.rb#269 def used=(_); end private @@ -8716,12 +8722,12 @@ end # @attr example [RSpec::Core::Example] the current example # @see ExampleNotification # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:228 +# source://rspec-core//lib/rspec/core/notifications.rb#228 class RSpec::Core::Notifications::SkippedExampleNotification < ::RSpec::Core::Notifications::ExampleNotification # @return [String] The pending detail fully formatted in the way that # RSpec's built-in formatters emit. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:233 + # source://rspec-core//lib/rspec/core/notifications.rb#233 def fully_formatted(pending_number, colorizer = T.unsafe(nil)); end end @@ -8733,7 +8739,7 @@ end # @attr load_time [Float] the number of seconds taken to boot RSpec # and load the spec files # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:26 +# source://rspec-core//lib/rspec/core/notifications.rb#26 class RSpec::Core::Notifications::StartNotification < ::Struct # the number counted # @@ -8745,7 +8751,7 @@ class RSpec::Core::Notifications::StartNotification < ::Struct # @param value [Fixnum] the value to set the attribute count to. # @return [Fixnum] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:26 + # source://rspec-core//lib/rspec/core/notifications.rb#26 def count=(_); end # the number of seconds taken to boot RSpec @@ -8760,7 +8766,7 @@ class RSpec::Core::Notifications::StartNotification < ::Struct # @param value [Float] the value to set the attribute load_time to. # @return [Float] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:26 + # source://rspec-core//lib/rspec/core/notifications.rb#26 def load_time=(_); end class << self @@ -8785,7 +8791,7 @@ end # have occurred processing # the spec suite # -# source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 +# source://rspec-core//lib/rspec/core/notifications.rb#298 class RSpec::Core::Notifications::SummaryNotification < ::Struct include ::RSpec::Core::ShellEscape @@ -8796,7 +8802,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # specific colors. # @return [String] A colorized summary line. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:362 + # source://rspec-core//lib/rspec/core/notifications.rb#362 def colorized_rerun_commands(colorizer = T.unsafe(nil)); end # Wraps the results line with colors based on the configured @@ -8808,7 +8814,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # specific colors. # @return [String] A colorized results line. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:345 + # source://rspec-core//lib/rspec/core/notifications.rb#345 def colorized_totals_line(colorizer = T.unsafe(nil)); end # the time taken (in seconds) to run the suite @@ -8821,7 +8827,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # @param value [Float] the value to set the attribute duration to. # @return [Float] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 + # source://rspec-core//lib/rspec/core/notifications.rb#298 def duration=(_); end # the number of errors that @@ -8838,13 +8844,13 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # @param value [Integer] the value to set the attribute errors_outside_of_examples_count to. # @return [Integer] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 + # source://rspec-core//lib/rspec/core/notifications.rb#298 def errors_outside_of_examples_count=(_); end # @api # @return [Fixnum] the number of examples run # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:304 + # source://rspec-core//lib/rspec/core/notifications.rb#304 def example_count; end # the examples run @@ -8857,7 +8863,7 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # @param value [Array] the value to set the attribute examples to. # @return [Array] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 + # source://rspec-core//lib/rspec/core/notifications.rb#298 def examples=(_); end # the failed examples @@ -8870,31 +8876,31 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # @param value [Array] the value to set the attribute failed_examples to. # @return [Array] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 + # source://rspec-core//lib/rspec/core/notifications.rb#298 def failed_examples=(_); end # @api # @return [Fixnum] the number of failed examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:310 + # source://rspec-core//lib/rspec/core/notifications.rb#310 def failure_count; end # @return [String] a formatted version of the time it took to run the # suite # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:372 + # source://rspec-core//lib/rspec/core/notifications.rb#372 def formatted_duration; end # @return [String] a formatted version of the time it took to boot RSpec # and load the spec files # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:378 + # source://rspec-core//lib/rspec/core/notifications.rb#378 def formatted_load_time; end # @return [String] The summary information fully formatted in the way that # RSpec's built-in formatters emit. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:384 + # source://rspec-core//lib/rspec/core/notifications.rb#384 def fully_formatted(colorizer = T.unsafe(nil)); end # the number of seconds taken to boot RSpec @@ -8909,13 +8915,13 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # @param value [Float] the value to set the attribute load_time to. # @return [Float] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 + # source://rspec-core//lib/rspec/core/notifications.rb#298 def load_time=(_); end # @api # @return [Fixnum] the number of pending examples # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:316 + # source://rspec-core//lib/rspec/core/notifications.rb#316 def pending_count; end # the pending examples @@ -8928,21 +8934,21 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # @param value [Array] the value to set the attribute pending_examples to. # @return [Array] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:298 + # source://rspec-core//lib/rspec/core/notifications.rb#298 def pending_examples=(_); end # @api # @return [String] A line summarising the result totals of the spec run. # - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:322 + # source://rspec-core//lib/rspec/core/notifications.rb#322 def totals_line; end private - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:406 + # source://rspec-core//lib/rspec/core/notifications.rb#406 def duplicate_rerun_locations; end - # source://rspec-core-3.11.0/lib/rspec/core/notifications.rb:400 + # source://rspec-core//lib/rspec/core/notifications.rb#400 def rerun_argument_for(example); end class << self @@ -8957,19 +8963,19 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:259 +# source://rspec-core//lib/rspec/core/reporter.rb#259 class RSpec::Core::NullReporter class << self private - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:260 + # source://rspec-core//lib/rspec/core/reporter.rb#260 def method_missing(*_arg0); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:4 +# source://rspec-core//lib/rspec/core/ordering.rb#4 module RSpec::Core::Ordering; end # Manages ordering configuration. @@ -8978,38 +8984,38 @@ module RSpec::Core::Ordering; end # the APIs provided by `RSpec::Core::Configuration` instead. # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:116 +# source://rspec-core//lib/rspec/core/ordering.rb#116 class RSpec::Core::Ordering::ConfigurationManager # @return [ConfigurationManager] a new instance of ConfigurationManager # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:119 + # source://rspec-core//lib/rspec/core/ordering.rb#119 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:151 + # source://rspec-core//lib/rspec/core/ordering.rb#151 def force(hash); end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:136 + # source://rspec-core//lib/rspec/core/ordering.rb#136 def order=(type); end # Returns the value of attribute ordering_registry. # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:117 + # source://rspec-core//lib/rspec/core/ordering.rb#117 def ordering_registry; end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:162 + # source://rspec-core//lib/rspec/core/ordering.rb#162 def register_ordering(name, strategy = T.unsafe(nil)); end # Returns the value of attribute seed. # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:117 + # source://rspec-core//lib/rspec/core/ordering.rb#117 def seed; end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:130 + # source://rspec-core//lib/rspec/core/ordering.rb#130 def seed=(seed); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:126 + # source://rspec-core//lib/rspec/core/ordering.rb#126 def seed_used?; end end @@ -9017,14 +9023,14 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:71 +# source://rspec-core//lib/rspec/core/ordering.rb#71 class RSpec::Core::Ordering::Custom # @return [Custom] a new instance of Custom # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:72 + # source://rspec-core//lib/rspec/core/ordering.rb#72 def initialize(callable); end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:76 + # source://rspec-core//lib/rspec/core/ordering.rb#76 def order(list); end end @@ -9032,9 +9038,9 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:7 +# source://rspec-core//lib/rspec/core/ordering.rb#7 class RSpec::Core::Ordering::Identity - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:8 + # source://rspec-core//lib/rspec/core/ordering.rb#8 def order(items); end end @@ -9042,19 +9048,19 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:15 +# source://rspec-core//lib/rspec/core/ordering.rb#15 class RSpec::Core::Ordering::Random # @return [Random] a new instance of Random # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:16 + # source://rspec-core//lib/rspec/core/ordering.rb#16 def initialize(configuration); end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:25 + # source://rspec-core//lib/rspec/core/ordering.rb#25 def order(items); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:21 + # source://rspec-core//lib/rspec/core/ordering.rb#21 def used?; end private @@ -9065,20 +9071,20 @@ class RSpec::Core::Ordering::Random # implemented in C) but has the advantage of not requiring us # to load another part of stdlib, which we try to minimize. # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:39 + # source://rspec-core//lib/rspec/core/ordering.rb#39 def jenkins_hash_digest(string); end end -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:58 +# source://rspec-core//lib/rspec/core/ordering.rb#58 RSpec::Core::Ordering::Random::MAX_32_BIT = T.let(T.unsafe(nil), Integer) # Orders items by modification time (most recent modified first). # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:63 +# source://rspec-core//lib/rspec/core/ordering.rb#63 class RSpec::Core::Ordering::RecentlyModified - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:64 + # source://rspec-core//lib/rspec/core/ordering.rb#64 def order(list); end end @@ -9086,324 +9092,315 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:83 +# source://rspec-core//lib/rspec/core/ordering.rb#83 class RSpec::Core::Ordering::Registry # @return [Registry] a new instance of Registry # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:84 + # source://rspec-core//lib/rspec/core/ordering.rb#84 def initialize(configuration); end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:98 + # source://rspec-core//lib/rspec/core/ordering.rb#98 def fetch(name, &fallback); end - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:102 + # source://rspec-core//lib/rspec/core/ordering.rb#102 def register(sym, strategy); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/ordering.rb:106 + # source://rspec-core//lib/rspec/core/ordering.rb#106 def used_random_seed?; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:4 +# source://rspec-core//lib/rspec/core/output_wrapper.rb#4 class RSpec::Core::OutputWrapper # @private # @return [OutputWrapper] a new instance of OutputWrapper # - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:9 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#9 def initialize(output); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def <<(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def advise(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def autoclose=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def autoclose?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def binmode(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def binmode?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 - def bytes(*args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 - def chars(*args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def close(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def close_on_exec=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def close_on_exec?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def close_read(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def close_write(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def closed?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 - def codepoints(*args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def each(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def each_byte(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def each_char(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def each_codepoint(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def each_line(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def eof(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def eof?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def external_encoding(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def fcntl(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def fdatasync(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def fileno(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def flush(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def fsync(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def getbyte(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def getc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def gets(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def inspect(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def internal_encoding(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def ioctl(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def isatty(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def lineno(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def lineno=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 - def lines(*args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:17 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#17 def method_missing(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def nread(*args, &block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:6 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#6 def output; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:6 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#6 def output=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def pathconf(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def pid(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def pos(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def pos=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def pread(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def print(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def printf(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def putc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def puts(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def pwrite(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def read(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def read_nonblock(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def readbyte(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def readchar(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def readline(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def readlines(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def readpartial(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def ready?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def reopen(*args, &block); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:13 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#13 def respond_to?(name, priv = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def rewind(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def seek(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def set_encoding(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def set_encoding_by_bom(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def stat(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def sync(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def sync=(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def sysread(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def sysseek(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def syswrite(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def tell(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def to_i(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def to_io(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def tty?(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def ungetbyte(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def ungetc(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def wait(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 + def wait_priority(*args, &block); end + + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def wait_readable(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def wait_writable(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def write(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/output_wrapper.rb:23 + # source://rspec-core//lib/rspec/core/output_wrapper.rb#23 def write_nonblock(*args, &block); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:6 +# source://rspec-core//lib/rspec/core/option_parser.rb#6 class RSpec::Core::Parser # @return [Parser] a new instance of Parser # - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:13 + # source://rspec-core//lib/rspec/core/option_parser.rb#13 def initialize(original_args); end # Returns the value of attribute original_args. # - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:11 + # source://rspec-core//lib/rspec/core/option_parser.rb#11 def original_args; end - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:17 + # source://rspec-core//lib/rspec/core/option_parser.rb#17 def parse(source = T.unsafe(nil)); end private - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:312 + # source://rspec-core//lib/rspec/core/option_parser.rb#310 def add_tag_filter(options, filter_type, tag_name, value = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:320 + # source://rspec-core//lib/rspec/core/option_parser.rb#318 def configure_only_failures(options); end - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:40 + # source://rspec-core//lib/rspec/core/option_parser.rb#39 def parser(options); end - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:316 + # source://rspec-core//lib/rspec/core/option_parser.rb#314 def set_fail_fast(options, value); end class << self - # source://rspec-core-3.11.0/lib/rspec/core/option_parser.rb:7 + # source://rspec-core//lib/rspec/core/option_parser.rb#7 def parse(args, source = T.unsafe(nil)); end end end @@ -9411,7 +9408,7 @@ end # Provides methods to mark examples as pending. These methods are available # to be called from within any example or hook. # -# source://rspec-core-3.11.0/lib/rspec/core/pending.rb:5 +# source://rspec-core//lib/rspec/core/pending.rb#5 module RSpec::Core::Pending # Marks an example as pending. The rest of the example will still be # executed, and if it passes the example will fail to indicate that the @@ -9442,7 +9439,7 @@ module RSpec::Core::Pending # @overload pending # @param message [String] optional message to add to the summary report. # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:62 + # source://rspec-core//lib/rspec/core/pending.rb#62 def pending(message = T.unsafe(nil)); end # Marks an example as pending and skips execution. @@ -9464,7 +9461,7 @@ module RSpec::Core::Pending # @param message [String] optional message to add to the summary report. # @raise [SkipDeclaredInExample] # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:110 + # source://rspec-core//lib/rspec/core/pending.rb#110 def skip(message = T.unsafe(nil)); end class << self @@ -9473,7 +9470,7 @@ module RSpec::Core::Pending # @param example [RSpec::Core::Example] the example to mark as fixed # @private # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:152 + # source://rspec-core//lib/rspec/core/pending.rb#152 def mark_fixed!(example); end # Mark example as pending. @@ -9482,7 +9479,7 @@ module RSpec::Core::Pending # @param message_or_bool [Boolean, String] the message to use, or true # @private # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:135 + # source://rspec-core//lib/rspec/core/pending.rb#135 def mark_pending!(example, message_or_bool); end # Mark example as skipped. @@ -9491,326 +9488,326 @@ module RSpec::Core::Pending # @param message_or_bool [Boolean, String] the message to use, or true # @private # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:124 + # source://rspec-core//lib/rspec/core/pending.rb#124 def mark_skipped!(example, message_or_bool); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/pending.rb:29 +# source://rspec-core//lib/rspec/core/pending.rb#29 RSpec::Core::Pending::NOT_YET_IMPLEMENTED = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/pending.rb:26 +# source://rspec-core//lib/rspec/core/pending.rb#26 RSpec::Core::Pending::NO_REASON_GIVEN = T.let(T.unsafe(nil), String) -# source://rspec-core-3.11.0/lib/rspec/core/pending.rb:22 +# source://rspec-core//lib/rspec/core/pending.rb#22 class RSpec::Core::Pending::PendingExampleFixedError < ::StandardError; end # Raised in the middle of an example to indicate that it should be marked # as skipped. # -# source://rspec-core-3.11.0/lib/rspec/core/pending.rb:8 +# source://rspec-core//lib/rspec/core/pending.rb#8 class RSpec::Core::Pending::SkipDeclaredInExample < ::StandardError # @return [SkipDeclaredInExample] a new instance of SkipDeclaredInExample # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:11 + # source://rspec-core//lib/rspec/core/pending.rb#11 def initialize(argument); end # Returns the value of attribute argument. # - # source://rspec-core-3.11.0/lib/rspec/core/pending.rb:9 + # source://rspec-core//lib/rspec/core/pending.rb#9 def argument; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:4 +# source://rspec-core//lib/rspec/core/profiler.rb#4 class RSpec::Core::Profiler # @return [Profiler] a new instance of Profiler # - # source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:7 + # source://rspec-core//lib/rspec/core/profiler.rb#7 def initialize; end - # source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:20 + # source://rspec-core//lib/rspec/core/profiler.rb#20 def example_group_finished(notification); end - # source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:13 + # source://rspec-core//lib/rspec/core/profiler.rb#13 def example_group_started(notification); end # Returns the value of attribute example_groups. # - # source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:11 + # source://rspec-core//lib/rspec/core/profiler.rb#11 def example_groups; end - # source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:28 + # source://rspec-core//lib/rspec/core/profiler.rb#28 def example_started(notification); end end -# source://rspec-core-3.11.0/lib/rspec/core/profiler.rb:5 +# source://rspec-core//lib/rspec/core/profiler.rb#5 RSpec::Core::Profiler::NOTIFICATIONS = T.let(T.unsafe(nil), Array) # RSpec rake task # # @see Rakefile # -# source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:20 +# source://rspec-core//lib/rspec/core/rake_task.rb#20 class RSpec::Core::RakeTask < ::Rake::TaskLib include ::RSpec::Core::ShellEscape # @return [RakeTask] a new instance of RakeTask # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:77 + # source://rspec-core//lib/rspec/core/rake_task.rb#77 def initialize(*args, &task_block); end # Files matching this pattern will be excluded. # Defaults to `nil`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:39 + # source://rspec-core//lib/rspec/core/rake_task.rb#39 def exclude_pattern; end # Files matching this pattern will be excluded. # Defaults to `nil`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:39 + # source://rspec-core//lib/rspec/core/rake_task.rb#39 def exclude_pattern=(_arg0); end # Whether or not to fail Rake when an error occurs (typically when # examples fail). Defaults to `true`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:43 + # source://rspec-core//lib/rspec/core/rake_task.rb#43 def fail_on_error; end # Whether or not to fail Rake when an error occurs (typically when # examples fail). Defaults to `true`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:43 + # source://rspec-core//lib/rspec/core/rake_task.rb#43 def fail_on_error=(_arg0); end # A message to print to stderr when there are failures. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:46 + # source://rspec-core//lib/rspec/core/rake_task.rb#46 def failure_message; end # A message to print to stderr when there are failures. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:46 + # source://rspec-core//lib/rspec/core/rake_task.rb#46 def failure_message=(_arg0); end # Name of task. Defaults to `:spec`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:31 + # source://rspec-core//lib/rspec/core/rake_task.rb#31 def name; end # Name of task. Defaults to `:spec`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:31 + # source://rspec-core//lib/rspec/core/rake_task.rb#31 def name=(_arg0); end # Files matching this pattern will be loaded. # Defaults to `'spec/**{,/*/**}/*_spec.rb'`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:35 + # source://rspec-core//lib/rspec/core/rake_task.rb#35 def pattern; end # Files matching this pattern will be loaded. # Defaults to `'spec/**{,/*/**}/*_spec.rb'`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:35 + # source://rspec-core//lib/rspec/core/rake_task.rb#35 def pattern=(_arg0); end # Command line options to pass to RSpec. Defaults to `nil`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:75 + # source://rspec-core//lib/rspec/core/rake_task.rb#75 def rspec_opts; end # Command line options to pass to RSpec. Defaults to `nil`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:75 + # source://rspec-core//lib/rspec/core/rake_task.rb#75 def rspec_opts=(_arg0); end # Path to RSpec. Defaults to the absolute path to the # rspec binary from the loaded rspec-core gem. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:72 + # source://rspec-core//lib/rspec/core/rake_task.rb#72 def rspec_path; end # Path to RSpec. Defaults to the absolute path to the # rspec binary from the loaded rspec-core gem. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:72 + # source://rspec-core//lib/rspec/core/rake_task.rb#72 def rspec_path=(_arg0); end # Command line options to pass to ruby. Defaults to `nil`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:68 + # source://rspec-core//lib/rspec/core/rake_task.rb#68 def ruby_opts; end # Command line options to pass to ruby. Defaults to `nil`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:68 + # source://rspec-core//lib/rspec/core/rake_task.rb#68 def ruby_opts=(_arg0); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:90 + # source://rspec-core//lib/rspec/core/rake_task.rb#90 def run_task(verbose); end # Use verbose output. If this is set to true, the task will print the # executed spec command to stdout. Defaults to `true`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:65 + # source://rspec-core//lib/rspec/core/rake_task.rb#65 def verbose; end # Use verbose output. If this is set to true, the task will print the # executed spec command to stdout. Defaults to `true`. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:65 + # source://rspec-core//lib/rspec/core/rake_task.rb#65 def verbose=(_arg0); end # Run RSpec with a clean (empty) environment. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:60 + # source://rspec-core//lib/rspec/core/rake_task.rb#60 def with_clean_environment; end # Run RSpec with a clean (empty) environment. # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:60 + # source://rspec-core//lib/rspec/core/rake_task.rb#60 def with_clean_environment=(_arg0); end private - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:173 + # source://rspec-core//lib/rspec/core/rake_task.rb#173 def blank; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:110 + # source://rspec-core//lib/rspec/core/rake_task.rb#110 def define(args, &task_block); end - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:157 + # source://rspec-core//lib/rspec/core/rake_task.rb#157 def file_exclusion_specification; end - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:121 + # source://rspec-core//lib/rspec/core/rake_task.rb#121 def file_inclusion_specification; end - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:177 + # source://rspec-core//lib/rspec/core/rake_task.rb#177 def rspec_load_path; end - # source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:161 + # source://rspec-core//lib/rspec/core/rake_task.rb#161 def spec_command; end end # Default pattern for spec files. # -# source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:28 +# source://rspec-core//lib/rspec/core/rake_task.rb#28 RSpec::Core::RakeTask::DEFAULT_PATTERN = T.let(T.unsafe(nil), String) # Default path to the RSpec executable. # -# source://rspec-core-3.11.0/lib/rspec/core/rake_task.rb:25 +# source://rspec-core//lib/rspec/core/rake_task.rb#25 RSpec::Core::RakeTask::DEFAULT_RSPEC_PATH = T.let(T.unsafe(nil), String) # A reporter will send notifications to listeners, usually formatters for the # spec suite run. # -# source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:4 +# source://rspec-core//lib/rspec/core/reporter.rb#4 class RSpec::Core::Reporter # @return [Reporter] a new instance of Reporter # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:14 + # source://rspec-core//lib/rspec/core/reporter.rb#14 def initialize(configuration); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:214 + # source://rspec-core//lib/rspec/core/reporter.rb#214 def abort_with(msg, exit_status); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:193 + # source://rspec-core//lib/rspec/core/reporter.rb#193 def close_after; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:155 + # source://rspec-core//lib/rspec/core/reporter.rb#155 def deprecation(hash); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:143 + # source://rspec-core//lib/rspec/core/reporter.rb#143 def example_failed(example); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:133 + # source://rspec-core//lib/rspec/core/reporter.rb#133 def example_finished(example); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:122 + # source://rspec-core//lib/rspec/core/reporter.rb#122 def example_group_finished(group); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:117 + # source://rspec-core//lib/rspec/core/reporter.rb#117 def example_group_started(group); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:138 + # source://rspec-core//lib/rspec/core/reporter.rb#138 def example_passed(example); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:149 + # source://rspec-core//lib/rspec/core/reporter.rb#149 def example_pending(example); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:127 + # source://rspec-core//lib/rspec/core/reporter.rb#127 def example_started(example); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:28 + # source://rspec-core//lib/rspec/core/reporter.rb#28 def examples; end # Reports a run that exited early without having run any examples. # # @param exit_code [Integer] the exit_code to be return by the reporter # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:84 + # source://rspec-core//lib/rspec/core/reporter.rb#84 def exit_early(exit_code); end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:221 + # source://rspec-core//lib/rspec/core/reporter.rb#221 def fail_fast_limit_met?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:28 + # source://rspec-core//lib/rspec/core/reporter.rb#28 def failed_examples; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:173 + # source://rspec-core//lib/rspec/core/reporter.rb#173 def finish; end # Send a custom message to supporting formatters. # # @param message [#to_s] A message object to send to formatters # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:99 + # source://rspec-core//lib/rspec/core/reporter.rb#99 def message(message); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:206 + # source://rspec-core//lib/rspec/core/reporter.rb#206 def notify(event, notification); end # Provides a way to notify of an exception that is not tied to any @@ -9819,17 +9816,17 @@ class RSpec::Core::Reporter # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:163 + # source://rspec-core//lib/rspec/core/reporter.rb#163 def notify_non_example_exception(exception, context_description); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:28 + # source://rspec-core//lib/rspec/core/reporter.rb#28 def pending_examples; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:45 + # source://rspec-core//lib/rspec/core/reporter.rb#45 def prepare_default(loader, output_stream, deprecation_stream); end # Publish a custom event to supporting registered formatters. @@ -9838,7 +9835,7 @@ class RSpec::Core::Reporter # @param options [Hash] Hash of arguments to provide via `CustomNotification` # @see RSpec::Core::Notifications::CustomNotification # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:108 + # source://rspec-core//lib/rspec/core/reporter.rb#108 def publish(event, options = T.unsafe(nil)); end # Registers a listener to a list of notifications. The reporter will send @@ -9849,12 +9846,12 @@ class RSpec::Core::Reporter # @param notifications [Array] Array of symbols represents the events a # listener wishes to subscribe too # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:37 + # source://rspec-core//lib/rspec/core/reporter.rb#37 def register_listener(listener, *notifications); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:52 + # source://rspec-core//lib/rspec/core/reporter.rb#52 def registered_listeners(notification); end # Initializes the report run and yields itself for further reporting. The @@ -9871,117 +9868,117 @@ class RSpec::Core::Reporter # @param expected_example_count [Integer] the number of examples being run # @yield [Block] block yields itself for further reporting. # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:71 + # source://rspec-core//lib/rspec/core/reporter.rb#71 def report(expected_example_count); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:89 + # source://rspec-core//lib/rspec/core/reporter.rb#89 def start(expected_example_count, time = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:200 + # source://rspec-core//lib/rspec/core/reporter.rb#200 def stop; end private - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:242 + # source://rspec-core//lib/rspec/core/reporter.rb#242 def close; end - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:233 + # source://rspec-core//lib/rspec/core/reporter.rb#233 def ensure_listeners_ready; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:246 + # source://rspec-core//lib/rspec/core/reporter.rb#246 def mute_profile_output?; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:252 + # source://rspec-core//lib/rspec/core/reporter.rb#252 def seed_used?; end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/reporter.rb:6 +# source://rspec-core//lib/rspec/core/reporter.rb#6 RSpec::Core::Reporter::RSPEC_NOTIFICATIONS = T.let(T.unsafe(nil), RSpec::Core::Set) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:7 +# source://rspec-core//lib/rspec/core/ruby_project.rb#7 module RSpec::Core::RubyProject private - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:12 + # source://rspec-core//lib/rspec/core/ruby_project.rb#12 def add_dir_to_load_path(dir); end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:8 + # source://rspec-core//lib/rspec/core/ruby_project.rb#8 def add_to_load_path(*dirs); end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:28 + # source://rspec-core//lib/rspec/core/ruby_project.rb#28 def ascend_until; end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:20 + # source://rspec-core//lib/rspec/core/ruby_project.rb#20 def determine_root; end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:24 + # source://rspec-core//lib/rspec/core/ruby_project.rb#24 def find_first_parent_containing(dir); end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:16 + # source://rspec-core//lib/rspec/core/ruby_project.rb#16 def root; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:12 + # source://rspec-core//lib/rspec/core/ruby_project.rb#12 def add_dir_to_load_path(dir); end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:8 + # source://rspec-core//lib/rspec/core/ruby_project.rb#8 def add_to_load_path(*dirs); end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:28 + # source://rspec-core//lib/rspec/core/ruby_project.rb#28 def ascend_until; end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:20 + # source://rspec-core//lib/rspec/core/ruby_project.rb#20 def determine_root; end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:24 + # source://rspec-core//lib/rspec/core/ruby_project.rb#24 def find_first_parent_containing(dir); end - # source://rspec-core-3.11.0/lib/rspec/core/ruby_project.rb:16 + # source://rspec-core//lib/rspec/core/ruby_project.rb#16 def root; end end end # Provides the main entry point to run a suite of RSpec examples. # -# source://rspec-core-3.11.0/lib/rspec/core/runner.rb:4 +# source://rspec-core//lib/rspec/core/runner.rb#4 class RSpec::Core::Runner # @return [Runner] a new instance of Runner # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:75 + # source://rspec-core//lib/rspec/core/runner.rb#75 def initialize(options, configuration = T.unsafe(nil), world = T.unsafe(nil)); end # @attr_reader # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:7 + # source://rspec-core//lib/rspec/core/runner.rb#7 def configuration; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:129 + # source://rspec-core//lib/rspec/core/runner.rb#129 def configure(err, out); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:190 + # source://rspec-core//lib/rspec/core/runner.rb#190 def exit_code(examples_passed = T.unsafe(nil)); end # @attr_reader # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:7 + # source://rspec-core//lib/rspec/core/runner.rb#7 def options; end # Configures and runs a spec suite. @@ -9989,7 +9986,7 @@ class RSpec::Core::Runner # @param err [IO] error stream # @param out [IO] output stream # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:85 + # source://rspec-core//lib/rspec/core/runner.rb#85 def run(err, out); end # Runs the provided example groups. @@ -9999,7 +9996,7 @@ class RSpec::Core::Runner # or the configured failure exit code (1 by default) if specs # failed. # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:113 + # source://rspec-core//lib/rspec/core/runner.rb#113 def run_specs(example_groups); end # Wires together the various configuration objects and state holders. @@ -10007,18 +10004,18 @@ class RSpec::Core::Runner # @param err [IO] error stream # @param out [IO] output stream # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:98 + # source://rspec-core//lib/rspec/core/runner.rb#98 def setup(err, out); end # @attr_reader # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:7 + # source://rspec-core//lib/rspec/core/runner.rb#7 def world; end private - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:199 + # source://rspec-core//lib/rspec/core/runner.rb#199 def persist_example_statuses; end class << self @@ -10030,40 +10027,40 @@ class RSpec::Core::Runner # the `ruby` command, and even then, the normal way to invoke # this is by requiring `rspec/autorun`. # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:16 + # source://rspec-core//lib/rspec/core/runner.rb#16 def autorun; end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:141 + # source://rspec-core//lib/rspec/core/runner.rb#141 def autorun_disabled?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:136 + # source://rspec-core//lib/rspec/core/runner.rb#136 def disable_autorun!; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:180 + # source://rspec-core//lib/rspec/core/runner.rb#180 def handle_interrupt; end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:146 + # source://rspec-core//lib/rspec/core/runner.rb#146 def installed_at_exit?; end # Runs the suite of specs and exits the process with an appropriate exit # code. # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:43 + # source://rspec-core//lib/rspec/core/runner.rb#43 def invoke; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:29 + # source://rspec-core//lib/rspec/core/runner.rb#29 def perform_at_exit; end # Run a suite of RSpec examples. Does not exit. @@ -10082,18 +10079,18 @@ class RSpec::Core::Runner # or the configured failure exit code (1 by default) if specs # failed. # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:64 + # source://rspec-core//lib/rspec/core/runner.rb#64 def run(args, err = T.unsafe(nil), out = T.unsafe(nil)); end # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:151 + # source://rspec-core//lib/rspec/core/runner.rb#151 def running_in_drb?; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/runner.rb:175 + # source://rspec-core//lib/rspec/core/runner.rb#175 def trap_interrupt; end end end @@ -10106,38 +10103,38 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/set.rb:11 +# source://rspec-core//lib/rspec/core/set.rb#11 class RSpec::Core::Set include ::Enumerable # @return [Set] a new instance of Set # - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:14 + # source://rspec-core//lib/rspec/core/set.rb#14 def initialize(array = T.unsafe(nil)); end - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:23 + # source://rspec-core//lib/rspec/core/set.rb#23 def <<(key); end - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:48 + # source://rspec-core//lib/rspec/core/set.rb#48 def clear; end - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:28 + # source://rspec-core//lib/rspec/core/set.rb#28 def delete(key); end - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:32 + # source://rspec-core//lib/rspec/core/set.rb#32 def each(&block); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:19 + # source://rspec-core//lib/rspec/core/set.rb#19 def empty?; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:37 + # source://rspec-core//lib/rspec/core/set.rb#37 def include?(key); end - # source://rspec-core-3.11.0/lib/rspec/core/set.rb:41 + # source://rspec-core//lib/rspec/core/set.rb#41 def merge(values); end end @@ -10158,71 +10155,71 @@ end # # ... # end # -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:19 +# source://rspec-core//lib/rspec/core/shared_context.rb#19 module RSpec::Core::SharedContext # @private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:28 + # source://rspec-core//lib/rspec/core/shared_context.rb#28 def __shared_context_recordings; end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def after(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def append_after(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def append_before(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def around(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def before(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def context(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def describe(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def hooks(*args, &block); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:21 + # source://rspec-core//lib/rspec/core/shared_context.rb#21 def included(group); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def let(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def let!(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def prepend_after(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def prepend_before(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def subject(*args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:42 + # source://rspec-core//lib/rspec/core/shared_context.rb#42 def subject!(*args, &block); end class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:40 + # source://rspec-core//lib/rspec/core/shared_context.rb#40 def record(methods); end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:33 +# source://rspec-core//lib/rspec/core/shared_context.rb#33 class RSpec::Core::SharedContext::Recording < ::Struct # Returns the value of attribute args # @@ -10234,7 +10231,7 @@ class RSpec::Core::SharedContext::Recording < ::Struct # @param value [Object] the value to set the attribute args to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:33 + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def args=(_); end # Returns the value of attribute block @@ -10247,7 +10244,7 @@ class RSpec::Core::SharedContext::Recording < ::Struct # @param value [Object] the value to set the attribute block to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:33 + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def block=(_); end # Returns the value of attribute method_name @@ -10260,10 +10257,10 @@ class RSpec::Core::SharedContext::Recording < ::Struct # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value # - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:33 + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def method_name=(_); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:34 + # source://rspec-core//lib/rspec/core/shared_context.rb#34 def playback_onto(group); end class << self @@ -10288,7 +10285,7 @@ end # but not in any parent or sibling example groups. Shared example # groups defined at the top level can be included from any example group. # -# source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:57 +# source://rspec-core//lib/rspec/core/shared_example_group.rb#57 module RSpec::Core::SharedExampleGroup # Stores the block for later use. The block will be evaluated # in the context of an example group via `include_examples`, @@ -10312,7 +10309,7 @@ module RSpec::Core::SharedExampleGroup # @see ExampleGroup.include_examples # @see ExampleGroup.include_context # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:90 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 def shared_context(name, *args, &block); end # Stores the block for later use. The block will be evaluated @@ -10337,7 +10334,7 @@ module RSpec::Core::SharedExampleGroup # @see ExampleGroup.include_examples # @see ExampleGroup.include_context # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:90 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 def shared_examples(name, *args, &block); end # Stores the block for later use. The block will be evaluated @@ -10362,30 +10359,30 @@ module RSpec::Core::SharedExampleGroup # @see ExampleGroup.include_examples # @see ExampleGroup.include_context # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:90 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 def shared_examples_for(name, *args, &block); end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:149 +# source://rspec-core//lib/rspec/core/shared_example_group.rb#149 class RSpec::Core::SharedExampleGroup::Registry - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:150 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#150 def add(context, name, *metadata_args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:174 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#174 def find(lookup_contexts, name); end private # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:257 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#257 def ensure_block_has_source_location(_block); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:245 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#245 def formatted_location(block); end # TODO: remove this in RSpec 4. This exists only to support @@ -10393,18 +10390,18 @@ class RSpec::Core::SharedExampleGroup::Registry # the legacy behavior of shared context metadata, which we do # not want to support in RSpec 4. # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:189 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#189 def legacy_add(context, name, *metadata_args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:204 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#204 def shared_example_groups; end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:208 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#208 def valid_name?(candidate); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:215 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#215 def warn_if_key_taken(context, key, new_block); end end @@ -10412,83 +10409,83 @@ end # # @api private # -# source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:106 +# source://rspec-core//lib/rspec/core/shared_example_group.rb#106 module RSpec::Core::SharedExampleGroup::TopLevelDSL class << self # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:108 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#108 def definitions; end # Adds the top level DSL methods to Module and the top level binding. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:126 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#126 def expose_globally!; end # @api private # @private # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:119 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#119 def exposed_globally?; end # Removes the top level DSL methods to Module and the top level binding. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:135 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#135 def remove_globally!; end end end # Contains information about the inclusion site of a shared example group. # -# source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:782 +# source://rspec-core//lib/rspec/core/example_group.rb#782 class RSpec::Core::SharedExampleGroupInclusionStackFrame # @private # @return [SharedExampleGroupInclusionStackFrame] a new instance of SharedExampleGroupInclusionStackFrame # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:789 + # source://rspec-core//lib/rspec/core/example_group.rb#789 def initialize(shared_group_name, inclusion_location); end # @return [String] Description of this stack frame, in the form used by # RSpec's built-in formatters. # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:805 + # source://rspec-core//lib/rspec/core/example_group.rb#805 def description; end # @return [String] The {#inclusion_location}, formatted for display by a formatter. # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:795 + # source://rspec-core//lib/rspec/core/example_group.rb#795 def formatted_inclusion_location; end # @return [String] the location where the shared example was included # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:786 + # source://rspec-core//lib/rspec/core/example_group.rb#786 def inclusion_location; end # @return [String] the name of the shared example group # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:784 + # source://rspec-core//lib/rspec/core/example_group.rb#784 def shared_group_name; end class << self # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:811 + # source://rspec-core//lib/rspec/core/example_group.rb#811 def current_backtrace; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:829 + # source://rspec-core//lib/rspec/core/example_group.rb#829 def shared_example_group_inclusions; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:816 + # source://rspec-core//lib/rspec/core/example_group.rb#816 def with_frame(name, location); end end end @@ -10498,38 +10495,38 @@ end # eval'd when the `SharedExampleGroupModule` instance is included in an example # group. # -# source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:10 +# source://rspec-core//lib/rspec/core/shared_example_group.rb#10 class RSpec::Core::SharedExampleGroupModule < ::Module # @return [SharedExampleGroupModule] a new instance of SharedExampleGroupModule # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:13 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#13 def initialize(description, definition, metadata); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:11 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#11 def definition; end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:34 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#34 def include_in(klass, inclusion_line, args, customization_block); end # Ruby callback for when a module is included in another module is class. # Our definition evaluates the shared group block in the context of the # including example group. # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:28 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#28 def included(klass); end # Provides a human-readable representation of this module. # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:20 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 def inspect; end # Provides a human-readable representation of this module. # - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:20 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 def to_s; end end @@ -10537,37 +10534,37 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:5 +# source://rspec-core//lib/rspec/core/shell_escape.rb#5 module RSpec::Core::ShellEscape private - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:32 + # source://rspec-core//lib/rspec/core/shell_escape.rb#32 def conditionally_quote(id); end # :nocov: # - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:19 + # source://rspec-core//lib/rspec/core/shell_escape.rb#19 def escape(shell_command); end - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:8 + # source://rspec-core//lib/rspec/core/shell_escape.rb#8 def quote(argument); end - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:37 + # source://rspec-core//lib/rspec/core/shell_escape.rb#37 def shell_allows_unquoted_ids?; end class << self - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:32 + # source://rspec-core//lib/rspec/core/shell_escape.rb#32 def conditionally_quote(id); end - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:19 + # source://rspec-core//lib/rspec/core/shell_escape.rb#19 def escape(shell_command); end - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:8 + # source://rspec-core//lib/rspec/core/shell_escape.rb#8 def quote(argument); end # @return [Boolean] # - # source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:37 + # source://rspec-core//lib/rspec/core/shell_escape.rb#37 def shell_allows_unquoted_ids?; end end end @@ -10579,21 +10576,21 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/shell_escape.rb:30 +# source://rspec-core//lib/rspec/core/shell_escape.rb#30 RSpec::Core::ShellEscape::SHELLS_ALLOWING_UNQUOTED_IDS = T.let(T.unsafe(nil), Array) # Provides an execution context for before/after :suite hooks. # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example.rb:651 +# source://rspec-core//lib/rspec/core/example.rb#651 class RSpec::Core::SuiteHookContext < ::RSpec::Core::Example # @return [SuiteHookContext] a new instance of SuiteHookContext # - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:652 + # source://rspec-core//lib/rspec/core/example.rb#652 def initialize(hook_description, reporter); end - # source://rspec-core-3.11.0/lib/rspec/core/example.rb:659 + # source://rspec-core//lib/rspec/core/example.rb#659 def set_exception(exception); end end @@ -10603,7 +10600,7 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core.rb:174 +# source://rspec-core//lib/rspec/core.rb#174 class RSpec::Core::Time class << self def now(*_arg0); end @@ -10612,35 +10609,35 @@ end # Version information for RSpec Core. # -# source://rspec-core-3.11.0/lib/rspec/core/version.rb:4 +# source://rspec-core//lib/rspec/core/version.rb#4 module RSpec::Core::Version; end # Current version of RSpec Core, in semantic versioning format. # -# source://rspec-core-3.11.0/lib/rspec/core/version.rb:6 +# source://rspec-core//lib/rspec/core/version.rb#6 RSpec::Core::Version::STRING = T.let(T.unsafe(nil), String) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/warnings.rb:6 +# source://rspec-core//lib/rspec/core/warnings.rb#6 module RSpec::Core::Warnings # Used internally to print deprecation warnings. # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/warnings.rb:10 + # source://rspec-core//lib/rspec/core/warnings.rb#10 def deprecate(deprecated, data = T.unsafe(nil)); end # Used internally to print deprecation warnings. # # @private # - # source://rspec-core-3.11.0/lib/rspec/core/warnings.rb:22 + # source://rspec-core//lib/rspec/core/warnings.rb#22 def warn_deprecation(message, opts = T.unsafe(nil)); end # @private # - # source://rspec-core-3.11.0/lib/rspec/core/warnings.rb:27 + # source://rspec-core//lib/rspec/core/warnings.rb#27 def warn_with(message, options = T.unsafe(nil)); end end @@ -10648,94 +10645,94 @@ end # # @api private # -# source://rspec-core-3.11.0/lib/rspec/core/world.rb:6 +# source://rspec-core//lib/rspec/core/world.rb#6 class RSpec::Core::World # @api private # @return [World] a new instance of World # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:26 + # source://rspec-core//lib/rspec/core/world.rb#26 def initialize(configuration = T.unsafe(nil)); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:115 + # source://rspec-core//lib/rspec/core/world.rb#115 def all_example_groups; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:120 + # source://rspec-core//lib/rspec/core/world.rb#120 def all_examples; end # Add exclusion filters to announcement message. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:226 + # source://rspec-core//lib/rspec/core/world.rb#226 def announce_exclusion_filter(announcements); end # Notify reporter of filters. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:171 + # source://rspec-core//lib/rspec/core/world.rb#171 def announce_filters; end # Add inclusion filters to announcement message. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:217 + # source://rspec-core//lib/rspec/core/world.rb#217 def announce_inclusion_filter(announcements); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:210 + # source://rspec-core//lib/rspec/core/world.rb#210 def everything_filtered_message; end # Get count of examples to be run. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:109 + # source://rspec-core//lib/rspec/core/world.rb#109 def example_count(groups = T.unsafe(nil)); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:8 + # source://rspec-core//lib/rspec/core/world.rb#8 def example_group_counts_by_spec_file; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:8 + # source://rspec-core//lib/rspec/core/world.rb#8 def example_groups; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:102 + # source://rspec-core//lib/rspec/core/world.rb#102 def exclusion_filter; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:69 + # source://rspec-core//lib/rspec/core/world.rb#69 def filter_manager; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:8 + # source://rspec-core//lib/rspec/core/world.rb#8 def filtered_examples; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:97 + # source://rspec-core//lib/rspec/core/world.rb#97 def inclusion_filter; end # Used internally to signal that a failure outside of an example @@ -10745,7 +10742,7 @@ class RSpec::Core::World # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:24 + # source://rspec-core//lib/rspec/core/world.rb#24 def non_example_failure; end # Used internally to signal that a failure outside of an example @@ -10755,27 +10752,27 @@ class RSpec::Core::World # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:24 + # source://rspec-core//lib/rspec/core/world.rb#24 def non_example_failure=(_arg0); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:87 + # source://rspec-core//lib/rspec/core/world.rb#87 def num_example_groups_defined_in(file); end # Apply ordering strategy from configuration to example groups. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:52 + # source://rspec-core//lib/rspec/core/world.rb#52 def ordered_example_groups; end # Find line number of previous declaration. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:140 + # source://rspec-core//lib/rspec/core/world.rb#140 def preceding_declaration_line(absolute_file_name, filter_line); end # Prepares filters so that they apply to example groups when they run. @@ -10786,39 +10783,39 @@ class RSpec::Core::World # # @api public # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:43 + # source://rspec-core//lib/rspec/core/world.rb#43 def prepare_example_filtering; end # Records an example group. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:81 + # source://rspec-core//lib/rspec/core/world.rb#81 def record(example_group); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:74 + # source://rspec-core//lib/rspec/core/world.rb#74 def registered_example_group_files; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:205 + # source://rspec-core//lib/rspec/core/world.rb#205 def report_filter_message(message); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:149 + # source://rspec-core//lib/rspec/core/world.rb#149 def reporter; end # Reset world to 'scratch' before running suite. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:60 + # source://rspec-core//lib/rspec/core/world.rb#60 def reset; end # Used internally to signify that a SystemExit occurred in @@ -10829,7 +10826,7 @@ class RSpec::Core::World # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:18 + # source://rspec-core//lib/rspec/core/world.rb#18 def rspec_is_quitting; end # Used internally to signify that a SystemExit occurred in @@ -10840,25 +10837,25 @@ class RSpec::Core::World # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:18 + # source://rspec-core//lib/rspec/core/world.rb#18 def rspec_is_quitting=(_arg0); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:92 + # source://rspec-core//lib/rspec/core/world.rb#92 def shared_example_group_registry; end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:154 + # source://rspec-core//lib/rspec/core/world.rb#154 def source_from_file(path); end # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:164 + # source://rspec-core//lib/rspec/core/world.rb#164 def syntax_highlighter; end # Traverses the tree of each top level group. @@ -10871,33 +10868,33 @@ class RSpec::Core::World # @api private # @private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:131 + # source://rspec-core//lib/rspec/core/world.rb#131 def traverse_example_group_trees_until(&block); end # Used internally to determine what to do when a SIGINT is received. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:11 + # source://rspec-core//lib/rspec/core/world.rb#11 def wants_to_quit; end # Used internally to determine what to do when a SIGINT is received. # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:11 + # source://rspec-core//lib/rspec/core/world.rb#11 def wants_to_quit=(_arg0); end private # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:234 + # source://rspec-core//lib/rspec/core/world.rb#234 def descending_declaration_line_numbers_by_file; end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:252 + # source://rspec-core//lib/rspec/core/world.rb#252 def fail_if_config_and_cli_options_invalid; end end @@ -10906,39 +10903,39 @@ end # @api private # @private # -# source://rspec-core-3.11.0/lib/rspec/core/world.rb:264 +# source://rspec-core//lib/rspec/core/world.rb#264 module RSpec::Core::World::Null class << self # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:280 + # source://rspec-core//lib/rspec/core/world.rb#280 def all_example_groups; end # :nocov: # # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:276 + # source://rspec-core//lib/rspec/core/world.rb#276 def example_groups; end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:265 + # source://rspec-core//lib/rspec/core/world.rb#265 def non_example_failure; end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:266 + # source://rspec-core//lib/rspec/core/world.rb#266 def non_example_failure=(_); end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:268 + # source://rspec-core//lib/rspec/core/world.rb#268 def registered_example_group_files; end # @api private # - # source://rspec-core-3.11.0/lib/rspec/core/world.rb:272 + # source://rspec-core//lib/rspec/core/world.rb#272 def traverse_example_group_trees_until; end end end @@ -10948,34 +10945,34 @@ end # # @private # -# source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:839 +# source://rspec-core//lib/rspec/core/example_group.rb#839 module RSpec::ExampleGroups extend ::RSpec::Support::RecursiveConstMethods class << self - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:842 + # source://rspec-core//lib/rspec/core/example_group.rb#842 def assign_const(group); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:862 + # source://rspec-core//lib/rspec/core/example_group.rb#862 def base_name_for(group); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:850 + # source://rspec-core//lib/rspec/core/example_group.rb#850 def constant_scope_for(group); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:895 + # source://rspec-core//lib/rspec/core/example_group.rb#895 def disambiguate(name, const_scope); end - # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:856 + # source://rspec-core//lib/rspec/core/example_group.rb#856 def remove_all_constants; end end end # @private # -# source://rspec-core-3.11.0/lib/rspec/core.rb:187 +# source://rspec-core//lib/rspec/core.rb#187 RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54 +# source://rspec-core//lib/rspec/core/shared_context.rb#54 RSpec::SharedContext = RSpec::Core::SharedContext diff --git a/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi b/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi similarity index 68% rename from sorbet/rbi/gems/rspec-expectations@3.11.0.rbi rename to sorbet/rbi/gems/rspec-expectations@3.12.0.rbi index 93cfe07f..4641e28b 100644 --- a/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +++ b/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi @@ -7,165 +7,73 @@ # RSpec's top level namespace. All of rspec-expectations is contained # in the `RSpec::Expectations` and `RSpec::Matchers` namespaces. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/english_phrasing.rb:1 +# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#1 module RSpec class << self - # Used to ensure examples get reloaded between multiple runs in the same - # process and ensures user configuration is persisted. - # - # Users must invoke this if they want to clear all examples but preserve - # current configuration when they use the runner multiple times within the - # same process. - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:70 + # source://rspec-core/3.12.0/lib/rspec/core.rb#70 def clear_examples; end - # Returns the global [Configuration](RSpec/Core/Configuration) object. While - # you _can_ use this method to access the configuration, the more common - # convention is to use [RSpec.configure](RSpec#configure-class_method). - # - # @example - # RSpec.configuration.drb_port = 1234 - # @see RSpec.configure - # @see Core::Configuration - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:85 + # source://rspec-core/3.12.0/lib/rspec/core.rb#85 def configuration; end - # Setters for shared global objects - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 def configuration=(_arg0); end - # Yields the global configuration to a block. - # - # @example - # RSpec.configure do |config| - # config.add_formatter 'documentation' - # end - # @see Core::Configuration - # @yield [Configuration] global configuration - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:97 + # source://rspec-core/3.12.0/lib/rspec/core.rb#97 def configure; end - # @private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:194 + # source://rspec-core/3.12.0/lib/rspec/core.rb#194 def const_missing(name); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def context(*args, &example_group_block); end - # The example being executed. - # - # The primary audience for this method is library authors who need access - # to the example currently being executed and also want to support all - # versions of RSpec 2 and 3. - # - # @example - # - # RSpec.configure do |c| - # # context.example is deprecated, but RSpec.current_example is not - # # available until RSpec 3.0. - # fetch_current_example = RSpec.respond_to?(:current_example) ? - # proc { RSpec.current_example } : proc { |context| context.example } - # - # c.before(:example) do - # example = fetch_current_example.call(self) - # - # # ... - # end - # end - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:122 + # source://rspec-core/3.12.0/lib/rspec/core.rb#122 def current_example; end - # Set the current example being executed. - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:128 + # source://rspec-core/3.12.0/lib/rspec/core.rb#128 def current_example=(example); end - # Get the current RSpec execution scope - # - # Returns (in order of lifecycle): - # * `:suite` as an initial value, this is outside of the test lifecycle. - # * `:before_suite_hook` during `before(:suite)` hooks. - # * `:before_context_hook` during `before(:context)` hooks. - # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`. - # * `:example` within the example run. - # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`. - # * `:after_context_hook` during `after(:context)` hooks. - # * `:after_suite_hook` during `after(:suite)` hooks. - # * `:suite` as a final value, again this is outside of the test lifecycle. - # - # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias. - # - # @return [Symbol] - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:154 + # source://rspec-core/3.12.0/lib/rspec/core.rb#154 def current_scope; end - # Set the current scope rspec is executing in - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:134 + # source://rspec-core/3.12.0/lib/rspec/core.rb#134 def current_scope=(scope); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def describe(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def example_group(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def fcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def fdescribe(*args, &example_group_block); end - # Used to ensure examples get reloaded and user configuration gets reset to - # defaults between multiple runs in the same process. - # - # Users must invoke this if they want to have the configuration reset when - # they use the runner multiple times within the same process. Users must deal - # themselves with re-configuration of RSpec before run. - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:58 + # source://rspec-core/3.12.0/lib/rspec/core.rb#58 def reset; end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_context(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_examples(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_examples_for(name, *args, &block); end - # Internal container for global non-configuration data. - # - # @private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:160 + # source://rspec-core/3.12.0/lib/rspec/core.rb#160 def world; end - # Setters for shared global objects - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 def world=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def xcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def xdescribe(*args, &example_group_block); end end end @@ -212,19 +120,19 @@ end # built-in matchers that ship with rspec-expectations, and how to write your # own custom matchers. # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:2 +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#2 module RSpec::Expectations class << self # The configuration object. # # @return [RSpec::Expectations::Configuration] the configuration object # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:223 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#223 def configuration; end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/fail_with.rb:13 + # source://rspec-expectations//lib/rspec/expectations/fail_with.rb#13 def differ; end # Raises an RSpec::Expectations::ExpectationNotMetError with message. @@ -235,7 +143,7 @@ module RSpec::Expectations # @param expected [Object] # @param actual [Object] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/fail_with.rb:27 + # source://rspec-expectations//lib/rspec/expectations/fail_with.rb#27 def fail_with(message, expected = T.unsafe(nil), actual = T.unsafe(nil)); end end end @@ -247,95 +155,95 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:136 +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#136 class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::ExpectationTarget - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:142 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 def not_to(matcher, message = T.unsafe(nil), &block); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:137 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#137 def to(matcher, message = T.unsafe(nil), &block); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:142 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 def to_not(matcher, message = T.unsafe(nil), &block); end private # @raise [ExpectationNotMetError] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:150 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#150 def enforce_block_expectation(matcher); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:158 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#158 def supports_block_expectations?(matcher); end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:4 +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#4 class RSpec::Expectations::BlockSnippetExtractor # @return [BlockSnippetExtractor] a new instance of BlockSnippetExtractor # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:17 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#17 def initialize(proc, method_name); end # Ideally we should properly handle indentations of multiline snippet, # but it's not implemented yet since because we use result of this method only when it's a # single line and implementing the logic introduces additional complexity. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:25 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#25 def body_content_lines; end # rubocop should properly handle `Struct.new {}` as an inner class definition. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:7 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#7 def method_name; end # rubocop should properly handle `Struct.new {}` as an inner class definition. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:7 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#7 def proc; end private - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:60 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#60 def beginning_line_number; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:39 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#39 def block_token_extractor; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:56 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#56 def file_path; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:31 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#31 def raw_body_lines; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:35 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#35 def raw_body_snippet; end # @raise [TargetNotFoundError] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:44 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#44 def source; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:64 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#64 def source_location; end class << self - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:9 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#9 def try_extracting_single_line_body_of(proc, method_name); end end end -# source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:70 +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#70 class RSpec::Expectations::BlockSnippetExtractor::AmbiguousTargetError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end # Locates target block with node information (semantics), which tokens don't have. # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:198 +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#198 class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct # Returns the value of attribute beginning_line_number # @@ -347,13 +255,13 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct # @param value [Object] the value to set the attribute beginning_line_number to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:198 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#198 def beginning_line_number=(_); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:203 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#203 def body_content_locations; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:199 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#199 def method_call_location; end # Returns the value of attribute method_name @@ -366,7 +274,7 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:198 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#198 def method_name=(_); end # Returns the value of attribute source @@ -379,29 +287,29 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct # @param value [Object] the value to set the attribute source to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:198 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#198 def source=(_); end private - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:216 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#216 def block_body_node; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:221 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#221 def block_wrapper_node; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:232 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#232 def candidate_block_wrapper_nodes; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:241 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#241 def candidate_method_ident_nodes; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:209 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#209 def method_ident_node; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:247 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#247 def method_ident_node?(node); end class << self @@ -417,11 +325,11 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:75 +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#75 class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct # @return [BlockTokenExtractor] a new instance of BlockTokenExtractor # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:78 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#78 def initialize(*_arg0); end # Returns the value of attribute beginning_line_number @@ -434,12 +342,12 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct # @param value [Object] the value to set the attribute beginning_line_number to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:75 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#75 def beginning_line_number=(_); end # Returns the value of attribute body_tokens. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:76 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#76 def body_tokens; end # Returns the value of attribute method_name @@ -452,7 +360,7 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:75 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#75 def method_name=(_); end # Returns the value of attribute source @@ -465,74 +373,74 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct # @param value [Object] the value to set the attribute source to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:75 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#75 def source=(_); end # Returns the value of attribute state. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:76 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#76 def state; end private - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:124 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#124 def after_beginning_of_args_state(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:128 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#128 def after_beginning_of_body_state(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:107 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#107 def after_method_call_state(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:111 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#111 def after_opener_state(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:191 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#191 def block_locator; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:185 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#185 def correct_block?(body_tokens); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:141 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#141 def finalize_pending_tokens!; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:95 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#95 def finish!; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:147 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#147 def finish_or_find_next_block_if_incorrect!; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:168 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#168 def handle_closer_token(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:158 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#158 def handle_opener_token(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:103 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#103 def initial_state(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:99 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#99 def invoke_state_handler(token); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:164 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#164 def opener_token?(token); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:177 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#177 def opener_token_stack; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:85 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#85 def parse!; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:137 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#137 def pending_tokens; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:181 + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#181 def pipe_token?(token); end class << self @@ -543,10 +451,10 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct end end -# source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:68 +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#68 class RSpec::Expectations::BlockSnippetExtractor::Error < ::StandardError; end -# source://rspec-expectations-3.11.0/lib/rspec/expectations/block_snippet_extractor.rb:69 +# source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#69 class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec::Expectations::BlockSnippetExtractor::Error; end # Provides configuration options for rspec-expectations. @@ -565,11 +473,11 @@ class RSpec::Expectations::BlockSnippetExtractor::TargetNotFoundError < ::RSpec: # # RSpec::Expectations.configuration # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:20 +# source://rspec-expectations//lib/rspec/expectations/configuration.rb#20 class RSpec::Expectations::Configuration # @return [Configuration] a new instance of Configuration # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:29 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#29 def initialize; end # Adds `should` and `should_not` to the given classes @@ -580,7 +488,7 @@ class RSpec::Expectations::Configuration # @param modules [Array] the list of classes or modules # to add `should` and `should_not` to. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:112 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#112 def add_should_and_should_not_to(*modules); end # Sets or gets the backtrace formatter. The backtrace formatter should @@ -592,7 +500,7 @@ class RSpec::Expectations::Configuration # will be used (including respecting the presence or absence of # the `--backtrace` option). # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:129 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#129 def backtrace_formatter; end # Sets or gets the backtrace formatter. The backtrace formatter should @@ -604,7 +512,7 @@ class RSpec::Expectations::Configuration # will be used (including respecting the presence or absence of # the `--backtrace` option). # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:128 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#128 def backtrace_formatter=(_arg0); end # Indicates whether or not diffs should be colored. @@ -613,12 +521,12 @@ class RSpec::Expectations::Configuration # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:88 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#88 def color?; end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:216 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#216 def false_positives_handler; end # Sets if custom matcher descriptions and failure messages @@ -626,7 +534,7 @@ class RSpec::Expectations::Configuration # # @param value [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:140 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#140 def include_chain_clauses_in_custom_matcher_descriptions=(_arg0); end # Indicates whether or not custom matcher descriptions and failure messages @@ -635,7 +543,7 @@ class RSpec::Expectations::Configuration # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:145 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#145 def include_chain_clauses_in_custom_matcher_descriptions?; end # Configures the maximum character length that RSpec will print while @@ -650,14 +558,14 @@ class RSpec::Expectations::Configuration # end # @param length [Fixnum] the number of characters to limit the formatted output to. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:70 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#70 def max_formatted_output_length=(length); end # Indicates what RSpec will do about matcher use which will # potentially cause false positives in tests, generally you want to # avoid such scenarios so this defaults to `true`. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:206 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#206 def on_potential_false_positives; end # Configures what RSpec will do about matcher use which will @@ -665,17 +573,17 @@ class RSpec::Expectations::Configuration # # @param behavior [Symbol] can be set to :warn, :raise or :nothing # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:182 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#182 def on_potential_false_positives=(behavior); end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:150 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#150 def reset_syntaxes_to_default; end # Returns the value of attribute strict_predicate_matchers. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:197 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#197 def strict_predicate_matchers; end # Configures RSpec to check predicate matchers to `be(true)` / `be(false)` (strict), @@ -684,12 +592,12 @@ class RSpec::Expectations::Configuration # # @raise [ArgumentError] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:192 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#192 def strict_predicate_matchers=(flag); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:199 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#199 def strict_predicate_matchers?; end # The list of configured syntaxes. @@ -700,7 +608,7 @@ class RSpec::Expectations::Configuration # end # @return [Array] the list of configured syntaxes. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:80 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#80 def syntax; end # Configures the supported syntax. @@ -717,7 +625,7 @@ class RSpec::Expectations::Configuration # end # @param values [Array, Symbol] the syntaxes to enable # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:46 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#46 def syntax=(values); end # Configures whether RSpec will warn about matcher use which will @@ -725,7 +633,7 @@ class RSpec::Expectations::Configuration # # @param boolean [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:168 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#168 def warn_about_potential_false_positives=(boolean); end # Indicates whether RSpec will warn about matcher use which will @@ -734,13 +642,13 @@ class RSpec::Expectations::Configuration # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:211 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#211 def warn_about_potential_false_positives?; end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:22 +# source://rspec-expectations//lib/rspec/expectations/configuration.rb#22 RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(nil), Hash) # Null implementation of a backtrace formatter used by default @@ -748,23 +656,23 @@ RSpec::Expectations::Configuration::FALSE_POSITIVE_BEHAVIOURS = T.let(T.unsafe(n # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:158 +# source://rspec-expectations//lib/rspec/expectations/configuration.rb#158 module RSpec::Expectations::Configuration::NullBacktraceFormatter class << self - # source://rspec-expectations-3.11.0/lib/rspec/expectations/configuration.rb:159 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#159 def format_backtrace(backtrace); end end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:4 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#4 module RSpec::Expectations::ExpectationHelper class << self - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:5 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#5 def check_message(msg); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:33 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#33 def handle_failure(matcher, message, failure_message_method); end # Returns an RSpec-3+ compatible matcher, wrapping a legacy one @@ -772,10 +680,10 @@ module RSpec::Expectations::ExpectationHelper # # @private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:19 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#19 def modern_matcher_from(matcher); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:24 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#24 def with_matcher(handler, matcher, message); end end end @@ -788,7 +696,7 @@ end # @api public # @note We subclass Exception so that in a stub implementation if # -# source://rspec-expectations-3.11.0/lib/rspec/expectations.rb:67 +# source://rspec-expectations//lib/rspec/expectations.rb#67 class RSpec::Expectations::ExpectationNotMetError < ::Exception; end # Wraps the target of an expectation. @@ -805,14 +713,14 @@ class RSpec::Expectations::ExpectationNotMetError < ::Exception; end # @note `ExpectationTarget` is not intended to be instantiated # directly by users. Use `expect` instead. # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:17 +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#17 class RSpec::Expectations::ExpectationTarget include ::RSpec::Expectations::ExpectationTarget::InstanceMethods # @api private # @return [ExpectationTarget] a new instance of ExpectationTarget # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:31 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#31 def initialize(value); end # @note this name aligns with `Minitest::Expectation` so that our @@ -820,13 +728,13 @@ class RSpec::Expectations::ExpectationTarget # used in a Minitest context. # @return [Object] the target of the expectation # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:28 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#28 def target; end class << self # @private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:36 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#36 def for(value, block); end end end @@ -836,7 +744,7 @@ end # `rspec/expectations/minitest_integration` is loaded in order to # support usage with Minitest. # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:53 +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#53 module RSpec::Expectations::ExpectationTarget::InstanceMethods # Runs the given expectation, passing if `matcher` returns false. # @@ -847,7 +755,7 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods # @return [Boolean] false if the negative expectation succeeds (else raises) # @see RSpec::Matchers # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:76 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end # Runs the given expectation, passing if `matcher` returns true. @@ -860,7 +768,7 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods # @return [Boolean] true if the expectation succeeds (else raises) # @see RSpec::Matchers # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:63 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#63 def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end # Runs the given expectation, passing if `matcher` returns false. @@ -872,14 +780,14 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods # @return [Boolean] false if the negative expectation succeeds (else raises) # @see RSpec::Matchers # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:76 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 def to_not(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end private # @raise [ArgumentError] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:84 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#84 def prevent_operator_matchers(verb); end end @@ -889,51 +797,51 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:22 +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#22 module RSpec::Expectations::ExpectationTarget::UndefinedValue; end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:4 +# source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#4 class RSpec::Expectations::FailureAggregator # @return [FailureAggregator] a new instance of FailureAggregator # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:73 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#73 def initialize(block_label, metadata); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:7 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#7 def aggregate; end # Returns the value of attribute block_label. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:5 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5 def block_label; end # This method is defined to satisfy the callable interface # expected by `RSpec::Support.with_failure_notifier`. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:44 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#44 def call(failure, options); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:34 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#34 def failures; end # Returns the value of attribute metadata. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:5 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#5 def metadata; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:38 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#38 def other_errors; end private # Using `caller` performs better (and is simpler) than `raise` on most Rubies. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:68 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#68 def assign_backtrace(failure); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:79 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#79 def notify_aggregated_failures; end end @@ -943,7 +851,7 @@ end # @deprecated Use LegacyMatcherAdapter instead. # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:180 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#180 RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAdapter # Wraps a matcher written against one of the legacy protocols in @@ -951,15 +859,15 @@ RSpec::Expectations::LegacyMacherAdapter = RSpec::Expectations::LegacyMatcherAda # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:113 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#113 class RSpec::Expectations::LegacyMatcherAdapter < ::RSpec::Matchers::MatcherDelegator # @return [LegacyMatcherAdapter] a new instance of LegacyMatcherAdapter # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:114 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#114 def initialize(matcher); end class << self - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:124 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#124 def wrap(matcher); end end end @@ -970,12 +878,12 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:157 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#157 class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations::LegacyMatcherAdapter - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:158 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#158 def failure_message; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:162 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#162 def failure_message_when_negated; end class << self @@ -985,7 +893,7 @@ class RSpec::Expectations::LegacyMatcherAdapter::RSpec1 < ::RSpec::Expectations: # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:169 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#169 def interface_matches?(matcher); end end end @@ -997,152 +905,157 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:133 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#133 class RSpec::Expectations::LegacyMatcherAdapter::RSpec2 < ::RSpec::Expectations::LegacyMatcherAdapter - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:134 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#134 def failure_message; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:138 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#138 def failure_message_when_negated; end class << self # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:142 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#142 def interface_matches?(matcher); end end end # Exception raised from `aggregate_failures` when multiple expectations fail. # -# source://rspec-expectations-3.11.0/lib/rspec/expectations.rb:76 +# @note The constant is defined here but the extensive logic of this class +# is lazily defined when `FailureAggregator` is autoloaded, since we do +# not need to waste time defining that functionality unless +# `aggregate_failures` is used. +# +# source://rspec-expectations//lib/rspec/expectations.rb#76 class RSpec::Expectations::MultipleExpectationsNotMetError < ::RSpec::Expectations::ExpectationNotMetError # @return [MultipleExpectationsNotMetError] a new instance of MultipleExpectationsNotMetError # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:136 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#136 def initialize(failure_aggregator); end # @return [String] The user-assigned label for the aggregation block. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:111 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#111 def aggregation_block_label; end # @return [Hash] The metadata hash passed to `aggregate_failures`. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:116 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#116 def aggregation_metadata; end # @return [Array] The list of expectation failures and other exceptions, combined. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:108 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#108 def all_exceptions; end # return [String] A description of the failure/error counts. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:127 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#127 def exception_count_description; end # @return [Array] The list of expectation failures. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:98 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#98 def failures; end # @return [String] The fully formatted exception message. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:93 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#93 def message; end # @return [Array] The list of other exceptions. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:103 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#103 def other_errors; end # @return [String] A summary of the failure, including the block label and a count of failures. # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:121 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#121 def summary; end private - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:168 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#168 def backtrace_line(line); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:141 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#141 def block_description; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:150 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#150 def enumerated(exceptions, index_offset); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:180 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#180 def enumerated_errors; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:176 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#176 def enumerated_failures; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:158 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#158 def exclusion_patterns; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:164 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#164 def format_backtrace(backtrace); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:195 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#195 def indentation; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:186 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#186 def indented(failure_message, index); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:207 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#207 def index_label(index); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:199 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#199 def longest_index_label_width; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:146 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#146 def pluralize(noun, count); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/failure_aggregator.rb:203 + # source://rspec-expectations//lib/rspec/expectations/failure_aggregator.rb#203 def width_of_label(index); end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:74 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#74 class RSpec::Expectations::NegativeExpectationHandler class << self # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:88 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#88 def does_not_match?(matcher, actual, &block); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:75 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#75 def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:104 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#104 def opposite_should_method; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:100 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#100 def should_method; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:96 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#96 def verb; end end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:46 +# source://rspec-expectations//lib/rspec/expectations/handler.rb#46 class RSpec::Expectations::PositiveExpectationHandler class << self - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:47 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#47 def handle_matcher(actual, initial_matcher, custom_message = T.unsafe(nil), &block); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:68 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#68 def opposite_should_method; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:64 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#64 def should_method; end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/handler.rb:60 + # source://rspec-expectations//lib/rspec/expectations/handler.rb#60 def verb; end end end @@ -1152,7 +1065,7 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:6 +# source://rspec-expectations//lib/rspec/expectations/syntax.rb#6 module RSpec::Expectations::Syntax private @@ -1160,49 +1073,49 @@ module RSpec::Expectations::Syntax # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:11 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#11 def default_should_host; end # Disables the `expect` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:80 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#80 def disable_expect(syntax_host = T.unsafe(nil)); end # Disables the `should` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:57 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#57 def disable_should(syntax_host = T.unsafe(nil)); end # Enables the `expect` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:68 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#68 def enable_expect(syntax_host = T.unsafe(nil)); end # Enables the `should` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:38 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#38 def enable_should(syntax_host = T.unsafe(nil)); end # Indicates whether or not the `expect` syntax is enabled. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:96 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#96 def expect_enabled?(syntax_host = T.unsafe(nil)); end # Indicates whether or not the `should` syntax is enabled. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:90 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#90 def should_enabled?(syntax_host = T.unsafe(nil)); end # Instructs rspec-expectations to warn on first usage of `should` or `should_not`. @@ -1210,7 +1123,7 @@ module RSpec::Expectations::Syntax # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:18 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#18 def warn_about_should!; end # Generates a deprecation warning for the given method if no warning @@ -1218,7 +1131,7 @@ module RSpec::Expectations::Syntax # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:25 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#25 def warn_about_should_unless_configured(method_name); end class << self @@ -1226,35 +1139,35 @@ module RSpec::Expectations::Syntax # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:11 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#11 def default_should_host; end # Disables the `expect` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:80 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#80 def disable_expect(syntax_host = T.unsafe(nil)); end # Disables the `should` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:57 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#57 def disable_should(syntax_host = T.unsafe(nil)); end # Enables the `expect` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:68 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#68 def enable_expect(syntax_host = T.unsafe(nil)); end # Enables the `should` syntax. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:38 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#38 def enable_should(syntax_host = T.unsafe(nil)); end # Indicates whether or not the `expect` syntax is enabled. @@ -1262,7 +1175,7 @@ module RSpec::Expectations::Syntax # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:96 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#96 def expect_enabled?(syntax_host = T.unsafe(nil)); end # Indicates whether or not the `should` syntax is enabled. @@ -1270,7 +1183,7 @@ module RSpec::Expectations::Syntax # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:90 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#90 def should_enabled?(syntax_host = T.unsafe(nil)); end # Instructs rspec-expectations to warn on first usage of `should` or `should_not`. @@ -1278,7 +1191,7 @@ module RSpec::Expectations::Syntax # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:18 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#18 def warn_about_should!; end # Generates a deprecation warning for the given method if no warning @@ -1286,7 +1199,7 @@ module RSpec::Expectations::Syntax # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:25 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#25 def warn_about_should_unless_configured(method_name); end end end @@ -1298,36 +1211,34 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:98 +# source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#98 class RSpec::Expectations::ValueExpectationTarget < ::RSpec::Expectations::ExpectationTarget - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:104 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#104 def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:99 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#99 def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end private - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:111 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#111 def enforce_value_expectation(matcher); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/expectation_target.rb:126 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#126 def supports_value_expectations?(matcher); end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/expectations/version.rb:4 +# source://rspec-expectations//lib/rspec/expectations/version.rb#4 module RSpec::Expectations::Version; end -# source://rspec-expectations-3.11.0/lib/rspec/expectations/version.rb:5 +# source://rspec-expectations//lib/rspec/expectations/version.rb#5 RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String) -# @private -# -# source://rspec-core-3.11.0/lib/rspec/core.rb:187 +# source://rspec-core/3.12.0/lib/rspec/core.rb#187 RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) # RSpec::Matchers provides a number of useful matchers we use to define @@ -1350,7 +1261,7 @@ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) # expect([]).to be_empty # => [].empty?() | passes # expect([]).not_to be_empty # => [].empty?() | fails # -# In addtion to prefixing the predicate matchers with "be_", you can also use "be_a_" +# In addition to prefixing the predicate matchers with "be_", you can also use "be_a_" # and "be_an_", making your specs read much more naturally: # # expect("a string").to be_an_instance_of(String) # =>"a string".instance_of?(String) # passes @@ -1552,7 +1463,7 @@ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) # best to find a more positive name for the negated form, such as # `avoid_changing` rather than `not_change`. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/english_phrasing.rb:2 +# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#2 module RSpec::Matchers extend ::RSpec::Matchers::DSL @@ -1637,7 +1548,7 @@ module RSpec::Matchers # @param receiver [Object] # @param message [Symbol] the message to send the receiver # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_changing(*args, &block); end # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. @@ -1670,13 +1581,13 @@ module RSpec::Matchers # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_outputting(*args, &block); end # With no args, matches if any error is raised. # With a named error, matches only if that specific error is raised. - # With a named error and messsage specified as a String, matches only if both match. - # With a named error and messsage specified as a Regexp, matches only if both match. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. # Pass an optional block to perform extra verifications on the exception matched # # @example @@ -1690,7 +1601,7 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_raising(*args, &block); end # Given no argument, matches if a proc throws any Symbol. @@ -1709,7 +1620,7 @@ module RSpec::Matchers # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_throwing(*args, &block); end # Passes if the method called in the expect block yields, regardless @@ -1721,7 +1632,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_yielding_control(*args, &block); end # Designed for use with methods that repeatedly yield (such as @@ -1739,7 +1650,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_yielding_successive_args(*args, &block); end # Given no arguments, matches if the method called in the expect @@ -1766,7 +1677,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_yielding_with_args(*args, &block); end # Passes if the method called in the expect block yields with @@ -1781,7 +1692,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_block_yielding_with_no_args(*args, &block); end # Passes if actual contains all of the expected regardless of order. @@ -1795,7 +1706,7 @@ module RSpec::Matchers # but `=~` is not supported with `expect`. # @see #match_array # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_collection_containing_exactly(*args, &block); end # Matches if the actual value ends with the expected value(s). In the case @@ -1808,7 +1719,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_collection_ending_with(*args, &block); end # Passes if actual includes expected. This works for @@ -1829,7 +1740,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_collection_including(*args, &block); end # Matches if the actual value starts with the expected value(s). In the @@ -1842,17 +1753,17 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_collection_starting_with(*args, &block); end # Passes if actual is falsey (false or nil) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_falsey_value(*args, &block); end # Passes if actual is falsey (false or nil) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_falsy_value(*args, &block); end # Passes if actual includes expected. This works for @@ -1873,7 +1784,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_hash_including(*args, &block); end # Passes if actual.kind_of?(expected) @@ -1883,12 +1794,12 @@ module RSpec::Matchers # expect(5).to be_a_kind_of(Numeric) # expect(5).not_to be_a_kind_of(Float) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_kind_of(*args, &block); end # Passes if actual is nil # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_nil_value(*args, &block); end # Passes if actual covers expected. This works for @@ -1904,7 +1815,7 @@ module RSpec::Matchers # expect(1..10).not_to cover(11) # expect(1..10).not_to cover(5) # fails # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_range_covering(*args, &block); end # Matches if the actual value ends with the expected value(s). In the case @@ -1917,7 +1828,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_string_ending_with(*args, &block); end # Passes if actual includes expected. This works for @@ -1938,7 +1849,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_string_including(*args, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -1971,7 +1882,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_string_matching(*args, &block); end # Matches if the actual value starts with the expected value(s). In the @@ -1984,12 +1895,12 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_string_starting_with(*args, &block); end # Passes if actual is truthy (anything but false or nil) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_truthy_value(*args, &block); end # Given true, false, or nil, will pass if actual value is true, false or @@ -2013,7 +1924,7 @@ module RSpec::Matchers # expect(actual).not_to be_nil # expect(actual).not_to be_[arbitrary_predicate](*args) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_value(*args, &block); end # Passes if actual.between?(min, max). Works with any Comparable object, @@ -2028,7 +1939,7 @@ module RSpec::Matchers # expect(11).not_to be_between(1, 10) # expect(10).not_to be_between(1, 10).exclusive # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_value_between(*args, &block); end # Passes if actual == expected +/- delta @@ -2037,7 +1948,7 @@ module RSpec::Matchers # expect(result).to be_within(0.5).of(3.0) # expect(result).not_to be_within(0.5).of(3.0) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def a_value_within(*args, &block); end # Allows multiple expectations in the provided block to fail, and then @@ -2071,7 +1982,7 @@ module RSpec::Matchers # simply yielded to, so you can trust that anything that works outside # the block should work within it. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:305 + # source://rspec-expectations//lib/rspec/matchers.rb#305 def aggregate_failures(label = T.unsafe(nil), metadata = T.unsafe(nil), &block); end # Passes if the provided matcher passes when checked against all @@ -2087,9 +1998,22 @@ module RSpec::Matchers # as the argument (e.g. `all exclude(:foo)`). # @note You can also use this with compound matchers as well. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:662 + # source://rspec-expectations//lib/rspec/matchers.rb#662 def all(expected); end + # An alternate form of `contain_exactly` that accepts + # the expected contents as a single array arg rather + # that splatted out as individual items. + # + # @example + # expect(results).to contain_exactly(1, 2) + # # is identical to: + # expect(results).to match_array([1, 2]) + # @see #contain_exactly + # + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + def an_array_matching(*args, &block); end + # Passes if actual.instance_of?(expected) # # @example @@ -2097,7 +2021,7 @@ module RSpec::Matchers # expect(5).not_to be_an_instance_of(Numeric) # expect(5).not_to be_an_instance_of(Float) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_instance_of(*args, &block); end # Passes if actual == expected. @@ -2109,7 +2033,7 @@ module RSpec::Matchers # expect(5).to eq(5) # expect(5).not_to eq(3) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_eq_to(*args, &block); end # Passes if `actual.eql?(expected)` @@ -2121,7 +2045,7 @@ module RSpec::Matchers # expect(5).to eql(5) # expect(5).not_to eql(3) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_eql_to(*args, &block); end # Passes if actual.equal?(expected) (object identity). @@ -2133,7 +2057,7 @@ module RSpec::Matchers # expect(5).to equal(5) # Integers are equal # expect("5").not_to equal("5") # Strings that look the same are not the same object # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_equal_to(*args, &block); end # Passes if `actual.exist?` or `actual.exists?` @@ -2141,7 +2065,7 @@ module RSpec::Matchers # @example # expect(File).to exist("path/to/file") # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_existing(*args, &block); end # Passes if actual's attribute values match the expected attributes hash. @@ -2157,7 +2081,7 @@ module RSpec::Matchers # expect(person).to have_attributes(:color => "red") # @note It will fail if actual doesn't respond to any of the expected attributes. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_having_attributes(*args, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2190,7 +2114,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_matching(*args, &block); end # Matches if the target object responds to all of the names @@ -2199,7 +2123,7 @@ module RSpec::Matchers # @example # expect("string").to respond_to(:length) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_responding_to(*args, &block); end # Passes if the submitted block returns true. Yields target to the @@ -2217,7 +2141,7 @@ module RSpec::Matchers # expect(5).to satisfy("be greater than 3") { |n| n > 3 } # @param description [String] optional description to be used for this matcher. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def an_object_satisfying(*args, &block); end # Given true, false, or nil, will pass if actual value is true, false or @@ -2241,12 +2165,12 @@ module RSpec::Matchers # expect(actual).not_to be_nil # expect(actual).not_to be_[arbitrary_predicate](*args) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:349 + # source://rspec-expectations//lib/rspec/matchers.rb#349 def be(*args); end # passes if target.kind_of?(klass) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:355 + # source://rspec-expectations//lib/rspec/matchers.rb#355 def be_a(klass); end # Passes if actual.kind_of?(expected) @@ -2256,12 +2180,12 @@ module RSpec::Matchers # expect(5).to be_a_kind_of(Numeric) # expect(5).not_to be_a_kind_of(Float) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:378 + # source://rspec-expectations//lib/rspec/matchers.rb#378 def be_a_kind_of(expected); end # passes if target.kind_of?(klass) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:355 + # source://rspec-expectations//lib/rspec/matchers.rb#355 def be_an(klass); end # Passes if actual.instance_of?(expected) @@ -2271,7 +2195,7 @@ module RSpec::Matchers # expect(5).not_to be_an_instance_of(Numeric) # expect(5).not_to be_an_instance_of(Float) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:366 + # source://rspec-expectations//lib/rspec/matchers.rb#366 def be_an_instance_of(expected); end # Passes if actual.between?(min, max). Works with any Comparable object, @@ -2286,17 +2210,17 @@ module RSpec::Matchers # expect(11).not_to be_between(1, 10) # expect(10).not_to be_between(1, 10).exclusive # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:395 + # source://rspec-expectations//lib/rspec/matchers.rb#395 def be_between(min, max); end # Passes if actual is falsey (false or nil) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:316 + # source://rspec-expectations//lib/rspec/matchers.rb#316 def be_falsey; end # Passes if actual is falsey (false or nil) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def be_falsy(*args, &block); end # Passes if actual.instance_of?(expected) @@ -2306,7 +2230,7 @@ module RSpec::Matchers # expect(5).not_to be_an_instance_of(Numeric) # expect(5).not_to be_an_instance_of(Float) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:366 + # source://rspec-expectations//lib/rspec/matchers.rb#366 def be_instance_of(expected); end # Passes if actual.kind_of?(expected) @@ -2316,17 +2240,17 @@ module RSpec::Matchers # expect(5).to be_a_kind_of(Numeric) # expect(5).not_to be_a_kind_of(Float) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:378 + # source://rspec-expectations//lib/rspec/matchers.rb#378 def be_kind_of(expected); end # Passes if actual is nil # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:324 + # source://rspec-expectations//lib/rspec/matchers.rb#324 def be_nil; end # Passes if actual is truthy (anything but false or nil) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:310 + # source://rspec-expectations//lib/rspec/matchers.rb#310 def be_truthy; end # Passes if actual == expected +/- delta @@ -2335,7 +2259,7 @@ module RSpec::Matchers # expect(result).to be_within(0.5).of(3.0) # expect(result).not_to be_within(0.5).of(3.0) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:405 + # source://rspec-expectations//lib/rspec/matchers.rb#405 def be_within(delta); end # Applied to a proc, specifies that its execution will cause some value to @@ -2419,7 +2343,7 @@ module RSpec::Matchers # @param receiver [Object] # @param message [Symbol] the message to send the receiver # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:492 + # source://rspec-expectations//lib/rspec/matchers.rb#492 def change(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end # Applied to a proc, specifies that its execution will cause some value to @@ -2503,7 +2427,7 @@ module RSpec::Matchers # @param receiver [Object] # @param message [Symbol] the message to send the receiver # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def changing(*args, &block); end # Passes if actual contains all of the expected regardless of order. @@ -2517,7 +2441,7 @@ module RSpec::Matchers # but `=~` is not supported with `expect`. # @see #match_array # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:510 + # source://rspec-expectations//lib/rspec/matchers.rb#510 def contain_exactly(*items); end # Passes if actual contains all of the expected regardless of order. @@ -2531,7 +2455,7 @@ module RSpec::Matchers # but `=~` is not supported with `expect`. # @see #match_array # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def containing_exactly(*args, &block); end # Passes if actual covers expected. This works for @@ -2547,7 +2471,7 @@ module RSpec::Matchers # expect(1..10).not_to cover(11) # expect(1..10).not_to cover(5) # fails # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:528 + # source://rspec-expectations//lib/rspec/matchers.rb#528 def cover(*values); end # Passes if actual covers expected. This works for @@ -2563,7 +2487,7 @@ module RSpec::Matchers # expect(1..10).not_to cover(11) # expect(1..10).not_to cover(5) # fails # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def covering(*args, &block); end # Matches if the actual value ends with the expected value(s). In the case @@ -2576,7 +2500,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:543 + # source://rspec-expectations//lib/rspec/matchers.rb#543 def end_with(*expected); end # Matches if the actual value ends with the expected value(s). In the case @@ -2589,7 +2513,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def ending_with(*args, &block); end # Passes if actual == expected. @@ -2601,7 +2525,7 @@ module RSpec::Matchers # expect(5).to eq(5) # expect(5).not_to eq(3) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:558 + # source://rspec-expectations//lib/rspec/matchers.rb#558 def eq(expected); end # Passes if actual == expected. @@ -2613,7 +2537,7 @@ module RSpec::Matchers # expect(5).to eq(5) # expect(5).not_to eq(3) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def eq_to(*args, &block); end # Passes if `actual.eql?(expected)` @@ -2625,7 +2549,7 @@ module RSpec::Matchers # expect(5).to eql(5) # expect(5).not_to eql(3) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:572 + # source://rspec-expectations//lib/rspec/matchers.rb#572 def eql(expected); end # Passes if `actual.eql?(expected)` @@ -2637,7 +2561,7 @@ module RSpec::Matchers # expect(5).to eql(5) # expect(5).not_to eql(3) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def eql_to(*args, &block); end # Passes if actual.equal?(expected) (object identity). @@ -2649,7 +2573,7 @@ module RSpec::Matchers # expect(5).to equal(5) # Integers are equal # expect("5").not_to equal("5") # Strings that look the same are not the same object # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:586 + # source://rspec-expectations//lib/rspec/matchers.rb#586 def equal(expected); end # Passes if actual.equal?(expected) (object identity). @@ -2661,7 +2585,7 @@ module RSpec::Matchers # expect(5).to equal(5) # Integers are equal # expect("5").not_to equal("5") # Strings that look the same are not the same object # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def equal_to(*args, &block); end # Passes if `actual.exist?` or `actual.exists?` @@ -2669,7 +2593,7 @@ module RSpec::Matchers # @example # expect(File).to exist("path/to/file") # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:596 + # source://rspec-expectations//lib/rspec/matchers.rb#596 def exist(*args); end # Passes if `actual.exist?` or `actual.exists?` @@ -2677,7 +2601,7 @@ module RSpec::Matchers # @example # expect(File).to exist("path/to/file") # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def existing(*args, &block); end # Supports `expect(actual).to matcher` syntax by wrapping `actual` in an @@ -2690,7 +2614,7 @@ module RSpec::Matchers # @see Expectations::ExpectationTarget#to # @see Expectations::ExpectationTarget#not_to # - # source://rspec-expectations-3.11.0/lib/rspec/expectations/syntax.rb:72 + # source://rspec-expectations//lib/rspec/expectations/syntax.rb#72 def expect(value = T.unsafe(nil), &block); end # Passes if actual's attribute values match the expected attributes hash. @@ -2706,7 +2630,7 @@ module RSpec::Matchers # expect(person).to have_attributes(:color => "red") # @note It will fail if actual doesn't respond to any of the expected attributes. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:616 + # source://rspec-expectations//lib/rspec/matchers.rb#616 def have_attributes(expected); end # Passes if actual's attribute values match the expected attributes hash. @@ -2722,7 +2646,7 @@ module RSpec::Matchers # expect(person).to have_attributes(:color => "red") # @note It will fail if actual doesn't respond to any of the expected attributes. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def having_attributes(*args, &block); end # Passes if actual includes expected. This works for @@ -2743,7 +2667,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:639 + # source://rspec-expectations//lib/rspec/matchers.rb#639 def include(*expected); end # Passes if actual includes expected. This works for @@ -2764,7 +2688,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def including(*args, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2797,7 +2721,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:697 + # source://rspec-expectations//lib/rspec/matchers.rb#697 def match(expected); end # An alternate form of `contain_exactly` that accepts @@ -2810,7 +2734,7 @@ module RSpec::Matchers # expect(results).to match_array([1, 2]) # @see #contain_exactly # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:715 + # source://rspec-expectations//lib/rspec/matchers.rb#715 def match_array(items); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2843,7 +2767,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def match_regex(*args, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2876,7 +2800,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def matching(*args, &block); end # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. @@ -2909,13 +2833,13 @@ module RSpec::Matchers # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:749 + # source://rspec-expectations//lib/rspec/matchers.rb#752 def output(expected = T.unsafe(nil)); end # With no args, matches if any error is raised. # With a named error, matches only if that specific error is raised. - # With a named error and messsage specified as a String, matches only if both match. - # With a named error and messsage specified as a Regexp, matches only if both match. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. # Pass an optional block to perform extra verifications on the exception matched # # @example @@ -2929,13 +2853,13 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:770 + # source://rspec-expectations//lib/rspec/matchers.rb#773 def raise_error(error = T.unsafe(nil), message = T.unsafe(nil), &block); end # With no args, matches if any error is raised. # With a named error, matches only if that specific error is raised. - # With a named error and messsage specified as a String, matches only if both match. - # With a named error and messsage specified as a Regexp, matches only if both match. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. # Pass an optional block to perform extra verifications on the exception matched # # @example @@ -2949,13 +2873,13 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:770 + # source://rspec-expectations//lib/rspec/matchers.rb#773 def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end # With no args, matches if any error is raised. # With a named error, matches only if that specific error is raised. - # With a named error and messsage specified as a String, matches only if both match. - # With a named error and messsage specified as a Regexp, matches only if both match. + # With a named error and message specified as a String, matches only if both match. + # With a named error and message specified as a Regexp, matches only if both match. # Pass an optional block to perform extra verifications on the exception matched # # @example @@ -2969,7 +2893,7 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def raising(*args, &block); end # Matches if the target object responds to all of the names @@ -2978,7 +2902,7 @@ module RSpec::Matchers # @example # expect("string").to respond_to(:length) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:789 + # source://rspec-expectations//lib/rspec/matchers.rb#792 def respond_to(*names); end # Matches if the target object responds to all of the names @@ -2987,7 +2911,7 @@ module RSpec::Matchers # @example # expect("string").to respond_to(:length) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def responding_to(*args, &block); end # Passes if the submitted block returns true. Yields target to the @@ -3005,7 +2929,7 @@ module RSpec::Matchers # expect(5).to satisfy("be greater than 3") { |n| n > 3 } # @param description [String] optional description to be used for this matcher. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:810 + # source://rspec-expectations//lib/rspec/matchers.rb#813 def satisfy(description = T.unsafe(nil), &block); end # Passes if the submitted block returns true. Yields target to the @@ -3023,7 +2947,7 @@ module RSpec::Matchers # expect(5).to satisfy("be greater than 3") { |n| n > 3 } # @param description [String] optional description to be used for this matcher. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def satisfying(*args, &block); end # Matches if the actual value starts with the expected value(s). In the @@ -3036,7 +2960,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:825 + # source://rspec-expectations//lib/rspec/matchers.rb#828 def start_with(*expected); end # Matches if the actual value starts with the expected value(s). In the @@ -3049,7 +2973,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def starting_with(*args, &block); end # Given no argument, matches if a proc throws any Symbol. @@ -3068,7 +2992,7 @@ module RSpec::Matchers # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:847 + # source://rspec-expectations//lib/rspec/matchers.rb#850 def throw_symbol(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end # Given no argument, matches if a proc throws any Symbol. @@ -3087,7 +3011,7 @@ module RSpec::Matchers # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def throwing(*args, &block); end # Passes if actual == expected +/- delta @@ -3096,7 +3020,7 @@ module RSpec::Matchers # expect(result).to be_within(0.5).of(3.0) # expect(result).not_to be_within(0.5).of(3.0) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def within(*args, &block); end # Passes if the method called in the expect block yields, regardless @@ -3108,7 +3032,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:868 + # source://rspec-expectations//lib/rspec/matchers.rb#871 def yield_control; end # Designed for use with methods that repeatedly yield (such as @@ -3126,7 +3050,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:937 + # source://rspec-expectations//lib/rspec/matchers.rb#940 def yield_successive_args(*args); end # Given no arguments, matches if the method called in the expect @@ -3153,7 +3077,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:916 + # source://rspec-expectations//lib/rspec/matchers.rb#919 def yield_with_args(*args); end # Passes if the method called in the expect block yields with @@ -3168,7 +3092,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:886 + # source://rspec-expectations//lib/rspec/matchers.rb#889 def yield_with_no_args; end # Passes if the method called in the expect block yields, regardless @@ -3180,7 +3104,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def yielding_control(*args, &block); end # Designed for use with methods that repeatedly yield (such as @@ -3198,7 +3122,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def yielding_successive_args(*args, &block); end # Given no arguments, matches if the method called in the expect @@ -3225,7 +3149,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def yielding_with_args(*args, &block); end # Passes if the method called in the expect block yields with @@ -3240,23 +3164,23 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:38 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 def yielding_with_no_args(*args, &block); end private - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:958 + # source://rspec-expectations//lib/rspec/matchers.rb#961 def method_missing(method, *args, &block); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:971 + # source://rspec-expectations//lib/rspec/matchers.rb#974 def respond_to_missing?(method, *_arg1); end class << self # Extended from {RSpec::Matchers::DSL#alias_matcher}. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:250 + # source://rspec-expectations//lib/rspec/matchers.rb#250 def alias_matcher(*args, &block); end # Used by rspec-core to clear the state used to generate @@ -3264,7 +3188,7 @@ module RSpec::Matchers # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:11 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#11 def clear_generated_description; end # Delegates to {RSpec::Expectations.configuration}. @@ -3274,7 +3198,7 @@ module RSpec::Matchers # # @return [RSpec::Expectations::Configuration] the configuration object # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:948 + # source://rspec-expectations//lib/rspec/matchers.rb#951 def configuration; end # Generates an an example description based on the last expectation. @@ -3282,44 +3206,44 @@ module RSpec::Matchers # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:19 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#19 def generated_description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:1005 + # source://rspec-expectations//lib/rspec/matchers.rb#1008 def is_a_describable_matcher?(obj); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:985 + # source://rspec-expectations//lib/rspec/matchers.rb#988 def is_a_matcher?(obj); end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:25 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#25 def last_description; end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:5 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 def last_expectation_handler; end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:5 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 def last_expectation_handler=(_arg0); end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:5 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 def last_matcher; end # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/generated_descriptions.rb:5 + # source://rspec-expectations//lib/rspec/matchers/generated_descriptions.rb#5 def last_matcher=(_arg0); end end end @@ -3334,12 +3258,12 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:12 +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#12 class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator # @api private # @return [AliasedMatcher] a new instance of AliasedMatcher # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:13 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#13 def initialize(base_matcher, description_block); end # Provides the description of the aliased matcher. Aliased matchers @@ -3349,7 +3273,7 @@ class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:36 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#36 def description; end # Provides the failure_message of the aliased matcher. Aliased matchers @@ -3359,7 +3283,7 @@ class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:46 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#46 def failure_message; end # Provides the failure_message_when_negated of the aliased matcher. Aliased matchers @@ -3369,7 +3293,7 @@ class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:56 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#56 def failure_message_when_negated; end # Forward messages on to the wrapped matcher. @@ -3381,7 +3305,7 @@ class RSpec::Matchers::AliasedMatcher < ::RSpec::Matchers::MatcherDelegator # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:24 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#24 def method_missing(*_arg0); end end @@ -3390,27 +3314,27 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:65 +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#65 class RSpec::Matchers::AliasedMatcherWithOperatorSupport < ::RSpec::Matchers::AliasedMatcher; end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:71 +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#71 class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:80 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#80 def does_not_match?(*args, &block); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:84 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#84 def failure_message; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:88 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#88 def failure_message_when_negated; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:72 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#72 def matches?(*args, &block); end private @@ -3425,14 +3349,14 @@ class RSpec::Matchers::AliasedNegatedMatcher < ::RSpec::Matchers::AliasedMatcher # message is going to be confusing if we return it as-is, as it represents # the non-negated failure message for a negated match (or vice versa). # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:105 + # source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#105 def optimal_failure_message(same, inverted); end end -# source://rspec-expectations-3.11.0/lib/rspec/matchers/aliased_matcher.rb:94 +# source://rspec-expectations//lib/rspec/matchers/aliased_matcher.rb#94 RSpec::Matchers::AliasedNegatedMatcher::DefaultFailureMessages = RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages -# source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:954 +# source://rspec-expectations//lib/rspec/matchers.rb#957 RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp) # Container module for all built-in matchers. The matcher classes are here @@ -3443,7 +3367,7 @@ RSpec::Matchers::BE_PREDICATE_REGEX = T.let(T.unsafe(nil), Regexp) # rspec-matchers to boot faster, and avoiding loading matchers the user is # not using. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:3 +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#3 module RSpec::Matchers::BuiltIn; end # Provides the implementation for `all`. @@ -3451,18 +3375,18 @@ module RSpec::Matchers::BuiltIn; end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:8 +# source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#8 class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [All] a new instance of All # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:11 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#11 def initialize(matcher); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:37 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#37 def description; end # @api private @@ -3470,63 +3394,63 @@ class RSpec::Matchers::BuiltIn::All < ::RSpec::Matchers::BuiltIn::BaseMatcher # @raise [NotImplementedError] # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:17 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#17 def does_not_match?(_actual); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:9 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#9 def failed_objects; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:23 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#23 def failure_message; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:9 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#9 def matcher; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:63 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#63 def add_new_line_if_needed(message); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:58 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#58 def failure_message_for_item(index, failure_message); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:67 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#67 def indent_multiline_message(message); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:50 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#50 def index_failed_objects; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:74 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#74 def initialize_copy(other); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:80 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#80 def iterable?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/all.rb:43 + # source://rspec-expectations//lib/rspec/matchers/built_in/all.rb#43 def match(_expected, _actual); end end @@ -3541,7 +3465,7 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:14 +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#14 class RSpec::Matchers::BuiltIn::BaseMatcher include ::RSpec::Matchers::Composable include ::RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting @@ -3550,19 +3474,19 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [BaseMatcher] a new instance of BaseMatcher # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:28 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#28 def initialize(expected = T.unsafe(nil)); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:23 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 def actual; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:97 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#97 def actual_formatted; end # Generates a description using {EnglishPhrasing}. @@ -3570,7 +3494,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:60 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#60 def description; end # Matchers are not diffable by default. Override this to make your @@ -3579,25 +3503,25 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:69 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#69 def diffable?; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:23 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 def expected; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:92 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#92 def expected_formatted; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:87 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#87 def expects_call_stack_jump?; end # Used to wrap a block of code that will indicate failure by @@ -3608,19 +3532,19 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#47 def match_unless_raises(*exceptions); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:107 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#107 def matcher_name; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:26 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#26 def matcher_name=(_arg0); end # Indicates if the match is successful. Delegates to `match`, which @@ -3630,7 +3554,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#36 def matches?(actual); end # :nocov: @@ -3641,7 +3565,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:23 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#23 def rescued_exception; end # Most matchers are value matchers (i.e. meant to work with `expect(value)`) @@ -3651,28 +3575,28 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:77 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#77 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:82 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#82 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:129 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#129 def assert_ivars(*expected_ivars); end class << self # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:102 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#102 def matcher_name; end private @@ -3682,7 +3606,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:117 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#117 def underscore(camel_cased_word); end end end @@ -3691,7 +3615,7 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:166 +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#166 module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages # Provides a good generic failure message. Based on `description`. # When subclassing, if you are not satisfied with this failure message @@ -3700,7 +3624,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:172 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172 def failure_message; end # Provides a good generic negative failure message. Based on `description`. @@ -3710,7 +3634,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:181 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#181 def failure_message_when_negated; end class << self @@ -3718,7 +3642,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:186 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#186 def has_default_failure_messages?(matcher); end end end @@ -3726,7 +3650,7 @@ end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:146 +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#146 module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting private @@ -3742,7 +3666,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:156 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#156 def improve_hash_formatting(inspect_string); end class << self @@ -3758,7 +3682,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:156 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#156 def improve_hash_formatting(inspect_string); end end end @@ -3768,7 +3692,7 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/base_matcher.rb:20 +# source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#20 RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED = T.let(T.unsafe(nil), Object) # Provides the implementation for `be`. @@ -3776,54 +3700,54 @@ RSpec::Matchers::BuiltIn::BaseMatcher::UNDEFINED = T.let(T.unsafe(nil), Object) # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:101 +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#101 class RSpec::Matchers::BuiltIn::Be < ::RSpec::Matchers::BuiltIn::BaseMatcher include ::RSpec::Matchers::BuiltIn::BeHelpers # @api private # @return [Be] a new instance of Be # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:104 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#104 def initialize(*args); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def <(operand); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def <=(operand); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def ==(operand); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def ===(operand); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def =~(operand); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def >(operand); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#121 def >=(operand); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:110 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#110 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:116 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#116 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:128 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#128 def match(_, actual); end end @@ -3832,13 +3756,13 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_kind_of.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/be_kind_of.rb#7 class RSpec::Matchers::BuiltIn::BeAKindOf < ::RSpec::Matchers::BuiltIn::BaseMatcher private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_kind_of.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_kind_of.rb#10 def match(expected, actual); end end @@ -3847,19 +3771,19 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_instance_of.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#9 class RSpec::Matchers::BuiltIn::BeAnInstanceOf < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_instance_of.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#10 def description; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_instance_of.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_instance_of.rb#16 def match(expected, actual); end end @@ -3868,18 +3792,18 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#7 class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [BeBetween] a new instance of BeBetween # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#8 def initialize(min, max); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#57 def description; end # Makes the between comparison exclusive. @@ -3888,13 +3812,13 @@ class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(3).to be_between(2, 4).exclusive # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:33 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#33 def exclusive; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:51 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#51 def failure_message; end # Makes the between comparison inclusive. @@ -3905,13 +3829,13 @@ class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatc # @note The matcher is inclusive by default; this simply provides # a way to be more explicit about it. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:21 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#21 def inclusive; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:42 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#42 def matches?(actual); end private @@ -3919,17 +3843,17 @@ class RSpec::Matchers::BuiltIn::BeBetween < ::RSpec::Matchers::BuiltIn::BaseMatc # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:63 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#63 def comparable?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:71 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#71 def compare; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_between.rb:67 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_between.rb#67 def not_comparable_clause; end end @@ -3938,51 +3862,51 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:136 +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#136 class RSpec::Matchers::BuiltIn::BeComparedTo < ::RSpec::Matchers::BuiltIn::BaseMatcher include ::RSpec::Matchers::BuiltIn::BeHelpers # @api private # @return [BeComparedTo] a new instance of BeComparedTo # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:139 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#139 def initialize(operand, operator); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:178 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#178 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:151 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#151 def does_not_match?(actual); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:159 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#159 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:166 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#166 def failure_message_when_negated; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:145 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#145 def matches?(actual); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:184 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#184 def perform_match(actual); end end @@ -3991,47 +3915,47 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:32 +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#32 class RSpec::Matchers::BuiltIn::BeFalsey < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:33 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#33 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:39 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#39 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:45 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#45 def match(_, actual); end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:74 +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#74 module RSpec::Matchers::BuiltIn::BeHelpers private - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:77 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#77 def args_to_s; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:93 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#93 def args_to_sentence; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:89 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#89 def expected_to_sentence; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:85 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#85 def inspected_args; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:81 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#81 def parenthesize(string); end end @@ -4040,25 +3964,25 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:55 +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#55 class RSpec::Matchers::BuiltIn::BeNil < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:56 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#56 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:62 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#62 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:68 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#68 def match(_, actual); end end @@ -4067,40 +3991,40 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:138 +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#138 class RSpec::Matchers::BuiltIn::BePredicate < ::RSpec::Matchers::BuiltIn::DynamicPredicate private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:149 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#149 def failure_to_respond_explanation; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:141 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#141 def predicate; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:157 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#157 def predicate_accessible?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:145 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#145 def predicate_method_name; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:161 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#161 def present_tense_predicate; end end # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:139 +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#139 RSpec::Matchers::BuiltIn::BePredicate::REGEX = T.let(T.unsafe(nil), Regexp) # Provides the implementation for `be_truthy`. @@ -4108,25 +4032,25 @@ RSpec::Matchers::BuiltIn::BePredicate::REGEX = T.let(T.unsafe(nil), Regexp) # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#9 class RSpec::Matchers::BuiltIn::BeTruthy < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#10 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#16 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be.rb:22 + # source://rspec-expectations//lib/rspec/matchers/built_in/be.rb#22 def match(_, actual); end end @@ -4135,44 +4059,44 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#7 class RSpec::Matchers::BuiltIn::BeWithin < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [BeWithin] a new instance of BeWithin # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#8 def initialize(delta); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:52 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#52 def description; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:40 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#40 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:46 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#46 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:32 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#32 def matches?(actual); end # Sets the expected value. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:14 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#14 def of(expected); end # Sets the expected value, and makes the matcher do @@ -4180,59 +4104,59 @@ class RSpec::Matchers::BuiltIn::BeWithin < ::RSpec::Matchers::BuiltIn::BaseMatch # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:24 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#24 def percent_of(expected); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:62 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#62 def needs_expected; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:66 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#66 def not_numeric_clause; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/be_within.rb:58 + # source://rspec-expectations//lib/rspec/matchers/built_in/be_within.rb#58 def numeric?; end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:159 +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#159 module RSpec::Matchers::BuiltIn::CaptureStderr class << self - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:164 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#164 def capture(block); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:160 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#160 def name; end end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:139 +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#139 module RSpec::Matchers::BuiltIn::CaptureStdout class << self - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:144 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#144 def capture(block); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:140 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#140 def name; end end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:179 +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#179 class RSpec::Matchers::BuiltIn::CaptureStreamToTempfile < ::Struct - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:180 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#180 def capture(block); end end @@ -4241,120 +4165,120 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#9 class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Change] a new instance of Change # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:87 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#87 def initialize(receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end # Specifies the delta of the expected change. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#10 def by(expected_delta); end # Specifies a minimum delta of the expected change. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:18 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#18 def by_at_least(minimum); end # Specifies a maximum delta of the expected change. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:26 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#26 def by_at_most(maximum); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:71 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#71 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:50 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#50 def does_not_match?(event_proc); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#57 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:64 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#64 def failure_message_when_negated; end # Specifies the original value. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:40 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#40 def from(value); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:45 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#45 def matches?(event_proc); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:76 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#76 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:81 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#81 def supports_value_expectations?; end # Specifies the new value you expect. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:34 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#34 def to(value); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:93 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#93 def change_details; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:119 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#119 def negative_failure_reason; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:97 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#97 def perform_change(event_proc); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:114 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#114 def positive_failure_reason; end # @api private # @raise [SyntaxError] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:109 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#109 def raise_block_syntax_error; end end @@ -4374,47 +4298,47 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:352 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#352 class RSpec::Matchers::BuiltIn::ChangeDetails # @return [ChangeDetails] a new instance of ChangeDetails # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:357 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#357 def initialize(matcher_name, receiver = T.unsafe(nil), message = T.unsafe(nil), &block); end # Returns the value of attribute actual_after. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:353 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#353 def actual_after; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:418 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#418 def actual_delta; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:402 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#402 def changed?; end # @yield [@actual_before] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:389 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#389 def perform_change(event_proc); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:378 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#378 def value_representation; end private - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:424 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#424 def evaluate_value_proc; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:438 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#438 def extract_value_block_snippet; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:428 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#428 def message_notation(receiver, message); end end -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:355 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#355 module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end # Used to specify a change from a specific value @@ -4422,39 +4346,39 @@ module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:270 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#270 class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange # @api private # @return [ChangeFromValue] a new instance of ChangeFromValue # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:271 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#271 def initialize(change_details, expected_before); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:285 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#285 def does_not_match?(event_proc); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:295 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#295 def failure_message_when_negated; end # Specifies the new value you expect. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:278 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#278 def to(value); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:303 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#303 def change_description; end end @@ -4462,18 +4386,18 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:128 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#128 class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [ChangeRelatively] a new instance of ChangeRelatively # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:129 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#129 def initialize(change_details, expected_delta, relativity, &comparer); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:156 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#156 def description; end # @api private @@ -4481,41 +4405,41 @@ class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::B # @raise [NotImplementedError] # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:150 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#150 def does_not_match?(_event_proc); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:137 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#137 def failure_message; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:144 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#144 def matches?(event_proc); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:162 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#162 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:167 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#167 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:173 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#173 def failure_reason; end end @@ -4524,12 +4448,12 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:311 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#311 class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange # @api private # @return [ChangeToValue] a new instance of ChangeToValue # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:312 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#312 def initialize(change_details, expected_after); end # @api private @@ -4537,21 +4461,21 @@ class RSpec::Matchers::BuiltIn::ChangeToValue < ::RSpec::Matchers::BuiltIn::Spec # @raise [NotImplementedError] # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:326 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#326 def does_not_match?(_event_proc); end # Specifies the original value. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:319 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#319 def from(value); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:333 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#333 def change_description; end end @@ -4559,24 +4483,24 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#7 class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Compound] a new instance of Compound # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#10 def initialize(matcher_1, matcher_2); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:25 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#25 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:49 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#49 def diffable?; end # @api private @@ -4584,113 +4508,113 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch # @raise [NotImplementedError] # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#16 def does_not_match?(_actual); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 def evaluator; end # @api private # @return [RSpec::Matchers::ExpectedsForMultipleDiffs] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:55 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#55 def expected; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:42 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#42 def expects_call_stack_jump?; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 def matcher_1; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#8 def matcher_2; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:30 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#30 def supports_block_expectations?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#36 def supports_value_expectations?; end protected # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:62 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#62 def diffable_matcher_list; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:93 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#93 def compound_failure_message; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:125 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#125 def diffable_matcher_list_for(matcher); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:87 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#87 def indent_multiline_message(message); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:71 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#71 def initialize_copy(other); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:77 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#77 def match(_expected, actual); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:99 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#99 def matcher_1_matches?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:103 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#103 def matcher_2_matches?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:119 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#119 def matcher_is_diffable?(matcher); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:107 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#107 def matcher_supports_block_expectations?(matcher); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:113 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#113 def matcher_supports_value_expectations?(matcher); end end @@ -4698,24 +4622,24 @@ end # # @api public # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:244 +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#244 class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:245 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#245 def failure_message; end private # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:262 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#262 def conjunction; end # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:257 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#257 def match(*_arg0); end end @@ -4736,18 +4660,18 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:156 +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#156 class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator # @api private # @return [NestedEvaluator] a new instance of NestedEvaluator # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:157 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#157 def initialize(actual, matcher_1, matcher_2); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:170 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#170 def matcher_matches?(matcher); end private @@ -4758,7 +4682,7 @@ class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:184 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#184 def inner_matcher_block(outer_args); end # For a matcher like `raise_error` or `throw_symbol`, where the block will jump @@ -4791,14 +4715,14 @@ class RSpec::Matchers::BuiltIn::Compound::NestedEvaluator # @api private # @raise [ArgumentError] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:224 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#224 def order_block_matchers; end class << self # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:233 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#233 def matcher_expects_call_stack_jump?(matcher); end end end @@ -4807,24 +4731,24 @@ end # # @api public # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:271 +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#271 class RSpec::Matchers::BuiltIn::Compound::Or < ::RSpec::Matchers::BuiltIn::Compound # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:272 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#272 def failure_message; end private # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:283 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#283 def conjunction; end # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:278 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#278 def match(*_arg0); end end @@ -4832,18 +4756,18 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:132 +# source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#132 class RSpec::Matchers::BuiltIn::Compound::SequentialEvaluator # @api private # @return [SequentialEvaluator] a new instance of SequentialEvaluator # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:133 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#133 def initialize(actual, *_arg1); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/compound.rb:137 + # source://rspec-expectations//lib/rspec/matchers/built_in/compound.rb#137 def matcher_matches?(matcher); end end @@ -4852,71 +4776,77 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:10 +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#10 class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:29 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#29 def description; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:11 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#11 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:22 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#22 def failure_message_when_negated; end + # @api private + # @return [Boolean] + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#34 + def matches?(actual); end + private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#56 def actual_collection_line; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:127 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#135 def best_solution; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:86 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#94 def convert_actual_to_an_array; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:60 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#68 def describe_collection(collection, surface_descriptions = T.unsafe(nil)); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:44 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#52 def expected_collection_line; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:56 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#64 def extra_elements_line; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#129 def extra_items; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#44 def generate_failure_message; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:73 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#81 def match(_expected, _actual); end # This cannot always work (e.g. when dealing with unsortable items, @@ -4927,38 +4857,38 @@ class RSpec::Matchers::BuiltIn::ContainExactly < ::RSpec::Matchers::BuiltIn::Bas # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:82 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#90 def match_when_sorted?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:68 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#76 def message_line(prefix, collection, surface_descriptions = T.unsafe(nil)); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:52 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#60 def missing_elements_line; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:115 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#123 def missing_items; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:131 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#139 def pairings_maximizer; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:96 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#104 def safe_sort(array); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:110 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#118 def to_a_disallowed?(object); end end @@ -4993,55 +4923,55 @@ end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:178 +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#186 class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer # @api private # @return [PairingsMaximizer] a new instance of PairingsMaximizer # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:215 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#223 def initialize(expected_to_actual_matched_indexes, actual_to_expected_matched_indexes); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:213 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#221 def actual_to_expected_matched_indexes; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:213 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#221 def expected_to_actual_matched_indexes; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:229 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#237 def find_best_solution; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:213 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#221 def solution; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:291 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#299 def apply_pairing_to(indeterminates, original_matches, other_list_index); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:275 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#283 def best_solution_for_pairing(expected_index, actual_index); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:255 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#263 def categorize_indexes(indexes_to_categorize, other_indexes); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:270 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#278 def reciprocal_single_match?(matches, index, other_list); end end @@ -5050,10 +4980,10 @@ end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:249 +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#257 class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::NullSolution class << self - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:250 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#258 def worse_than?(_other); end end end @@ -5061,23 +4991,23 @@ end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:180 +# source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < ::Struct # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:202 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#210 def +(derived_candidate_solution); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:186 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#194 def candidate?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:191 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#199 def ideal?; end # Returns the value of attribute indeterminate_actual_indexes @@ -5090,7 +5020,7 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: # @param value [Object] the value to set the attribute indeterminate_actual_indexes to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:180 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 def indeterminate_actual_indexes=(_); end # Returns the value of attribute indeterminate_expected_indexes @@ -5103,7 +5033,7 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: # @param value [Object] the value to set the attribute indeterminate_expected_indexes to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:180 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 def indeterminate_expected_indexes=(_); end # Returns the value of attribute unmatched_actual_indexes @@ -5116,7 +5046,7 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: # @param value [Object] the value to set the attribute unmatched_actual_indexes to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:180 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 def unmatched_actual_indexes=(_); end # Returns the value of attribute unmatched_expected_indexes @@ -5129,18 +5059,18 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: # @param value [Object] the value to set the attribute unmatched_expected_indexes to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:180 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#188 def unmatched_expected_indexes=(_); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:198 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#206 def unmatched_item_count; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/contain_exactly.rb:182 + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def worse_than?(other); end class << self @@ -5151,140 +5081,140 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: end end -# Asbtract class to implement `once`, `at_least` and other +# Abstract class to implement `once`, `at_least` and other # count constraints. # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#7 module RSpec::Matchers::BuiltIn::CountExpectation # Specifies the minimum number of times the method is expected to match # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:42 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#42 def at_least(number); end # Specifies the maximum number of times the method is expected to match # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:35 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#35 def at_most(number); end # Specifies that the method is expected to match the given number of times. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:28 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#28 def exactly(number); end # Specifies that the method is expected to match once. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#10 def once; end # Specifies that the method is expected to match thrice. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:22 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#22 def thrice; end # No-op. Provides syntactic sugar. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:49 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#49 def times; end # Specifies that the method is expected to match twice. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#16 def twice; end protected # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:55 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#55 def count_expectation_type; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:55 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#55 def expected_count; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:120 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#120 def count_constraint_to_number(n); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:139 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#139 def count_expectation_description; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:143 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#143 def count_failure_reason(action); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:60 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#60 def cover?(count, number); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:69 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#69 def expected_count_matches?(actual_count); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:77 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#77 def has_expected_count?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:157 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#157 def human_readable_count(count); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:148 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#148 def human_readable_expectation_type; end # @api private # @raise [ArgumentError] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:100 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#100 def raise_impossible_count_expectation(count); end # @api private # @raise [ArgumentError] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:109 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#109 def raise_unsupported_count_expectation; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:81 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#81 def set_expected_count(relativity, n); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/count_expectation.rb:132 + # source://rspec-expectations//lib/rspec/matchers/built_in/count_expectation.rb#132 def unsupported_count_expectation?(relativity); end end @@ -5293,24 +5223,24 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/cover.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#7 class RSpec::Matchers::BuiltIn::Cover < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Cover] a new instance of Cover # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/cover.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#8 def initialize(*expected); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/cover.rb:17 + # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#17 def does_not_match?(range); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/cover.rb:12 + # source://rspec-expectations//lib/rspec/matchers/built_in/cover.rb#12 def matches?(range); end end @@ -5319,90 +5249,90 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#7 class RSpec::Matchers::BuiltIn::DynamicPredicate < ::RSpec::Matchers::BuiltIn::BaseMatcher include ::RSpec::Matchers::BuiltIn::BeHelpers # @api private # @return [DynamicPredicate] a new instance of DynamicPredicate # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#10 def initialize(method_name, *args, &block); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:43 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#43 def description; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:23 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#23 def does_not_match?(actual, &block); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:31 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#31 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:37 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#37 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#16 def matches?(actual, &block); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:99 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#99 def expectation_of(value); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:94 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#94 def failure_message_expecting(value); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:115 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#115 def failure_to_respond_explanation; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:90 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#90 def method_description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:49 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#49 def predicate_accessible?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:74 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#74 def predicate_matches?(value = T.unsafe(nil)); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:70 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#70 def predicate_method_name; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:66 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#66 def predicate_result; end # :nocov: @@ -5410,17 +5340,17 @@ class RSpec::Matchers::BuiltIn::DynamicPredicate < ::RSpec::Matchers::BuiltIn::B # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:61 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#61 def private_predicate?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:82 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#82 def root; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:109 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#109 def validity_message; end end @@ -5429,20 +5359,20 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:81 +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#81 class RSpec::Matchers::BuiltIn::EndWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith private # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:88 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#88 def element_matches?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:84 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#84 def subset_matches?; end end @@ -5451,37 +5381,37 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eq.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#9 class RSpec::Matchers::BuiltIn::Eq < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eq.rb:22 + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#22 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eq.rb:28 + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#28 def diffable?; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eq.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#10 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eq.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#16 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eq.rb:34 + # source://rspec-expectations//lib/rspec/matchers/built_in/eq.rb#34 def match(expected, actual); end end @@ -5490,31 +5420,31 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eql.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#9 class RSpec::Matchers::BuiltIn::Eql < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eql.rb:22 + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#22 def diffable?; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eql.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#10 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eql.rb:16 + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#16 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/eql.rb:28 + # source://rspec-expectations//lib/rspec/matchers/built_in/eql.rb#28 def match(expected, actual); end end @@ -5523,63 +5453,63 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#9 class RSpec::Matchers::BuiltIn::Equal < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:33 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#33 def diffable?; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#10 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:20 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#20 def failure_message_when_negated; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:49 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#49 def actual_inspected; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:61 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#61 def detailed_failure_message; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:45 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#45 def expected_is_a_literal_singleton?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:75 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#75 def inspect_object(o); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:39 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#39 def match(expected, actual); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#57 def simple_failure_message; end end # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/equal.rb:43 +# source://rspec-expectations//lib/rspec/matchers/built_in/equal.rb#43 RSpec::Matchers::BuiltIn::Equal::LITERAL_SINGLETONS = T.let(T.unsafe(nil), Array) # Provides the implementation for `exist`. @@ -5587,36 +5517,36 @@ RSpec::Matchers::BuiltIn::Equal::LITERAL_SINGLETONS = T.let(T.unsafe(nil), Array # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#7 class RSpec::Matchers::BuiltIn::Exist < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Exist] a new instance of Exist # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#8 def initialize(*expected); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:22 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#22 def does_not_match?(actual); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:30 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#30 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#36 def failure_message_when_negated; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:14 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#14 def matches?(actual); end end @@ -5625,46 +5555,46 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:45 +# source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#45 class RSpec::Matchers::BuiltIn::Exist::ExistenceTest < ::Struct # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:52 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#52 def actual_exists?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:46 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#46 def valid_test?; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:58 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#58 def validity_message; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:83 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#83 def deprecated(predicate, actual); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:75 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#75 def existence_values; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:79 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#79 def predicates; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/exist.rb:71 + # source://rspec-expectations//lib/rspec/matchers/built_in/exist.rb#71 def uniq_truthy_values; end end @@ -5673,19 +5603,19 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:126 +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#126 class RSpec::Matchers::BuiltIn::Has < ::RSpec::Matchers::BuiltIn::DynamicPredicate private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:129 + # source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#129 def predicate; end end # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/has.rb:127 +# source://rspec-expectations//lib/rspec/matchers/built_in/has.rb#127 RSpec::Matchers::BuiltIn::Has::REGEX = T.let(T.unsafe(nil), Regexp) # Provides the implementation for `have_attributes`. @@ -5693,60 +5623,60 @@ RSpec::Matchers::BuiltIn::Has::REGEX = T.let(T.unsafe(nil), Regexp) # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:8 +# source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#8 class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [HaveAttributes] a new instance of HaveAttributes # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:11 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#11 def initialize(expected); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:19 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#19 def actual; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:43 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#43 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:50 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#50 def diffable?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:34 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#34 def does_not_match?(actual); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:56 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#56 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:64 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#64 def failure_message_when_negated; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:25 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#25 def matches?(actual); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:9 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#9 def respond_to_failed; end private @@ -5754,38 +5684,38 @@ class RSpec::Matchers::BuiltIn::HaveAttributes < ::RSpec::Matchers::BuiltIn::Bas # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:85 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#85 def actual_has_attribute?(attribute_key, attribute_value); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:70 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#70 def cache_all_values; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:107 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#107 def formatted_values; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:78 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#78 def perform_match(predicate); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:89 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#89 def respond_to_attributes?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:99 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#99 def respond_to_failure_message_or; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/have_attributes.rb:95 + # source://rspec-expectations//lib/rspec/matchers/built_in/have_attributes.rb#95 def respond_to_matcher; end end @@ -5794,62 +5724,62 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#9 class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatcher include ::RSpec::Matchers::BuiltIn::CountExpectation # @api private # @return [Include] a new instance of Include # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:15 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#15 def initialize(*expecteds); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:43 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#43 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:61 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#61 def diffable?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:32 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#32 def does_not_match?(actual); end # @api private # @return [Array, Hash] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:67 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#67 def expected; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:12 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#12 def expecteds; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:49 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#49 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:55 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#55 def failure_message_when_negated; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:21 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#21 def matches?(actual); end private @@ -5857,85 +5787,85 @@ class RSpec::Matchers::BuiltIn::Include < ::RSpec::Matchers::BuiltIn::BaseMatche # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:160 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#160 def actual_collection_includes?(expected_item); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:153 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#153 def actual_hash_has_key?(expected_key); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:141 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#141 def actual_hash_includes?(expected_key, expected_value); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:77 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#77 def check_actual?(actual); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:83 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#83 def check_expected_count?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:149 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#149 def comparing_hash_keys?(expected_item); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:137 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#137 def comparing_hash_to_a_subset?(expected_item); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:200 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#200 def convert_to_hash?(obj); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:174 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#174 def count_enumerable(expected_item); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:179 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#179 def count_inclusions; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:191 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#191 def diff_would_wrongly_highlight_matched_item?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:120 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#120 def excluded_from_actual; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:95 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#95 def format_failure_message(preposition); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:115 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#115 def perform_match(&block); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/include.rb:106 + # source://rspec-expectations//lib/rspec/matchers/built_in/include.rb#106 def readable_list_of(items); end end @@ -5944,24 +5874,24 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#7 class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Match] a new instance of Match # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#8 def initialize(expected); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:15 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#15 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:25 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#25 def diffable?; end # Used to specify the captures we match against @@ -5969,7 +5899,7 @@ class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [self] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:31 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#31 def with_captures(*captures); end private @@ -5977,17 +5907,17 @@ class RSpec::Matchers::BuiltIn::Match < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:45 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#45 def can_safely_call_match?(expected, actual); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:38 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#38 def match(expected, actual); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:52 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#52 def match_captures(expected, actual); end end @@ -5995,21 +5925,21 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:116 +# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#116 class RSpec::Matchers::BuiltIn::NegativeOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:117 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#117 def __delegate_operator(actual, operator, expected); end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:128 +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#128 module RSpec::Matchers::BuiltIn::NullCapture class << self - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:133 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#133 def capture(_block); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:129 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#129 def name; end end end @@ -6020,95 +5950,95 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:10 +# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#10 class RSpec::Matchers::BuiltIn::OperatorMatcher # @api private # @return [OperatorMatcher] a new instance of OperatorMatcher # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:41 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#41 def initialize(actual); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#57 def !=(_expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#57 def !~(_expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def <(expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def <=(expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def ==(expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def ===(expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def =~(expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def >(expected); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:47 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#47 def >=(expected); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:76 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#76 def description; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:70 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#70 def fail_with_message(message); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:88 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#88 def eval_match(actual, operator, expected); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:82 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#82 def has_non_generic_implementation_of?(op); end class << self # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:29 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#29 def get(klass, operator); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:18 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#18 def register(klass, operator, matcher); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:13 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#13 def registry; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:24 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#24 def unregister(klass, operator); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:46 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#46 def use_custom_matcher_or_delegate(operator); end end end @@ -6118,48 +6048,48 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#9 class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Output] a new instance of Output # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#10 def initialize(expected); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:76 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#76 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:86 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#86 def diffable?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:24 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#24 def does_not_match?(block); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:64 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#64 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:70 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#70 def failure_message_when_negated; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:17 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#17 def matches?(block); end # Indicates this matcher matches against a block. @@ -6167,7 +6097,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [True] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:93 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#93 def supports_block_expectations?; end # Indicates this matcher matches against a block only. @@ -6175,7 +6105,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [False] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:100 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#100 def supports_value_expectations?; end # Tells the matcher to match against stderr. @@ -6183,7 +6113,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:39 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#39 def to_stderr; end # Tells the matcher to match against stderr. @@ -6192,7 +6122,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#57 def to_stderr_from_any_process; end # Tells the matcher to match against stdout. @@ -6200,7 +6130,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:31 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#31 def to_stdout; end # Tells the matcher to match against stdout. @@ -6209,30 +6139,30 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#48 def to_stdout_from_any_process; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:121 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#121 def actual_output_description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:106 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#106 def captured?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:116 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#116 def negative_failure_reason; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/output.rb:110 + # source://rspec-expectations//lib/rspec/matchers/built_in/output.rb#110 def positive_failure_reason; end end @@ -6240,9 +6170,9 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:97 +# source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#97 class RSpec::Matchers::BuiltIn::PositiveOperatorMatcher < ::RSpec::Matchers::BuiltIn::OperatorMatcher - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/operators.rb:98 + # source://rspec-expectations//lib/rspec/matchers/built_in/operators.rb#98 def __delegate_operator(actual, operator, expected); end end @@ -6251,183 +6181,183 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#9 class RSpec::Matchers::BuiltIn::RaiseError include ::RSpec::Matchers::Composable # @api private # @return [RaiseError] a new instance of RaiseError # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:18 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#18 def initialize(expected_error_or_message, expected_message, &block); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:113 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#113 def description; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:79 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#79 def does_not_match?(given_proc); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:95 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#95 def expects_call_stack_jump?; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:101 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#101 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:107 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#107 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#48 def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:85 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#85 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:90 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#90 def supports_value_expectations?; end # Specifies the expected error message. # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:39 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#39 def with_message(expected_message); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:119 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#119 def actual_error_message; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:133 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#133 def block_matches?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:129 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#129 def error_and_message_match?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:141 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#141 def eval_block; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:125 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#125 def expectation_matched?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:222 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#222 def expected_error; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:253 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#253 def expecting_specific_exception?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:237 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#237 def format_backtrace(backtrace); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:242 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#242 def given_error; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:172 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#172 def handle_warning(message); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:257 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#257 def raise_message_already_set; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:137 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#137 def ready_to_eval_block?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:151 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#151 def verify_message; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:184 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#184 def warn_about_bare_error!; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:176 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#176 def warn_about_bare_error?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:210 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#210 def warn_about_negative_false_positive!(expression); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:197 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#197 def warn_about_nil_error!; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:180 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#180 def warn_about_nil_error?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:156 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#156 def warn_for_negative_false_positives!; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:262 + # source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#262 def warning; end end @@ -6438,19 +6368,19 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/raise_error.rb:16 +# source://rspec-expectations//lib/rspec/matchers/built_in/raise_error.rb#16 RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue = T.let(T.unsafe(nil), Object) # Used to wrap match data and make it reliable for 1.8.7 # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:72 +# source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#72 class RSpec::Matchers::BuiltIn::ReliableMatchData # @api private # @return [ReliableMatchData] a new instance of ReliableMatchData # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:73 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#73 def initialize(match_data); end # returns an array of captures from the match data @@ -6458,7 +6388,7 @@ class RSpec::Matchers::BuiltIn::ReliableMatchData # @api private # @return Array # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:96 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#96 def captures; end # Returns match data names for named captures @@ -6466,14 +6396,14 @@ class RSpec::Matchers::BuiltIn::ReliableMatchData # @api private # @return Array # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:88 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#88 def names; end protected # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/match.rb:102 + # source://rspec-expectations//lib/rspec/matchers/built_in/match.rb#102 def match_data; end end @@ -6482,12 +6412,12 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:9 +# source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#9 class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [RespondTo] a new instance of RespondTo # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#10 def initialize(*names); end # Specifies that the method accepts any keyword, i.e. the method has @@ -6497,7 +6427,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with_any_keywords # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 def and_any_keywords; end # Specifies keyword arguments, if any. @@ -6508,7 +6438,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example with an expected number of arguments # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 def and_keywords(*keywords); end # Specifies that the number of arguments has no upper limit, i.e. the @@ -6518,7 +6448,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with_unlimited_arguments # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:60 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 def and_unlimited_arguments; end # No-op. Intended to be used as syntactic sugar when using `with`. @@ -6527,7 +6457,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with(3).arguments # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:71 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 def argument; end # No-op. Intended to be used as syntactic sugar when using `with`. @@ -6536,46 +6466,46 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with(3).arguments # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:71 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 def arguments; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:100 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#100 def description; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:82 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#82 def does_not_match?(actual); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:88 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#88 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:94 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#94 def failure_message_when_negated; end # Used by other matchers to suppress a check # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:106 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#106 def ignoring_method_signature_failure!; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:77 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#77 def matches?(actual); end # Specifies the number of expected arguments. @@ -6584,7 +6514,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with(3).arguments # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:24 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#24 def with(n); end # Specifies that the method accepts any keyword, i.e. the method has @@ -6594,7 +6524,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with_any_keywords # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 def with_any_keywords; end # Specifies keyword arguments, if any. @@ -6605,7 +6535,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example with an expected number of arguments # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 def with_keywords(*keywords); end # Specifies that the number of arguments has no upper limit, i.e. the @@ -6615,68 +6545,68 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with_unlimited_arguments # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:60 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 def with_unlimited_arguments; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:112 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#112 def find_failing_method_names(actual, filter_method); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:119 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#119 def matches_arity?(actual, name); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:156 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#156 def pp_names; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:130 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#130 def with_arity; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:139 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#139 def with_arity_string; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:143 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#143 def with_keywords_string; end end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:161 +# source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#161 class RSpec::Matchers::BuiltIn::RespondTo::ArityCheck # @api private # @return [ArityCheck] a new instance of ArityCheck # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:162 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#162 def initialize(expected_arity, expected_keywords, arbitrary_keywords, unlimited_arguments); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:178 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#178 def matches?(actual, name); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:187 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#187 def method_signature_for(actual, name); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/respond_to.rb:183 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#183 def verifier_for(actual, name); end end @@ -6685,49 +6615,49 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#7 class RSpec::Matchers::BuiltIn::Satisfy < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [Satisfy] a new instance of Satisfy # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#8 def initialize(description = T.unsafe(nil), &block); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:21 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#21 def description; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:27 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#27 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:33 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#33 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:14 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#14 def matches?(actual, &block); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:40 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#40 def block_representation; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/satisfy.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/satisfy.rb#48 def extract_block_snippet; end end @@ -6735,90 +6665,90 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:182 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#182 class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [SpecificValuesChange] a new instance of SpecificValuesChange # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:185 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#185 def initialize(change_details, from, to); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:197 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#197 def description; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:202 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#202 def failure_message; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:192 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#192 def matches?(event_proc); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:210 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#210 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:215 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#215 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:244 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#244 def after_value_failure; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:238 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#238 def before_value_failure; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:255 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#255 def did_change_failure; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:250 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#250 def did_not_change_failure; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:234 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#234 def matches_after?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:261 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#261 def not_given_a_block_failure; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:221 + # source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#221 def perform_change(event_proc); end end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/change.rb:183 +# source://rspec-expectations//lib/rspec/matchers/built_in/change.rb#183 RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject # For RSpec 3.1, the base class was named `StartAndEndWith`. For SemVer reasons, @@ -6827,7 +6757,7 @@ RSpec::Matchers::BuiltIn::SpecificValuesChange::MATCH_ANYTHING = BasicObject # @deprecated Use StartOrEndWith instead. # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:61 +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#61 RSpec::Matchers::BuiltIn::StartAndEndWith = RSpec::Matchers::BuiltIn::StartOrEndWith # Base class for the `end_with` and `start_with` matchers. @@ -6835,37 +6765,37 @@ RSpec::Matchers::BuiltIn::StartAndEndWith = RSpec::Matchers::BuiltIn::StartOrEnd # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#7 class RSpec::Matchers::BuiltIn::StartOrEndWith < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [StartOrEndWith] a new instance of StartOrEndWith # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:8 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#8 def initialize(*expected); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:27 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#27 def description; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:15 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#15 def failure_message; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:36 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#36 def match(_expected, actual); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:48 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#48 def subsets_comparable?; end end @@ -6874,20 +6804,20 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:66 +# source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#66 class RSpec::Matchers::BuiltIn::StartWith < ::RSpec::Matchers::BuiltIn::StartOrEndWith private # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:73 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#73 def element_matches?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/start_or_end_with.rb:69 + # source://rspec-expectations//lib/rspec/matchers/built_in/start_or_end_with.rb#69 def subset_matches?; end end @@ -6896,51 +6826,51 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:7 +# source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#7 class RSpec::Matchers::BuiltIn::ThrowSymbol include ::RSpec::Matchers::Composable # @api private # @return [ThrowSymbol] a new instance of ThrowSymbol # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:10 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#10 def initialize(expected_symbol = T.unsafe(nil), expected_arg = T.unsafe(nil)); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:86 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#86 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:68 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#68 def does_not_match?(given_proc); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:103 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#103 def expects_call_stack_jump?; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:74 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#74 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:80 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#80 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:18 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#18 def matches?(given_proc); end # Indicates this matcher matches against a block. @@ -6948,35 +6878,35 @@ class RSpec::Matchers::BuiltIn::ThrowSymbol # @api private # @return [True] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:93 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#93 def supports_block_expectations?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:98 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#98 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:109 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#109 def actual_result; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:118 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#118 def caught; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:114 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#114 def expected(symbol_desc = T.unsafe(nil)); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/throw_symbol.rb:122 + # source://rspec-expectations//lib/rspec/matchers/built_in/throw_symbol.rb#122 def throw_description(symbol, arg); end end @@ -6985,7 +6915,7 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:101 +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#101 class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseMatcher include ::RSpec::Matchers::BuiltIn::CountExpectation @@ -6993,47 +6923,47 @@ class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseM # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:111 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#111 def does_not_match?(block); end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:117 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#117 def failure_message; end # @api private # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:123 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#123 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:104 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#104 def matches?(block); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:128 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#128 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:133 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#133 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:139 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#139 def failure_reason; end end @@ -7043,14 +6973,14 @@ end # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:12 +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#12 class RSpec::Matchers::BuiltIn::YieldProbe # @return [YieldProbe] a new instance of YieldProbe # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:21 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#21 def initialize(block, &callback); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:68 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#68 def assert_used!; end # :nocov: @@ -7060,54 +6990,54 @@ class RSpec::Matchers::BuiltIn::YieldProbe # when the user forgets to accept an arg in their block. They'll still get # the `assert_used!` error message from above, which is sufficient. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:78 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#78 def assert_valid_expect_block!; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:29 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#29 def has_block?; end # Returns the value of attribute num_yields. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:19 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 def num_yields; end # Sets the attribute num_yields # # @param value the value to set the attribute num_yields to. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:19 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 def num_yields=(_arg0); end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:33 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#33 def probe; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:53 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#53 def single_yield_args; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:40 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#40 def to_proc; end # Returns the value of attribute yielded_args. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:19 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 def yielded_args; end # Sets the attribute yielded_args # # @param value the value to set the attribute yielded_args to. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:19 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#19 def yielded_args=(_arg0); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:57 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#57 def yielded_once?(matcher_name); end class << self - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:13 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#13 def probe(block, &callback); end end end @@ -7117,74 +7047,74 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:296 +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#296 class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [YieldSuccessiveArgs] a new instance of YieldSuccessiveArgs # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:297 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#297 def initialize(*args); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:337 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#337 def description; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:320 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#320 def does_not_match?(block); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:325 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#325 def failure_message; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:331 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#331 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:302 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#302 def matches?(block); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:342 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#342 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:347 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#347 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:353 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#353 def expected_arg_description; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:365 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#365 def negative_failure_reason; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:357 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#357 def positive_failure_reason; end end @@ -7193,58 +7123,58 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:199 +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#199 class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @return [YieldWithArgs] a new instance of YieldWithArgs # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:200 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#200 def initialize(*args); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:233 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#233 def description; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:218 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#218 def does_not_match?(block); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:223 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#223 def failure_message; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:228 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#228 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:205 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#205 def matches?(block); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:240 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#240 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:245 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#245 def supports_value_expectations?; end private @@ -7252,28 +7182,28 @@ class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::Base # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:288 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#288 def all_args_match?; end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:273 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#273 def args_currently_match?; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:257 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#257 def expected_arg_description; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:261 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#261 def negative_failure_reason; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:251 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#251 def positive_failure_reason; end end @@ -7282,58 +7212,58 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:150 +# source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#150 class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::BaseMatcher # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:158 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#158 def does_not_match?(block); end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:163 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#163 def failure_message; end # @api private # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:168 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#168 def failure_message_when_negated; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:151 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#151 def matches?(block); end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:173 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#173 def supports_block_expectations?; end # @api private # @private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:178 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#178 def supports_value_expectations?; end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:190 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#190 def negative_failure_reason; end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/built_in/yield.rb:184 + # source://rspec-expectations//lib/rspec/matchers/built_in/yield.rb#184 def positive_failure_reason; end end @@ -7343,7 +7273,7 @@ end # # @api public # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:10 +# source://rspec-expectations//lib/rspec/matchers/composable.rb#10 module RSpec::Matchers::Composable # Creates a compound `and` expectation. The matcher will # only pass if both sub-matchers pass. @@ -7357,7 +7287,7 @@ module RSpec::Matchers::Composable # @note The negative form (`expect(...).not_to matcher.and other`) # is not supported at this time. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:22 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 def &(matcher); end # Delegates to `#matches?`. Allows matchers to be used in composable @@ -7365,7 +7295,7 @@ module RSpec::Matchers::Composable # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:45 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#45 def ===(value); end # Creates a compound `and` expectation. The matcher will @@ -7380,7 +7310,7 @@ module RSpec::Matchers::Composable # @note The negative form (`expect(...).not_to matcher.and other`) # is not supported at this time. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:22 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 def and(matcher); end # Creates a compound `or` expectation. The matcher will @@ -7395,7 +7325,7 @@ module RSpec::Matchers::Composable # @note The negative form (`expect(...).not_to matcher.or other`) # is not supported at this time. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:38 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 def or(matcher); end # Creates a compound `or` expectation. The matcher will @@ -7410,7 +7340,7 @@ module RSpec::Matchers::Composable # @note The negative form (`expect(...).not_to matcher.or other`) # is not supported at this time. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:38 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 def |(matcher); end private @@ -7427,7 +7357,7 @@ module RSpec::Matchers::Composable # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:82 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#82 def description_of(object); end # We should enumerate arrays as long as they are not recursive. @@ -7435,7 +7365,7 @@ module RSpec::Matchers::Composable # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:142 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 def should_enumerate?(item); end # Transforms the given data structue (typically a hash or array) @@ -7451,13 +7381,13 @@ module RSpec::Matchers::Composable # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:98 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 def surface_descriptions_in(item); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:147 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 def unreadable_io?(object); end # This provides a generic way to fuzzy-match an expected value against @@ -7476,7 +7406,7 @@ module RSpec::Matchers::Composable # @param actual [Object] the actual value # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:66 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#66 def values_match?(expected, actual); end # Historically, a single matcher instance was only checked @@ -7498,7 +7428,7 @@ module RSpec::Matchers::Composable # @api public # @private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:128 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#128 def with_matchers_cloned(object); end class << self @@ -7507,7 +7437,7 @@ module RSpec::Matchers::Composable # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:142 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 def should_enumerate?(item); end # Transforms the given data structue (typically a hash or array) @@ -7523,13 +7453,13 @@ module RSpec::Matchers::Composable # # @api public # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:98 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 def surface_descriptions_in(item); end # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:147 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 def unreadable_io?(object); end end end @@ -7538,13 +7468,13 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:158 +# source://rspec-expectations//lib/rspec/matchers/composable.rb#158 class RSpec::Matchers::Composable::DescribableItem < ::Struct # Inspectable version of the item description # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:160 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#160 def inspect; end # Returns the value of attribute item @@ -7557,14 +7487,14 @@ class RSpec::Matchers::Composable::DescribableItem < ::Struct # @param value [Object] the value to set the attribute item to. # @return [Object] the newly set value # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:158 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def item=(_); end # A pretty printed version of the item description. # # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/composable.rb:165 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#165 def pretty_print(pp); end class << self @@ -7577,7 +7507,7 @@ end # Defines the custom matcher DSL. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:6 +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#6 module RSpec::Matchers::DSL # Defines a matcher alias. The returned matcher's `description` will be overriden # to reflect the phrasing of the new name, which will be used in failure messages @@ -7603,7 +7533,7 @@ module RSpec::Matchers::DSL # logic. The yielded arg is the original description or failure message. If no # block is provided, a default override is used based on the old and new names. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:32 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#32 def alias_matcher(new_name, old_name, options = T.unsafe(nil), &description_override); end # Defines a custom matcher. @@ -7615,7 +7545,7 @@ module RSpec::Matchers::DSL # When args are passed to your matcher, they will be yielded here, # usually representing the expected value(s). # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:72 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#72 def define(name, &declarations); end # Defines a negated matcher. The returned matcher's `description` and `failure_message` @@ -7633,7 +7563,7 @@ module RSpec::Matchers::DSL # logic. The yielded arg is the original description or failure message. If no # block is provided, a default override is used based on the old and new names. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:60 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#60 def define_negated_matcher(negated_name, base_name, &description_override); end # Defines a custom matcher. @@ -7645,14 +7575,14 @@ module RSpec::Matchers::DSL # When args are passed to your matcher, they will be yielded here, # usually representing the expected value(s). # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:72 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#72 def matcher(name, &declarations); end private # :nocov: # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:83 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#83 def warn_about_block_args(name, declarations); end end @@ -7661,13 +7591,13 @@ end # override any of these using the {RSpec::Matchers::DSL::Macros Macros} methods # from within an `RSpec::Matchers.define` block. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:384 +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#384 module RSpec::Matchers::DSL::DefaultImplementations include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages # The default description. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:394 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#394 def description; end # Used internally by objects returns by `should` and `should_not`. @@ -7675,14 +7605,14 @@ module RSpec::Matchers::DSL::DefaultImplementations # @api private # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:389 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#389 def diffable?; end # Most matchers do not expect call stack jumps. # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:411 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#411 def expects_call_stack_jump?; end # Matchers do not support block expectations by default. You @@ -7690,24 +7620,24 @@ module RSpec::Matchers::DSL::DefaultImplementations # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:402 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#402 def supports_block_expectations?; end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:406 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#406 def supports_value_expectations?; end private - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:417 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#417 def chained_method_clause_sentences; end end # Contains the methods that are available from within the # `RSpec::Matchers.define` DSL for creating custom matchers. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:103 +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#103 module RSpec::Matchers::DSL::Macros # Convenience for defining methods on this matcher to create a fluent # interface. The trick about fluent interfaces is that each method must @@ -7737,7 +7667,7 @@ module RSpec::Matchers::DSL::Macros # # expect(minor).to have_errors_on(:age).with("Not old enough to participate") # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:297 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#297 def chain(method_name, *attr_names, &definition); end # Customize the description to use for one-liners. Only use this when @@ -7754,13 +7684,13 @@ module RSpec::Matchers::DSL::Macros # end # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:252 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#252 def description(&definition); end # Tells the matcher to diff the actual and expected values in the failure # message. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:258 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#258 def diffable; end # Customizes the failure messsage to use when this matcher is @@ -7778,7 +7708,7 @@ module RSpec::Matchers::DSL::Macros # end # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:215 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#215 def failure_message(&definition); end # Customize the failure messsage to use when this matcher is asked @@ -7796,7 +7726,7 @@ module RSpec::Matchers::DSL::Macros # end # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:234 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#234 def failure_message_when_negated(&definition); end # Stores the block that is used to determine whether this matcher passes @@ -7807,7 +7737,7 @@ module RSpec::Matchers::DSL::Macros # # By default the match block will swallow expectation errors (e.g. # caused by using an expectation such as `expect(1).to eq 2`), if you - # with to allow these to bubble up, pass in the option + # wish to allow these to bubble up, pass in the option # `:notify_expectation_failures => true`. # # @example @@ -7825,7 +7755,7 @@ module RSpec::Matchers::DSL::Macros # @param options [Hash] for defining the behavior of the match block. # @yield [Object] actual the actual value (i.e. the value wrapped by `expect`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:130 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#130 def match(options = T.unsafe(nil), &match_block); end # Use this instead of `match` when the block will raise an exception @@ -7842,7 +7772,7 @@ module RSpec::Matchers::DSL::Macros # expect(email_validator).to accept_as_valid("person@company.com") # @yield [Object] actual the actual object (i.e. the value wrapped by `expect`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:187 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#187 def match_unless_raises(expected_exception = T.unsafe(nil), &match_block); end # Use this to define the block for a negative expectation (`expect(...).not_to`) @@ -7852,13 +7782,13 @@ module RSpec::Matchers::DSL::Macros # # By default the match block will swallow expectation errors (e.g. # caused by using an expectation such as `expect(1).to eq 2`), if you - # with to allow these to bubble up, pass in the option + # wish to allow these to bubble up, pass in the option # `:notify_expectation_failures => true`. # # @param options [Hash] for defining the behavior of the match block. # @yield [Object] actual the actual value (i.e. the value wrapped by `expect`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:159 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#159 def match_when_negated(options = T.unsafe(nil), &match_block); end # Declares that the matcher can be used in a block expectation. @@ -7866,12 +7796,12 @@ module RSpec::Matchers::DSL::Macros # expectation without declaring this. # (e.g. `expect { do_something }.to matcher`). # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:266 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#266 def supports_block_expectations; end private - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:311 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#311 def assign_attributes(attr_names); end # Does the following: @@ -7892,7 +7822,7 @@ module RSpec::Matchers::DSL::Macros # (e.g. assigning `@actual`, rescueing errors, etc) and # can `super` to the user's definition. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:345 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#345 def define_user_override(method_name, user_def, &our_def); end end @@ -7900,32 +7830,32 @@ end # # @deprecated Use the methods from {Macros} instead. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:353 +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#353 module RSpec::Matchers::DSL::Macros::Deprecated # @deprecated Use {Macros#failure_message} instead. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:367 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#367 def failure_message_for_should(&definition); end # @deprecated Use {Macros#failure_message_when_negated} instead. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:373 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#373 def failure_message_for_should_not(&definition); end # @deprecated Use {Macros#match} instead. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:355 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#355 def match_for_should(&definition); end # @deprecated Use {Macros#match_when_negated} instead. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:361 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#361 def match_for_should_not(&definition); end end # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:145 +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#145 RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc) # The class used for custom matchers. The block passed to @@ -7933,7 +7863,7 @@ RSpec::Matchers::DSL::Macros::RAISE_NOTIFIER = T.let(T.unsafe(nil), Proc) # of the singleton class of an instance, and will have the # {RSpec::Matchers::DSL::Macros Macros} methods available. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:432 +# source://rspec-expectations//lib/rspec/matchers/dsl.rb#432 class RSpec::Matchers::DSL::Matcher include ::RSpec::Matchers::BuiltIn::BaseMatcher::DefaultFailureMessages include ::RSpec::Matchers::DSL::DefaultImplementations @@ -7945,18 +7875,18 @@ class RSpec::Matchers::DSL::Matcher # @api private # @return [Matcher] a new instance of Matcher # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:461 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#461 def initialize(name, declarations, matcher_execution_context, *expected, &block_arg); end # Exposes the value being matched against -- generally the object # object wrapped by `expect`. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:448 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#448 def actual; end # The block parameter used in the expectation # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:455 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#455 def block_arg; end # Provides the expected value. This will return an array if @@ -7965,7 +7895,7 @@ class RSpec::Matchers::DSL::Matcher # # @see #expected_as_array # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:481 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#481 def expected; end # Returns the expected value as an an array. This exists primarily @@ -7974,30 +7904,30 @@ class RSpec::Matchers::DSL::Matcher # # @see #expected # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:493 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#493 def expected_as_array; end # Adds the name (rather than a cryptic hex number) # so we can identify an instance of # the matcher in error messages (e.g. for `NoMethodError`) # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:498 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#498 def inspect; end # The name of the matcher. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:458 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#458 def name; end # Exposes the exception raised during the matching by `match_unless_raises`. # Could be useful to extract details for a failure message. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:452 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#452 def rescued_exception; end private - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:521 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#521 def actual_arg_for(block); end # Takes care of forwarding unhandled messages to the @@ -8007,7 +7937,7 @@ class RSpec::Matchers::DSL::Matcher # Rails' test helper methods, but it's also a useful # feature in its own right. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:531 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#531 def method_missing(method, *args, &block); end # Indicates that this matcher responds to messages @@ -8016,16 +7946,16 @@ class RSpec::Matchers::DSL::Matcher # # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/dsl.rb:506 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#506 def respond_to_missing?(method, include_private = T.unsafe(nil)); end end -# source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:956 +# source://rspec-expectations//lib/rspec/matchers.rb#959 RSpec::Matchers::DYNAMIC_MATCHER_REGEX = T.let(T.unsafe(nil), Regexp) # Facilitates converting ruby objects to English phrases. # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/english_phrasing.rb:4 +# source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#4 module RSpec::Matchers::EnglishPhrasing class << self # when given an empty list. @@ -8042,14 +7972,14 @@ module RSpec::Matchers::EnglishPhrasing # # @note The returned string has a leading space except # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/english_phrasing.rb:26 + # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#26 def list(obj); end # Converts a symbol into an English expression. # # split_words(:banana_creme_pie) #=> "banana creme pie" # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/english_phrasing.rb:9 + # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#9 def split_words(sym); end end end @@ -8059,12 +7989,12 @@ end # # @api private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:6 +# source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#6 class RSpec::Matchers::ExpectedsForMultipleDiffs # @api private # @return [ExpectedsForMultipleDiffs] a new instance of ExpectedsForMultipleDiffs # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:16 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#16 def initialize(expected_list); end # Returns message with diff(s) appended for provided differ @@ -8076,14 +8006,14 @@ class RSpec::Matchers::ExpectedsForMultipleDiffs # @param actual [Any] value # @return [String] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:47 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#47 def message_with_diff(message, differ, actual); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:68 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#68 def diffs(differ, actual); end class << self @@ -8094,7 +8024,7 @@ class RSpec::Matchers::ExpectedsForMultipleDiffs # @param matchers [Array] list of matchers to wrap # @return [RSpec::Matchers::ExpectedsForMultipleDiffs] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:36 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#36 def for_many_matchers(matchers); end # Wraps provided expected value in instance of @@ -8105,19 +8035,19 @@ class RSpec::Matchers::ExpectedsForMultipleDiffs # @param expected [Any] value to be wrapped # @return [RSpec::Matchers::ExpectedsForMultipleDiffs] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:26 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#26 def from(expected); end private # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:58 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#58 def diff_label_for(matcher); end # @api private # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:62 + # source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#62 def truncated(description); end end end @@ -8128,7 +8058,7 @@ end # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:10 +# source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#10 RSpec::Matchers::ExpectedsForMultipleDiffs::DEFAULT_DIFF_LABEL = T.let(T.unsafe(nil), String) # Maximum readable matcher description length @@ -8136,45 +8066,43 @@ RSpec::Matchers::ExpectedsForMultipleDiffs::DEFAULT_DIFF_LABEL = T.let(T.unsafe( # @api private # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb:14 +# source://rspec-expectations//lib/rspec/matchers/expecteds_for_multiple_diffs.rb#14 RSpec::Matchers::ExpectedsForMultipleDiffs::DESCRIPTION_MAX_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rspec-expectations-3.11.0/lib/rspec/matchers.rb:955 +# source://rspec-expectations//lib/rspec/matchers.rb#958 RSpec::Matchers::HAS_REGEX = T.let(T.unsafe(nil), Regexp) # Provides the necessary plumbing to wrap a matcher with a decorator. # # @private # -# source://rspec-expectations-3.11.0/lib/rspec/matchers/matcher_delegator.rb:5 +# source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#5 class RSpec::Matchers::MatcherDelegator include ::RSpec::Matchers::Composable # @return [MatcherDelegator] a new instance of MatcherDelegator # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/matcher_delegator.rb:9 + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#9 def initialize(base_matcher); end # Returns the value of attribute base_matcher. # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/matcher_delegator.rb:7 + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#7 def base_matcher; end - # source://rspec-expectations-3.11.0/lib/rspec/matchers/matcher_delegator.rb:13 + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#13 def method_missing(*args, &block); end private - # source://rspec-expectations-3.11.0/lib/rspec/matchers/matcher_delegator.rb:29 + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#29 def initialize_copy(other); end # @return [Boolean] # - # source://rspec-expectations-3.11.0/lib/rspec/matchers/matcher_delegator.rb:18 + # source://rspec-expectations//lib/rspec/matchers/matcher_delegator.rb#18 def respond_to_missing?(name, include_all = T.unsafe(nil)); end end -# @private -# -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54 +# source://rspec-core/3.12.0/lib/rspec/core/shared_context.rb#54 RSpec::SharedContext = RSpec::Core::SharedContext diff --git a/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi b/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi similarity index 60% rename from sorbet/rbi/gems/rspec-mocks@3.11.1.rbi rename to sorbet/rbi/gems/rspec-mocks@3.12.0.rbi index 5e2cd7f6..77282fb6 100644 --- a/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +++ b/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi @@ -7,172 +7,78 @@ # Share the top-level RSpec namespace, because we are a core supported # extension. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:1 +# source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#1 module RSpec class << self - # Used to ensure examples get reloaded between multiple runs in the same - # process and ensures user configuration is persisted. - # - # Users must invoke this if they want to clear all examples but preserve - # current configuration when they use the runner multiple times within the - # same process. - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:70 + # source://rspec-core/3.12.0/lib/rspec/core.rb#70 def clear_examples; end - # Returns the global [Configuration](RSpec/Core/Configuration) object. While - # you _can_ use this method to access the configuration, the more common - # convention is to use [RSpec.configure](RSpec#configure-class_method). - # - # @example - # RSpec.configuration.drb_port = 1234 - # @see RSpec.configure - # @see Core::Configuration - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:85 + # source://rspec-core/3.12.0/lib/rspec/core.rb#85 def configuration; end - # Setters for shared global objects - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 def configuration=(_arg0); end - # Yields the global configuration to a block. - # - # @example - # RSpec.configure do |config| - # config.add_formatter 'documentation' - # end - # @see Core::Configuration - # @yield [Configuration] global configuration - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:97 + # source://rspec-core/3.12.0/lib/rspec/core.rb#97 def configure; end - # @private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:194 + # source://rspec-core/3.12.0/lib/rspec/core.rb#194 def const_missing(name); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def context(*args, &example_group_block); end - # The example being executed. - # - # The primary audience for this method is library authors who need access - # to the example currently being executed and also want to support all - # versions of RSpec 2 and 3. - # - # @example - # - # RSpec.configure do |c| - # # context.example is deprecated, but RSpec.current_example is not - # # available until RSpec 3.0. - # fetch_current_example = RSpec.respond_to?(:current_example) ? - # proc { RSpec.current_example } : proc { |context| context.example } - # - # c.before(:example) do - # example = fetch_current_example.call(self) - # - # # ... - # end - # end - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:122 + # source://rspec-core/3.12.0/lib/rspec/core.rb#122 def current_example; end - # Set the current example being executed. - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:128 + # source://rspec-core/3.12.0/lib/rspec/core.rb#128 def current_example=(example); end - # Get the current RSpec execution scope - # - # Returns (in order of lifecycle): - # * `:suite` as an initial value, this is outside of the test lifecycle. - # * `:before_suite_hook` during `before(:suite)` hooks. - # * `:before_context_hook` during `before(:context)` hooks. - # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`. - # * `:example` within the example run. - # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`. - # * `:after_context_hook` during `after(:context)` hooks. - # * `:after_suite_hook` during `after(:suite)` hooks. - # * `:suite` as a final value, again this is outside of the test lifecycle. - # - # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias. - # - # @return [Symbol] - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:154 + # source://rspec-core/3.12.0/lib/rspec/core.rb#154 def current_scope; end - # Set the current scope rspec is executing in - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:134 + # source://rspec-core/3.12.0/lib/rspec/core.rb#134 def current_scope=(scope); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def describe(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def example_group(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def fcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def fdescribe(*args, &example_group_block); end - # Used to ensure examples get reloaded and user configuration gets reset to - # defaults between multiple runs in the same process. - # - # Users must invoke this if they want to have the configuration reset when - # they use the runner multiple times within the same process. Users must deal - # themselves with re-configuration of RSpec before run. - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:58 + # source://rspec-core/3.12.0/lib/rspec/core.rb#58 def reset; end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_context(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_examples(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_examples_for(name, *args, &block); end - # Internal container for global non-configuration data. - # - # @private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:160 + # source://rspec-core/3.12.0/lib/rspec/core.rb#160 def world; end - # Setters for shared global objects - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 def world=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def xcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def xdescribe(*args, &example_group_block); end end end -# @private -# -# source://rspec-core-3.11.0/lib/rspec/core.rb:187 +# source://rspec-core/3.12.0/lib/rspec/core.rb#187 RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) # Contains top-level utility methods. While this contains a few @@ -180,7 +86,7 @@ RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) # a test or example. They exist primarily for integration with # test frameworks (such as rspec-core). # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:2 +# source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#2 module RSpec::Mocks class << self # Adds an allowance (stub) on `subject` @@ -195,18 +101,18 @@ module RSpec::Mocks # original call site # @yield an optional implementation for the allowance # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:69 + # source://rspec-mocks//lib/rspec/mocks.rb#69 def allow_message(subject, message, opts = T.unsafe(nil), &block); end # Mocks specific configuration, as distinct from `RSpec.configuration` # which is core RSpec configuration. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:206 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#206 def configuration; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:365 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#376 def error_generator; end # Sets a message expectation on `subject`. @@ -221,31 +127,31 @@ module RSpec::Mocks # original call site # @yield an optional implementation for the expectation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:84 + # source://rspec-mocks//lib/rspec/mocks.rb#84 def expect_message(subject, message, opts = T.unsafe(nil), &block); end # Performs per-test/example setup. This should be called before # an test or example begins. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:38 + # source://rspec-mocks//lib/rspec/mocks.rb#38 def setup; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:106 + # source://rspec-mocks//lib/rspec/mocks.rb#106 def space; end # Cleans up all test double state (including any methods that were # redefined on partial doubles). This _must_ be called after # each example, even if an error was raised during the example. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:51 + # source://rspec-mocks//lib/rspec/mocks.rb#51 def teardown; end # Verifies any message expectations that were set during the # test or example. This should be called at the end of an example. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:44 + # source://rspec-mocks//lib/rspec/mocks.rb#44 def verify; end # Call the passed block and verify mocks after it has executed. This allows @@ -253,25 +159,25 @@ module RSpec::Mocks # # @return [Object] the return value from the block # - # source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:92 + # source://rspec-mocks//lib/rspec/mocks.rb#92 def with_temporary_scope; end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:92 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#92 class RSpec::Mocks::AllowanceTarget < ::RSpec::Mocks::TargetBase - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:93 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#93 def expression; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:29 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#29 def not_to(matcher, *_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:6 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#6 def to(matcher, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:29 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#29 def to_not(matcher, *_args); end end @@ -279,14 +185,14 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:739 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#737 class RSpec::Mocks::AndInvokeImplementation # @return [AndInvokeImplementation] a new instance of AndInvokeImplementation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:740 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#738 def initialize(procs_to_invoke); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:744 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#742 def call(*args, &block); end end @@ -294,14 +200,14 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:723 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#721 class RSpec::Mocks::AndReturnImplementation # @return [AndReturnImplementation] a new instance of AndReturnImplementation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:724 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#722 def initialize(values_to_return); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:728 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#726 def call(*_args_to_ignore, &_block); end end @@ -309,120 +215,120 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:781 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#779 class RSpec::Mocks::AndWrapOriginalImplementation # @return [AndWrapOriginalImplementation] a new instance of AndWrapOriginalImplementation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:782 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#780 def initialize(method, block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:809 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#807 def call(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:789 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#787 def initial_action=(_value); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:805 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#803 def inner_action; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:793 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#791 def inner_action=(_value); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:801 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#799 def present?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:797 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#795 def terminal_action=(_value); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:816 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#814 def cannot_modify_further_error; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:787 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#785 class RSpec::Mocks::AndWrapOriginalImplementation::CannotModifyFurtherError < ::StandardError; end # Handles the implementation of an `and_yield` declaration. # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:696 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#694 class RSpec::Mocks::AndYieldImplementation # @return [AndYieldImplementation] a new instance of AndYieldImplementation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:697 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#695 def initialize(args_to_yield, eval_context, error_generator); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:703 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#701 def call(*_args_to_ignore, &block); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:4 +# source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#4 module RSpec::Mocks::AnyInstance class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/error_generator.rb:26 + # source://rspec-mocks//lib/rspec/mocks/any_instance/error_generator.rb#26 def error_generator; end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:6 +# source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#6 class RSpec::Mocks::AnyInstance::Chain include ::RSpec::Mocks::AnyInstance::Chain::Customizations # @return [Chain] a new instance of Chain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:7 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#7 def initialize(recorder, *args, &block); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:61 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#61 def constrained_to_any_of?(*constraints); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:75 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#75 def expectation_fulfilled!; end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:70 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#70 def matches_args?(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:79 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#79 def never; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:53 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#53 def playback!(instance); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:84 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#84 def with(*args, &block); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:99 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#99 def last_message; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:95 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#95 def messages; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:91 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#91 def negated?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:103 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#103 def record(rspec_method_name, *args, &block); end end @@ -431,14 +337,14 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:18 +# source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#18 module RSpec::Mocks::AnyInstance::Chain::Customizations # Records the `and_call_original` message for playback against an instance that # invokes a method stubbed or mocked using `any_instance`. # # @see RSpec::Mocks::MessageExpectation#and_call_original # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def and_call_original(*args, &block); end # Records the `and_raise` message for playback against an instance that @@ -446,7 +352,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#and_raise # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def and_raise(*args, &block); end # Records the `and_return` message for playback against an instance that @@ -454,7 +360,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#and_return # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def and_return(*args, &block); end # Records the `and_throw` message for playback against an instance that @@ -462,7 +368,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#and_throw # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def and_throw(*args, &block); end # Records the `and_wrap_original` message for playback against an instance that @@ -470,7 +376,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#and_wrap_original # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def and_wrap_original(*args, &block); end # Records the `and_yield` message for playback against an instance that @@ -478,7 +384,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#and_yield # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def and_yield(*args, &block); end # Records the `at_least` message for playback against an instance that @@ -486,7 +392,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#at_least # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def at_least(*args, &block); end # Records the `at_most` message for playback against an instance that @@ -494,7 +400,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#at_most # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def at_most(*args, &block); end # Records the `exactly` message for playback against an instance that @@ -502,7 +408,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#exactly # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def exactly(*args, &block); end # Records the `never` message for playback against an instance that @@ -510,7 +416,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#never # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def never(*args, &block); end # Records the `once` message for playback against an instance that @@ -518,7 +424,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#once # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def once(*args, &block); end # Records the `thrice` message for playback against an instance that @@ -526,7 +432,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#thrice # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def thrice(*args, &block); end # Records the `time` message for playback against an instance that @@ -534,7 +440,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#time # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def time(*args, &block); end # Records the `times` message for playback against an instance that @@ -542,7 +448,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#times # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def times(*args, &block); end # Records the `twice` message for playback against an instance that @@ -550,7 +456,7 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#twice # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def twice(*args, &block); end # Records the `with` message for playback against an instance that @@ -558,75 +464,75 @@ module RSpec::Mocks::AnyInstance::Chain::Customizations # # @see RSpec::Mocks::MessageExpectation#with # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#27 def with(*args, &block); end class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/chain.rb:26 + # source://rspec-mocks//lib/rspec/mocks/any_instance/chain.rb#26 def record(method_name); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/error_generator.rb:5 +# source://rspec-mocks//lib/rspec/mocks/any_instance/error_generator.rb#5 class RSpec::Mocks::AnyInstance::ErrorGenerator < ::RSpec::Mocks::ErrorGenerator - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/error_generator.rb:11 + # source://rspec-mocks//lib/rspec/mocks/any_instance/error_generator.rb#11 def raise_does_not_implement_error(klass, method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/error_generator.rb:15 + # source://rspec-mocks//lib/rspec/mocks/any_instance/error_generator.rb#15 def raise_message_already_received_by_other_instance_error(method_name, object_inspect, invoked_instance); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/error_generator.rb:20 + # source://rspec-mocks//lib/rspec/mocks/any_instance/error_generator.rb#20 def raise_not_supported_with_prepend_error(method_name, problem_mod); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/error_generator.rb:6 + # source://rspec-mocks//lib/rspec/mocks/any_instance/error_generator.rb#6 def raise_second_instance_received_message_error(unfulfilled_expectations); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb:5 +# source://rspec-mocks//lib/rspec/mocks/any_instance/expect_chain_chain.rb#5 class RSpec::Mocks::AnyInstance::ExpectChainChain < ::RSpec::Mocks::AnyInstance::StubChain # @return [ExpectChainChain] a new instance of ExpectChainChain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb:6 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expect_chain_chain.rb#6 def initialize(*args); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb:11 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expect_chain_chain.rb#11 def expectation_fulfilled?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb:15 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expect_chain_chain.rb#15 def playback!(instance); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb:21 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expect_chain_chain.rb#21 def create_message_expectation_on(instance); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb:25 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expect_chain_chain.rb#25 def invocation_order; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:5 +# source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#5 class RSpec::Mocks::AnyInstance::ExpectationChain < ::RSpec::Mocks::AnyInstance::Chain # @return [ExpectationChain] a new instance of ExpectationChain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:10 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#10 def initialize(*args, &block); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:6 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#6 def expectation_fulfilled?; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#17 def verify_invocation_order(_rspec_method_name, *_args, &_block); end end @@ -640,100 +546,100 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:94 +# source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#94 class RSpec::Mocks::AnyInstance::FluentInterfaceProxy # @return [FluentInterfaceProxy] a new instance of FluentInterfaceProxy # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:95 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#95 def initialize(targets); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:109 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#109 def method_missing(*args, &block); end private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:100 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#100 def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:5 +# source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#5 class RSpec::Mocks::AnyInstance::MessageChains # @return [MessageChains] a new instance of MessageChains # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:6 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#6 def initialize; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:11 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#11 def [](method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:16 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#16 def add(method_name, chain); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:43 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#43 def all_expectations_fulfilled?; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:36 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#36 def each_unfulfilled_expectation_matching(method_name, *args); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:29 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#29 def has_expectation?(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:64 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#64 def playback!(instance, method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:57 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#57 def received_expected_message!(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:22 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#22 def remove_stub_chains_for!(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:50 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#50 def unfulfilled_expectations; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/message_chains.rb:73 + # source://rspec-mocks//lib/rspec/mocks/any_instance/message_chains.rb#73 def raise_if_second_instance_to_receive_message(instance); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:22 +# source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#22 class RSpec::Mocks::AnyInstance::PositiveExpectationChain < ::RSpec::Mocks::AnyInstance::ExpectationChain private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:25 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#25 def create_message_expectation_on(instance); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:44 + # source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#44 def invocation_order; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/expectation_chain.rb:38 +# source://rspec-mocks//lib/rspec/mocks/any_instance/expectation_chain.rb#38 RSpec::Mocks::AnyInstance::PositiveExpectationChain::ExpectationInvocationOrder = T.let(T.unsafe(nil), Hash) # The `AnyInstance::Recorder` is responsible for redefining the klass's @@ -755,37 +661,37 @@ RSpec::Mocks::AnyInstance::PositiveExpectationChain::ExpectationInvocationOrder # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:21 +# source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#21 class RSpec::Mocks::AnyInstance::Proxy # @return [Proxy] a new instance of Proxy # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:22 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#22 def initialize(recorder, target_proxies); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:55 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#55 def expect_chain(*chain, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:27 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#27 def klass; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:71 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#71 def should_not_receive(method_name, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:61 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#61 def should_receive(method_name, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:31 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#31 def stub(method_name_or_method_map, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:49 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#49 def stub_chain(*chain, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:43 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#43 def unstub(method_name); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/proxy.rb:79 + # source://rspec-mocks//lib/rspec/mocks/any_instance/proxy.rb#79 def perform_proxying(method_name, args, block, &target_proxy_block); end end @@ -798,59 +704,59 @@ end # @see AnyInstance # @see Chain # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:12 +# source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#12 class RSpec::Mocks::AnyInstance::Recorder # @return [Recorder] a new instance of Recorder # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:16 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#16 def initialize(klass); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:127 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#127 def already_observing?(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:122 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#122 def build_alias_method_name(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:53 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#53 def expect_chain(*method_names_and_optional_return_values, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:117 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#117 def instance_that_received(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:14 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#14 def klass; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:14 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#14 def message_chains; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:132 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#132 def notify_received_message(_object, message, args, _blk); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:109 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#109 def playback!(instance, method_name); end # The opposite of `should_receive` # # @see Methods#should_not_receive # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:75 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#75 def should_not_receive(method_name, &block); end # Initializes the recording a message expectation to be played back @@ -859,12 +765,12 @@ class RSpec::Mocks::AnyInstance::Recorder # # @see Methods#should_receive # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:66 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#66 def should_receive(method_name, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:104 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#104 def stop_all_observation!; end # Initializes the recording a stub to be played back against any @@ -872,7 +778,7 @@ class RSpec::Mocks::AnyInstance::Recorder # # @see Methods#stub # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:35 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#35 def stub(method_name, &block); end # Initializes the recording a stub chain to be played back against any @@ -881,12 +787,12 @@ class RSpec::Mocks::AnyInstance::Recorder # # @see Methods#stub_chain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:45 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#45 def stub_chain(*method_names_and_optional_return_values, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:14 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#14 def stubs; end # Removes any previously recorded stubs, stub_chains or message @@ -894,7 +800,7 @@ class RSpec::Mocks::AnyInstance::Recorder # # @see Methods#unstub # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:83 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#83 def unstub(method_name); end # Used internally to verify that message expectations have been @@ -902,143 +808,143 @@ class RSpec::Mocks::AnyInstance::Recorder # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:96 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#96 def verify; end protected - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:148 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#148 def stop_observing!(method_name); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:280 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#280 def allow_no_prepended_module_definition_of(method_name); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:159 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#159 def ancestor_is_an_observer?(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:233 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#233 def backup_method!(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:267 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#267 def mark_invoked!(method_name); end # @yield [args.first, args] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:176 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#176 def normalize_chain(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:247 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#247 def observe!(method_name); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:243 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#243 def public_protected_or_private_method_defined?(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:181 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#181 def received_expected_message!(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:227 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#227 def remove_dummy_method!(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:187 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#187 def restore_method!(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:195 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#195 def restore_original_method!(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:168 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#168 def super_class_observers_for(method_name); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/recorder.rb:172 + # source://rspec-mocks//lib/rspec/mocks/any_instance/recorder.rb#172 def super_class_observing?(method_name); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:6 +# source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#6 class RSpec::Mocks::AnyInstance::StubChain < ::RSpec::Mocks::AnyInstance::Chain # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:7 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#7 def expectation_fulfilled?; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:13 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#13 def create_message_expectation_on(instance); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:40 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#40 def invocation_order; end # @raise [NoMethodError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:44 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#44 def verify_invocation_order(rspec_method_name, *_args, &_block); end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:38 +# source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#38 RSpec::Mocks::AnyInstance::StubChain::EmptyInvocationOrder = T.let(T.unsafe(nil), Hash) -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain.rb:28 +# source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain.rb#28 RSpec::Mocks::AnyInstance::StubChain::InvocationOrder = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb:5 +# source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain_chain.rb#5 class RSpec::Mocks::AnyInstance::StubChainChain < ::RSpec::Mocks::AnyInstance::StubChain # @return [StubChainChain] a new instance of StubChainChain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb:6 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain_chain.rb#6 def initialize(*args); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb:13 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain_chain.rb#13 def create_message_expectation_on(instance); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/any_instance/stub_chain_chain.rb#17 def invocation_order; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:103 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#103 class RSpec::Mocks::AnyInstanceAllowanceTarget < ::RSpec::Mocks::TargetBase - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:104 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#104 def expression; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:29 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#29 def not_to(matcher, *_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:6 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#6 def to(matcher, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:29 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#29 def to_not(matcher, *_args); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:114 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#114 class RSpec::Mocks::AnyInstanceExpectationTarget < ::RSpec::Mocks::TargetBase - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:115 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#115 def expression; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:16 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#16 def not_to(matcher, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:6 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#6 def to(matcher, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:16 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#16 def to_not(matcher, &block); end end @@ -1067,7 +973,7 @@ end # # @see ArgumentMatchers # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:33 +# source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#33 class RSpec::Mocks::ArgumentListMatcher # Initializes an `ArgumentListMatcher` with a collection of literal # values and/or argument matchers. @@ -1078,7 +984,7 @@ class RSpec::Mocks::ArgumentListMatcher # @see ArgumentMatchers # @see #args_match? # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:45 + # source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#45 def initialize(*expected_args); end # Matches each element in the `expected_args` against the element in the same @@ -1089,12 +995,12 @@ class RSpec::Mocks::ArgumentListMatcher # @return [Boolean] # @see #initialize # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:58 + # source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#58 def args_match?(*actual_args); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:35 + # source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#35 def expected_args; end # Resolves abstract arg placeholders like `no_args` and `any_args` into @@ -1102,15 +1008,15 @@ class RSpec::Mocks::ArgumentListMatcher # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:79 + # source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#79 def resolve_expected_args_based_on(actual_args); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:98 + # source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#98 def ensure_expected_args_valid!; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:90 + # source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#90 def replace_any_args_with_splat_of_anything(before_count, actual_args_count); end end @@ -1118,7 +1024,7 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_list_matcher.rb:112 +# source://rspec-mocks//lib/rspec/mocks/argument_list_matcher.rb#112 RSpec::Mocks::ArgumentListMatcher::MATCH_ALL = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentListMatcher) # ArgumentMatchers are placeholders that you can include in message @@ -1130,14 +1036,14 @@ RSpec::Mocks::ArgumentListMatcher::MATCH_ALL = T.let(T.unsafe(nil), RSpec::Mocks # # @see ArgumentListMatcher # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:16 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#16 module RSpec::Mocks::ArgumentMatchers # Matches if `arg.kind_of?(klass)` # # @example # expect(object).to receive(:message).with(kind_of(Thing)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:111 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#111 def a_kind_of(klass); end # Matches if `arg.instance_of?(klass)` @@ -1145,7 +1051,7 @@ module RSpec::Mocks::ArgumentMatchers # @example # expect(object).to receive(:message).with(instance_of(Thing)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:101 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#101 def an_instance_of(klass); end # Acts like an arg splat, matching any number of args at any point in an arg list. @@ -1158,7 +1064,7 @@ module RSpec::Mocks::ArgumentMatchers # object.message(1, 2, 3) # object.message(1, 2, 3, 4) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:26 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#26 def any_args; end # Matches any argument at all. @@ -1166,7 +1072,7 @@ module RSpec::Mocks::ArgumentMatchers # @example # expect(object).to receive(:message).with(anything) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:34 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#34 def anything; end # Matches an array that includes the specified items at least once. @@ -1176,7 +1082,7 @@ module RSpec::Mocks::ArgumentMatchers # expect(object).to receive(:message).with(array_including(1,2,3)) # expect(object).to receive(:message).with(array_including([1,2,3])) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:80 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#80 def array_including(*args); end # Matches a boolean value. @@ -1184,7 +1090,7 @@ module RSpec::Mocks::ArgumentMatchers # @example # expect(object).to receive(:message).with(boolean()) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:59 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#59 def boolean; end # Matches if the actual argument responds to the specified messages. @@ -1193,7 +1099,7 @@ module RSpec::Mocks::ArgumentMatchers # expect(object).to receive(:message).with(duck_type(:hello)) # expect(object).to receive(:message).with(duck_type(:hello, :goodbye)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:51 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#51 def duck_type(*args); end # Matches a hash that doesn't include the specified key(s) or key/value. @@ -1203,7 +1109,7 @@ module RSpec::Mocks::ArgumentMatchers # expect(object).to receive(:message).with(hash_excluding(:key)) # expect(object).to receive(:message).with(hash_excluding(:key, :key2 => :val2)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:91 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#91 def hash_excluding(*args); end # Matches a hash that includes the specified key(s) or key/value pairs. @@ -1214,7 +1120,7 @@ module RSpec::Mocks::ArgumentMatchers # expect(object).to receive(:message).with(hash_including(:key)) # expect(object).to receive(:message).with(hash_including(:key, :key2 => val2)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:70 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#70 def hash_including(*args); end # Matches a hash that doesn't include the specified key(s) or key/value. @@ -1224,7 +1130,7 @@ module RSpec::Mocks::ArgumentMatchers # expect(object).to receive(:message).with(hash_excluding(:key)) # expect(object).to receive(:message).with(hash_excluding(:key, :key2 => :val2)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:91 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#91 def hash_not_including(*args); end # Matches if `arg.instance_of?(klass)` @@ -1232,7 +1138,7 @@ module RSpec::Mocks::ArgumentMatchers # @example # expect(object).to receive(:message).with(instance_of(Thing)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:101 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#101 def instance_of(klass); end # Matches if `arg.kind_of?(klass)` @@ -1240,7 +1146,7 @@ module RSpec::Mocks::ArgumentMatchers # @example # expect(object).to receive(:message).with(kind_of(Thing)) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:111 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#111 def kind_of(klass); end # Matches no arguments. @@ -1248,177 +1154,177 @@ module RSpec::Mocks::ArgumentMatchers # @example # expect(object).to receive(:message).with(no_args) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:42 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#42 def no_args; end class << self # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:118 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#118 def anythingize_lonely_keys(*args); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:149 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#149 class RSpec::Mocks::ArgumentMatchers::AnyArgMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:150 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#150 def ===(_other); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:154 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#154 def description; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:137 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#137 RSpec::Mocks::ArgumentMatchers::AnyArgMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::AnyArgMatcher) # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:142 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#142 class RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:143 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#143 def description; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:137 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#137 RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::AnyArgsMatcher) # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:232 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#232 class RSpec::Mocks::ArgumentMatchers::ArrayIncludingMatcher # @return [ArrayIncludingMatcher] a new instance of ArrayIncludingMatcher # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:233 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#233 def initialize(expected); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:237 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#237 def ===(actual); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:248 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#248 def description; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:254 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#254 def formatted_expected_values; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:178 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#178 class RSpec::Mocks::ArgumentMatchers::BaseHashMatcher # @return [BaseHashMatcher] a new instance of BaseHashMatcher # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:179 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#179 def initialize(expected); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:183 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#183 def ===(predicate, actual); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:191 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#191 def description(name); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:197 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#197 def formatted_expected_hash; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:167 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#167 class RSpec::Mocks::ArgumentMatchers::BooleanMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:168 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#168 def ===(value); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:172 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#172 def description; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:137 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#137 RSpec::Mocks::ArgumentMatchers::BooleanMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::BooleanMatcher) # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:262 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#262 class RSpec::Mocks::ArgumentMatchers::DuckTypeMatcher # @return [DuckTypeMatcher] a new instance of DuckTypeMatcher # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:263 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#263 def initialize(*methods_to_respond_to); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:267 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#267 def ===(value); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:271 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#271 def description; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:221 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#221 class RSpec::Mocks::ArgumentMatchers::HashExcludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:222 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#222 def ===(actual); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:226 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#226 def description; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:210 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#210 class RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher < ::RSpec::Mocks::ArgumentMatchers::BaseHashMatcher - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:211 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#211 def ===(actual); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:215 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#215 def description; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:277 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#277 class RSpec::Mocks::ArgumentMatchers::InstanceOf # @return [InstanceOf] a new instance of InstanceOf # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:278 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#278 def initialize(klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:282 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#282 def ===(actual); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:286 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#286 def description; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:292 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#292 class RSpec::Mocks::ArgumentMatchers::KindOf # @return [KindOf] a new instance of KindOf # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:293 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#293 def initialize(klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:297 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#297 def ===(actual); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:301 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#301 def description; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:160 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#160 class RSpec::Mocks::ArgumentMatchers::NoArgsMatcher < ::RSpec::Mocks::ArgumentMatchers::SingletonMatcher - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:161 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#161 def description; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:137 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#137 RSpec::Mocks::ArgumentMatchers::NoArgsMatcher::INSTANCE = T.let(T.unsafe(nil), RSpec::Mocks::ArgumentMatchers::NoArgsMatcher) # Intended to be subclassed by stateless, immutable argument matchers. @@ -1431,21 +1337,21 @@ RSpec::Mocks::ArgumentMatchers::NoArgsMatcher::INSTANCE = T.let(T.unsafe(nil), R # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:133 +# source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#133 class RSpec::Mocks::ArgumentMatchers::SingletonMatcher class << self # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/argument_matchers.rb:136 + # source://rspec-mocks//lib/rspec/mocks/argument_matchers.rb#136 def inherited(subklass); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:7 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#7 class RSpec::Mocks::CallbackInvocationStrategy - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:8 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#8 def call(doubled_module); end end @@ -1456,7 +1362,7 @@ end # @deprecated We no longer raise this error but the constant remains until # RSpec 4 for SemVer reasons. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:26 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#26 class RSpec::Mocks::CannotSupportArgMutationsError < ::StandardError; end # When a class's `.new` method is stubbed, we want to use the method @@ -1468,26 +1374,36 @@ class RSpec::Mocks::CannotSupportArgMutationsError < ::StandardError; end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:184 +# source://rspec-mocks//lib/rspec/mocks/method_reference.rb#184 class RSpec::Mocks::ClassNewMethodReference < ::RSpec::Mocks::ObjectMethodReference - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:195 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#207 def with_signature; end class << self # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:185 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#185 def applies_to?(method_name); end + + # Ruby 2's Method#== is too strict + # + # @return [Boolean] + # + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#198 + def uses_class_new?(klass); end end end +# source://rspec-mocks//lib/rspec/mocks/method_reference.rb#196 +RSpec::Mocks::ClassNewMethodReference::CLASS_NEW = T.let(T.unsafe(nil), UnboundMethod) + # Effectively the same as an ObjectVerifyingDouble (since a class is a type # of object), except with Module in the inheritance chain so that # transferring nested constants to work. # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:117 +# source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#117 class RSpec::Mocks::ClassVerifyingDouble < ::Module include ::RSpec::Mocks::TestDouble include ::RSpec::Mocks::VerifyingDouble @@ -1496,11 +1412,11 @@ end # Provides configuration options for rspec-mocks. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:4 +# source://rspec-mocks//lib/rspec/mocks/configuration.rb#4 class RSpec::Mocks::Configuration # @return [Configuration] a new instance of Configuration # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:5 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#5 def initialize; end # Adds `stub` and `should_receive` to the given @@ -1517,7 +1433,7 @@ class RSpec::Mocks::Configuration # end # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:62 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#62 def add_stub_and_should_receive_to(*modules); end # Sets whether RSpec will warn, ignore, or fail a test when @@ -1535,7 +1451,7 @@ class RSpec::Mocks::Configuration # end # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:29 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#29 def allow_message_expectations_on_nil; end # Sets whether RSpec will warn, ignore, or fail a test when @@ -1553,7 +1469,7 @@ class RSpec::Mocks::Configuration # end # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:29 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#29 def allow_message_expectations_on_nil=(_arg0); end # Provides a way to perform customisations when verifying doubles. @@ -1563,7 +1479,7 @@ class RSpec::Mocks::Configuration # ref.some_method! # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:128 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#128 def before_verifying_doubles(&block); end # Indicates whether or not diffs should be colored. @@ -1572,7 +1488,7 @@ class RSpec::Mocks::Configuration # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:164 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#164 def color?; end # Monkey-patch `Marshal.dump` to enable dumping of mocked or stubbed @@ -1583,14 +1499,14 @@ class RSpec::Mocks::Configuration # # This method is idempotent. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:188 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#188 def patch_marshal_to_support_partial_doubles=(val); end # Resets the configured syntax to the default. # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:198 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#198 def reset_syntaxes_to_default; end # Returns an array with a list of syntaxes @@ -1601,7 +1517,7 @@ class RSpec::Mocks::Configuration # raise "this RSpec extension gem requires the rspec-mocks `:expect` syntax" # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:104 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#104 def syntax; end # Provides the ability to set either `expect`, @@ -1618,7 +1534,7 @@ class RSpec::Mocks::Configuration # mocks.syntax = [:expect, :should] # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:81 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#81 def syntax=(*values); end # Used to track wether we are temporarily suppressing verifying partial @@ -1626,7 +1542,7 @@ class RSpec::Mocks::Configuration # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:161 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#161 def temporarily_suppress_partial_double_verification; end # Used to track wether we are temporarily suppressing verifying partial @@ -1634,18 +1550,18 @@ class RSpec::Mocks::Configuration # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:161 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#161 def temporarily_suppress_partial_double_verification=(_arg0); end # Sets the default for the `transfer_nested_constants` option when # stubbing constants. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:145 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#145 def transfer_nested_constants=(_arg0); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:139 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#139 def transfer_nested_constants?; end # When this is set to true, an error will be raised when @@ -1654,31 +1570,31 @@ class RSpec::Mocks::Configuration # test suite, with all production code loaded. Setting this for an # isolated unit test will prevent you from being able to isolate it! # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:120 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#120 def verify_doubled_constant_names=(_arg0); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:111 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#111 def verify_doubled_constant_names?; end # When set to true, partial mocks will be verified the same as object # doubles. Any stubs will have their arguments checked against the original # method, and methods that do not exist cannot be stubbed. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:150 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#150 def verify_partial_doubles=(val); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:154 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#154 def verify_partial_doubles?; end # Returns an array of blocks to call when verifying doubles # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:135 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#135 def verifying_double_callbacks; end # Provides a way to perform customisations when verifying doubles. @@ -1688,7 +1604,7 @@ class RSpec::Mocks::Configuration # ref.some_method! # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:128 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#128 def when_declaring_verifying_double(&block); end # Sets whether or not RSpec will yield the receiving instance of a @@ -1703,19 +1619,19 @@ class RSpec::Mocks::Configuration # end # end # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:46 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#46 def yield_receiver_to_any_instance_implementation_blocks=(_arg0); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/configuration.rb:31 + # source://rspec-mocks//lib/rspec/mocks/configuration.rb#31 def yield_receiver_to_any_instance_implementation_blocks?; end end # Provides information about constants that may (or may not) # have been mutated by rspec-mocks. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:7 +# source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#7 class RSpec::Mocks::Constant extend ::RSpec::Support::RecursiveConstMethods @@ -1724,86 +1640,86 @@ class RSpec::Mocks::Constant # @yield [_self] # @yieldparam _self [RSpec::Mocks::Constant] the object that the method was called on # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:11 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#11 def initialize(name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:29 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#29 def hidden=(_arg0); end # @return [Boolean] Whether or not rspec-mocks has hidden # this constant. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:51 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#51 def hidden?; end # The default `to_s` isn't very useful, so a custom version is provided. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:62 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#62 def inspect; end # @return [Boolean] Whether or not rspec-mocks has mutated # (stubbed or hidden) this constant. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:39 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#39 def mutated?; end # @return [String] The fully qualified name of the constant. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:21 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#21 def name; end # @return [Object, nil] The original value (e.g. before it # was mutated by rspec-mocks) of the constant, or # nil if the constant was not previously defined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:26 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#26 def original_value; end # @return [Object, nil] The original value (e.g. before it # was mutated by rspec-mocks) of the constant, or # nil if the constant was not previously defined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:26 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#26 def original_value=(_arg0); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:29 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#29 def previously_defined=(_arg0); end # @return [Boolean] Whether or not the constant was defined # before the current example. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:33 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#33 def previously_defined?; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:29 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#29 def stubbed=(_arg0); end # @return [Boolean] Whether or not rspec-mocks has stubbed # this constant. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:45 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#45 def stubbed?; end # The default `to_s` isn't very useful, so a custom version is provided. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:62 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#62 def to_s; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:29 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#29 def valid_name=(_arg0); end # @return [Boolean] Whether or not the provided constant name # is a valid Ruby constant name. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:57 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#57 def valid_name?; end class << self @@ -1813,19 +1729,19 @@ class RSpec::Mocks::Constant # @return [Constant] an object contaning information about the named # constant. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:86 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#86 def original(name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:68 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#68 def unmutated(name); end end end # Provides a means to stub constants. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:93 +# source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#93 class RSpec::Mocks::ConstantMutator extend ::RSpec::Support::RecursiveConstMethods @@ -1840,7 +1756,7 @@ class RSpec::Mocks::ConstantMutator # The current constant scoping at the point of call is not considered. # @see ExampleMethods#hide_const # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:131 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#131 def hide(constant_name); end # Uses the mutator to mutate (stub or hide) a constant. Ensures that @@ -1849,7 +1765,7 @@ class RSpec::Mocks::ConstantMutator # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:320 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#320 def mutate(mutator); end # Used internally by the constant stubbing to raise a helpful @@ -1859,7 +1775,7 @@ class RSpec::Mocks::ConstantMutator # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:331 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#331 def raise_on_invalid_const; end # Stubs a constant. @@ -1877,7 +1793,7 @@ class RSpec::Mocks::ConstantMutator # @return [Object] the stubbed value of the constant # @see ExampleMethods#stub_const # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:107 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#107 def stub(constant_name, value, options = T.unsafe(nil)); end end end @@ -1886,29 +1802,29 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:139 +# source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#139 class RSpec::Mocks::ConstantMutator::BaseMutator include ::RSpec::Support::RecursiveConstMethods # @return [BaseMutator] a new instance of BaseMutator # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:144 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#144 def initialize(full_constant_name, mutated_value, transfer_nested_constants); end # Returns the value of attribute full_constant_name. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:142 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#142 def full_constant_name; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:160 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#160 def idempotently_reset; end # Returns the value of attribute original_value. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:142 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#142 def original_value; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:153 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#153 def to_constant; end end @@ -1916,15 +1832,15 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:169 +# source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#169 class RSpec::Mocks::ConstantMutator::ConstantHider < ::RSpec::Mocks::ConstantMutator::BaseMutator - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:170 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#170 def mutate; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:188 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#188 def reset; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:178 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#178 def to_constant; end end @@ -1932,31 +1848,31 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:197 +# source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#197 class RSpec::Mocks::ConstantMutator::DefinedConstantReplacer < ::RSpec::Mocks::ConstantMutator::BaseMutator # @return [DefinedConstantReplacer] a new instance of DefinedConstantReplacer # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:198 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#198 def initialize(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:203 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#203 def mutate; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:223 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#223 def reset; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:268 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#268 def should_transfer_nested_constants?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:215 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#215 def to_constant; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:232 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#232 def transfer_nested_constants; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:238 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#238 def verify_constants_to_transfer!; end end @@ -1964,26 +1880,26 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:278 +# source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#278 class RSpec::Mocks::ConstantMutator::UndefinedConstantSetter < ::RSpec::Mocks::ConstantMutator::BaseMutator - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:279 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#279 def mutate; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:299 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#299 def reset; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:291 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#291 def to_constant; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/mutate_const.rb:305 + # source://rspec-mocks//lib/rspec/mocks/mutate_const.rb#305 def name_for(parent, name); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:104 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#104 RSpec::Mocks::DEFAULT_CALLBACK_INVOCATION_STRATEGY = T.let(T.unsafe(nil), RSpec::Mocks::CallbackInvocationStrategy) # An implementation of rspec-mocks' reference interface. @@ -1994,12 +1910,12 @@ RSpec::Mocks::DEFAULT_CALLBACK_INVOCATION_STRATEGY = T.let(T.unsafe(nil), RSpec: # # @see NamedObjectReference # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:56 +# source://rspec-mocks//lib/rspec/mocks/object_reference.rb#56 class RSpec::Mocks::DirectObjectReference # @param object [Object] the object to which this refers # @return [DirectObjectReference] a new instance of DirectObjectReference # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:58 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#58 def initialize(object); end # Defined for interface parity with the other object reference @@ -2008,26 +1924,26 @@ class RSpec::Mocks::DirectObjectReference # # @raise [ArgumentError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:70 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#70 def const_to_replace; end # Always returns true for an object as the class is defined. # # @return [true] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:85 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#85 def defined?; end # @return [String] the object's description (via `#inspect`). # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:63 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#63 def description; end # The target of the verifying double (the object itself). # # @return [Object] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:78 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#78 def target; end # Yields if the reference target is loaded, providing a generic mechanism @@ -2039,226 +1955,226 @@ class RSpec::Mocks::DirectObjectReference # # @yield [Object] the target of this reference. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:97 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#97 def when_loaded; end end # A generic test double object. `double`, `instance_double` and friends # return an instance of this. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:132 +# source://rspec-mocks//lib/rspec/mocks/test_double.rb#132 class RSpec::Mocks::Double include ::RSpec::Mocks::TestDouble end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:36 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#36 class RSpec::Mocks::ErrorGenerator # @return [ErrorGenerator] a new instance of ErrorGenerator # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:39 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#39 def initialize(target = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:71 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#71 def default_error_message(expectation, expected_args, actual_args); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:132 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#132 def describe_expectation(verb, message, expected_received_count, _actual_received_count, args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:215 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#215 def expectation_on_nil_message(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:222 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#222 def intro(unwrapped = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:235 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#235 def method_call_args_description(args, generic_prefix = T.unsafe(nil), matcher_prefix = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:44 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#44 def opts; end # Sets the attribute opts # # @param value the value to set the attribute opts to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:37 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#37 def opts=(_arg0); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:203 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#203 def raise_already_invoked_error(message, calling_customization); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:193 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#193 def raise_cant_constrain_count_for_negated_have_received_error(count_constraint); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:170 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#170 def raise_double_negation_error(wrapped_expression); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:77 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#77 def raise_expectation_error(message, expected_received_count, argument_list_matcher, actual_received_count, expectation_count_type, args, backtrace_line = T.unsafe(nil), source_id = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:164 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#164 def raise_expectation_on_mocked_method(method); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:211 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#211 def raise_expectation_on_nil_error(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:158 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#158 def raise_expectation_on_unstubbed_method(method); end # @private # @raise [ExpiredTestDoubleError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:123 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#123 def raise_expired_test_double_error; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:187 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#187 def raise_have_received_disallowed(type, reason); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:118 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#118 def raise_invalid_arguments_error(verifier); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:198 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#198 def raise_method_not_stubbed_error(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:142 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#142 def raise_missing_block_error(args_to_yield); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:59 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#59 def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end # @private # @raise [NoMethodError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:111 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#111 def raise_non_public_error(method_name, visibility); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:152 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#152 def raise_only_valid_on_a_partial_double(method); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:137 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#137 def raise_out_of_order_error(message); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:67 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#67 def raise_similar_message_args_error(expectation, args_for_multiple_calls, backtrace_line = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:54 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#54 def raise_unexpected_message_args_error(expectation, args_for_multiple_calls, source_id = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:49 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#49 def raise_unexpected_message_error(message, args); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:87 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#87 def raise_unimplemented_error(doubled_module, method_name, object); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:178 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#178 def raise_verifying_double_not_defined_error(ref); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:147 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#147 def raise_wrong_arity_error(args_to_yield, signature); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:307 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#318 def __raise(message, backtrace_line = T.unsafe(nil), source_id = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:335 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#346 def arg_list(args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:345 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#356 def count_message(count, expectation_count_type = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:281 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#292 def diff_message(expected_args, actual_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:303 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#314 def differ; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:268 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#268 def error_message(expectation, args_for_multiple_calls); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:257 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#257 def expected_part_of_expectation_error(expected_received_count, expectation_count_type, argument_list_matcher); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:330 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#341 def format_args(args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:339 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#350 def format_received_args(args_for_multiple_calls); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:359 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#370 def group_count(index, args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:355 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#366 def grouped_args(args); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:299 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#310 def list_of_exactly_one_string?(args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:326 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#337 def notify(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:321 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#332 def prepend_to_backtrace(exception, line); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:250 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#250 def received_part_of_expectation_error(actual_received_count, args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:351 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#362 def times(count); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:264 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#264 def unexpected_arguments_message(expected_args_string, actual_args_string); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:291 + # source://rspec-mocks//lib/rspec/mocks/error_generator.rb#302 def unpack_string_args(formatted_expected_args, actual_args); end end @@ -2267,7 +2183,7 @@ end # to use rspec-mocks with your test framework. If you're using rspec-core, # it'll take care of doing this for you. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:9 +# source://rspec-mocks//lib/rspec/mocks/example_methods.rb#9 module RSpec::Mocks::ExampleMethods include ::RSpec::Mocks::ArgumentMatchers include ::RSpec::Mocks::ExampleMethods::ExpectHost @@ -2279,7 +2195,7 @@ module RSpec::Mocks::ExampleMethods # allow(dbl).to receive(:foo).with(5).and_return(:return_value) # @note If you disable the `:expect` syntax this method will be undefined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:128 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#128 def allow(target); end # Used to wrap a class in preparation for stubbing a method @@ -2289,7 +2205,7 @@ module RSpec::Mocks::ExampleMethods # allow_any_instance_of(MyClass).to receive(:foo) # @note This is only available when you have enabled the `expect` syntax. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:136 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#136 def allow_any_instance_of(klass); end # Disables warning messages about expectations being set on nil. @@ -2300,7 +2216,7 @@ module RSpec::Mocks::ExampleMethods # # @deprecated Use {RSpec::Mocks::Configuration#allow_message_expectations_on_nil} instead. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:201 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#201 def allow_message_expectations_on_nil; end # Constructs a test double against a specific class. If the given class @@ -2314,7 +2230,7 @@ module RSpec::Mocks::ExampleMethods # @overload class_double # @return ClassVerifyingDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:79 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#79 def class_double(doubled_class, *args); end # Constructs a test double that is optimized for use with `have_received` @@ -2330,7 +2246,7 @@ module RSpec::Mocks::ExampleMethods # @overload class_spy # @return ClassVerifyingDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:191 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#191 def class_spy(*args); end # Constructs an instance of [RSpec::Mocks::Double](RSpec::Mocks::Double) configured @@ -2350,7 +2266,7 @@ module RSpec::Mocks::ExampleMethods # @overload double # @return [Double] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:34 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#34 def double(*args); end # Used to wrap a class in preparation for setting a mock expectation @@ -2360,7 +2276,7 @@ module RSpec::Mocks::ExampleMethods # expect_any_instance_of(MyClass).to receive(:foo) # @note If you disable the `:expect` syntax this method will be undefined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:132 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#132 def expect_any_instance_of(klass); end # Verifies that the given object received the expected message during the @@ -2383,7 +2299,7 @@ module RSpec::Mocks::ExampleMethods # @param method_name [Symbol] name of the method expected to have been # called. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:281 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#281 def have_received(method_name, &block); end # Hides the named constant with the given value. The constant will be @@ -2397,7 +2313,7 @@ module RSpec::Mocks::ExampleMethods # @param constant_name [String] The fully qualified name of the constant. # The current constant scoping at the point of call is not considered. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:256 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#256 def hide_const(constant_name); end # Constructs a test double against a specific class. If the given class @@ -2411,7 +2327,7 @@ module RSpec::Mocks::ExampleMethods # @overload instance_double # @return InstanceVerifyingDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:56 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#56 def instance_double(doubled_class, *args); end # Constructs a test double that is optimized for use with `have_received` @@ -2427,7 +2343,7 @@ module RSpec::Mocks::ExampleMethods # @overload instance_spy # @return InstanceVerifyingDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:144 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#144 def instance_spy(*args); end # Constructs a test double against a specific object. Only the methods @@ -2441,7 +2357,7 @@ module RSpec::Mocks::ExampleMethods # @overload object_double # @return ObjectVerifyingDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:102 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#102 def object_double(object_or_name, *args); end # Constructs a test double that is optimized for use with `have_received` @@ -2456,7 +2372,7 @@ module RSpec::Mocks::ExampleMethods # @overload object_spy # @return ObjectVerifyingDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:167 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#167 def object_spy(*args); end # Used to specify a message that you expect or allow an object @@ -2469,7 +2385,7 @@ module RSpec::Mocks::ExampleMethods # expect(obj).to receive(:hello).with("world").exactly(3).times # @note If you disable the `:expect` syntax this method will be undefined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:114 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#114 def receive(method_name, &block); end # stubs/mocks a chain of messages on an object or test double. @@ -2499,7 +2415,7 @@ module RSpec::Mocks::ExampleMethods # @overload receive_message_chain # @overload receive_message_chain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:124 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#124 def receive_message_chain(*messages, &block); end # Shorthand syntax used to setup message(s), and their return value(s), @@ -2513,7 +2429,7 @@ module RSpec::Mocks::ExampleMethods # allow(obj).to receive_messages(:speak => "Hello", :meow => "Meow") # @note If you disable the `:expect` syntax this method will be undefined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:118 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#118 def receive_messages(message_return_value_hash); end # Constructs a test double that is optimized for use with @@ -2526,7 +2442,7 @@ module RSpec::Mocks::ExampleMethods # @overload spy # @return [Double] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:120 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#120 def spy(*args); end # Stubs the named constant with the given value. @@ -2562,7 +2478,7 @@ module RSpec::Mocks::ExampleMethods # @param options [Hash] Stubbing options. # @return [Object] the stubbed value of the constant # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:241 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#241 def stub_const(constant_name, value, options = T.unsafe(nil)); end # Turns off the verifying of partial doubles for the duration of the @@ -2570,30 +2486,30 @@ module RSpec::Mocks::ExampleMethods # time and you wish to define stubs for them but not turn off partial # doubles for the entire run suite. (e.g. view specs in rspec-rails). # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:289 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#289 def without_partial_double_verification; end class << self # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:423 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#423 def declare_double(type, *args); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:408 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#408 def declare_verifying_double(type, ref, *args); end # @private # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:401 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#401 def extended(object); end # @private # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:392 + # source://rspec-mocks//lib/rspec/mocks/example_methods.rb#392 def included(klass); end end end @@ -2601,65 +2517,65 @@ end # This module exists to host the `expect` method for cases where # rspec-mocks is used w/o rspec-expectations. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/example_methods.rb:430 +# source://rspec-mocks//lib/rspec/mocks/example_methods.rb#430 module RSpec::Mocks::ExampleMethods::ExpectHost - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:142 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#142 def expect(target); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:62 +# source://rspec-mocks//lib/rspec/mocks/message_chain.rb#62 class RSpec::Mocks::ExpectChain < ::RSpec::Mocks::MessageChain private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:69 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#69 def expectation(object, message, &return_block); end class << self # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:63 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#63 def expect_chain_on(object, *chain, &blk); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:87 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#87 class RSpec::Mocks::ExpectationTarget < ::RSpec::Mocks::TargetBase include ::RSpec::Mocks::ExpectationTargetMethods end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:73 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#73 module RSpec::Mocks::ExpectationTargetMethods include ::RSpec::Mocks::TargetDelegationInstanceMethods extend ::RSpec::Mocks::TargetDelegationClassMethods - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:81 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#81 def expression; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:16 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#16 def not_to(matcher, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:6 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#6 def to(matcher, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:16 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#16 def to_not(matcher, &block); end end # Raised when a test double is used after it has been torn # down (typically at the end of an rspec-core example). # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:10 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#10 class RSpec::Mocks::ExpiredTestDoubleError < ::RSpec::Mocks::MockExpectationError; end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:112 +# source://rspec-mocks//lib/rspec/mocks.rb#112 RSpec::Mocks::IGNORED_BACKTRACE_LINE = T.let(T.unsafe(nil), String) # Represents a configured implementation. Takes into account @@ -2667,65 +2583,65 @@ RSpec::Mocks::IGNORED_BACKTRACE_LINE = T.let(T.unsafe(nil), String) # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:758 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#756 class RSpec::Mocks::Implementation - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:761 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#759 def call(*args, &block); end # Returns the value of attribute initial_action. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:759 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#757 def initial_action; end # Sets the attribute initial_action # # @param value the value to set the attribute initial_action to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:759 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#757 def initial_action=(_arg0); end # Returns the value of attribute inner_action. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:759 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#757 def inner_action; end # Sets the attribute inner_action # # @param value the value to set the attribute inner_action to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:759 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#757 def inner_action=(_arg0); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:768 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#766 def present?; end # Returns the value of attribute terminal_action. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:759 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#757 def terminal_action; end # Sets the attribute terminal_action # # @param value the value to set the attribute terminal_action to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:759 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#757 def terminal_action=(_arg0); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:774 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#772 def actions; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:113 +# source://rspec-mocks//lib/rspec/mocks/method_reference.rb#113 class RSpec::Mocks::InstanceMethodReference < ::RSpec::Mocks::MethodReference private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:138 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#138 def find_method(mod); end # Ideally, we'd use `respond_to?` for `method_implemented?` but we need a @@ -2736,52 +2652,52 @@ class RSpec::Mocks::InstanceMethodReference < ::RSpec::Mocks::MethodReference # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:116 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#116 def method_defined?(mod); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:116 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#116 def method_implemented?(mod); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:143 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#143 def visibility_from(mod); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:4 +# source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#4 class RSpec::Mocks::InstanceMethodStasher # @return [InstanceMethodStasher] a new instance of InstanceMethodStasher # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:5 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#5 def initialize(object, method); end # ruby 2.0.0-p247 and 2.0.0-p195 both have a bug that we can't work around :(. # https://bugs.ruby-lang.org/issues/8686 # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:91 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#91 def handle_restoration_failures; end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:49 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#49 def method_is_stashed?; end # Returns the value of attribute original_method. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:14 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#14 def original_method; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:61 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#61 def restore; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:54 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#54 def stash; end private @@ -2789,18 +2705,18 @@ class RSpec::Mocks::InstanceMethodStasher # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:100 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#100 def method_defined_directly_on_klass?; end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:105 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#105 def method_defined_on_klass?(klass = T.unsafe(nil)); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/instance_method_stasher.rb:109 + # source://rspec-mocks//lib/rspec/mocks/instance_method_stasher.rb#109 def method_owned_by_klass?; end end @@ -2810,12 +2726,12 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:69 +# source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#69 class RSpec::Mocks::InstanceVerifyingDouble include ::RSpec::Mocks::TestDouble include ::RSpec::Mocks::VerifyingDouble - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:73 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#73 def __build_mock_proxy(order_group); end end @@ -2823,289 +2739,289 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/marshal_extension.rb:6 +# source://rspec-mocks//lib/rspec/mocks/marshal_extension.rb#6 class RSpec::Mocks::MarshalExtension class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/marshal_extension.rb:7 + # source://rspec-mocks//lib/rspec/mocks/marshal_extension.rb#7 def patch!; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/marshal_extension.rb:27 + # source://rspec-mocks//lib/rspec/mocks/marshal_extension.rb#27 def unpatch!; end end end # Namespace for mock-related matchers. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:122 +# source://rspec-mocks//lib/rspec/mocks.rb#122 module RSpec::Mocks::Matchers; end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/expectation_customization.rb:5 +# source://rspec-mocks//lib/rspec/mocks/matchers/expectation_customization.rb#5 class RSpec::Mocks::Matchers::ExpectationCustomization # @return [ExpectationCustomization] a new instance of ExpectationCustomization # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/expectation_customization.rb:8 + # source://rspec-mocks//lib/rspec/mocks/matchers/expectation_customization.rb#8 def initialize(method_name, args, block); end # Returns the value of attribute block. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/expectation_customization.rb:6 + # source://rspec-mocks//lib/rspec/mocks/matchers/expectation_customization.rb#6 def block; end # Sets the attribute block # # @param value the value to set the attribute block to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/expectation_customization.rb:6 + # source://rspec-mocks//lib/rspec/mocks/matchers/expectation_customization.rb#6 def block=(_arg0); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/expectation_customization.rb:14 + # source://rspec-mocks//lib/rspec/mocks/matchers/expectation_customization.rb#14 def playback_onto(expectation); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:5 +# source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#5 class RSpec::Mocks::Matchers::HaveReceived include ::RSpec::Mocks::Matchers::Matcher # @return [HaveReceived] a new instance of HaveReceived # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:12 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#12 def initialize(method_name, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def at_least(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def at_most(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:48 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#48 def description; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:32 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#32 def does_not_match?(subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def exactly(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:40 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#40 def failure_message; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:44 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#44 def failure_message_when_negated; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:23 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#23 def matches?(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:19 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#19 def name; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def once(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def ordered(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:67 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#67 def setup_allowance(_subject, &_block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:71 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#71 def setup_any_instance_allowance(_subject, &_block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:75 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#75 def setup_any_instance_expectation(_subject, &_block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:79 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#79 def setup_any_instance_negative_expectation(_subject, &_block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:59 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#59 def setup_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:63 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#63 def setup_negative_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def thrice(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def time(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def times(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def twice(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#53 def with(*args); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:95 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#95 def apply_constraints_to(expectation); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:112 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#112 def capture_failure_message; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:106 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#106 def count_constraint; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:85 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#85 def disallow(type, reason = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:101 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#101 def ensure_count_unconstrained; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:89 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#89 def expect; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:123 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#123 def expected_messages_received_in_order?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:128 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#128 def mock_proxy; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:118 + # source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#118 def notify_failure_message; end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:9 +# source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#9 RSpec::Mocks::Matchers::HaveReceived::ARGS_CONSTRAINTS = T.let(T.unsafe(nil), Array) -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:10 +# source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#10 RSpec::Mocks::Matchers::HaveReceived::CONSTRAINTS = T.let(T.unsafe(nil), Array) -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/have_received.rb:8 +# source://rspec-mocks//lib/rspec/mocks/matchers/have_received.rb#8 RSpec::Mocks::Matchers::HaveReceived::COUNT_CONSTRAINTS = T.let(T.unsafe(nil), Array) # just a "tag" for rspec-mock matchers detection # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks.rb:125 +# source://rspec-mocks//lib/rspec/mocks.rb#125 module RSpec::Mocks::Matchers::Matcher; end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:7 +# source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#7 class RSpec::Mocks::Matchers::Receive include ::RSpec::Mocks::Matchers::Matcher # @return [Receive] a new instance of Receive # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:10 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#10 def initialize(message, block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_call_original(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_invoke(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_raise(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_return(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_throw(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_wrap_original(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def and_yield(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def at_least(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def at_most(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:20 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#20 def description; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:30 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#30 def does_not_match?(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def exactly(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:24 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#24 def matches?(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:16 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#16 def name; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def never(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def once(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def ordered(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:41 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#41 def setup_allowance(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:54 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#54 def setup_any_instance_allowance(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:46 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#46 def setup_any_instance_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:50 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#50 def setup_any_instance_negative_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:24 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#24 def setup_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:30 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#30 def setup_negative_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def thrice(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def time(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def times(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def twice(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#61 def with(*args, &block); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:70 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#70 def describable; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:107 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#107 def move_block_to_last_customization(block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:90 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#90 def setup_any_instance_method_substitute(subject, method, block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:95 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#95 def setup_method_substitute(host, method, block, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:85 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#85 def setup_mock_proxy_method_substitute(subject, method, block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:74 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#74 def warn_if_any_instance(expression, subject); end end @@ -3114,191 +3030,191 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:118 +# source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#118 class RSpec::Mocks::Matchers::Receive::DefaultDescribable # @return [DefaultDescribable] a new instance of DefaultDescribable # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:119 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#119 def initialize(message); end # This is much simpler for the `any_instance` case than what the # user may want, but I'm not up for putting a bunch of effort # into full descriptions for `any_instance` expectations at this point :(. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive.rb:126 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive.rb#126 def description_for(verb); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:7 +# source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#7 class RSpec::Mocks::Matchers::ReceiveMessageChain include ::RSpec::Mocks::Matchers::Matcher # @return [ReceiveMessageChain] a new instance of ReceiveMessageChain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:10 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#10 def initialize(chain, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def and_call_original(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def and_invoke(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def and_raise(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def and_return(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def and_throw(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def and_yield(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:27 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#27 def description; end # @raise [NegationUnsupportedError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#53 def does_not_match?(*_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:48 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#48 def matches?(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:23 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#23 def name; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:31 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#31 def setup_allowance(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:36 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#36 def setup_any_instance_allowance(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:42 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#42 def setup_any_instance_expectation(subject, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:48 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#48 def setup_expectation(subject, &block); end # @raise [NegationUnsupportedError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:53 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#53 def setup_negative_expectation(*_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#17 def with(*args, &block); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:70 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#70 def formatted_chain; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_message_chain.rb:64 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_message_chain.rb#64 def replay_customizations(chain); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:5 +# source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#5 class RSpec::Mocks::Matchers::ReceiveMessages include ::RSpec::Mocks::Matchers::Matcher # @return [ReceiveMessages] a new instance of ReceiveMessages # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:8 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#8 def initialize(message_return_value_hash); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:17 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#17 def description; end # @raise [NegationUnsupportedError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:29 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#29 def does_not_match?(_subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:21 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#21 def matches?(subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:13 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#13 def name; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:36 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#36 def setup_allowance(subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:50 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#50 def setup_any_instance_allowance(subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:43 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#43 def setup_any_instance_expectation(subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:21 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#21 def setup_expectation(subject); end # @raise [NegationUnsupportedError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:29 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#29 def setup_negative_expectation(_subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:55 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#55 def warn_about_block; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:65 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#65 def any_instance_of(subject); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:69 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#69 def each_message_on(host); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/matchers/receive_messages.rb:61 + # source://rspec-mocks//lib/rspec/mocks/matchers/receive_messages.rb#61 def proxy_on(subject); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:4 +# source://rspec-mocks//lib/rspec/mocks/message_chain.rb#4 class RSpec::Mocks::MessageChain # @return [MessageChain] a new instance of MessageChain # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:7 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#7 def initialize(object, *chain, &blk); end # Returns the value of attribute block. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:5 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#5 def block; end # Returns the value of attribute chain. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:5 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#5 def chain; end # Returns the value of attribute object. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:5 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#5 def object; end # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:13 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#13 def setup_chain; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:33 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#33 def chain_on(object, *chain, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:54 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#54 def find_matching_expectation; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:49 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#49 def find_matching_stub; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:38 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#38 def format_chain(*chain, &blk); end end @@ -3306,7 +3222,7 @@ end # defined here can be used to configure how it behaves. The methods return # `self` so that they can be chained together to form a fluent interface. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:44 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#44 class RSpec::Mocks::MessageExpectation include ::RSpec::Mocks::MessageExpectation::ImplementationDetails @@ -3321,7 +3237,7 @@ class RSpec::Mocks::MessageExpectation # @note This is only available on partial doubles. # @return [nil] No further chaining is supported after this. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:141 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#141 def and_call_original; end # Tells the object to invoke a Proc when it receives the message. Given @@ -3346,7 +3262,7 @@ class RSpec::Mocks::MessageExpectation # # etc # @return [nil] No further chaining is supported after this. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:109 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#109 def and_invoke(first_proc, *procs); end # Tells the object to raise an exception when the message is received. @@ -3367,7 +3283,7 @@ class RSpec::Mocks::MessageExpectation # @overload and_raise # @return [nil] No further chaining is supported after this. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:186 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#186 def and_raise(*args); end # Tells the object to return a value when it receives the message. Given @@ -3394,7 +3310,7 @@ class RSpec::Mocks::MessageExpectation # @overload and_return # @return [nil] No further chaining is supported after this. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:71 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#71 def and_return(first_value, *values); end # Tells the object to throw a symbol (with the object if that form is @@ -3407,7 +3323,7 @@ class RSpec::Mocks::MessageExpectation # @overload and_throw # @return [nil] No further chaining is supported after this. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:202 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#202 def and_throw(*args); end # Decorates the stubbed method with the supplied block. The original @@ -3422,7 +3338,7 @@ class RSpec::Mocks::MessageExpectation # @note This is only available on partial doubles. # @return [nil] No further chaining is supported after this. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:162 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#162 def and_wrap_original(&block); end # Tells the object to yield one or more args to a block when the message @@ -3433,7 +3349,7 @@ class RSpec::Mocks::MessageExpectation # @return [MessageExpectation] self, to support further chaining. # @yield [@eval_context = Object.new] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:214 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#214 def and_yield(*args, &block); end # Constrain a message expectation to be received at least a specific @@ -3443,7 +3359,7 @@ class RSpec::Mocks::MessageExpectation # expect(dealer).to receive(:deal_card).at_least(9).times # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:249 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#249 def at_least(n, &block); end # Constrain a message expectation to be received at most a specific @@ -3453,7 +3369,7 @@ class RSpec::Mocks::MessageExpectation # expect(dealer).to receive(:deal_card).at_most(10).times # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:268 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#268 def at_most(n, &block); end # Constrain a message expectation to be received a specific number of @@ -3463,12 +3379,12 @@ class RSpec::Mocks::MessageExpectation # expect(dealer).to receive(:deal_card).exactly(10).times # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:236 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#236 def exactly(n, &block); end # @return [String] a nice representation of the message expectation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:396 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#396 def inspect; end # Expect a message not to be received at all. @@ -3477,7 +3393,7 @@ class RSpec::Mocks::MessageExpectation # expect(car).to receive(:stop).never # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:293 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#293 def never; end # Expect a message to be received exactly one time. @@ -3486,7 +3402,7 @@ class RSpec::Mocks::MessageExpectation # expect(car).to receive(:go).once # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:304 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#304 def once(&block); end # Expect messages to be received in a specific order. @@ -3497,7 +3413,7 @@ class RSpec::Mocks::MessageExpectation # expect(api).to receive(:finish).ordered # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:379 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#379 def ordered(&block); end # Expect a message to be received exactly three times. @@ -3506,7 +3422,7 @@ class RSpec::Mocks::MessageExpectation # expect(car).to receive(:go).thrice # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:326 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#326 def thrice(&block); end # Syntactic sugar for `exactly`, `at_least` and `at_most` @@ -3517,7 +3433,7 @@ class RSpec::Mocks::MessageExpectation # expect(dealer).to receive(:deal_card).at_most(10).times # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:282 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#282 def time(&block); end # Syntactic sugar for `exactly`, `at_least` and `at_most` @@ -3528,12 +3444,12 @@ class RSpec::Mocks::MessageExpectation # expect(dealer).to receive(:deal_card).at_most(10).times # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:282 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#282 def times(&block); end # @return [String] a nice representation of the message expectation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:396 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#396 def to_s; end # Expect a message to be received exactly two times. @@ -3542,7 +3458,7 @@ class RSpec::Mocks::MessageExpectation # expect(car).to receive(:go).twice # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:315 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#315 def twice(&block); end # Constrains a stub or message expectation to invocations with specific @@ -3570,7 +3486,7 @@ class RSpec::Mocks::MessageExpectation # # => passes # @return [MessageExpectation] self, to support further chaining. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:359 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#359 def with(*args, &block); end end @@ -3582,155 +3498,155 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:410 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#409 module RSpec::Mocks::MessageExpectation::ImplementationDetails - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:421 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#420 def initialize(error_generator, expectation_ordering, expected_from, method_double, type = T.unsafe(nil), opts = T.unsafe(nil), &implementation_block); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:589 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#588 def actual_received_count_matters?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:576 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#575 def additional_expected_calls; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:533 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#532 def advise(*args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:455 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#454 def and_yield_receiver_to_implementation; end # Sets the attribute argument_list_matcher # # @param value the value to set the attribute argument_list_matcher to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:414 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#413 def argument_list_matcher=(_arg0); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:488 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#487 def called_max_times?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:565 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#564 def description_for(verb); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:508 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#507 def ensure_expected_ordering_received!; end # Returns the value of attribute error_generator. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:411 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#410 def error_generator; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:559 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#558 def expectation_count_type; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:451 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#450 def expected_args; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:504 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#503 def expected_messages_received?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:541 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#540 def generate_error; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:513 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#512 def ignoring_args?; end # Returns the value of attribute implementation. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:411 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#410 def implementation; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:593 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#592 def increase_actual_received_count!; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:474 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#473 def invoke(parent_stub, *args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:479 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#478 def invoke_without_incrementing_received_count(parent_stub, *args, &block); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:464 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#463 def matches?(message, *args); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:517 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#516 def matches_at_least_count?; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:521 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#520 def matches_at_most_count?; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:525 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#524 def matches_exact_count?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:495 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#494 def matches_name_but_not_args(message, *args); end # Returns the value of attribute message. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:412 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#411 def message; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:484 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#483 def negative?; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:585 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#584 def negative_expectation_for?(message); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:581 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#580 def ordered?; end # Returns the value of attribute orig_object. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:413 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#412 def orig_object; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:572 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#571 def raise_out_of_order_error; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:555 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#554 def raise_unexpected_message_args_error(args_for_multiple_calls); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:469 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#468 def safe_invoke(parent_stub, *args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:529 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#528 def similar_messages; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:418 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#417 def type; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:537 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#536 def unadvise(args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:499 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#498 def verify_messages_received; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:460 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#459 def yield_receiver_to_implementation_block?; end protected @@ -3739,88 +3655,88 @@ module RSpec::Mocks::MessageExpectation::ImplementationDetails # # @param value the value to set the attribute error_generator to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:411 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#410 def error_generator=(_arg0); end # Sets the attribute expected_from # # @param value the value to set the attribute expected_from to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:414 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#413 def expected_from=(_arg0); end # Sets the attribute expected_received_count # # @param value the value to set the attribute expected_received_count to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:414 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#413 def expected_received_count=(_arg0); end # Sets the attribute implementation # # @param value the value to set the attribute implementation to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:411 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#410 def implementation=(_arg0); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:601 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#600 def exception_source_id; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:633 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#632 def has_been_invoked?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:656 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#655 def initial_implementation_action=(action); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:660 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#659 def inner_implementation_action=(action); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:605 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#604 def invoke_incrementing_actual_calls_by(increment, allowed_to_fail, parent_stub, *args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:637 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#636 def raise_already_invoked_error_if_necessary(calling_customization); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:643 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#642 def set_expected_received_count(relativity, n); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:666 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#665 def terminal_implementation_action=(action); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:670 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#669 def warn_about_stub_override; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:677 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#676 def wrap_original(method_name, &block); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:4 +# source://rspec-mocks//lib/rspec/mocks/method_double.rb#4 class RSpec::Mocks::MethodDouble # @private # @return [MethodDouble] a new instance of MethodDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:9 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#9 def initialize(object, method_name, proxy); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:191 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#191 def add_default_stub(*args, &implementation); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:141 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#141 def add_expectation(error_generator, expectation_ordering, expected_from, opts, &implementation); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:177 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#177 def add_simple_expectation(method_name, response, error_generator, backtrace_line); end # A simple stub can only return a concrete value for a message, and @@ -3832,37 +3748,37 @@ class RSpec::Mocks::MethodDouble # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:172 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#172 def add_simple_stub(method_name, response); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:156 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#156 def add_stub(error_generator, expectation_ordering, expected_from, opts = T.unsafe(nil), &implementation); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:150 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#150 def build_expectation(error_generator, expectation_ordering); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:127 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#127 def clear; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:51 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#51 def configure_method; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:58 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#58 def define_proxy_method; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:6 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#6 def expectations; end # The type of message expectation to create has been extracted to its own @@ -3870,33 +3786,33 @@ class RSpec::Mocks::MethodDouble # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:136 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#136 def message_expectation_class; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:6 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#6 def method_name; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:6 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#6 def method_stasher; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:6 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#6 def object; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:46 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#46 def object_singleton_class; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:21 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#21 def original_implementation_callable; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:34 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#34 def original_method; end # The implementation of the proxied method. Subclasses may override this @@ -3904,85 +3820,85 @@ class RSpec::Mocks::MethodDouble # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:79 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#79 def proxy_method_invoked(_obj, *args, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:208 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#208 def raise_method_not_stubbed_error; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:197 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#197 def remove_stub; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:203 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#203 def remove_stub_if_present; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:121 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#121 def reset; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:85 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#85 def restore_original_method; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:108 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#108 def restore_original_visibility; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:21 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#21 def save_original_implementation_callable!; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:182 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#182 def setup_simple_method_double(method_name, response, collection, error_generator = T.unsafe(nil), backtrace_line = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:97 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#97 def show_frozen_warning; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:6 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#6 def stubs; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:116 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#116 def verify; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:41 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#41 def visibility; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:230 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#230 def definition_target; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:250 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#250 def new_rspec_prepended_module; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:268 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#268 def remove_method_from_definition_target; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:234 + # source://rspec-mocks//lib/rspec/mocks/method_double.rb#234 def usable_rspec_prepended_module; end end # We subclass `Module` in order to be able to easily detect our prepended module. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/method_double.rb:228 +# source://rspec-mocks//lib/rspec/mocks/method_double.rb#228 class RSpec::Mocks::MethodDouble::RSpecPrependedModule < ::Module; end # Represents a method on an object that may or may not be defined. @@ -3991,11 +3907,11 @@ class RSpec::Mocks::MethodDouble::RSpecPrependedModule < ::Module; end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:10 +# source://rspec-mocks//lib/rspec/mocks/method_reference.rb#10 class RSpec::Mocks::MethodReference # @return [MethodReference] a new instance of MethodReference # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:15 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#15 def initialize(object_reference, method_name); end # A method is defined if we are able to get a `Method` object for it. @@ -4003,7 +3919,7 @@ class RSpec::Mocks::MethodReference # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:46 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#46 def defined?; end # A method is implemented if sending the message does not result in @@ -4012,7 +3928,7 @@ class RSpec::Mocks::MethodReference # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:23 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#23 def implemented?; end # Returns true if we definitively know that sending the method @@ -4024,33 +3940,33 @@ class RSpec::Mocks::MethodReference # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:35 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#35 def unimplemented?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:57 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#57 def visibility; end # @yield [Support::MethodSignature.new(original)] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:52 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#52 def with_signature; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:105 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#105 def original_method; end class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:11 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#11 def for(object_reference, method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:67 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#67 def instance_method_visibility_for(klass, method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:67 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#67 def method_defined_at_any_visibility?(klass, method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:81 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#81 def method_visibility_for(object, method_name); end end end @@ -4059,12 +3975,12 @@ end # `and_return`) is called on a message expectation which has already been # invoked. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:18 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#18 class RSpec::Mocks::MockExpectationAlreadyInvokedError < ::Exception; end # Raised when a message expectation is not satisfied. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:6 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#6 class RSpec::Mocks::MockExpectationError < ::Exception; end # An implementation of rspec-mocks' reference interface. @@ -4076,33 +3992,33 @@ class RSpec::Mocks::MockExpectationError < ::Exception; end # # @see DirectObjectReference # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:109 +# source://rspec-mocks//lib/rspec/mocks/object_reference.rb#109 class RSpec::Mocks::NamedObjectReference # @param const_name [String] constant name # @return [NamedObjectReference] a new instance of NamedObjectReference # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:111 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#111 def initialize(const_name); end # @return [String] the constant name to replace with a double. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:121 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#121 def const_to_replace; end # @return [Boolean] true if the named constant is defined, false otherwise. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:116 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#116 def defined?; end # @return [String] the constant name to replace with a double. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:121 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#121 def description; end # @return [Object, nil] the target of the verifying double (the named object), or # nil if it is not defined. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:128 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#128 def target; end # Yields if the reference target is loaded, providing a generic mechanism @@ -4111,94 +4027,94 @@ class RSpec::Mocks::NamedObjectReference # # @yield [Object] the target object # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:137 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#137 def when_loaded; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:143 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#143 def object; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:31 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#31 class RSpec::Mocks::NegationUnsupportedError < ::StandardError; end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:209 +# source://rspec-mocks//lib/rspec/mocks/space.rb#209 class RSpec::Mocks::NestedSpace < ::RSpec::Mocks::Space # @return [NestedSpace] a new instance of NestedSpace # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:210 + # source://rspec-mocks//lib/rspec/mocks/space.rb#210 def initialize(parent); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:219 + # source://rspec-mocks//lib/rspec/mocks/space.rb#219 def constant_mutator_for(name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:215 + # source://rspec-mocks//lib/rspec/mocks/space.rb#215 def proxies_of(klass); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:223 + # source://rspec-mocks//lib/rspec/mocks/space.rb#223 def registered?(object); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:233 + # source://rspec-mocks//lib/rspec/mocks/space.rb#233 def any_instance_recorder_not_found_for(id, klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:229 + # source://rspec-mocks//lib/rspec/mocks/space.rb#229 def proxy_not_found_for(id, object); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:16 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#16 class RSpec::Mocks::NoCallbackInvocationStrategy - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:17 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#17 def call(_doubled_module); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:149 +# source://rspec-mocks//lib/rspec/mocks/method_reference.rb#149 class RSpec::Mocks::ObjectMethodReference < ::RSpec::Mocks::MethodReference private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:168 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#168 def find_method(object); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:164 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#164 def method_defined?(object); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:160 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#160 def method_implemented?(object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:172 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#172 def visibility_from(object); end class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/method_reference.rb:150 + # source://rspec-mocks//lib/rspec/mocks/method_reference.rb#150 def for(object_reference, method_name); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:4 +# source://rspec-mocks//lib/rspec/mocks/object_reference.rb#4 class RSpec::Mocks::ObjectReference class << self # Returns an appropriate Object or Module reference based # on the given argument. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:7 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#7 def for(object_module_or_name, allow_direct_object_refs = T.unsafe(nil)); end private @@ -4207,17 +4123,17 @@ class RSpec::Mocks::ObjectReference # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:31 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#31 def anonymous_module?(mod); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:41 + # source://rspec-mocks//lib/rspec/mocks/object_reference.rb#41 def name_of(mod); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/object_reference.rb:47 +# source://rspec-mocks//lib/rspec/mocks/object_reference.rb#47 RSpec::Mocks::ObjectReference::MODULE_NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) # Similar to an InstanceVerifyingDouble, except that it verifies against @@ -4225,7 +4141,7 @@ RSpec::Mocks::ObjectReference::MODULE_NAME_METHOD = T.let(T.unsafe(nil), Unbound # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:108 +# source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#108 class RSpec::Mocks::ObjectVerifyingDouble include ::RSpec::Mocks::TestDouble include ::RSpec::Mocks::VerifyingDouble @@ -4237,92 +4153,92 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:85 +# source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#85 module RSpec::Mocks::ObjectVerifyingDoubleMethods include ::RSpec::Mocks::TestDouble include ::RSpec::Mocks::VerifyingDouble - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:89 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#89 def as_stubbed_const(options = T.unsafe(nil)); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:96 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#96 def __build_mock_proxy(order_group); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:4 +# source://rspec-mocks//lib/rspec/mocks/order_group.rb#4 class RSpec::Mocks::OrderGroup # @return [OrderGroup] a new instance of OrderGroup # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:5 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#5 def initialize; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:48 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#48 def clear; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:26 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#26 def consume; end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:54 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#54 def empty?; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:37 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#37 def handle_order_constraint(expectation); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:16 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#16 def invoked(message); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:21 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#21 def ready_for?(expectation); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:12 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#12 def register(expectation); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:43 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#43 def verify_invocation_order(expectation); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:76 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#76 def expectation_for(message); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:64 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#64 def expectations_invoked_in_order?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:72 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#72 def expected_invocations; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:68 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#68 def invoked_expectations; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/order_group.rb:60 + # source://rspec-mocks//lib/rspec/mocks/order_group.rb#60 def remaining_expectations; end end # Raised when doubles or partial doubles are used outside of the per-test lifecycle. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:13 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#13 class RSpec::Mocks::OutsideOfExampleError < ::StandardError; end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:464 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#464 class RSpec::Mocks::PartialClassDoubleProxy < ::RSpec::Mocks::PartialDoubleProxy include ::RSpec::Mocks::PartialClassDoubleProxyMethods end @@ -4334,9 +4250,9 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:388 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#388 module RSpec::Mocks::PartialClassDoubleProxyMethods - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:389 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#389 def initialize(source_space, *args); end # Consider this situation: @@ -4360,85 +4276,85 @@ module RSpec::Mocks::PartialClassDoubleProxyMethods # That's what this method (together with `original_unbound_method_handle_from_ancestor_for`) # does. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:414 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#414 def original_method_handle_for(message); end protected - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:442 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#442 def method_double_from_ancestor_for(message); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:437 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#437 def original_unbound_method_handle_from_ancestor_for(message); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:452 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#452 def superclass_proxy; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:325 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#325 class RSpec::Mocks::PartialDoubleProxy < ::RSpec::Mocks::Proxy # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:339 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#339 def add_simple_expectation(method_name, response, location); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:345 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#345 def add_simple_stub(method_name, response); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:362 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#362 def message_received(message, *args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:326 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#326 def original_method_handle_for(message); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:357 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#357 def reset; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:351 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#351 def visibility_for(method_name); end private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:372 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#372 def any_instance_class_recorder_observing_method?(klass, method_name); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:4 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#4 class RSpec::Mocks::Proxy # @private # @return [Proxy] a new instance of Proxy # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:23 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#23 def initialize(object, order_group, options = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:74 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#74 def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:88 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#88 def add_simple_expectation(method_name, response, location); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:149 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#149 def add_simple_stub(method_name, response); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:143 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#143 def add_stub(method_name, opts = T.unsafe(nil), &implementation); end # Tells the object to ignore any messages that aren't explicitly set as @@ -4446,155 +4362,155 @@ class RSpec::Mocks::Proxy # # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:61 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#61 def as_null_object; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:93 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#93 def build_expectation(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:126 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#126 def check_for_unexpected_arguments(expectation); end # @private # @raise [ArgumentError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:37 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#37 def ensure_can_be_proxied!(object); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:18 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#18 def ensure_implemented(*_args); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:190 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#190 def has_negative_expectation?(message); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:203 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#203 def message_received(message, *args, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:183 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#183 def messages_arg_list; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:268 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#268 def method_double_if_exists_for_message(message); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:54 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#54 def null_object?; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:51 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#51 def object; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:67 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#67 def original_method_handle_for(_message); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:262 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#262 def prepended_modules_of_singleton_class; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:241 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#241 def raise_missing_default_stub_error(expectation, args_for_multiple_calls); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:236 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#236 def raise_unexpected_message_error(method_name, args); end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:176 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#176 def received_message?(method_name, *args, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:195 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#195 def record_message_received(message, *args, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:154 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#154 def remove_stub(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:159 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#159 def remove_stub_if_present(method_name); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:103 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#103 def replay_received_message_on(expectation, &block); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:169 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#169 def reset; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:164 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#164 def verify; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:246 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#246 def visibility_for(_method_name); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:285 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#285 def find_almost_matching_expectation(method_name, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:309 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#309 def find_almost_matching_stub(method_name, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:292 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#292 def find_best_matching_expectation_for(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:278 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#278 def find_matching_expectation(method_name, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:304 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#304 def find_matching_method_stub(method_name, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:274 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#274 def method_double_for(message); end class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:252 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#252 def prepended_modules_of(klass); end end end -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:71 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#71 RSpec::Mocks::Proxy::DEFAULT_MESSAGE_EXPECTATION_OPTS = T.let(T.unsafe(nil), Hash) # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:6 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#6 class RSpec::Mocks::Proxy::SpecificMessage < ::Struct - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:7 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#7 def ==(expectation); end # Returns the value of attribute args @@ -4607,7 +4523,7 @@ class RSpec::Mocks::Proxy::SpecificMessage < ::Struct # @param value [Object] the value to set the attribute args to. # @return [Object] the newly set value # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:6 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#6 def args=(_); end # Returns the value of attribute message @@ -4620,7 +4536,7 @@ class RSpec::Mocks::Proxy::SpecificMessage < ::Struct # @param value [Object] the value to set the attribute message to. # @return [Object] the newly set value # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:6 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#6 def message=(_); end # Returns the value of attribute object @@ -4633,7 +4549,7 @@ class RSpec::Mocks::Proxy::SpecificMessage < ::Struct # @param value [Object] the value to set the attribute object to. # @return [Object] the newly set value # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:6 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#6 def object=(_); end class << self @@ -4646,55 +4562,55 @@ end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:469 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#469 class RSpec::Mocks::ProxyForNil < ::RSpec::Mocks::PartialDoubleProxy # @return [ProxyForNil] a new instance of ProxyForNil # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:470 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#470 def initialize(order_group); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:478 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#478 def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:483 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#483 def add_stub(method_name, opts = T.unsafe(nil), &implementation); end # Returns the value of attribute disallow_expectations. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:475 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#475 def disallow_expectations; end # Sets the attribute disallow_expectations # # @param value the value to set the attribute disallow_expectations to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:475 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#475 def disallow_expectations=(_arg0); end # Returns the value of attribute warn_about_expectations. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:476 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#476 def warn_about_expectations; end # Sets the attribute warn_about_expectations # # @param value the value to set the attribute warn_about_expectations to. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:476 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#476 def warn_about_expectations=(_arg0); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:520 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#520 def raise_error(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:490 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#490 def set_expectation_behavior; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:515 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#515 def warn(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:504 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#504 def warn_or_raise!(method_name); end end @@ -4704,45 +4620,45 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:9 +# source://rspec-mocks//lib/rspec/mocks/space.rb#9 class RSpec::Mocks::RootSpace - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:18 + # source://rspec-mocks//lib/rspec/mocks/space.rb#18 def any_instance_proxy_for(*_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:14 + # source://rspec-mocks//lib/rspec/mocks/space.rb#14 def any_instance_recorder_for(*_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:26 + # source://rspec-mocks//lib/rspec/mocks/space.rb#26 def any_instance_recorders_from_ancestry_of(_object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:44 + # source://rspec-mocks//lib/rspec/mocks/space.rb#44 def new_scope; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:10 + # source://rspec-mocks//lib/rspec/mocks/space.rb#10 def proxy_for(*_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:22 + # source://rspec-mocks//lib/rspec/mocks/space.rb#22 def register_constant_mutator(_mutator); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:36 + # source://rspec-mocks//lib/rspec/mocks/space.rb#36 def registered?(_object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:30 + # source://rspec-mocks//lib/rspec/mocks/space.rb#30 def reset_all; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:40 + # source://rspec-mocks//lib/rspec/mocks/space.rb#40 def superclass_proxy_for(*_args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:33 + # source://rspec-mocks//lib/rspec/mocks/space.rb#33 def verify_all; end private # @raise [OutsideOfExampleError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:50 + # source://rspec-mocks//lib/rspec/mocks/space.rb#50 def raise_lifecycle_message; end end @@ -4753,135 +4669,135 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:11 +# source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#11 class RSpec::Mocks::SimpleMessageExpectation # @return [SimpleMessageExpectation] a new instance of SimpleMessageExpectation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:12 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#12 def initialize(message, response, error_generator, backtrace_line = T.unsafe(nil)); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:26 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#26 def called_max_times?; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:17 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#17 def invoke(*_); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:22 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#22 def matches?(message, *_); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:37 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#37 def unadvise(_); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_expectation.rb:30 + # source://rspec-mocks//lib/rspec/mocks/message_expectation.rb#30 def verify_messages_received; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:57 +# source://rspec-mocks//lib/rspec/mocks/space.rb#57 class RSpec::Mocks::Space # @return [Space] a new instance of Space # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:60 + # source://rspec-mocks//lib/rspec/mocks/space.rb#60 def initialize; end # Returns the value of attribute any_instance_mutex. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:58 + # source://rspec-mocks//lib/rspec/mocks/space.rb#58 def any_instance_mutex; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:103 + # source://rspec-mocks//lib/rspec/mocks/space.rb#103 def any_instance_proxy_for(klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:93 + # source://rspec-mocks//lib/rspec/mocks/space.rb#93 def any_instance_recorder_for(klass, only_return_existing = T.unsafe(nil)); end # Returns the value of attribute any_instance_recorders. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:58 + # source://rspec-mocks//lib/rspec/mocks/space.rb#58 def any_instance_recorders; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:131 + # source://rspec-mocks//lib/rspec/mocks/space.rb#131 def any_instance_recorders_from_ancestry_of(object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:89 + # source://rspec-mocks//lib/rspec/mocks/space.rb#89 def constant_mutator_for(name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:111 + # source://rspec-mocks//lib/rspec/mocks/space.rb#111 def ensure_registered(object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:69 + # source://rspec-mocks//lib/rspec/mocks/space.rb#69 def new_scope; end # Returns the value of attribute proxies. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:58 + # source://rspec-mocks//lib/rspec/mocks/space.rb#58 def proxies; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:107 + # source://rspec-mocks//lib/rspec/mocks/space.rb#107 def proxies_of(klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:111 + # source://rspec-mocks//lib/rspec/mocks/space.rb#111 def proxy_for(object); end # Returns the value of attribute proxy_mutex. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:58 + # source://rspec-mocks//lib/rspec/mocks/space.rb#58 def proxy_mutex; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:85 + # source://rspec-mocks//lib/rspec/mocks/space.rb#85 def register_constant_mutator(mutator); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:127 + # source://rspec-mocks//lib/rspec/mocks/space.rb#127 def registered?(object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:78 + # source://rspec-mocks//lib/rspec/mocks/space.rb#78 def reset_all; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:118 + # source://rspec-mocks//lib/rspec/mocks/space.rb#118 def superclass_proxy_for(klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:73 + # source://rspec-mocks//lib/rspec/mocks/space.rb#73 def verify_all; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:184 + # source://rspec-mocks//lib/rspec/mocks/space.rb#184 def any_instance_recorder_not_found_for(id, klass); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:171 + # source://rspec-mocks//lib/rspec/mocks/space.rb#171 def class_proxy_with_callback_verification_strategy(object, strategy); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:202 + # source://rspec-mocks//lib/rspec/mocks/space.rb#202 def id_for(object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:147 + # source://rspec-mocks//lib/rspec/mocks/space.rb#147 def new_mutex; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:151 + # source://rspec-mocks//lib/rspec/mocks/space.rb#151 def proxy_not_found_for(id, object); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/space.rb:166 + # source://rspec-mocks//lib/rspec/mocks/space.rb#166 def superclass_proxy_not_found_for(id, object); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:75 +# source://rspec-mocks//lib/rspec/mocks/message_chain.rb#75 class RSpec::Mocks::StubChain < ::RSpec::Mocks::MessageChain private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:82 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#82 def expectation(object, message, &return_block); end class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/message_chain.rb:76 + # source://rspec-mocks//lib/rspec/mocks/message_chain.rb#76 def stub_chain_on(object, *chain, &blk); end end end @@ -4891,42 +4807,42 @@ end # # @api private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:6 +# source://rspec-mocks//lib/rspec/mocks/syntax.rb#6 module RSpec::Mocks::Syntax class << self # Determines where the methods like `should_receive`, and `stub` are added. # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:181 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#181 def default_should_syntax_host; end # Disables the expect syntax (`expect(dbl).to receive`, `allow(dbl).to receive`, etc). # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:150 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#150 def disable_expect(syntax_host = T.unsafe(nil)); end # Disables the should syntax (`dbl.stub`, `dbl.should_receive`, etc). # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:89 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#89 def disable_should(syntax_host = T.unsafe(nil)); end # Enables the expect syntax (`expect(dbl).to receive`, `allow(dbl).to receive`, etc). # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:110 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#110 def enable_expect(syntax_host = T.unsafe(nil)); end # Enables the should syntax (`dbl.stub`, `dbl.should_receive`, etc). # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:26 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#26 def enable_should(syntax_host = T.unsafe(nil)); end # Indicates whether or not the expect syntax is enabled. @@ -4934,7 +4850,7 @@ module RSpec::Mocks::Syntax # @api private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:175 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#175 def expect_enabled?(syntax_host = T.unsafe(nil)); end # Indicates whether or not the should syntax is enabled. @@ -4942,77 +4858,77 @@ module RSpec::Mocks::Syntax # @api private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:169 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#169 def should_enabled?(syntax_host = T.unsafe(nil)); end # @api private # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:8 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#8 def warn_about_should!; end # @api private # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb:13 + # source://rspec-mocks//lib/rspec/mocks/syntax.rb#13 def warn_unless_should_configured(method_name, replacement = T.unsafe(nil)); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:63 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#63 class RSpec::Mocks::TargetBase include ::RSpec::Mocks::TargetDelegationInstanceMethods extend ::RSpec::Mocks::TargetDelegationClassMethods # @return [TargetBase] a new instance of TargetBase # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:64 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#64 def initialize(target); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:4 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#4 module RSpec::Mocks::TargetDelegationClassMethods - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:14 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#14 def delegate_not_to(matcher_method, options = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:5 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#5 def delegate_to(matcher_method); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:28 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#28 def disallow_negation(method_name); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:36 +# source://rspec-mocks//lib/rspec/mocks/targets.rb#36 module RSpec::Mocks::TargetDelegationInstanceMethods # Returns the value of attribute target. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:37 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#37 def target; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:45 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#45 def define_matcher(matcher, name, &block); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:41 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#41 def matcher_allowed?(matcher); end # @raise [NegationUnsupportedError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:55 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#55 def raise_negation_unsupported(method_name, matcher); end # @raise [UnsupportedMatcherError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/targets.rb:49 + # source://rspec-mocks//lib/rspec/mocks/targets.rb#49 def raise_unsupported_matcher(method_name, matcher); end end @@ -5020,12 +4936,12 @@ end # includes this module, and it is provided for cases where you want a # pure test double without subclassing RSpec::Mocks::Double. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:6 +# source://rspec-mocks//lib/rspec/mocks/test_double.rb#6 module RSpec::Mocks::TestDouble # Creates a new test double with a `name` (that will be used in error # messages only) # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:9 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#9 def initialize(name = T.unsafe(nil), stubs = T.unsafe(nil)); end # This allows for comparing the mock to other objects that proxy such as @@ -5033,137 +4949,137 @@ module RSpec::Mocks::TestDouble # the comparison, we're sure the call gets delegated to the proxy # target. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:36 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#36 def ==(other); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:56 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#56 def __build_mock_proxy_unless_expired(order_group); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:61 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#61 def __disallow_further_usage!; end # Tells the object to respond to all messages. If specific stub values # are declared, they'll work as expected. If not, the receiver is # returned. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:23 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#23 def as_null_object; end # Override for default freeze implementation to prevent freezing of test # doubles. # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:67 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#67 def freeze; end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:41 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#41 def inspect; end # Returns true if this object has received `as_null_object` # # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:28 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#28 def null_object?; end # @private # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:51 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#51 def respond_to?(message, incl_private = T.unsafe(nil)); end # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:46 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#46 def to_s; end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:115 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#115 def __build_mock_proxy(order_group); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:111 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#111 def __mock_proxy; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:119 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#119 def __raise_expired_error; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:105 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#105 def assign_stubs(stubs); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:124 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#124 def initialize_copy(other); end # @raise [NoMethodError] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:74 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#74 def method_missing(message, *args, &block); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:137 +# source://rspec-mocks//lib/rspec/mocks/test_double.rb#137 module RSpec::Mocks::TestDoubleFormatter class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:138 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#138 def format(dbl, unwrap = T.unsafe(nil)); end private - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:164 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#164 def name_desc(dbl); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:147 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#147 def type_desc(dbl); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/test_double.rb:159 + # source://rspec-mocks//lib/rspec/mocks/test_double.rb#159 def verified_module_desc(dbl); end end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:316 +# source://rspec-mocks//lib/rspec/mocks/proxy.rb#316 class RSpec::Mocks::TestDoubleProxy < ::RSpec::Mocks::Proxy - # source://rspec-mocks-3.11.1/lib/rspec/mocks/proxy.rb:317 + # source://rspec-mocks//lib/rspec/mocks/proxy.rb#317 def reset; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:29 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#29 class RSpec::Mocks::UnsupportedMatcherError < ::StandardError; end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:6 +# source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#6 module RSpec::Mocks::VerifyingDouble - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:51 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#51 def initialize(doubled_module, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:39 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#39 def __send__(name, *args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:20 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#20 def method_missing(message, *args, &block); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:7 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#7 def respond_to?(message, include_private = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_double.rb:47 + # source://rspec-mocks//lib/rspec/mocks/verifying_double.rb#47 def send(name, *args, &block); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/error_generator.rb:33 +# source://rspec-mocks//lib/rspec/mocks/error_generator.rb#33 class RSpec::Mocks::VerifyingDoubleNotDefinedError < ::StandardError; end # Used in place of a `VerifyingExistingMethodDouble` for the specific case @@ -5172,11 +5088,11 @@ class RSpec::Mocks::VerifyingDoubleNotDefinedError < ::StandardError; end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:214 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#214 class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < ::RSpec::Mocks::VerifyingExistingMethodDouble # @yield [Support::MethodSignature.new(object.instance_method(:initialize))] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:215 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#215 def with_signature; end end @@ -5188,25 +5104,25 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:179 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#179 class RSpec::Mocks::VerifyingExistingMethodDouble < ::RSpec::Mocks::VerifyingMethodDouble # @return [VerifyingExistingMethodDouble] a new instance of VerifyingExistingMethodDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:180 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#180 def initialize(object, method_name, proxy); end # @return [Boolean] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:194 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#194 def unimplemented?; end # @yield [Support::MethodSignature.new(original_implementation_callable)] # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:190 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#190 def with_signature; end class << self - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:198 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#198 def for(object, method_name, proxy); end end end @@ -5217,12 +5133,12 @@ end # # @api private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb:17 +# source://rspec-mocks//lib/rspec/mocks/verifying_message_expectation.rb#17 class RSpec::Mocks::VerifyingMessageExpectation < ::RSpec::Mocks::MessageExpectation # @api private # @return [VerifyingMessageExpectation] a new instance of VerifyingMessageExpectation # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb:20 + # source://rspec-mocks//lib/rspec/mocks/verifying_message_expectation.rb#20 def initialize(*args); end # A level of indirection is used here rather than just passing in the @@ -5236,7 +5152,7 @@ class RSpec::Mocks::VerifyingMessageExpectation < ::RSpec::Mocks::MessageExpecta # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb:18 + # source://rspec-mocks//lib/rspec/mocks/verifying_message_expectation.rb#18 def method_reference; end # A level of indirection is used here rather than just passing in the @@ -5250,70 +5166,70 @@ class RSpec::Mocks::VerifyingMessageExpectation < ::RSpec::Mocks::MessageExpecta # # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb:18 + # source://rspec-mocks//lib/rspec/mocks/verifying_message_expectation.rb#18 def method_reference=(_arg0); end # @api private # @private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb:25 + # source://rspec-mocks//lib/rspec/mocks/verifying_message_expectation.rb#25 def with(*args, &block); end private # @api private # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_message_expectation.rb:37 + # source://rspec-mocks//lib/rspec/mocks/verifying_message_expectation.rb#38 def validate_expected_arguments!; end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:139 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#139 class RSpec::Mocks::VerifyingMethodDouble < ::RSpec::Mocks::MethodDouble # @return [VerifyingMethodDouble] a new instance of VerifyingMethodDouble # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:140 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#140 def initialize(object, method_name, proxy, method_reference); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:149 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#149 def add_expectation(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:154 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#154 def add_stub(*args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:145 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#145 def message_expectation_class; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:159 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#159 def proxy_method_invoked(obj, *args, &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:164 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#164 def validate_arguments!(actual_args); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:134 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#134 class RSpec::Mocks::VerifyingPartialClassDoubleProxy < ::RSpec::Mocks::VerifyingPartialDoubleProxy include ::RSpec::Mocks::PartialClassDoubleProxyMethods end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:107 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#107 class RSpec::Mocks::VerifyingPartialDoubleProxy < ::RSpec::Mocks::PartialDoubleProxy include ::RSpec::Mocks::VerifyingProxyMethods # @return [VerifyingPartialDoubleProxy] a new instance of VerifyingPartialDoubleProxy # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:110 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#110 def initialize(object, expectation_ordering, optional_callback_invocation_strategy = T.unsafe(nil)); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:123 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#123 def ensure_implemented(_method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:128 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#128 def method_reference; end end @@ -5332,56 +5248,54 @@ end # # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:71 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#71 class RSpec::Mocks::VerifyingProxy < ::RSpec::Mocks::TestDoubleProxy include ::RSpec::Mocks::VerifyingProxyMethods # @return [VerifyingProxy] a new instance of VerifyingProxy # - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:74 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#74 def initialize(object, order_group, doubled_module, method_reference_class); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:88 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#88 def method_reference; end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:98 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#98 def validate_arguments!(method_name, args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:94 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#94 def visibility_for(method_name); end end # @private # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:22 +# source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#22 module RSpec::Mocks::VerifyingProxyMethods - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:33 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#33 def add_message_expectation(method_name, opts = T.unsafe(nil), &block); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:28 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#28 def add_simple_stub(method_name, *args); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:23 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#23 def add_stub(method_name, opts = T.unsafe(nil), &implementation); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:38 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#38 def ensure_implemented(method_name); end - # source://rspec-mocks-3.11.1/lib/rspec/mocks/verifying_proxy.rb:48 + # source://rspec-mocks//lib/rspec/mocks/verifying_proxy.rb#48 def ensure_publicly_implemented(method_name, _object); end end # Version information for RSpec mocks. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/version.rb:4 +# source://rspec-mocks//lib/rspec/mocks/version.rb#4 module RSpec::Mocks::Version; end # Version of RSpec mocks currently in use in SemVer format. # -# source://rspec-mocks-3.11.1/lib/rspec/mocks/version.rb:6 +# source://rspec-mocks//lib/rspec/mocks/version.rb#6 RSpec::Mocks::Version::STRING = T.let(T.unsafe(nil), String) -# @private -# -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54 +# source://rspec-core/3.12.0/lib/rspec/core/shared_context.rb#54 RSpec::SharedContext = RSpec::Core::SharedContext diff --git a/sorbet/rbi/gems/rspec-support@3.11.0.rbi b/sorbet/rbi/gems/rspec-support@3.12.0.rbi similarity index 51% rename from sorbet/rbi/gems/rspec-support@3.11.0.rbi rename to sorbet/rbi/gems/rspec-support@3.12.0.rbi index fe86cf9d..eda9d8d0 100644 --- a/sorbet/rbi/gems/rspec-support@3.11.0.rbi +++ b/sorbet/rbi/gems/rspec-support@3.12.0.rbi @@ -4,170 +4,75 @@ # This is an autogenerated file for types exported from the `rspec-support` gem. # Please instead update this file by running `bin/tapioca gem rspec-support`. -# Share the top-level RSpec namespace, because we are a core supported -# extension. -# -# source://rspec-support-3.11.0/lib/rspec/support.rb:1 +# source://rspec-support//lib/rspec/support.rb#1 module RSpec extend ::RSpec::Support::Warnings class << self - # Used to ensure examples get reloaded between multiple runs in the same - # process and ensures user configuration is persisted. - # - # Users must invoke this if they want to clear all examples but preserve - # current configuration when they use the runner multiple times within the - # same process. - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:70 + # source://rspec-core/3.12.0/lib/rspec/core.rb#70 def clear_examples; end - # Returns the global [Configuration](RSpec/Core/Configuration) object. While - # you _can_ use this method to access the configuration, the more common - # convention is to use [RSpec.configure](RSpec#configure-class_method). - # - # @example - # RSpec.configuration.drb_port = 1234 - # @see RSpec.configure - # @see Core::Configuration - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:85 + # source://rspec-core/3.12.0/lib/rspec/core.rb#85 def configuration; end - # Setters for shared global objects - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 def configuration=(_arg0); end - # Yields the global configuration to a block. - # - # @example - # RSpec.configure do |config| - # config.add_formatter 'documentation' - # end - # @see Core::Configuration - # @yield [Configuration] global configuration - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:97 + # source://rspec-core/3.12.0/lib/rspec/core.rb#97 def configure; end - # @private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:194 + # source://rspec-core/3.12.0/lib/rspec/core.rb#194 def const_missing(name); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def context(*args, &example_group_block); end - # The example being executed. - # - # The primary audience for this method is library authors who need access - # to the example currently being executed and also want to support all - # versions of RSpec 2 and 3. - # - # @example - # - # RSpec.configure do |c| - # # context.example is deprecated, but RSpec.current_example is not - # # available until RSpec 3.0. - # fetch_current_example = RSpec.respond_to?(:current_example) ? - # proc { RSpec.current_example } : proc { |context| context.example } - # - # c.before(:example) do - # example = fetch_current_example.call(self) - # - # # ... - # end - # end - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:122 + # source://rspec-core/3.12.0/lib/rspec/core.rb#122 def current_example; end - # Set the current example being executed. - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:128 + # source://rspec-core/3.12.0/lib/rspec/core.rb#128 def current_example=(example); end - # Get the current RSpec execution scope - # - # Returns (in order of lifecycle): - # * `:suite` as an initial value, this is outside of the test lifecycle. - # * `:before_suite_hook` during `before(:suite)` hooks. - # * `:before_context_hook` during `before(:context)` hooks. - # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`. - # * `:example` within the example run. - # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`. - # * `:after_context_hook` during `after(:context)` hooks. - # * `:after_suite_hook` during `after(:suite)` hooks. - # * `:suite` as a final value, again this is outside of the test lifecycle. - # - # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias. - # - # @return [Symbol] - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:154 + # source://rspec-core/3.12.0/lib/rspec/core.rb#154 def current_scope; end - # Set the current scope rspec is executing in - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:134 + # source://rspec-core/3.12.0/lib/rspec/core.rb#134 def current_scope=(scope); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def describe(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def example_group(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def fcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def fdescribe(*args, &example_group_block); end - # Used to ensure examples get reloaded and user configuration gets reset to - # defaults between multiple runs in the same process. - # - # Users must invoke this if they want to have the configuration reset when - # they use the runner multiple times within the same process. Users must deal - # themselves with re-configuration of RSpec before run. - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:58 + # source://rspec-core/3.12.0/lib/rspec/core.rb#58 def reset; end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_context(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_examples(name, *args, &block); end - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 def shared_examples_for(name, *args, &block); end - # Internal container for global non-configuration data. - # - # @private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:160 + # source://rspec-core/3.12.0/lib/rspec/core.rb#160 def world; end - # Setters for shared global objects - # - # @api private - # - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 def world=(_arg0); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def xcontext(*args, &example_group_block); end - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 def xdescribe(*args, &example_group_block); end end end @@ -177,18 +82,18 @@ end # the code using the library, which is far more useful than the particular # internal method that raised an error. # -# source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:8 +# source://rspec-support//lib/rspec/support/caller_filter.rb#8 class RSpec::CallerFilter class << self # Earlier rubies do not support the two argument form of `caller`. This # fallback is logically the same, but slower. # - # source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:47 + # source://rspec-support//lib/rspec/support/caller_filter.rb#47 def first_non_rspec_line(skip_frames = T.unsafe(nil), increment = T.unsafe(nil)); end end end -# source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:18 +# source://rspec-support//lib/rspec/support/caller_filter.rb#18 RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array) # rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want @@ -198,33 +103,29 @@ RSpec::CallerFilter::ADDITIONAL_TOP_LEVEL_FILES = T.let(T.unsafe(nil), Array) # file, but it depends on if rubygems is loaded or not. We don't want to have to deal # with this complexity in our `RSpec.deprecate` calls, so we ignore it here. # -# source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:28 +# source://rspec-support//lib/rspec/support/caller_filter.rb#28 RSpec::CallerFilter::IGNORE_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:20 +# source://rspec-support//lib/rspec/support/caller_filter.rb#20 RSpec::CallerFilter::LIB_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rspec-support-3.11.0/lib/rspec/support/caller_filter.rb:9 +# source://rspec-support//lib/rspec/support/caller_filter.rb#9 RSpec::CallerFilter::RSPEC_LIBS = T.let(T.unsafe(nil), Array) -# @private -# -# source://rspec-core-3.11.0/lib/rspec/core.rb:187 +# source://rspec-core/3.12.0/lib/rspec/core.rb#187 RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) -# @private -# -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54 +# source://rspec-core/3.12.0/lib/rspec/core/shared_context.rb#54 RSpec::SharedContext = RSpec::Core::SharedContext -# source://rspec-support-3.11.0/lib/rspec/support.rb:2 +# source://rspec-support//lib/rspec/support.rb#2 module RSpec::Support class << self # Used internally to get a class of a given object, even if it does not respond to #class. # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:84 + # source://rspec-support//lib/rspec/support.rb#84 def class_of(object); end # Defines a helper method that is optimized to require files from the @@ -239,7 +140,7 @@ module RSpec::Support # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:14 + # source://rspec-support//lib/rspec/support.rb#14 def define_optimized_require_for_rspec(lib, &require_relative); end # Remove a previously registered matcher. Useful for cleaning up after @@ -247,36 +148,36 @@ module RSpec::Support # # @private # - # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:22 + # source://rspec-support//lib/rspec/support/matcher_definition.rb#22 def deregister_matcher_definition(&block); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:105 + # source://rspec-support//lib/rspec/support.rb#105 def failure_notifier; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:97 + # source://rspec-support//lib/rspec/support.rb#97 def failure_notifier=(callable); end # @private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:27 + # source://rspec-support//lib/rspec/support/matcher_definition.rb#27 def is_a_matcher?(object); end # @private # - # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:4 + # source://rspec-support//lib/rspec/support/matcher_definition.rb#4 def matcher_definitions; end - # source://rspec-support-3.11.0/lib/rspec/support.rb:52 + # source://rspec-support//lib/rspec/support.rb#52 def method_handle_for(object, method_name); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:110 + # source://rspec-support//lib/rspec/support.rb#110 def notify_failure(failure, options = T.unsafe(nil)); end # Used internally to break cyclic dependency between mocks, expectations, @@ -286,59 +187,50 @@ module RSpec::Support # # @private # - # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:14 + # source://rspec-support//lib/rspec/support/matcher_definition.rb#14 def register_matcher_definition(&block); end - # source://rspec-support-3.11.0/lib/rspec/support.rb:23 + # source://rspec-support//lib/rspec/support.rb#23 def require_rspec_core(f); end - # source://rspec-support-3.11.0/lib/rspec/support.rb:23 - def require_rspec_expectations(f); end - - # source://rspec-support-3.11.0/lib/rspec/support.rb:23 - def require_rspec_matchers(f); end - - # source://rspec-support-3.11.0/lib/rspec/support.rb:23 - def require_rspec_mocks(f); end - - # source://rspec-support-3.11.0/lib/rspec/support.rb:23 + # source://rspec-support//lib/rspec/support.rb#23 def require_rspec_support(f); end # gives a string representation of an object for use in RSpec descriptions # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/matcher_definition.rb:34 + # source://rspec-support//lib/rspec/support/matcher_definition.rb#34 def rspec_description_for_object(object); end # A single thread local variable so we don't excessively pollute that namespace. # - # source://rspec-support-3.11.0/lib/rspec/support.rb:92 + # source://rspec-support//lib/rspec/support.rb#92 def thread_local_data; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:132 + # source://rspec-support//lib/rspec/support.rb#132 def warning_notifier; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:125 + # source://rspec-support//lib/rspec/support.rb#125 def warning_notifier=(_arg0); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support.rb:115 + # source://rspec-support//lib/rspec/support.rb#115 def with_failure_notifier(callable); end end end # @private # -# source://rspec-support-3.11.0/lib/rspec/support.rb:137 +# source://rspec-support//lib/rspec/support.rb#137 module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue class << self - # source://rspec-support-3.11.0/lib/rspec/support.rb:142 + # source://rspec-support//lib/rspec/support.rb#142 def ===(exception); end end end @@ -346,7 +238,7 @@ end # These exceptions are dangerous to rescue as rescuing them # would interfere with things we should not interfere with. # -# source://rspec-support-3.11.0/lib/rspec/support.rb:140 +# source://rspec-support//lib/rspec/support.rb#140 RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T.unsafe(nil), Array) # Deals with the slightly different semantics of block arguments. @@ -359,144 +251,144 @@ RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue::AVOID_RESCUING = T.let(T # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:266 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#266 class RSpec::Support::BlockSignature < ::RSpec::Support::MethodSignature # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:268 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#268 def classify_parameters; end end # @private # -# source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:4 +# source://rspec-support//lib/rspec/support/comparable_version.rb#4 class RSpec::Support::ComparableVersion include ::Comparable # @return [ComparableVersion] a new instance of ComparableVersion # - # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:9 + # source://rspec-support//lib/rspec/support/comparable_version.rb#9 def initialize(string); end - # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:13 + # source://rspec-support//lib/rspec/support/comparable_version.rb#13 def <=>(other); end - # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:35 + # source://rspec-support//lib/rspec/support/comparable_version.rb#35 def segments; end # Returns the value of attribute string. # - # source://rspec-support-3.11.0/lib/rspec/support/comparable_version.rb:7 + # source://rspec-support//lib/rspec/support/comparable_version.rb#7 def string; end end # @private # -# source://rspec-support-3.11.0/lib/rspec/support.rb:102 +# source://rspec-support//lib/rspec/support.rb#102 RSpec::Support::DEFAULT_FAILURE_NOTIFIER = T.let(T.unsafe(nil), Proc) # @private # -# source://rspec-support-3.11.0/lib/rspec/support.rb:129 +# source://rspec-support//lib/rspec/support.rb#129 RSpec::Support::DEFAULT_WARNING_NOTIFIER = T.let(T.unsafe(nil), Proc) -# source://rspec-support-3.11.0/lib/rspec/support/differ.rb:10 +# source://rspec-support//lib/rspec/support/differ.rb#10 class RSpec::Support::Differ # @return [Differ] a new instance of Differ # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:67 + # source://rspec-support//lib/rspec/support/differ.rb#67 def initialize(opts = T.unsafe(nil)); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:63 + # source://rspec-support//lib/rspec/support/differ.rb#63 def color?; end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:11 + # source://rspec-support//lib/rspec/support/differ.rb#11 def diff(actual, expected); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:57 + # source://rspec-support//lib/rspec/support/differ.rb#57 def diff_as_object(actual, expected); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:28 + # source://rspec-support//lib/rspec/support/differ.rb#28 def diff_as_string(actual, expected); end private - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:128 + # source://rspec-support//lib/rspec/support/differ.rb#128 def add_old_hunk_to_hunk(hunk, oldhunk); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:124 + # source://rspec-support//lib/rspec/support/differ.rb#124 def add_to_output(output, string); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:78 + # source://rspec-support//lib/rspec/support/differ.rb#78 def all_strings?(*args); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:82 + # source://rspec-support//lib/rspec/support/differ.rb#82 def any_multiline_strings?(*args); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:153 + # source://rspec-support//lib/rspec/support/differ.rb#153 def blue(text); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:115 + # source://rspec-support//lib/rspec/support/differ.rb#115 def build_hunks(actual, expected); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:90 + # source://rspec-support//lib/rspec/support/differ.rb#90 def coerce_to_string(string_or_array); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:141 + # source://rspec-support//lib/rspec/support/differ.rb#141 def color(text, color_code); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:161 + # source://rspec-support//lib/rspec/support/differ.rb#161 def color_diff(diff); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:95 + # source://rspec-support//lib/rspec/support/differ.rb#95 def diffably_stringify(array); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:119 + # source://rspec-support//lib/rspec/support/differ.rb#119 def finalize_output(output, final_line); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:137 + # source://rspec-support//lib/rspec/support/differ.rb#137 def format_type; end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:149 + # source://rspec-support//lib/rspec/support/differ.rb#149 def green(text); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:202 + # source://rspec-support//lib/rspec/support/differ.rb#202 def handle_encoding_errors(actual, expected); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:192 + # source://rspec-support//lib/rspec/support/differ.rb#192 def hash_to_string(hash); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:106 + # source://rspec-support//lib/rspec/support/differ.rb#106 def multiline?(string); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:86 + # source://rspec-support//lib/rspec/support/differ.rb#86 def no_numbers?(*args); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:74 + # source://rspec-support//lib/rspec/support/differ.rb#74 def no_procs?(*args); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:157 + # source://rspec-support//lib/rspec/support/differ.rb#157 def normal(text); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:178 + # source://rspec-support//lib/rspec/support/differ.rb#178 def object_to_string(object); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:145 + # source://rspec-support//lib/rspec/support/differ.rb#145 def red(text); end - # source://rspec-support-3.11.0/lib/rspec/support/differ.rb:132 + # source://rspec-support//lib/rspec/support/differ.rb#132 def safely_flatten(array); end end @@ -505,14 +397,14 @@ end # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:9 +# source://rspec-support//lib/rspec/support/directory_maker.rb#9 class RSpec::Support::DirectoryMaker class << self # Implements nested directory construction # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:13 + # source://rspec-support//lib/rspec/support/directory_maker.rb#13 def mkdir_p(path); end private @@ -520,65 +412,65 @@ class RSpec::Support::DirectoryMaker # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:55 + # source://rspec-support//lib/rspec/support/directory_maker.rb#55 def directory_exists?(dirname); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:50 + # source://rspec-support//lib/rspec/support/directory_maker.rb#50 def generate_path(stack, part); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/directory_maker.rb:47 + # source://rspec-support//lib/rspec/support/directory_maker.rb#47 def generate_stack(path); end end end # @private # -# source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:4 +# source://rspec-support//lib/rspec/support/encoded_string.rb#4 class RSpec::Support::EncodedString # @return [EncodedString] a new instance of EncodedString # - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:14 + # source://rspec-support//lib/rspec/support/encoded_string.rb#14 def initialize(string, encoding = T.unsafe(nil)); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:26 + # source://rspec-support//lib/rspec/support/encoded_string.rb#26 def <<(string); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23 + # source://rspec-support//lib/rspec/support/encoded_string.rb#23 def ==(*args, &block); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23 + # source://rspec-support//lib/rspec/support/encoded_string.rb#23 def empty?(*args, &block); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23 + # source://rspec-support//lib/rspec/support/encoded_string.rb#23 def encoding(*args, &block); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23 + # source://rspec-support//lib/rspec/support/encoded_string.rb#23 def eql?(*args, &block); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:23 + # source://rspec-support//lib/rspec/support/encoded_string.rb#23 def lines(*args, &block); end # Returns the value of attribute source_encoding. # - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:19 + # source://rspec-support//lib/rspec/support/encoded_string.rb#19 def source_encoding; end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:39 + # source://rspec-support//lib/rspec/support/encoded_string.rb#39 def split(regex_or_string); end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:44 + # source://rspec-support//lib/rspec/support/encoded_string.rb#44 def to_s; end - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:44 + # source://rspec-support//lib/rspec/support/encoded_string.rb#44 def to_str; end private - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:137 + # source://rspec-support//lib/rspec/support/encoded_string.rb#137 def detect_source_encoding(string); end # Encoding Exceptions: @@ -591,7 +483,7 @@ class RSpec::Support::EncodedString # vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '') # # => '' # Encoding::CompatibilityError - # when Encoding.compatibile?(str1, str2) is nil + # when Encoding.compatible?(str1, str2) is nil # e.g. utf_16le_emoji_string.split("\n") # e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string # Encoding::InvalidByteSequenceError: @@ -620,7 +512,7 @@ class RSpec::Support::EncodedString # RangeError: out of char range # e.g. the UTF-16LE emoji: 128169.chr # - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:91 + # source://rspec-support//lib/rspec/support/encoded_string.rb#91 def matching_encoding(string); end # http://stackoverflow.com/a/8711118/879854 @@ -628,11 +520,11 @@ class RSpec::Support::EncodedString # with invalid encoding, which is a pretty good proxy # for the invalid byte sequence that causes an ArgumentError # - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:122 + # source://rspec-support//lib/rspec/support/encoded_string.rb#122 def remove_invalid_bytes(string); end class << self - # source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:141 + # source://rspec-support//lib/rspec/support/encoded_string.rb#141 def pick_encoding(source_a, source_b); end end end @@ -641,79 +533,50 @@ end # U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else # ? ("\x3F") # -# source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:12 +# source://rspec-support//lib/rspec/support/encoded_string.rb#12 RSpec::Support::EncodedString::REPLACE = T.let(T.unsafe(nil), String) -# source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:7 +# source://rspec-support//lib/rspec/support/encoded_string.rb#7 RSpec::Support::EncodedString::US_ASCII = T.let(T.unsafe(nil), String) # Reduce allocations by storing constants. # -# source://rspec-support-3.11.0/lib/rspec/support/encoded_string.rb:6 +# source://rspec-support//lib/rspec/support/encoded_string.rb#6 RSpec::Support::EncodedString::UTF_8 = T.let(T.unsafe(nil), String) -# Provides a means to fuzzy-match between two arbitrary objects. -# Understands array/hash nesting. Uses `===` or `==` to -# perform the matching. -# -# source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:6 -module RSpec::Support::FuzzyMatcher - class << self - # @api private - # @return [Boolean] - # - # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:8 - def values_match?(expected, actual); end - - private - - # @private - # @return [Boolean] - # - # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:27 - def arrays_match?(expected_list, actual_list); end - - # @private - # @return [Boolean] - # - # source://rspec-support-3.11.0/lib/rspec/support/fuzzy_matcher.rb:36 - def hashes_match?(expected_hash, actual_hash); end - end -end - # @private # -# source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:7 +# source://rspec-support//lib/rspec/support/hunk_generator.rb#7 class RSpec::Support::HunkGenerator # @return [HunkGenerator] a new instance of HunkGenerator # - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:8 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#8 def initialize(actual, expected); end - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:13 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#13 def hunks; end private - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:30 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#30 def actual_lines; end - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:34 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#34 def build_hunk(piece); end - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:42 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#42 def context_lines; end - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:22 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#22 def diffs; end - # source://rspec-support-3.11.0/lib/rspec/support/hunk_generator.rb:26 + # source://rspec-support//lib/rspec/support/hunk_generator.rb#26 def expected_lines; end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support.rb:38 +# source://rspec-support//lib/rspec/support.rb#38 RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) # Allows matchers to be used instead of providing keyword arguments. In @@ -721,11 +584,11 @@ RSpec::Support::KERNEL_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) # # @private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:391 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#391 class RSpec::Support::LooseSignatureVerifier < ::RSpec::Support::MethodSignatureVerifier private - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:394 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#394 def split_args(*args); end end @@ -738,30 +601,30 @@ end # # @private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:411 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#411 class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher # @return [SignatureWithKeywordArgumentsMatcher] a new instance of SignatureWithKeywordArgumentsMatcher # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:412 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#412 def initialize(signature); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:432 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#432 def has_kw_args_in?(args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:420 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#420 def invalid_kw_args_from(_kw_args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:416 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#416 def missing_kw_args_from(_kw_args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:424 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#424 def non_kw_args_arity_description; end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:428 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#428 def valid_non_kw_args?(*args); end end @@ -770,22 +633,22 @@ end # # @private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:11 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#11 class RSpec::Support::MethodSignature # @return [MethodSignature] a new instance of MethodSignature # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:14 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#14 def initialize(method); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:96 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#96 def arbitrary_kw_args?; end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:36 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#36 def classify_arity(arity = T.unsafe(nil)); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:104 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#104 def classify_parameters; end # Without considering what the last arg is, could it @@ -793,10 +656,10 @@ class RSpec::Support::MethodSignature # # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:90 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#90 def could_contain_kw_args?(args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:49 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#49 def description; end # If the last argument is Hash, Ruby will treat only symbol keys as keyword arguments @@ -804,42 +667,42 @@ class RSpec::Support::MethodSignature # # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:82 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#82 def has_kw_args_in?(args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:75 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#75 def invalid_kw_args_from(given_kw_args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12 def max_non_kw_args; end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12 def min_non_kw_args; end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:71 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#71 def missing_kw_args_from(given_kw_args); end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:21 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#21 def non_kw_args_arity_description; end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12 def optional_kw_args; end - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:12 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#12 def required_kw_args; end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:100 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#100 def unlimited_args?; end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:29 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#29 def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = T.unsafe(nil)); end end -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:160 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#160 RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float) # Encapsulates expectations about the number of arguments and @@ -847,70 +710,70 @@ RSpec::Support::MethodSignature::INFINITY = T.let(T.unsafe(nil), Float) # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:217 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#217 class RSpec::Support::MethodSignatureExpectation # @api private # @return [MethodSignatureExpectation] a new instance of MethodSignatureExpectation # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:218 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#218 def initialize; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:245 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#245 def empty?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 def expect_arbitrary_keywords; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 def expect_arbitrary_keywords=(_arg0); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 def expect_unlimited_arguments; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:229 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#229 def expect_unlimited_arguments=(_arg0); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:227 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#227 def keywords; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:252 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#252 def keywords=(values); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:227 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#227 def max_count; end # @api private # @raise [ArgumentError] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:231 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#231 def max_count=(number); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:227 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#227 def min_count; end # @api private # @raise [ArgumentError] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:238 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#238 def min_count=(number); end end @@ -918,48 +781,48 @@ end # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:278 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#278 class RSpec::Support::MethodSignatureVerifier # @api private # @return [MethodSignatureVerifier] a new instance of MethodSignatureVerifier # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:281 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#281 def initialize(signature, args = T.unsafe(nil)); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:324 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#324 def error_message; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279 def kw_args; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279 def max_non_kw_args; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279 def min_non_kw_args; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:279 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#279 def non_kw_args; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:316 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#316 def valid?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:288 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#288 def with_expectation(expectation); end private @@ -967,43 +830,43 @@ class RSpec::Support::MethodSignatureVerifier # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:355 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#355 def arbitrary_kw_args?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:351 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#351 def invalid_kw_args; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:347 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#347 def missing_kw_args; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:363 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#363 def split_args(*args); end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:359 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#359 def unlimited_args?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:343 + # source://rspec-support//lib/rspec/support/method_signature_verifier.rb#343 def valid_non_kw_args?; end end # On 1.9 and up, this is in core, so we just use the real one # -# source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:65 +# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#65 class RSpec::Support::Mutex < ::Thread::Mutex class << self - # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:68 + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#68 def new; end end end @@ -1011,38 +874,38 @@ end # If you mock Mutex.new you break our usage of Mutex, so # instead we capture the original method to return Mutexs. # -# source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:66 +# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#66 RSpec::Support::Mutex::NEW_MUTEX_METHOD = T.let(T.unsafe(nil), Method) # Provides query methods for different OS or OS features. # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:9 +# source://rspec-support//lib/rspec/support/ruby_features.rb#9 module RSpec::Support::OS private # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:12 + # source://rspec-support//lib/rspec/support/ruby_features.rb#12 def windows?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:16 + # source://rspec-support//lib/rspec/support/ruby_features.rb#16 def windows_file_path?; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:12 + # source://rspec-support//lib/rspec/support/ruby_features.rb#12 def windows?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:16 + # source://rspec-support//lib/rspec/support/ruby_features.rb#16 def windows_file_path?; end end end @@ -1052,37 +915,37 @@ end # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:8 +# source://rspec-support//lib/rspec/support/object_formatter.rb#8 class RSpec::Support::ObjectFormatter # @api private # @return [ObjectFormatter] a new instance of ObjectFormatter # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:27 + # source://rspec-support//lib/rspec/support/object_formatter.rb#27 def initialize(max_formatted_output_length = T.unsafe(nil)); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:32 + # source://rspec-support//lib/rspec/support/object_formatter.rb#32 def format(object); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:11 + # source://rspec-support//lib/rspec/support/object_formatter.rb#11 def max_formatted_output_length; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:11 + # source://rspec-support//lib/rspec/support/object_formatter.rb#11 def max_formatted_output_length=(_arg0); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:68 + # source://rspec-support//lib/rspec/support/object_formatter.rb#68 def prepare_array(array); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:92 + # source://rspec-support//lib/rspec/support/object_formatter.rb#92 def prepare_element(element); end # Prepares the provided object to be formatted by wrapping it as needed @@ -1097,28 +960,28 @@ class RSpec::Support::ObjectFormatter # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:56 + # source://rspec-support//lib/rspec/support/object_formatter.rb#56 def prepare_for_inspection(object); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:74 + # source://rspec-support//lib/rspec/support/object_formatter.rb#74 def prepare_hash(input_hash); end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:111 + # source://rspec-support//lib/rspec/support/object_formatter.rb#111 def recursive_structure?(object); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:84 + # source://rspec-support//lib/rspec/support/object_formatter.rb#84 def sort_hash_keys(input_hash); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:104 + # source://rspec-support//lib/rspec/support/object_formatter.rb#104 def with_entering_structure(structure); end private @@ -1130,7 +993,7 @@ class RSpec::Support::ObjectFormatter # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:266 + # source://rspec-support//lib/rspec/support/object_formatter.rb#266 def truncate_string(str, start_index, end_index); end class << self @@ -1139,24 +1002,24 @@ class RSpec::Support::ObjectFormatter # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:15 + # source://rspec-support//lib/rspec/support/object_formatter.rb#15 def default_instance; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:19 + # source://rspec-support//lib/rspec/support/object_formatter.rb#19 def format(object); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:23 + # source://rspec-support//lib/rspec/support/object_formatter.rb#23 def prepare_for_inspection(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:125 +# source://rspec-support//lib/rspec/support/object_formatter.rb#125 class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # Returns the value of attribute formatter # @@ -1168,13 +1031,13 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # @param value [Object] the value to set the attribute formatter to. # @return [Object] the newly set value # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:125 + # source://rspec-support//lib/rspec/support/object_formatter.rb#125 def formatter=(_); end # @api private # @raise [NotImplementedError] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:130 + # source://rspec-support//lib/rspec/support/object_formatter.rb#130 def inspect; end # Returns the value of attribute object @@ -1187,12 +1050,12 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # @param value [Object] the value to set the attribute object to. # @return [Object] the newly set value # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:125 + # source://rspec-support//lib/rspec/support/object_formatter.rb#125 def object=(_); end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:134 + # source://rspec-support//lib/rspec/support/object_formatter.rb#134 def pretty_print(pp); end class << self @@ -1202,7 +1065,7 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # @raise [NotImplementedError] # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:126 + # source://rspec-support//lib/rspec/support/object_formatter.rb#126 def can_inspect?(_object); end def inspect; end @@ -1213,106 +1076,106 @@ end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:175 +# source://rspec-support//lib/rspec/support/object_formatter.rb#175 class RSpec::Support::ObjectFormatter::BigDecimalInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:180 + # source://rspec-support//lib/rspec/support/object_formatter.rb#180 def inspect; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:176 + # source://rspec-support//lib/rspec/support/object_formatter.rb#176 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:157 +# source://rspec-support//lib/rspec/support/object_formatter.rb#157 class RSpec::Support::ObjectFormatter::DateTimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # ActiveSupport sometimes overrides inspect. If `ActiveSupport` is # defined use a custom format string that includes more time precision. # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:166 + # source://rspec-support//lib/rspec/support/object_formatter.rb#166 def inspect; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:160 + # source://rspec-support//lib/rspec/support/object_formatter.rb#160 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:158 +# source://rspec-support//lib/rspec/support/object_formatter.rb#158 RSpec::Support::ObjectFormatter::DateTimeInspector::FORMAT = T.let(T.unsafe(nil), String) # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:222 +# source://rspec-support//lib/rspec/support/object_formatter.rb#222 class RSpec::Support::ObjectFormatter::DelegatorInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:227 + # source://rspec-support//lib/rspec/support/object_formatter.rb#227 def inspect; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:223 + # source://rspec-support//lib/rspec/support/object_formatter.rb#223 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:185 +# source://rspec-support//lib/rspec/support/object_formatter.rb#185 class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:190 + # source://rspec-support//lib/rspec/support/object_formatter.rb#190 def inspect; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:186 + # source://rspec-support//lib/rspec/support/object_formatter.rb#186 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:9 +# source://rspec-support//lib/rspec/support/object_formatter.rb#9 RSpec::Support::ObjectFormatter::ELLIPSIS = T.let(T.unsafe(nil), String) # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:245 +# source://rspec-support//lib/rspec/support/object_formatter.rb#245 RSpec::Support::ObjectFormatter::INSPECTOR_CLASSES = T.let(T.unsafe(nil), Array) # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:115 +# source://rspec-support//lib/rspec/support/object_formatter.rb#115 class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:116 + # source://rspec-support//lib/rspec/support/object_formatter.rb#116 def inspect; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:120 + # source://rspec-support//lib/rspec/support/object_formatter.rb#120 def pretty_print(pp); end # Returns the value of attribute text @@ -1325,7 +1188,7 @@ class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct # @param value [Object] the value to set the attribute text to. # @return [Object] the newly set value # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:115 + # source://rspec-support//lib/rspec/support/object_formatter.rb#115 def text=(_); end class << self @@ -1338,109 +1201,109 @@ end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:232 +# source://rspec-support//lib/rspec/support/object_formatter.rb#232 class RSpec::Support::ObjectFormatter::InspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:240 + # source://rspec-support//lib/rspec/support/object_formatter.rb#240 def inspect; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:233 + # source://rspec-support//lib/rspec/support/object_formatter.rb#233 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:139 +# source://rspec-support//lib/rspec/support/object_formatter.rb#139 class RSpec::Support::ObjectFormatter::TimeInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # for 1.8.7 # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:147 + # source://rspec-support//lib/rspec/support/object_formatter.rb#147 def inspect; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:142 + # source://rspec-support//lib/rspec/support/object_formatter.rb#142 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:140 +# source://rspec-support//lib/rspec/support/object_formatter.rb#140 RSpec::Support::ObjectFormatter::TimeInspector::FORMAT = T.let(T.unsafe(nil), String) # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:195 +# source://rspec-support//lib/rspec/support/object_formatter.rb#195 class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < ::RSpec::Support::ObjectFormatter::BaseInspector # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:205 + # source://rspec-support//lib/rspec/support/object_formatter.rb#205 def inspect; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:209 + # source://rspec-support//lib/rspec/support/object_formatter.rb#209 def klass; end # http://stackoverflow.com/a/2818916 # # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:214 + # source://rspec-support//lib/rspec/support/object_formatter.rb#214 def native_object_id; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:198 + # source://rspec-support//lib/rspec/support/object_formatter.rb#198 def can_inspect?(object); end end end # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/object_formatter.rb:196 +# source://rspec-support//lib/rspec/support/object_formatter.rb#196 RSpec::Support::ObjectFormatter::UninspectableObjectInspector::OBJECT_ID_FORMAT = T.let(T.unsafe(nil), String) # Provides recursive constant lookup methods useful for # constant stubbing. # -# source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:5 +# source://rspec-support//lib/rspec/support/recursive_const_methods.rb#5 module RSpec::Support::RecursiveConstMethods # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:43 + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#43 def const_defined_on?(mod, const_name); end - # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:51 + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#51 def constants_defined_on(mod); end # @raise [NameError] # - # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:47 + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#47 def get_const_defined_on(mod, const_name); end - # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:71 + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#71 def normalize_const_name(const_name); end # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:62 + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#62 def recursive_const_defined?(const_name); end - # source://rspec-support-3.11.0/lib/rspec/support/recursive_const_methods.rb:56 + # source://rspec-support//lib/rspec/support/recursive_const_methods.rb#56 def recursive_const_get(const_name); end end @@ -1456,22 +1319,22 @@ end # # @private # -# source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:14 +# source://rspec-support//lib/rspec/support/reentrant_mutex.rb#14 class RSpec::Support::ReentrantMutex # @return [ReentrantMutex] a new instance of ReentrantMutex # - # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:15 + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#15 def initialize; end - # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:21 + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#21 def synchronize; end private - # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:46 + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#33 def enter; end - # source://rspec-support-3.11.0/lib/rspec/support/reentrant_mutex.rb:52 + # source://rspec-support//lib/rspec/support/reentrant_mutex.rb#38 def exit; end end @@ -1479,85 +1342,85 @@ end # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:24 +# source://rspec-support//lib/rspec/support/ruby_features.rb#24 module RSpec::Support::Ruby private # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:27 + # source://rspec-support//lib/rspec/support/ruby_features.rb#27 def jruby?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:35 + # source://rspec-support//lib/rspec/support/ruby_features.rb#35 def jruby_9000?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:31 + # source://rspec-support//lib/rspec/support/ruby_features.rb#31 def jruby_version; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:47 + # source://rspec-support//lib/rspec/support/ruby_features.rb#47 def mri?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:43 + # source://rspec-support//lib/rspec/support/ruby_features.rb#43 def non_mri?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:39 + # source://rspec-support//lib/rspec/support/ruby_features.rb#39 def rbx?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:51 + # source://rspec-support//lib/rspec/support/ruby_features.rb#51 def truffleruby?; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:27 + # source://rspec-support//lib/rspec/support/ruby_features.rb#27 def jruby?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:35 + # source://rspec-support//lib/rspec/support/ruby_features.rb#35 def jruby_9000?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:31 + # source://rspec-support//lib/rspec/support/ruby_features.rb#31 def jruby_version; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:47 + # source://rspec-support//lib/rspec/support/ruby_features.rb#47 def mri?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:43 + # source://rspec-support//lib/rspec/support/ruby_features.rb#43 def non_mri?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:39 + # source://rspec-support//lib/rspec/support/ruby_features.rb#39 def rbx?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:51 + # source://rspec-support//lib/rspec/support/ruby_features.rb#51 def truffleruby?; end end end @@ -1567,15 +1430,20 @@ end # # @api private # -# source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:60 +# source://rspec-support//lib/rspec/support/ruby_features.rb#60 module RSpec::Support::RubyFeatures private # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:83 + # source://rspec-support//lib/rspec/support/ruby_features.rb#83 def caller_locations_supported?; end + # @api private + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#132 + def distincts_kw_args_from_positional_hash?; end + # On JRuby 1.7 `--1.8` mode, `Process.respond_to?(:fork)` returns true, # but when you try to fork, it raises an error: # NotImplementedError: fork is not available on this platform @@ -1586,104 +1454,110 @@ module RSpec::Support::RubyFeatures # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:74 + # source://rspec-support//lib/rspec/support/ruby_features.rb#74 def fork_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:130 + # source://rspec-support//lib/rspec/support/ruby_features.rb#137 def kw_args_supported?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:186 + # source://rspec-support//lib/rspec/support/ruby_features.rb#193 def module_prepends_supported?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:182 + # source://rspec-support//lib/rspec/support/ruby_features.rb#189 def module_refinement_supported?; end # @api private # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:79 + # source://rspec-support//lib/rspec/support/ruby_features.rb#79 def optional_and_splat_args_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:134 + # source://rspec-support//lib/rspec/support/ruby_features.rb#141 def required_kw_args_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:120 + # source://rspec-support//lib/rspec/support/ruby_features.rb#123 def ripper_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:88 + # source://rspec-support//lib/rspec/support/ruby_features.rb#88 def supports_exception_cause?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:138 + # source://rspec-support//lib/rspec/support/ruby_features.rb#145 def supports_rebinding_module_methods?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:98 + # source://rspec-support//lib/rspec/support/ruby_features.rb#98 def supports_taint?; end class << self # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:83 + # source://rspec-support//lib/rspec/support/ruby_features.rb#83 def caller_locations_supported?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:74 + # @api private + # @return [Boolean] + # + # source://rspec-support//lib/rspec/support/ruby_features.rb#132 + def distincts_kw_args_from_positional_hash?; end + + # source://rspec-support//lib/rspec/support/ruby_features.rb#74 def fork_supported?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:130 + # source://rspec-support//lib/rspec/support/ruby_features.rb#137 def kw_args_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:186 + # source://rspec-support//lib/rspec/support/ruby_features.rb#193 def module_prepends_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:182 + # source://rspec-support//lib/rspec/support/ruby_features.rb#189 def module_refinement_supported?; end # @api private # @return [Boolean] # - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:79 + # source://rspec-support//lib/rspec/support/ruby_features.rb#79 def optional_and_splat_args_supported?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:134 + # source://rspec-support//lib/rspec/support/ruby_features.rb#141 def required_kw_args_supported?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:120 + # source://rspec-support//lib/rspec/support/ruby_features.rb#123 def ripper_supported?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:88 + # source://rspec-support//lib/rspec/support/ruby_features.rb#88 def supports_exception_cause?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:138 + # source://rspec-support//lib/rspec/support/ruby_features.rb#145 def supports_rebinding_module_methods?; end - # source://rspec-support-3.11.0/lib/rspec/support/ruby_features.rb:98 + # source://rspec-support//lib/rspec/support/ruby_features.rb#98 def supports_taint?; end end end @@ -1693,18 +1567,18 @@ end # # @private # -# source://rspec-support-3.11.0/lib/rspec/support/method_signature_verifier.rb:385 +# source://rspec-support//lib/rspec/support/method_signature_verifier.rb#385 RSpec::Support::StrictSignatureVerifier = RSpec::Support::MethodSignatureVerifier -# source://rspec-support-3.11.0/lib/rspec/support/version.rb:3 +# source://rspec-support//lib/rspec/support/version.rb#3 module RSpec::Support::Version; end -# source://rspec-support-3.11.0/lib/rspec/support/version.rb:4 +# source://rspec-support//lib/rspec/support/version.rb#4 RSpec::Support::Version::STRING = T.let(T.unsafe(nil), String) -# source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:6 +# source://rspec-support//lib/rspec/support/warnings.rb#6 module RSpec::Support::Warnings - # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:7 + # source://rspec-support//lib/rspec/support/warnings.rb#7 def deprecate(deprecated, options = T.unsafe(nil)); end # Used internally to print deprecation warnings @@ -1712,36 +1586,36 @@ module RSpec::Support::Warnings # # @private # - # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:15 + # source://rspec-support//lib/rspec/support/warnings.rb#15 def warn_deprecation(message, options = T.unsafe(nil)); end # Used internally to print longer warnings # # @private # - # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:29 + # source://rspec-support//lib/rspec/support/warnings.rb#29 def warn_with(message, options = T.unsafe(nil)); end # Used internally to print warnings # # @private # - # source://rspec-support-3.11.0/lib/rspec/support/warnings.rb:22 + # source://rspec-support//lib/rspec/support/warnings.rb#22 def warning(text, options = T.unsafe(nil)); end end -# source://rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb:5 +# source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#5 module RSpec::Support::WithKeywordsWhenNeeded private - # Remove this in RSpec 4 in favour of explictly passed in kwargs where + # Remove this in RSpec 4 in favour of explicitly passed in kwargs where # this is used. Works around a warning in Ruby 2.7 # - # source://rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb:15 + # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#15 def class_exec(klass, *args, &block); end class << self - # source://rspec-support-3.11.0/lib/rspec/support/with_keywords_when_needed.rb:15 + # source://rspec-support//lib/rspec/support/with_keywords_when_needed.rb#15 def class_exec(klass, *args, &block); end end end diff --git a/sorbet/rbi/gems/rspec@3.11.0.rbi b/sorbet/rbi/gems/rspec@3.11.0.rbi deleted file mode 100644 index 39b75848..00000000 --- a/sorbet/rbi/gems/rspec@3.11.0.rbi +++ /dev/null @@ -1,88 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rspec` gem. -# Please instead update this file by running `bin/tapioca gem rspec`. - -# source://rspec-3.11.0/lib/rspec/version.rb:1 -module RSpec - class << self - # source://rspec-core-3.11.0/lib/rspec/core.rb:70 - def clear_examples; end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:85 - def configuration; end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 - def configuration=(_arg0); end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:97 - def configure; end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:194 - def const_missing(name); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def context(*args, &example_group_block); end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:122 - def current_example; end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:128 - def current_example=(example); end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:154 - def current_scope; end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:134 - def current_scope=(scope); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def describe(*args, &example_group_block); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def example_group(*args, &example_group_block); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def fcontext(*args, &example_group_block); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def fdescribe(*args, &example_group_block); end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:58 - def reset; end - - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 - def shared_context(name, *args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 - def shared_examples(name, *args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110 - def shared_examples_for(name, *args, &block); end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:160 - def world; end - - # source://rspec-core-3.11.0/lib/rspec/core.rb:49 - def world=(_arg0); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def xcontext(*args, &example_group_block); end - - # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42 - def xdescribe(*args, &example_group_block); end - end -end - -# source://rspec-core-3.11.0/lib/rspec/core.rb:187 -RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) - -# source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54 -RSpec::SharedContext = RSpec::Core::SharedContext - -# source://rspec-3.11.0/lib/rspec/version.rb:2 -module RSpec::Version; end - -# source://rspec-3.11.0/lib/rspec/version.rb:3 -RSpec::Version::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rspec@3.12.0.rbi b/sorbet/rbi/gems/rspec@3.12.0.rbi new file mode 100644 index 00000000..850124b8 --- /dev/null +++ b/sorbet/rbi/gems/rspec@3.12.0.rbi @@ -0,0 +1,88 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rspec` gem. +# Please instead update this file by running `bin/tapioca gem rspec`. + +# source://rspec//lib/rspec/version.rb#1 +module RSpec + class << self + # source://rspec-core/3.12.0/lib/rspec/core.rb#70 + def clear_examples; end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#85 + def configuration; end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 + def configuration=(_arg0); end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#97 + def configure; end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#194 + def const_missing(name); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def context(*args, &example_group_block); end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#122 + def current_example; end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#128 + def current_example=(example); end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#154 + def current_scope; end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#134 + def current_scope=(scope); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def describe(*args, &example_group_block); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def example_group(*args, &example_group_block); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def fcontext(*args, &example_group_block); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def fdescribe(*args, &example_group_block); end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#58 + def reset; end + + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 + def shared_context(name, *args, &block); end + + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 + def shared_examples(name, *args, &block); end + + # source://rspec-core/3.12.0/lib/rspec/core/shared_example_group.rb#110 + def shared_examples_for(name, *args, &block); end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#160 + def world; end + + # source://rspec-core/3.12.0/lib/rspec/core.rb#49 + def world=(_arg0); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def xcontext(*args, &example_group_block); end + + # source://rspec-core/3.12.0/lib/rspec/core/dsl.rb#42 + def xdescribe(*args, &example_group_block); end + end +end + +# source://rspec-core/3.12.0/lib/rspec/core.rb#187 +RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) + +# source://rspec-core/3.12.0/lib/rspec/core/shared_context.rb#54 +RSpec::SharedContext = RSpec::Core::SharedContext + +# source://rspec//lib/rspec/version.rb#2 +module RSpec::Version; end + +# source://rspec//lib/rspec/version.rb#3 +RSpec::Version::STRING = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi b/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi similarity index 57% rename from sorbet/rbi/gems/rubocop-ast@1.21.0.rbi rename to sorbet/rbi/gems/rubocop-ast@1.24.1.rbi index 29fadc0e..841bd1ef 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.24.1.rbi @@ -8,12 +8,12 @@ class Parser::Source::Range include ::RuboCop::AST::Ext::Range end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/ext/range.rb:3 +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#3 module RuboCop; end # ... # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/ext/range.rb:4 +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#4 module RuboCop::AST extend ::RuboCop::AST::RuboCopCompatibility end @@ -22,20 +22,20 @@ end # node when the builder constructs the AST, making its methods available # to all `alias` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/alias_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#11 class RuboCop::AST::AliasNode < ::RuboCop::AST::Node # Returns the new identifier as specified by the `alias`. # # @return [SymbolNode] the new identifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/alias_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#19 def new_identifier; end # Returns the old identifier as specified by the `alias`. # # @return [SymbolNode] the old identifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/alias_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/alias_node.rb#12 def old_identifier; end end @@ -43,13 +43,13 @@ end # 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-1.21.0/lib/rubocop/ast/node/and_asgn_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#11 class RuboCop::AST::AndAsgnNode < ::RuboCop::AST::OpAsgnNode # The operator being used for assignment as a symbol. # # @return [Symbol] the assignment operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/and_asgn_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/and_asgn_node.rb#12 def operator; end end @@ -57,7 +57,7 @@ end # node when the builder constructs the AST, making its methods available # to all `until` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/and_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#8 class RuboCop::AST::AndNode < ::RuboCop::AST::Node include ::RuboCop::AST::BinaryOperatorNode include ::RuboCop::AST::PredicateOperatorNode @@ -67,7 +67,7 @@ class RuboCop::AST::AndNode < ::RuboCop::AST::Node # # @return [String] the alternate of the `and` operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/and_node.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#16 def alternate_operator; end # Returns the inverse keyword of the `and` node as a string. @@ -75,7 +75,7 @@ class RuboCop::AST::AndNode < ::RuboCop::AST::Node # # @return [String] the inverse of the `and` operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/and_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/and_node.rb#24 def inverse_operator; end end @@ -84,27 +84,27 @@ end # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/arg_node.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#12 class RuboCop::AST::ArgNode < ::RuboCop::AST::Node # Checks whether the argument has a default value # # @return [Boolean] whether the argument has a default value # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/arg_node.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#29 def default?; end # Returns the default value of the argument, if any. # # @return [Node, nil] the default value of the argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/arg_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#20 def default_value; end # Returns the name of an argument. # # @return [Symbol, nil] the name of the argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/arg_node.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node/arg_node.rb#13 def name; end end @@ -112,7 +112,7 @@ end # node when the builder constructs the AST, making its methods available # to all `args` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/args_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#8 class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node include ::RuboCop::AST::CollectionNode @@ -123,7 +123,7 @@ class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node # # @return [Array] array of argument nodes. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/args_node.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#34 def argument_list; end # It returns true if arguments are empty and delimiters do not exist. @@ -142,7 +142,7 @@ class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/args_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/args_node.rb#24 def empty_and_without_delimiters?; end end @@ -150,7 +150,7 @@ end # node when the builder constructs the AST, making its methods available # to all `array` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/array_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#8 class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # Checks whether the `array` literal is delimited by either percent or # square brackets @@ -159,12 +159,12 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # # @return [Boolean] whether the array is enclosed in percent or square # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/array_node.rb:60 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#60 def bracketed?; end # @deprecated Use `values.each` (a.k.a. `children.each`) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/array_node.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#21 def each_value(&block); end # Checks whether the `array` literal is delimited by percent brackets. @@ -173,65 +173,65 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # @overload percent_literal? # @return [Boolean] whether the array is enclosed in percent brackets # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/array_node.rb:47 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#47 def percent_literal?(type = T.unsafe(nil)); end # Checks whether the `array` literal is delimited by square brackets. # # @return [Boolean] whether the array is enclosed in square brackets # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/array_node.rb:32 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#32 def square_brackets?; end # Returns an array of all value nodes in the `array` literal. # # @return [Array] an array of value nodes # - # source://ast-2.4.2/lib/ast/node.rb:56 + # source://ast/2.4.2/lib/ast/node.rb#56 def values; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/array_node.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#9 RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash) # A node extension for `lvasgn`, `ivasgn`, `cvasgn`, and `gvasgn` 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-1.21.0/lib/rubocop/ast/node/asgn_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#11 class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/asgn_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#19 def expression; end # The name of the variable being assigned as a symbol. # # @return [Symbol] the name of the variable being assigned # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/asgn_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12 def name; end end # Common functionality for primitive literal nodes: `sym`, `str`, # `int`, `float`, ... # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/basic_literal_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#7 module RuboCop::AST::BasicLiteralNode # Returns the value of the literal. # # @return [mixed] the value of the literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/basic_literal_node.rb:11 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/basic_literal_node.rb#11 def value; end end # Common functionality for nodes that are binary operations: # `or`, `and` ... # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/binary_operator_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#7 module RuboCop::AST::BinaryOperatorNode # Returns all of the conditions, including nested conditions, # of the binary operation. @@ -241,21 +241,21 @@ module RuboCop::AST::BinaryOperatorNode # # @return [Array] the left and right hand side of the binary # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/binary_operator_node.rb:28 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#28 def conditions; end # Returns the left hand side node of the binary operation. # # @return [Node] the left hand side of the binary operation # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/binary_operator_node.rb:11 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#11 def lhs; end # Returns the right hand side node of the binary operation. # # @return [Node] the right hand side of the binary operation # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/binary_operator_node.rb:18 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/binary_operator_node.rb#18 def rhs; end end @@ -266,7 +266,7 @@ end # A `block` node is essentially a method send with a block. Parser nests # the `send` node inside the `block` node. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#11 class RuboCop::AST::BlockNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates @@ -275,7 +275,7 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Array] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:42 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#42 def argument_list; end # The arguments of this block. @@ -285,63 +285,63 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Array] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#30 def arguments; end # Checks whether this block takes any arguments. # # @return [Boolean] whether this `block` node takes any arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:67 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#67 def arguments?; end # The body of this block. # # @return [Node, nil] the body of the `block` node or `nil` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#53 def body; end # Checks whether the `block` literal is delimited by curly braces. # # @return [Boolean] whether the `block` literal is enclosed in braces # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#74 def braces?; end # The closing delimiter for this `block` literal. # # @return [String] the closing delimiter for the `block` literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:102 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#102 def closing_delimiter; end # The delimiters for this `block` literal. # # @return [Array] the delimiters for the `block` literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:88 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#88 def delimiters; end # Checks whether the `block` literal is delimited by `do`-`end` keywords. # # @return [Boolean] whether the `block` literal is enclosed in `do`-`end` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:81 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#81 def keywords?; end # Checks whether this `block` literal belongs to a lambda. # # @return [Boolean] whether the `block` literal belongs to a lambda # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:125 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#125 def lambda?; end # The name of the dispatched method as a symbol. # # @return [Symbol] the name of the dispatched method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:60 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#60 def method_name; end # Checks whether this is a multiline block. This is overridden here @@ -349,21 +349,21 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `block` literal is on a several lines # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:118 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#118 def multiline?; end # The opening delimiter for this `block` literal. # # @return [String] the opening delimiter for the `block` literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:95 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#95 def opening_delimiter; end # The `send` node associated with this block. # # @return [SendNode] the `send` node associated with the `block` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#20 def send_node; end # Checks whether this is a single line block. This is overridden here @@ -371,32 +371,32 @@ class RuboCop::AST::BlockNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `block` literal is on a single line # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:110 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#110 def single_line?; end # Checks whether this node body is a void context. # # @return [Boolean] whether the `block` node body is a void context # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:132 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#132 def void_context?; end private # Numbered arguments of this `numblock`. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:139 + # source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#139 def numbered_arguments; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/block_node.rb:14 +# source://rubocop-ast//lib/rubocop/ast/node/block_node.rb#14 RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array) # A node extension for `break` nodes. This will be used in place of a # plain node when the builder constructs the AST, making its methods # available to all `break` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/break_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/break_node.rb#8 class RuboCop::AST::BreakNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::WrappedArguments @@ -414,37 +414,37 @@ end # parser = Parser::Ruby25.new(builder) # root_node = parser.parse(buffer) # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/builder.rb:16 +# source://rubocop-ast//lib/rubocop/ast/builder.rb#16 class RuboCop::AST::Builder < ::Parser::Builders::Default # Generates {Node} from the given information. # # @return [Node] the generated node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/builder.rb:97 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#97 def n(type, children, source_map); end # TODO: Figure out what to do about literal encoding handling... # More details here https://github.com/whitequark/parser/issues/283 # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/builder.rb:103 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#103 def string_value(token); end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/builder.rb:109 + # source://rubocop-ast//lib/rubocop/ast/builder.rb#109 def node_klass(type); end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/builder.rb:21 +# source://rubocop-ast//lib/rubocop/ast/builder.rb#21 RuboCop::AST::Builder::NODE_MAP = T.let(T.unsafe(nil), Hash) # A node extension for `case_match` nodes. This will be used in place of # a plain node when the builder constructs the AST, making its methods # available to all `case_match` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#8 class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode @@ -454,19 +454,19 @@ class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node # # @return [Array] an array of the bodies of the `in` branches # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:38 + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#38 def branches; end # @deprecated Use `in_pattern_branches.each` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#19 def each_in_pattern(&block); end # Checks whether this case statement has an `else` branch. # # @return [Boolean] whether the `case` statement has an `else` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:59 + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#59 def else?; end # Returns the else branch of the `case` statement, if any. @@ -475,21 +475,21 @@ class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node # @return [EmptyElse] the empty else branch node of the `case` statement # @return [nil] if the case statement does not have an else branch. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:52 + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#52 def else_branch; end # Returns an array of all the `in` pattern branches in the `case` statement. # # @return [Array] an array of `in_pattern` nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#30 def in_pattern_branches; end # Returns the keyword of the `case` statement as a string. # # @return [String] the keyword of the `case` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_match_node.rb:14 + # source://rubocop-ast//lib/rubocop/ast/node/case_match_node.rb#14 def keyword; end end @@ -497,7 +497,7 @@ end # node when the builder constructs the AST, making its methods available # to all `case` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#8 class RuboCop::AST::CaseNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode @@ -507,19 +507,19 @@ class RuboCop::AST::CaseNode < ::RuboCop::AST::Node # # @return [Array] an array of the bodies of the when branches # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:38 + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#38 def branches; end # @deprecated Use `when_branches.each` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#19 def each_when(&block); end # Checks whether this case statement has an `else` branch. # # @return [Boolean] whether the `case` statement has an `else` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:55 + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#55 def else?; end # Returns the else branch of the `case` statement, if any. @@ -527,21 +527,21 @@ class RuboCop::AST::CaseNode < ::RuboCop::AST::Node # @return [Node] the else branch node of the `case` statement # @return [nil] if the case statement does not have an else branch. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#48 def else_branch; end # Returns the keyword of the `case` statement as a string. # # @return [String] the keyword of the `case` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:14 + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#14 def keyword; end # Returns an array of all the when branches in the `case` statement. # # @return [Array] an array of `when` nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/case_node.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node/case_node.rb#30 def when_branches; end end @@ -549,27 +549,27 @@ end # 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-1.21.0/lib/rubocop/ast/node/casgn_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#11 class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/casgn_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#26 def expression; end # The name of the variable being assigned as a symbol. # # @return [Symbol] the name of the variable being assigned # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/casgn_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#19 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-1.21.0/lib/rubocop/ast/node/casgn_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12 def namespace; end end @@ -577,440 +577,440 @@ end # node when the builder constructs the AST, making its methods available # to all `class` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/class_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#11 class RuboCop::AST::ClassNode < ::RuboCop::AST::Node # The body of this `class` node. # # @return [Node, nil] the body of the class # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/class_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#26 def body; end # The identifier for this `class` node. # # @return [Node] the identifier of the class # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/class_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#12 def identifier; end # The parent class for this `class` node. # # @return [Node, nil] the parent class of the class # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/class_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/class_node.rb#19 def parent_class; end end # A mixin that helps give collection nodes array polymorphism. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/collection_node.rb:6 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#6 module RuboCop::AST::CollectionNode extend ::Forwardable - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def &(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def *(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def +(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def -(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def <<(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def [](*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def []=(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def all?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def any?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def append(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def assoc(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def at(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def bsearch(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def bsearch_index(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def chain(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def chunk(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def chunk_while(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def clear(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def collect(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def collect!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def collect_concat(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def combination(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def compact(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def compact!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def concat(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def count(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def cycle(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def deconstruct(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def delete(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def delete_at(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def delete_if(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def detect(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def difference(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def dig(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def drop(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def drop_while(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_cons(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_entry(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_index(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_slice(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_with_index(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_with_object(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def empty?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def entries(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def fetch(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def fill(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def filter(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def filter!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def filter_map(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def find(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def find_all(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def find_index(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def first(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def flat_map(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def flatten(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def flatten!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def grep(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def grep_v(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def group_by(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def include?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def index(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def inject(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def insert(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def intersection(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def join(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def keep_if(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def last(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def lazy(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def length(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def map(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def map!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def max(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def max_by(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def member?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def min(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def min_by(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def minmax(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def minmax_by(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def none?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def one?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def pack(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def partition(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def permutation(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def place(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def pop(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def prepend(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def product(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def push(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def rassoc(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def reduce(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def reject(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def reject!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def repeated_combination(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def repeated_permutation(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def replace(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def reverse(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def reverse!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def reverse_each(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def rindex(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def rotate(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def rotate!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def sample(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def select(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def select!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def shelljoin(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def shift(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def shuffle(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def shuffle!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def size(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def slice(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def slice!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def slice_after(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def slice_before(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def slice_when(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def sort(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def sort!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def sort_by(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def sort_by!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def sum(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def take(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def take_while(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def tally(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def to_ary(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def to_h(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def to_set(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def transpose(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def union(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def uniq(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def uniq!(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def unshift(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def values_at(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def zip(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def |(*args, &block); end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/collection_node.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#9 RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array) # Common functionality for nodes that have conditions: @@ -1018,7 +1018,7 @@ RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array) # This currently doesn't include `when` nodes, because they have multiple # conditions, and need to be checked for that. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/conditional_node.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#9 module RuboCop::AST::ConditionalNode # Returns the body associated with the condition. This works together with # each node's custom destructuring method to select the correct part of @@ -1027,7 +1027,7 @@ module RuboCop::AST::ConditionalNode # @note For `if` nodes, this is the truthy branch. # @return [Node, nil] the body of the node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/conditional_node.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#40 def body; end # Returns the condition of the node. This works together with each node's @@ -1035,7 +1035,7 @@ module RuboCop::AST::ConditionalNode # # @return [Node, nil] the condition of the node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/conditional_node.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#29 def condition; end # Checks whether the condition of the node is written on more than @@ -1043,31 +1043,31 @@ module RuboCop::AST::ConditionalNode # # @return [Boolean] whether the condition is on more than one line # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/conditional_node.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#21 def multiline_condition?; end # Checks whether the condition of the node is written on a single line. # # @return [Boolean] whether the condition is on a single line # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/conditional_node.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/conditional_node.rb#13 def single_line_condition?; end end # A node extension for `const` nodes. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#7 class RuboCop::AST::ConstNode < ::RuboCop::AST::Node # @return [Boolean] if the constant starts with `::` (aka s(:cbase)) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#26 def absolute?; end # @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 # returns false # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 def class_name?; end # Yield nodes for the namespace @@ -1077,37 +1077,49 @@ class RuboCop::AST::ConstNode < ::RuboCop::AST::Node # s(:const, :Foo), then # s(:const, s(:const, :Foo), :Bar) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#43 def each_path(&block); end # @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 # returns false # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#20 def module_name?; end # @return [Node, nil] the node associated with the scope (e.g. cbase, const, ...) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:8 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#8 def namespace; end # @return [Boolean] if the constant does not start with `::` (aka s(:cbase)) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#33 def relative?; end # @return [Symbol] the demodulized name of the constant: "::Foo::Bar" => :Bar # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/const_node.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node/const_node.rb#13 def short_name; end end +# A node extension for `send` nodes. This will be used in place of a plain +# node when the builder constructs the AST, making its methods available +# to all `send` nodes within RuboCop. +# +# source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#8 +class RuboCop::AST::CsendNode < ::RuboCop::AST::SendNode + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/csend_node.rb#9 + def send_type?; end +end + # A node extension for `def` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `def` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#8 class RuboCop::AST::DefNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates @@ -1119,14 +1131,14 @@ class RuboCop::AST::DefNode < ::RuboCop::AST::Node # which are rumored to be added in a later version of Ruby. # @return [Boolean] whether the `def` node uses argument forwarding # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#26 def argument_forwarding?; end # An array containing the arguments of the method definition. # # @return [Array] the arguments of the method definition # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#40 def arguments; end # The body of the method definition. @@ -1136,33 +1148,33 @@ class RuboCop::AST::DefNode < ::RuboCop::AST::Node # expression. # @return [Node] the body of the method definition # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:51 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#51 def body; end # @return [Boolean] if the definition is without an `end` or not. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:63 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#63 def endless?; end # The name of the defined method as a symbol. # # @return [Symbol] the name of the defined method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#33 def method_name; end # The receiver of the method definition, if any. # # @return [Node, nil] the receiver of the method definition, or `nil`. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:58 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#58 def receiver; end # Checks whether this node body is a void context. # # @return [Boolean] whether the `def` node body is a void context # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/def_node.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node/def_node.rb#15 def void_context?; end end @@ -1170,30 +1182,30 @@ end # plain node when the builder constructs the AST, making its methods # available to all `send` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/defined_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#8 class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast-2.4.2/lib/ast/node.rb:56 + # source://ast/2.4.2/lib/ast/node.rb#56 def arguments; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/defined_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12 def node_parts; end end # Common functionality for primitive literal nodes: `sym`, `str`, # `int`, `float`, ... # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#7 module RuboCop::AST::Descendence # Returns an array of child nodes. # This is a shorthand for `node.each_child_node.to_a`. # # @return [Array] an array of child nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:38 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#38 def child_nodes; end # Returns an array of descendant nodes. @@ -1201,7 +1213,7 @@ module RuboCop::AST::Descendence # # @return [Array] an array of descendant nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#72 def descendants; end # Calls the given block for each child node. @@ -1216,7 +1228,7 @@ module RuboCop::AST::Descendence # @return [Enumerator] if no block is given # @yieldparam node [Node] each child node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:22 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#22 def each_child_node(*types); end # Calls the given block for each descendant node with depth first order. @@ -1229,7 +1241,7 @@ module RuboCop::AST::Descendence # @return [Enumerator] if no block is given # @yieldparam node [Node] each descendant node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#60 def each_descendant(*types, &block); end # Calls the given block for the receiver and each descendant node in @@ -1246,12 +1258,12 @@ module RuboCop::AST::Descendence # @return [Enumerator] if no block is given # @yieldparam node [Node] each node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:92 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#95 def each_node(*types, &block); end protected - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/descendence.rb:104 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/descendence.rb#107 def visit_descendants(types, &block); end end @@ -1259,9 +1271,9 @@ end # in place of a plain node when the builder constructs the AST, making # its methods available to all `dstr` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/dstr_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#8 class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/dstr_node.rb:9 + # source://rubocop-ast//lib/rubocop/ast/node/dstr_node.rb#9 def value; end end @@ -1269,22 +1281,22 @@ end # node when the builder constructs the AST, making its methods available # to all `ensure` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/ensure_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#11 class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node # Returns the body of the `ensure` clause. # # @return [Node, nil] The body of the `ensure`. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/ensure_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12 def body; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/ext/range.rb:5 +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5 module RuboCop::AST::Ext; end # Extensions to Parser::AST::Range # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/ext/range.rb:7 +# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#7 module RuboCop::AST::Ext::Range # If `exclude_end` is `true`, then the range will be exclusive. # @@ -1300,20 +1312,20 @@ module RuboCop::AST::Ext::Range # # @return [Range] the range of line numbers for the node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/ext/range.rb:20 + # source://rubocop-ast//lib/rubocop/ast/ext/range.rb#20 def line_span(exclude_end: T.unsafe(nil)); end end # Refinement to circumvent broken `Range#minmax` for infinity ranges in 2.6- # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/ext/range_min_max.rb:7 +# source://rubocop-ast//lib/rubocop/ast/ext/range_min_max.rb#7 module RuboCop::AST::Ext::RangeMinMax; end # A node extension for `float` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available to # all `float` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/float_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/float_node.rb#8 class RuboCop::AST::FloatNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode include ::RuboCop::AST::NumericNode @@ -1323,41 +1335,41 @@ end # node when the builder constructs the AST, making its methods available # to all `for` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#11 class RuboCop::AST::ForNode < ::RuboCop::AST::Node # Returns the body of the `for` loop. # # @return [Node, nil] The body of the `for` loop. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#48 def body; end # Returns the collection the `for` loop is iterating over. # # @return [Node] The collection the `for` loop is iterating over # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:41 + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#41 def collection; end # Checks whether the `for` node has a `do` keyword. # # @return [Boolean] whether the `for` node has a `do` keyword # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#19 def do?; end # Returns the keyword of the `for` statement as a string. # # @return [String] the keyword of the `until` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#12 def keyword; end # Returns the iteration variable of the `for` loop. # # @return [Node] The iteration variable of the `for` loop # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#34 def variable; end # Checks whether this node body is a void context. @@ -1365,7 +1377,7 @@ class RuboCop::AST::ForNode < ::RuboCop::AST::Node # # @return [true] whether the `for` node body is a void context # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/for_node.rb:27 + # source://rubocop-ast//lib/rubocop/ast/node/for_node.rb#27 def void_context?; end end @@ -1388,28 +1400,28 @@ end # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/forward_args_node.rb:23 +# source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#23 class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node include ::RuboCop::AST::CollectionNode # Node wraps itself in an array to be compatible with other # enumerable argument types. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/forward_args_node.rb:28 + # source://rubocop-ast//lib/rubocop/ast/node/forward_args_node.rb#28 def to_a; end end # Common functionality for nodes that can be used as hash elements: # `pair`, `kwsplat` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#7 module RuboCop::AST::HashElementNode # Returns the delta between this element's delimiter and the argument's. # # @note Pairs with different delimiter styles return a delta of 0 # @return [Integer] the delta between the two delimiters # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:61 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#61 def delimiter_delta(other); end # Returns the key of this `hash` element. @@ -1417,7 +1429,7 @@ module RuboCop::AST::HashElementNode # @note For keyword splats, this returns the whole node # @return [Node] the key of the hash element # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#13 def key; end # Returns the delta between this pair's key and the argument pair's. @@ -1427,7 +1439,7 @@ module RuboCop::AST::HashElementNode # @param alignment [Symbol] whether to check the left or right side # @return [Integer] the delta between the two keys # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#43 def key_delta(other, alignment = T.unsafe(nil)); end # Checks whether this `hash` element is on the same line as `other`. @@ -1436,7 +1448,7 @@ module RuboCop::AST::HashElementNode # shares any of its lines with `other` # @return [Boolean] whether this element is on the same line as `other` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:32 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#32 def same_line?(other); end # Returns the value of this `hash` element. @@ -1444,7 +1456,7 @@ module RuboCop::AST::HashElementNode # @note For keyword splats, this returns the whole node # @return [Node] the value of the hash element # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:22 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#22 def value; end # Returns the delta between this element's value and the argument's. @@ -1452,53 +1464,53 @@ module RuboCop::AST::HashElementNode # @note Keyword splats always return a delta of 0 # @return [Integer] the delta between the two values # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:52 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#52 def value_delta(other); end end # A helper class for comparing the positions of different parts of a # `pair` node. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:67 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#67 class RuboCop::AST::HashElementNode::HashElementDelta # @raise [ArgumentError] # @return [HashElementDelta] a new instance of HashElementDelta # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:68 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#68 def initialize(first, second); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:89 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#89 def delimiter_delta; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:75 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#75 def key_delta(alignment = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:82 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#82 def value_delta; end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#106 def delta(first, second, alignment = T.unsafe(nil)); end # Returns the value of attribute first. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:98 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#98 def first; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:117 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#117 def keyword_splat?; end # Returns the value of attribute second. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:98 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#98 def second; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/hash_element_node.rb:100 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/hash_element_node.rb#100 def valid_argument_types?; end end @@ -1506,13 +1518,13 @@ end # node when the builder constructs the AST, making its methods available # to all `hash` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:14 +# source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#14 class RuboCop::AST::HashNode < ::RuboCop::AST::Node # Checks whether the `hash` literal is delimited by curly braces. # # @return [Boolean] whether the `hash` literal is enclosed in braces # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:117 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#117 def braces?; end # Calls the given block for each `key` node in the `hash` literal. @@ -1522,7 +1534,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:59 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#59 def each_key(&block); end # Calls the given block for each `pair` node in the `hash` literal. @@ -1532,7 +1544,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#33 def each_pair; end # Calls the given block for each `value` node in the `hash` literal. @@ -1542,7 +1554,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @return [self] if a block is given # @return [Enumerator] if no block is given # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:83 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#83 def each_value(&block); end # Checks whether the `hash` node contains any `pair`- or `kwsplat` nodes. @@ -1551,7 +1563,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:22 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#22 def empty?; end # Returns an array of all the keys in the `hash` literal. @@ -1559,7 +1571,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Array] an array of keys in the `hash` literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#48 def keys; end # Checks whether this `hash` uses a mix of hash rocket and colon @@ -1568,7 +1580,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Boolean] whether the `hash` uses mixed delimiters # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:110 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#110 def mixed_delimiters?; end # Returns an array of all the key value pairs in the `hash` literal. @@ -1578,7 +1590,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note this may be different from children as `kwsplat` nodes are # @return [Array] an array of `pair` nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#15 def pairs; end # Checks whether any of the key value pairs in the `hash` literal are on @@ -1589,7 +1601,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Boolean] whether any `pair` nodes are on the same line # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:100 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#100 def pairs_on_same_line?; end # Returns an array of all the values in the `hash` literal. @@ -1597,7 +1609,7 @@ class RuboCop::AST::HashNode < ::RuboCop::AST::Node # @note `kwsplat` nodes are ignored. # @return [Array] an array of values in the `hash` literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/hash_node.rb:72 + # source://rubocop-ast//lib/rubocop/ast/node/hash_node.rb#72 def values; end end @@ -1605,7 +1617,7 @@ end # node when the builder constructs the AST, making its methods available # to all `if` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#8 class RuboCop::AST::IfNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode include ::RuboCop::AST::ModifierNode @@ -1614,12 +1626,12 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Array] an array of branch nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:147 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#147 def branches; end # @deprecated Use `branches.each` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:164 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#164 def each_branch(&block); end # Checks whether the `if` node has an `else` clause. @@ -1628,7 +1640,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # This is legacy behavior, and many cops rely on it. # @return [Boolean] whether the node has an `else` clause # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:42 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#42 def else?; end # Returns the branch of the `if` node that gets evaluated when its @@ -1638,7 +1650,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # @return [Node] the falsey branch node of the `if` node # @return [nil] when there is no else branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:126 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#126 def else_branch; end # Checks whether the `if` is an `elsif`. Parser handles these by nesting @@ -1646,7 +1658,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the node is an `elsif` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:32 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#32 def elsif?; end # Checks whether the `if` node has at least one `elsif` branch. Returns @@ -1654,7 +1666,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `if` node has at least one `elsif` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:104 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#104 def elsif_conditional?; end # Checks whether this node is an `if` statement. (This is not true of @@ -1662,7 +1674,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the node is an `if` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#16 def if?; end # Returns the branch of the `if` node that gets evaluated when its @@ -1672,7 +1684,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # @return [Node] the truthy branch node of the `if` node # @return [nil] if the truthy branch is empty # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:115 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#115 def if_branch; end # Returns the inverse keyword of the `if` node as a string. Returns `if` @@ -1681,7 +1693,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [String] the inverse keyword of the `if` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:66 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#66 def inverse_keyword; end # Returns the keyword of the `if` statement as a string. Returns an empty @@ -1689,7 +1701,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [String] the keyword of the `if` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#57 def keyword; end # Checks whether the `if` node is in a modifier form, i.e. a condition @@ -1698,7 +1710,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `if` node is a modifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:80 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#80 def modifier_form?; end # Chacks whether the `if` node has nested `if` nodes in any of its @@ -1707,7 +1719,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # @note This performs a shallow search. # @return [Boolean] whether the `if` node contains nested conditionals # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:90 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#90 def nested_conditional?; end # Custom destructuring method. This is used to normalize the branches @@ -1715,14 +1727,14 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `if` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:134 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#134 def node_parts; end # Checks whether the `if` node is a ternary operator. # # @return [Boolean] whether the `if` node is a ternary operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:49 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#49 def ternary?; end # Checks whether this node is an `unless` statement. (This is not true @@ -1730,7 +1742,7 @@ class RuboCop::AST::IfNode < ::RuboCop::AST::Node # # @return [Boolean] whether the node is an `unless` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/if_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/if_node.rb#24 def unless?; end end @@ -1738,34 +1750,34 @@ end # node when the builder constructs the AST, making its methods available # to all `in` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/in_pattern_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#11 class RuboCop::AST::InPatternNode < ::RuboCop::AST::Node # Returns the body of the `in` node. # # @return [Node, nil] the body of the `in` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/in_pattern_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#33 def body; end # Returns the index of the `in` branch within the `case` statement. # # @return [Integer] the index of the `in` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/in_pattern_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#19 def branch_index; end # Returns a node of the pattern in the `in` branch. # # @return [Node] a pattern node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/in_pattern_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#12 def pattern; end # Checks whether the `in` node has a `then` keyword. # # @return [Boolean] whether the `in` node has a `then` keyword # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/in_pattern_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/in_pattern_node.rb#26 def then?; end end @@ -1784,7 +1796,7 @@ end # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_index=true` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/index_node.rb:19 +# source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#19 class RuboCop::AST::IndexNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments @@ -1795,19 +1807,19 @@ class RuboCop::AST::IndexNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/index_node.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#29 def assignment_method?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/index_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#24 def attribute_accessor?; end # For similarity with legacy mode # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/index_node.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#34 def method_name; end private @@ -1816,7 +1828,7 @@ class RuboCop::AST::IndexNode < ::RuboCop::AST::Node # # @return [Array] the arguments of the dispatched method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/index_node.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node/index_node.rb#43 def first_argument_index; end end @@ -1837,7 +1849,7 @@ end # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_index=true` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/indexasgn_node.rb:21 +# source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#21 class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments @@ -1848,19 +1860,19 @@ class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/indexasgn_node.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#31 def assignment_method?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/indexasgn_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#26 def attribute_accessor?; end # For similarity with legacy mode # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/indexasgn_node.rb:36 + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#36 def method_name; end private @@ -1869,7 +1881,7 @@ class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node # # @return [Array] the arguments of the dispatched method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/indexasgn_node.rb:45 + # source://rubocop-ast//lib/rubocop/ast/node/indexasgn_node.rb#45 def first_argument_index; end end @@ -1877,7 +1889,7 @@ end # node when the builder constructs the AST, making its methods available to # all `int` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/int_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/int_node.rb#8 class RuboCop::AST::IntNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode include ::RuboCop::AST::NumericNode @@ -1887,7 +1899,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `kwsplat` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/keyword_splat_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#8 class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node include ::RuboCop::AST::HashElementNode @@ -1896,7 +1908,7 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node # # @return [false] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/keyword_splat_node.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#26 def colon?; end # This is used for duck typing with `pair` nodes which also appear as @@ -1904,7 +1916,7 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node # # @return [false] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/keyword_splat_node.rb:18 + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#18 def hash_rocket?; end # Custom destructuring method. This is used to normalize the branches @@ -1912,18 +1924,18 @@ class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `kwsplat` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/keyword_splat_node.rb:41 + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#41 def node_parts; end # Returns the operator for the `kwsplat` as a string. # # @return [String] the double splat operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/keyword_splat_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#33 def operator; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/keyword_splat_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/keyword_splat_node.rb#11 RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String) # Used for modern support only: @@ -1945,7 +1957,7 @@ RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String) # The main RuboCop runs in legacy mode; this node is only used # if user `AST::Builder.modernize` or `AST::Builder.emit_lambda=true` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:23 +# source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#23 class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments @@ -1956,45 +1968,45 @@ class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#43 def assignment_method?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:38 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#38 def attribute_accessor?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:28 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#28 def lambda?; end # For similarity with legacy mode # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#33 def lambda_literal?; end # For similarity with legacy mode # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#53 def method_name; end # For similarity with legacy mode # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#48 def receiver; end private # For similarity with legacy mode # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/lambda_node.rb:60 + # source://rubocop-ast//lib/rubocop/ast/node/lambda_node.rb#60 def first_argument_index; end end @@ -2002,7 +2014,7 @@ end # `send`, `csend`, `super`, `zsuper`, `yield`, `defined?`, # and (modern only): `index`, `indexasgn`, `lambda` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#8 module RuboCop::AST::MethodDispatchNode include ::RuboCop::AST::MethodIdentifierPredicates extend ::RuboCop::AST::NodePattern::Macros @@ -2011,10 +2023,10 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the dispatched method is an access modifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#53 def access_modifier?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:262 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#262 def adjacent_def_modifier?(param0 = T.unsafe(nil)); end # Checks whether this node is an arithmetic operation @@ -2022,14 +2034,14 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is an arithmetic # operation # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:164 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#164 def arithmetic_operation?; end # Checks whether the dispatched method is a setter method. # # @return [Boolean] whether the dispatched method is a setter # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:96 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#96 def assignment?; end # Checks whether the dispatched method is a bare access modifier that @@ -2038,10 +2050,10 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is a bare # access modifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:62 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#62 def bare_access_modifier?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:267 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#267 def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end # Checks whether this is a binary operation. @@ -2049,16 +2061,16 @@ module RuboCop::AST::MethodDispatchNode # @example # # foo + bar - # @return [Bookean] whether this method is a binary operation + # @return [Boolean] whether this method is a binary operation # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:237 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#237 def binary_operation?; end # Whether this method dispatch has an explicit block. # # @return [Boolean] whether the dispatched method has a block # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:156 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#156 def block_literal?; end # The `block` or `numblock` node associated with this method dispatch, if any. @@ -2066,7 +2078,7 @@ module RuboCop::AST::MethodDispatchNode # @return [BlockNode, nil] the `block` or `numblock` node associated with this method # call or `nil` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:35 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#35 def block_node; end # Checks whether the name of the dispatched method matches the argument @@ -2075,7 +2087,7 @@ module RuboCop::AST::MethodDispatchNode # @param name [Symbol, String] the method name to check for # @return [Boolean] whether the method name matches the argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:89 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#89 def command?(name); end # Checks whether the *explicit* receiver of this method dispatch is a @@ -2084,7 +2096,7 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the receiver of this method dispatch # is a `const` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:141 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#141 def const_receiver?; end # Checks if this node is part of a chain of `def` or `defs` modifiers. @@ -2096,7 +2108,7 @@ module RuboCop::AST::MethodDispatchNode # private def foo; end # @return [Node | nil] returns the `def|defs` node this is a modifier for, # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:188 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#188 def def_modifier(node = T.unsafe(nil)); end # Checks if this node is part of a chain of `def` or `defs` modifiers. @@ -2108,7 +2120,7 @@ module RuboCop::AST::MethodDispatchNode # private def foo; end # @return [Boolean] whether the `def|defs` node is a modifier or not. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:176 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#176 def def_modifier?(node = T.unsafe(nil)); end # Checks whether the dispatched method uses a dot to connect the @@ -2119,7 +2131,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method was called with a connecting dot # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:108 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#108 def dot?; end # Checks whether the dispatched method uses a double colon to connect the @@ -2127,7 +2139,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method was called with a connecting dot # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:116 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#116 def double_colon?; end # Checks whether the method dispatch is the implicit form of `#call`, @@ -2135,10 +2147,10 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method is the implicit form of `#call` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:149 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#149 def implicit_call?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:246 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#246 def in_macro_scope?(param0 = T.unsafe(nil)); end # Checks whether this is a lambda. Some versions of parser parses @@ -2146,7 +2158,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether this method is a lambda # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:202 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#202 def lambda?; end # Checks whether this is a lambda literal (stabby lambda.) @@ -2156,7 +2168,7 @@ module RuboCop::AST::MethodDispatchNode # -> (foo) { bar } # @return [Boolean] whether this method is a lambda literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:213 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#213 def lambda_literal?; end # Checks whether the dispatched method is a macro method. A macro method @@ -2166,14 +2178,14 @@ module RuboCop::AST::MethodDispatchNode # @note This does not include DSLs that use nested blocks, like RSpec # @return [Boolean] whether the dispatched method is a macro method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#46 def macro?; end # The name of the dispatched method as a symbol. # # @return [Symbol] the name of the dispatched method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:27 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#27 def method_name; end # Checks whether the dispatched method is a non-bare access modifier that @@ -2182,17 +2194,17 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is a non-bare # access modifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:71 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#71 def non_bare_access_modifier?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:272 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#272 def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end # The receiving node of the method dispatch. # # @return [Node, nil] the receiver of the dispatched method or `nil` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#20 def receiver; end # Checks whether the dispatched method uses a safe navigation operator to @@ -2200,7 +2212,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the method was called with a connecting dot # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:124 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#124 def safe_navigation?; end # Checks whether the *explicit* receiver of this method dispatch is @@ -2208,14 +2220,14 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the receiver of this method dispatch is `self` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:132 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#132 def self_receiver?; end # Checks whether the dispatched method is a setter method. # # @return [Boolean] whether the dispatched method is a setter # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:96 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#96 def setter_method?; end # Checks whether the dispatched method is a bare `private` or `protected` @@ -2224,7 +2236,7 @@ module RuboCop::AST::MethodDispatchNode # @return [Boolean] whether the dispatched method is a bare # `private` or `protected` access modifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:80 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#80 def special_modifier?; end # Checks whether this is a unary operation. @@ -2234,14 +2246,14 @@ module RuboCop::AST::MethodDispatchNode # -foo # @return [Boolean] whether this method is a unary operation # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:224 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#224 def unary_operation?; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#12 RuboCop::AST::MethodDispatchNode::ARITHMETIC_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb:14 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#14 RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array) # Common predicates for nodes that reference method identifiers: @@ -2249,20 +2261,20 @@ RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array # # @note this mixin expects `#method_name` and `#receiver` to be implemented # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#9 module RuboCop::AST::MethodIdentifierPredicates # Checks whether the method is an assignment method. # # @return [Boolean] whether the method is an assignment # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:142 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#142 def assignment_method?; end # Checks whether the method is a bang method. # # @return [Boolean] whether the method is a bang method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:171 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#171 def bang_method?; end # Checks whether the method is a camel case method, @@ -2270,35 +2282,35 @@ module RuboCop::AST::MethodIdentifierPredicates # # @return [Boolean] whether the method is a camel case method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:179 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#179 def camel_case_method?; end # Checks whether the method is a comparison method. # # @return [Boolean] whether the method is a comparison # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:135 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#135 def comparison_method?; end # Checks whether the *explicit* receiver of node is a `const` node. # # @return [Boolean] whether the receiver of this node is a `const` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:193 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#193 def const_receiver?; end # Checks whether the method is an Enumerable method. # # @return [Boolean] whether the method is an Enumerable method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:157 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#157 def enumerable_method?; end # Checks whether the method is an enumerator method. # # @return [Boolean] whether the method is an enumerator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:149 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#149 def enumerator_method?; end # Checks whether the method name matches the argument. @@ -2306,134 +2318,134 @@ module RuboCop::AST::MethodIdentifierPredicates # @param name [Symbol, String] the method name to check for # @return [Boolean] whether the method name matches the argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:79 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#79 def method?(name); end # Checks whether this is a negation method, i.e. `!` or keyword `not`. # # @return [Boolean] whether this method is a negation method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:200 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#200 def negation_method?; end # Checks whether the method is a nonmutating Array method. # # @return [Boolean] whether the method is a nonmutating Array method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:114 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#114 def nonmutating_array_method?; end # Checks whether the method is a nonmutating binary operator method. # # @return [Boolean] whether the method is a nonmutating binary operator method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:93 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#93 def nonmutating_binary_operator_method?; end # Checks whether the method is a nonmutating Hash method. # # @return [Boolean] whether the method is a nonmutating Hash method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:121 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#121 def nonmutating_hash_method?; end # Checks whether the method is a nonmutating operator method. # # @return [Boolean] whether the method is a nonmutating operator method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:107 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#107 def nonmutating_operator_method?; end # Checks whether the method is a nonmutating String method. # # @return [Boolean] whether the method is a nonmutating String method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:128 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#128 def nonmutating_string_method?; end # Checks whether the method is a nonmutating unary operator method. # # @return [Boolean] whether the method is a nonmutating unary operator method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:100 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#100 def nonmutating_unary_operator_method?; end # Checks whether the method is an operator method. # # @return [Boolean] whether the method is an operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:86 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#86 def operator_method?; end # Checks whether the method is a predicate method. # # @return [Boolean] whether the method is a predicate method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:164 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#164 def predicate_method?; end # Checks whether this is a prefix bang method, e.g. `!foo`. # # @return [Boolean] whether this method is a prefix bang # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:214 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#214 def prefix_bang?; end # Checks whether this is a prefix not method, e.g. `not foo`. # # @return [Boolean] whether this method is a prefix not # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:207 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#207 def prefix_not?; end # Checks whether the *explicit* receiver of this node is `self`. # # @return [Boolean] whether the receiver of this node is `self` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:186 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#186 def self_receiver?; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:16 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#16 RuboCop::AST::MethodIdentifierPredicates::ENUMERABLE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#10 RuboCop::AST::MethodIdentifierPredicates::ENUMERATOR_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:32 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#32 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:24 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#24 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_BINARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:48 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#48 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:28 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#28 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:59 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#59 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_STRING_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb:26 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/method_identifier_predicates.rb#26 RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set) # http://phrogz.net/programmingruby/language.html#table_18.4 # -# source://rubocop-ast-1.21.0/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) # Common functionality for nodes that can be used as modifiers: # `if`, `while`, `until` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/modifier_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#7 module RuboCop::AST::ModifierNode # Checks whether the node is in a modifier form, i.e. a condition # trailing behind an expression. # # @return [Boolean] whether the node is a modifier # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/modifier_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/modifier_node.rb#12 def modifier_form?; end end @@ -2441,20 +2453,20 @@ end # plain node when the builder constructs the AST, making its methods # available to all `module` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/module_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#11 class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node # The body of this `module` node. # # @return [Node, nil] the body of the module # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/module_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#19 def body; end # The identifier for this `module` node. # # @return [Node] the identifier of the module # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/module_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/module_node.rb#12 def identifier; end end @@ -2462,7 +2474,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `next` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/next_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/next_node.rb#8 class RuboCop::AST::NextNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::WrappedArguments @@ -2484,7 +2496,7 @@ end # # Find the first lvar node under the receiver node. # lvar_node = node.each_descendant.find(&:lvar_type?) # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:21 +# source://rubocop-ast//lib/rubocop/ast/node.rb#21 class RuboCop::AST::Node < ::Parser::AST::Node include ::RuboCop::AST::Sexp include ::RuboCop::AST::Descendence @@ -2493,19 +2505,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Node] a new instance of Node # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:88 + # source://rubocop-ast//lib/rubocop/ast/node.rb#92 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def __ENCODING___type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def __FILE___type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def __LINE___type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def alias_type?; end # Returns an array of ancestor nodes. @@ -2513,173 +2525,173 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] an array of ancestor nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:237 + # source://rubocop-ast//lib/rubocop/ast/node.rb#247 def ancestors; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def and_asgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def and_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def arg_expr_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def arg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def args_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:454 + # source://rubocop-ast//lib/rubocop/ast/node.rb#464 def argument?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:458 + # source://rubocop-ast//lib/rubocop/ast/node.rb#468 def argument_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def array_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def array_pattern_with_tail_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def array_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:406 + # source://rubocop-ast//lib/rubocop/ast/node.rb#416 def assignment?; end # Some cops treat the shovel operator as a kind of assignment. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:345 + # source://rubocop-ast//lib/rubocop/ast/node.rb#355 def assignment_or_similar?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def back_ref_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:410 + # source://rubocop-ast//lib/rubocop/ast/node.rb#420 def basic_conditional?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:353 + # source://rubocop-ast//lib/rubocop/ast/node.rb#363 def basic_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def begin_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def block_pass_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def block_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def blockarg_expr_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def blockarg_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:462 + # source://rubocop-ast//lib/rubocop/ast/node.rb#472 def boolean_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def break_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:446 + # source://rubocop-ast//lib/rubocop/ast/node.rb#456 def call_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def case_match_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def case_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def casgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def cbase_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:450 + # source://rubocop-ast//lib/rubocop/ast/node.rb#460 def chained?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:502 + # source://rubocop-ast//lib/rubocop/ast/node.rb#512 def class_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:514 + # source://rubocop-ast//lib/rubocop/ast/node.rb#524 def class_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def class_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:132 + # source://rubocop-ast//lib/rubocop/ast/node.rb#144 def complete!; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:137 + # source://rubocop-ast//lib/rubocop/ast/node.rb#149 def complete?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def complex_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:414 + # source://rubocop-ast//lib/rubocop/ast/node.rb#424 def conditional?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:283 + # source://rubocop-ast//lib/rubocop/ast/node.rb#293 def const_name; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def const_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def const_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def csend_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def cvar_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def cvasgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def def_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:304 + # source://rubocop-ast//lib/rubocop/ast/node.rb#314 def defined_module; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:309 + # source://rubocop-ast//lib/rubocop/ast/node.rb#319 def defined_module_name; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def defined_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def defs_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def dstr_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def dsym_type?; end # Calls the given block for each ancestor node from parent to root. @@ -2692,157 +2704,163 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Enumerator] if no block is given # @yieldparam node [Node] each ancestor node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:225 + # source://rubocop-ast//lib/rubocop/ast/node.rb#235 def each_ancestor(*types, &block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def eflipflop_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def empty_else_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:339 + # source://rubocop-ast//lib/rubocop/ast/node.rb#349 def empty_source?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def ensure_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:398 + # source://rubocop-ast//lib/rubocop/ast/node.rb#408 def equals_asgn?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def erange_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def false_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:361 + # source://rubocop-ast//lib/rubocop/ast/node.rb#371 def falsey_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def find_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:251 + # source://rubocop-ast//lib/rubocop/ast/node.rb#261 def first_line; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def float_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def for_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def forward_arg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def forward_args_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def forwarded_args_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:499 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forwarded_kwrestarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 + def forwarded_restarg_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#509 def global_const?(param0 = T.unsafe(nil), param1); end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:474 + # source://rubocop-ast//lib/rubocop/ast/node.rb#484 def guard_clause?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def gvar_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def gvasgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def hash_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def hash_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def ident_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def if_guard_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def if_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def iflipflop_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:369 + # source://rubocop-ast//lib/rubocop/ast/node.rb#379 def immutable_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def in_match_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def in_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def index_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def indexasgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def int_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def irange_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def ivar_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def ivasgn_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:427 + # source://rubocop-ast//lib/rubocop/ast/node.rb#437 def keyword?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwargs_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwbegin_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwnilarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwoptarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwrestarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def kwsplat_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:493 + # source://rubocop-ast//lib/rubocop/ast/node.rb#503 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:496 + # source://rubocop-ast//lib/rubocop/ast/node.rb#506 def lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def lambda_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:255 + # source://rubocop-ast//lib/rubocop/ast/node.rb#265 def last_line; end # Use is discouraged, this is a potentially slow method and can lead @@ -2850,7 +2868,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the left (aka previous) sibling # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:175 + # source://rubocop-ast//lib/rubocop/ast/node.rb#187 def left_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -2858,94 +2876,94 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the left (aka previous) siblings # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:185 + # source://rubocop-ast//lib/rubocop/ast/node.rb#197 def left_siblings; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:259 + # source://rubocop-ast//lib/rubocop/ast/node.rb#269 def line_count; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:349 + # source://rubocop-ast//lib/rubocop/ast/node.rb#359 def literal?; end # NOTE: `loop { }` is a normal method call and thus not a loop keyword. # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:423 + # source://rubocop-ast//lib/rubocop/ast/node.rb#433 def loop_keyword?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def lvar_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def lvasgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def masgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_alt_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_as_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_current_line_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:481 + # source://rubocop-ast//lib/rubocop/ast/node.rb#491 def match_guard_clause?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_nil_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_pattern_p_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_pattern_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_rest_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_var_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_with_lvasgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def match_with_trailing_comma_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def mlhs_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:521 + # source://rubocop-ast//lib/rubocop/ast/node.rb#531 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def module_type?; end # Predicates # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:331 + # source://rubocop-ast//lib/rubocop/ast/node.rb#341 def multiline?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:365 + # source://rubocop-ast//lib/rubocop/ast/node.rb#375 def mutable_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:655 + # source://rubocop-ast//lib/rubocop/ast/node.rb#665 def new_class_or_module_block?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def next_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def nil_type?; end # Common destructuring method. This can be used to normalize @@ -2955,98 +2973,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the different parts of the ndde # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:206 + # source://ast/2.4.2/lib/ast/node.rb#56 def node_parts; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:265 + # source://rubocop-ast//lib/rubocop/ast/node.rb#275 def nonempty_line_count; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def not_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def nth_ref_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def numargs_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def numblock_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:466 + # source://rubocop-ast//lib/rubocop/ast/node.rb#476 def numeric_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def objc_kwarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def objc_restarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def objc_varargs_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def op_asgn_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:438 + # source://rubocop-ast//lib/rubocop/ast/node.rb#448 def operator_keyword?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def optarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def or_asgn_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def or_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def pair_type?; end # Returns the parent node, or `nil` if the receiver is a root node. # # @return [Node, nil] the parent node or `nil` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:114 + # source://rubocop-ast//lib/rubocop/ast/node.rb#126 def parent; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:123 + # source://rubocop-ast//lib/rubocop/ast/node.rb#135 def parent?; end # Searching the AST # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:315 + # source://rubocop-ast//lib/rubocop/ast/node.rb#325 def parent_module_name; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:442 + # source://rubocop-ast//lib/rubocop/ast/node.rb#452 def parenthesized_call?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def pin_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:418 + # source://rubocop-ast//lib/rubocop/ast/node.rb#428 def post_condition_loop?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def postexe_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def preexe_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:486 + # source://rubocop-ast//lib/rubocop/ast/node.rb#496 def proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def procarg0_type?; end # Some expressions are evaluated for their value, some for their side @@ -3059,56 +3077,56 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:566 + # source://rubocop-ast//lib/rubocop/ast/node.rb#576 def pure?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:470 + # source://rubocop-ast//lib/rubocop/ast/node.rb#480 def range_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def rational_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:276 + # source://rubocop-ast//lib/rubocop/ast/node.rb#286 def receiver(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:376 + # source://rubocop-ast//lib/rubocop/ast/node.rb#386 def recursive_basic_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:376 + # source://rubocop-ast//lib/rubocop/ast/node.rb#386 def recursive_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def redo_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:394 + # source://rubocop-ast//lib/rubocop/ast/node.rb#404 def reference?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def regexp_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def regopt_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def resbody_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def rescue_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def restarg_expr_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def restarg_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def retry_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def return_type?; end # Use is discouraged, this is a potentially slow method and can lead @@ -3116,7 +3134,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the right (aka next) sibling # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:166 + # source://rubocop-ast//lib/rubocop/ast/node.rb#178 def right_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3124,29 +3142,34 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the right (aka next) siblings # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:194 + # source://rubocop-ast//lib/rubocop/ast/node.rb#206 def right_siblings; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:128 + # source://rubocop-ast//lib/rubocop/ast/node.rb#140 def root?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def sclass_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def self_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # Most nodes are of 'send' type, so this method is defined + # separately to make this check as fast as possible. + # + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#119 def send_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def shadowarg_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:402 + # source://rubocop-ast//lib/rubocop/ast/node.rb#412 def shorthand_asgn?; end # Returns the index of the receiver node in its siblings. (Sibling index @@ -3155,70 +3178,70 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Integer, nil] the index of the receiver node in its siblings # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:159 + # source://rubocop-ast//lib/rubocop/ast/node.rb#171 def sibling_index; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:335 + # source://rubocop-ast//lib/rubocop/ast/node.rb#345 def single_line?; end # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}` # # @return [String, nil] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:243 + # source://rubocop-ast//lib/rubocop/ast/node.rb#253 def source; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:269 + # source://rubocop-ast//lib/rubocop/ast/node.rb#279 def source_length; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:247 + # source://rubocop-ast//lib/rubocop/ast/node.rb#257 def source_range; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:434 + # source://rubocop-ast//lib/rubocop/ast/node.rb#444 def special_keyword?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def splat_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:281 + # source://rubocop-ast//lib/rubocop/ast/node.rb#291 def str_content(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def str_type?; end # @deprecated Use `:class_constructor?` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:509 + # source://rubocop-ast//lib/rubocop/ast/node.rb#519 def struct_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def super_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def sym_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def true_type?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:357 + # source://rubocop-ast//lib/rubocop/ast/node.rb#367 def truthy_literal?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def undef_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def unless_guard_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def until_post_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def until_type?; end # Override `AST::Node#updated` so that `AST::Processor` does not try to @@ -3227,7 +3250,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # identical subtrees. Rather, the entire AST must be copied any time any # part of it is changed. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:148 + # source://rubocop-ast//lib/rubocop/ast/node.rb#160 def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end # Some expressions are evaluated for their value, some for their side @@ -3241,186 +3264,192 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:535 + # source://rubocop-ast//lib/rubocop/ast/node.rb#545 def value_used?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:390 + # source://rubocop-ast//lib/rubocop/ast/node.rb#400 def variable?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def when_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def while_post_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def while_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def xstr_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def yield_type?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:106 + # source://rubocop-ast//lib/rubocop/ast/node.rb#111 def zsuper_type?; end protected - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:118 + # source://rubocop-ast//lib/rubocop/ast/node.rb#130 def parent=(node); end private # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:594 + # source://rubocop-ast//lib/rubocop/ast/node.rb#604 def begin_value_used?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:605 + # source://rubocop-ast//lib/rubocop/ast/node.rb#615 def case_if_value_used?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:295 + # source://rubocop-ast//lib/rubocop/ast/node.rb#305 def defined_module0(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:599 + # source://rubocop-ast//lib/rubocop/ast/node.rb#609 def for_value_used?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:641 + # source://rubocop-ast//lib/rubocop/ast/node.rb#651 def parent_module_name_for_block(ancestor); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:629 + # source://rubocop-ast//lib/rubocop/ast/node.rb#639 def parent_module_name_for_sclass(sclass_node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:616 + # source://rubocop-ast//lib/rubocop/ast/node.rb#626 def parent_module_name_part(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:584 + # source://rubocop-ast//lib/rubocop/ast/node.rb#594 def visit_ancestors(types); end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:611 + # source://rubocop-ast//lib/rubocop/ast/node.rb#621 def while_until_value_used?; end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:80 +# source://rubocop-ast//lib/rubocop/ast/node.rb#80 RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:55 +# source://rubocop-ast//lib/rubocop/ast/node.rb#55 RuboCop::AST::Node::ASSIGNMENTS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:58 +# source://rubocop-ast//lib/rubocop/ast/node.rb#58 RuboCop::AST::Node::BASIC_CONDITIONALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:42 +# source://rubocop-ast//lib/rubocop/ast/node.rb#42 RuboCop::AST::Node::BASIC_LITERALS = T.let(T.unsafe(nil), Set) # <=> isn't included here, because it doesn't return a boolean. # # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:28 +# source://rubocop-ast//lib/rubocop/ast/node.rb#28 RuboCop::AST::Node::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:39 +# source://rubocop-ast//lib/rubocop/ast/node.rb#39 RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:60 +# source://rubocop-ast//lib/rubocop/ast/node.rb#60 RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node.rb#87 +RuboCop::AST::Node::EMPTY_CHILDREN = T.let(T.unsafe(nil), Array) + +# source://rubocop-ast//lib/rubocop/ast/node.rb#88 +RuboCop::AST::Node::EMPTY_PROPERTIES = T.let(T.unsafe(nil), Hash) + # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:50 +# source://rubocop-ast//lib/rubocop/ast/node.rb#50 RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:35 +# source://rubocop-ast//lib/rubocop/ast/node.rb#35 RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:47 +# source://rubocop-ast//lib/rubocop/ast/node.rb#47 RuboCop::AST::Node::IMMUTABLE_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:70 +# source://rubocop-ast//lib/rubocop/ast/node.rb#70 RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:37 +# source://rubocop-ast//lib/rubocop/ast/node.rb#37 RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:83 +# source://rubocop-ast//lib/rubocop/ast/node.rb#83 RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:84 +# source://rubocop-ast//lib/rubocop/ast/node.rb#84 RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:64 +# source://rubocop-ast//lib/rubocop/ast/node.rb#64 RuboCop::AST::Node::LOOP_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:44 +# source://rubocop-ast//lib/rubocop/ast/node.rb#44 RuboCop::AST::Node::MUTABLE_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:76 +# source://rubocop-ast//lib/rubocop/ast/node.rb#76 RuboCop::AST::Node::OPERATOR_KEYWORDS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:62 +# source://rubocop-ast//lib/rubocop/ast/node.rb#62 RuboCop::AST::Node::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:68 +# source://rubocop-ast//lib/rubocop/ast/node.rb#68 RuboCop::AST::Node::REFERENCES = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:53 +# source://rubocop-ast//lib/rubocop/ast/node.rb#53 RuboCop::AST::Node::SHORTHAND_ASSIGNMENTS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:78 +# source://rubocop-ast//lib/rubocop/ast/node.rb#78 RuboCop::AST::Node::SPECIAL_KEYWORDS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:31 +# source://rubocop-ast//lib/rubocop/ast/node.rb#31 RuboCop::AST::Node::TRUTHY_LITERALS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node.rb:66 +# source://rubocop-ast//lib/rubocop/ast/node.rb#66 RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set) # This class performs a pattern-matching operation on an AST node. @@ -3442,68 +3471,68 @@ RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set) # - With no block, but multiple captures: captures are returned as an array. # - With no block and no captures: #match returns `true`. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:5 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#5 class RuboCop::AST::NodePattern include ::RuboCop::AST::NodePattern::MethodDefiner extend ::Forwardable # @return [NodePattern] a new instance of NodePattern # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:61 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#77 def initialize(str, compiler: T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 def ==(other); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:91 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#107 def as_json(_options = T.unsafe(nil)); end # Returns the value of attribute ast. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def ast; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def captures(*args, &block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:95 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111 def encode_with(coder); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 def eql?(other); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:119 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119 def freeze; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:99 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#115 def init_with(coder); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:87 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#103 def marshal_dump; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:83 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#99 def marshal_load(pattern); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#85 def match(*args, **rest, &block); end # Returns the value of attribute match_code. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def match_code; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def named_parameters(*args, &block); end # Returns the value of attribute pattern. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def pattern; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def positional_parameters(*args, &block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:79 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95 def to_s; end class << self @@ -3511,7 +3540,7 @@ class RuboCop::AST::NodePattern # # @yield [element] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:105 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#59 def descend(element, &block); end end end @@ -3521,51 +3550,51 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#10 class RuboCop::AST::NodePattern::Builder - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:17 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#17 def emit_atom(type, value); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#29 def emit_call(type, selector, args = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:11 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#11 def emit_capture(capture_token, node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:25 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#25 def emit_list(type, _begin, children, _end); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:41 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#41 def emit_subsequence(node_list); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#21 def emit_unary_op(type, _operator = T.unsafe(nil), *children); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#34 def emit_union(begin_t, pattern_lists, end_t); end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#53 def n(type, *args); end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:49 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#49 def optimizable_as_set?(children); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/builder.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/builder.rb#57 def union_children(pattern_lists); end end # A NodePattern comment, simplified version of ::Parser::Source::Comment # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#7 class RuboCop::AST::NodePattern::Comment # @param range [Parser::Source::Range] # @return [Comment] a new instance of Comment # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:14 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#14 def initialize(range); end # Compares comments. Two comments are equal if they @@ -3574,27 +3603,27 @@ class RuboCop::AST::NodePattern::Comment # @param other [Object] # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#31 def ==(other); end # @return [String] a human-readable representation of this comment # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:39 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#39 def inspect; end # Returns the value of attribute location. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:8 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 def loc; end # Returns the value of attribute location. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:8 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 def location; end # @return [String] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/comment.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#20 def text; end end @@ -3604,79 +3633,79 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#11 class RuboCop::AST::NodePattern::Compiler extend ::Forwardable # @return [Compiler] a new instance of Compiler # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15 def initialize; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def bind(*args, &block); end # Returns the value of attribute binding. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 def binding; end # Returns the value of attribute captures. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 def captures; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:42 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#42 def compile_as_atom(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#46 def compile_as_node_pattern(node, **options); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:50 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#50 def compile_sequence(sequence, var:); end # Enumerates `enum` while keeping track of state across # union branches (captures and unification). # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:38 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#38 def each_union(enum, &block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#74 def freeze; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#31 def named_parameter(name); end # Returns the value of attribute named_parameters. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 def named_parameters; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:70 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#70 def next_capture; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:54 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#54 def parser; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:26 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#26 def positional_parameter(number); end # Returns the value of attribute positional_parameters. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#13 def positional_parameters; end # Utilities # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:60 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#60 def with_temp_variables(*names, &block); end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:81 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#81 def enforce_same_captures(enum); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler.rb:96 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#96 def new_capture; end end @@ -3686,147 +3715,147 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#12 class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:28 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#28 def visit_const; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:32 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32 def visit_named_parameter; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_number; end # Assumes other types are node patterns. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#46 def visit_other_type; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:36 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36 def visit_positional_parameter; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_regexp; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40 def visit_set; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_string; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 def visit_symbol; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#15 def visit_unify; end end # Holds the list of bound variable names # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/binding.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#8 class RuboCop::AST::NodePattern::Compiler::Binding # @return [Binding] a new instance of Binding # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/binding.rb:9 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#9 def initialize; end # Yields the first time a given name is bound # # @return [String] bound variable name # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/binding.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#16 def bind(name); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/binding.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#30 def union_bind(enum); end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/binding.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/binding.rb#69 def forbid(names); end end # Variant of the Compiler with tracing information for nodes # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#12 class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler # @return [Debug] a new instance of Debug # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:123 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123 def initialize; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def comments(*args, &block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:128 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#128 def named_parameters; end # Returns the value of attribute node_ids. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#33 def node_ids; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:132 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132 def parser; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def tokens(*args, &block); end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:36 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer # @api private # @return [Colorizer] a new instance of Colorizer # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:96 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def initialize(pattern, compiler: T.unsafe(nil)); end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 def compiler; end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 def node_pattern; end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 def pattern; end # @api private # @return [Node] the Ruby AST # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:103 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#103 def test(ruby, trace: T.unsafe(nil)); end private # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:111 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#111 def ruby_ast(ruby); end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:116 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#116 def ruby_parser; end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:37 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#37 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:92 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#92 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug # Result of a NodePattern run against a particular AST @@ -3834,18 +3863,18 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST:: # # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:46 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @api private # @return [Hash] a map for {character_position => color} # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:56 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#56 def color_map(color_scheme = T.unsafe(nil)); end # @api private # @return [String] a Rainbow colorized version of ruby # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def colorize(color_scheme = T.unsafe(nil)); end # Returns the value of attribute colorizer @@ -3858,19 +3887,19 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @param value [Object] the value to set the attribute colorizer to. # @return [Object] the newly set value # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def colorizer=(_); end # @api private # @return [Hash] a map for {node => matched?}, depth-first # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:66 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#66 def match_map; end # @api private # @return [Boolean] a value of `Trace#matched?` or `:not_visitable` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#74 def matched?(node); end # Returns the value of attribute returned @@ -3883,7 +3912,7 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @param value [Object] the value to set the attribute returned to. # @return [Object] the newly set value # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def returned=(_); end # Returns the value of attribute ruby_ast @@ -3896,7 +3925,7 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @param value [Object] the value to set the attribute ruby_ast to. # @return [Object] the newly set value # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def ruby_ast=(_); end # Returns the value of attribute trace @@ -3909,19 +3938,19 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @param value [Object] the value to set the attribute trace to. # @return [Object] the newly set value # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 def trace=(_); end private # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:87 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#87 def ast; end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:81 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#81 def color_map_for(node, color); end class << self @@ -3934,36 +3963,36 @@ end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:139 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139 module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:140 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#140 def do_compile; end private # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:150 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#150 def node_id; end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:146 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#146 def tracer(kind); end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:156 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156 class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:161 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#161 class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end @@ -3971,24 +4000,24 @@ end # Compiled node pattern requires a named parameter `trace`, # which should be an instance of this class # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:13 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#13 class RuboCop::AST::NodePattern::Compiler::Debug::Trace # @return [Trace] a new instance of Trace # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:14 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#14 def initialize; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:18 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#18 def enter(node_id); end # return nil (not visited), false (not matched) or true (matched) # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:28 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#28 def matched?(node_id); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/debug.rb:23 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#23 def success(node_id); end end @@ -3999,89 +4028,89 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:13 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#13 class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler # @return [NodePatternSubcompiler] a new instance of NodePatternSubcompiler # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#16 def initialize(compiler, var: T.unsafe(nil), access: T.unsafe(nil), seq_head: T.unsafe(nil)); end # Returns the value of attribute access. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:14 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 def access; end # Returns the value of attribute seq_head. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:14 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#14 def seq_head; end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:119 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#119 def access_element; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:123 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#123 def access_node; end # @param [Array, nil] # @return [String, nil] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:113 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#113 def compile_args(arg_list, first: T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:129 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#129 def compile_guard_clause; end # Compiling helpers # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:107 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#107 def compile_value_match(value); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:133 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#133 def multiple_access(kind); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#30 def visit_ascend; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:58 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#58 def visit_capture; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:37 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#37 def visit_descend; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:84 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#84 def visit_function_call; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:73 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#73 def visit_intersection; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:25 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#25 def visit_negation; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:88 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#88 def visit_node_type; end # Assumes other types are atoms. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:100 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#100 def visit_other_type; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:80 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#80 def visit_predicate; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:92 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#92 def visit_sequence; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:49 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#49 def visit_unify; end # Lists # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:64 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#64 def visit_union; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb:45 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/node_pattern_subcompiler.rb#45 def visit_wildcard; end end @@ -4095,7 +4124,7 @@ end # /docs/modules/ROOT/pages/node_pattern.adoc # # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:17 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17 class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler # Calls `compile_sequence`; the actual `compile` method # will be used for the different terms of the sequence. @@ -4103,106 +4132,106 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: # # @return [SequenceSubcompiler] a new instance of SequenceSubcompiler # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:25 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#25 def initialize(compiler, sequence:, var:); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#31 def compile_sequence; end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:251 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 def in_sync; end protected - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:226 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#226 def compile_terms(children = T.unsafe(nil), last_arity = T.unsafe(nil)); end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:251 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#251 def cur_index; end # yield `sync_code` iff not already in sync # # @yield [code] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:242 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#242 def sync; end private # Compilation helpers # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:165 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#165 def compile_and_advance(term); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:128 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#128 def compile_any_order_branches(matched_var); end # @return [Array] Else code, and init code (if any) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:137 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#137 def compile_any_order_else; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:180 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#180 def compile_captured_repetition(child_code, child_captures); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:119 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#119 def compile_case(when_branches, else_code); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:361 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#361 def compile_child_nb_guard(arity_range); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:319 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#319 def compile_cur_index; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:325 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#325 def compile_index(cur = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:353 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#353 def compile_loop(term); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:347 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#347 def compile_loop_advance(to = T.unsafe(nil)); end # Assumes `@cur_index` is already updated # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:198 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#198 def compile_matched(kind); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:304 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#304 def compile_max_matched; end # @return [String] code that evaluates to `false` if the matched arity is too small # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:270 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#270 def compile_min_check; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:285 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#285 def compile_remaining; end # @return [Hash] of {subcompiler => code} # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:373 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#373 def compile_union_forks; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:313 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#313 def empty_loop; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:214 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#214 def handle_prev; end # Modifies in place `forks` # Syncs our state # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:400 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#400 def merge_forks!(forks); end # Modifies in place `forks` to insure that `cur_{child|index}_var` are ok # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:384 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#384 def preserve_union_start(forks); end # E.g. For sequence `(_ _? <_ _>)`, arities are: 1, 0..1, 2 @@ -4210,45 +4239,45 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: # # @return [Array] total arities (as Ranges) of remaining children nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:259 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#259 def remaining_arities(children, last_arity); end # returns truthy iff `@cur_index` switched to relative from end mode (i.e. < 0) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:341 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#341 def use_index_from_end; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:88 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#88 def visit_any_order; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:150 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#150 def visit_capture; end # Single node patterns are all handled here # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:62 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#62 def visit_other_type; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:78 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#78 def visit_repetition; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:159 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#159 def visit_rest; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:104 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#104 def visit_union; end # NOTE: assumes `@cur_index != :seq_head`. Node types using `within_loop` must # have `def in_sequence_head; :raise; end` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:333 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#333 def within_loop; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:18 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#18 RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb:19 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#19 RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.unsafe(nil), Proc) # Base class for subcompilers @@ -4257,50 +4286,50 @@ RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.uns # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#12 class RuboCop::AST::NodePattern::Compiler::Subcompiler # @return [Subcompiler] a new instance of Subcompiler # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#15 def initialize(compiler); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 def compile(node); end # Returns the value of attribute compiler. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#13 def compiler; end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#34 def do_compile; end # Returns the value of attribute node. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:32 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#32 def node; end class << self # @private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:47 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#47 def inherited(base); end # @private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:42 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#42 def method_added(method); end # Returns the value of attribute registry. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/compiler/subcompiler.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#40 def registry; end end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:53 +# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#53 class RuboCop::AST::NodePattern::Invalid < ::StandardError; end # Lexer class for `NodePattern` @@ -4308,164 +4337,164 @@ class RuboCop::AST::NodePattern::Invalid < ::StandardError; end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:18 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#18 class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex # @return [Lexer] a new instance of Lexer # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#31 def initialize(source); end # Returns the value of attribute comments. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 def comments; end # Returns the value of attribute source_buffer. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 def source_buffer; end # Returns the value of attribute tokens. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#29 def tokens; end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:60 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#60 def do_parse; end # @return [token] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#40 def emit(type); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#48 def emit_comment; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:52 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#52 def emit_regexp; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:64 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#64 def token(type, value); end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:19 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#19 RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::ScanError -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rb:21 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rb#21 RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash) # The generated lexer RuboCop::AST::NodePattern::LexerRex # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:23 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#23 class RuboCop::AST::NodePattern::LexerRex # Yields on the current action. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#69 def action; end # The file name / path # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#43 def filename; end # The file name / path # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#43 def filename=(_arg0); end # The current location in the parse. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:104 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104 def location; end # The StringScanner for this lexer. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 def match; end # The match groups for the current scan. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:60 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#60 def matches; end # Lex the next token. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:113 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113 def next_token; end # Parse the given string. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:84 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84 def parse(str); end # Read in and parse the file at +path+. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94 def parse_file(path); end # The current scanner class. Must be overridden in subclasses. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:77 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77 def scanner_class; end # The StringScanner for this lexer. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 def ss; end # The StringScanner for this lexer. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 def ss=(_arg0); end # The current lexical state. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#53 def state; end # The current lexical state. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#53 def state=(_arg0); end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:31 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#31 RuboCop::AST::NodePattern::LexerRex::CALL = T.let(T.unsafe(nil), Regexp) # :stopdoc: # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:27 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#27 RuboCop::AST::NodePattern::LexerRex::CONST_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:29 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#29 RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp) # :startdoc: # :stopdoc: # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:36 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#36 class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:30 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#30 RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:33 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#33 RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:32 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#32 RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:28 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#28 RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/lexer.rex.rb:37 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#37 class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end # Helpers for defining methods based on a pattern string # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:28 +# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#28 module RuboCop::AST::NodePattern::Macros # Define a method which applies a pattern to an AST node # @@ -4475,7 +4504,7 @@ module RuboCop::AST::NodePattern::Macros # If the node matches, and no block is provided, the new method will # return the captures, or `true` if there were none. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:36 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#36 def def_node_matcher(method_name, pattern_str, **keyword_defaults); end # Define a method which recurses over the descendants of an AST node, @@ -4485,70 +4514,70 @@ module RuboCop::AST::NodePattern::Macros # as soon as it finds a descendant which matches. Otherwise, it will # yield all descendants which match. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:46 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#46 def def_node_search(method_name, pattern_str, **keyword_defaults); end end # Functionality to turn `match_code` into methods/lambda # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#7 module RuboCop::AST::NodePattern::MethodDefiner - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:37 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#37 def as_lambda; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:27 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#27 def compile_as_lambda; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:8 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#8 def def_node_matcher(base, method_name, **defaults); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#21 def def_node_search(base, method_name, **defaults); end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:139 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#139 def compile_init; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:50 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#50 def def_helper(base, method_name, **defaults); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:114 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#114 def emit_keyword_list(forwarding: T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:132 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#132 def emit_lambda_code; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:125 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#125 def emit_method_code; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:63 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#63 def emit_node_search(method_name); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#74 def emit_node_search_body(method_name, prelude:, on_match:); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:110 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#110 def emit_param_list; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:119 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#119 def emit_params(*first, forwarding: T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:100 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#100 def emit_retval; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:89 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#89 def emit_yield_capture(when_no_capture = T.unsafe(nil), yield_with: T.unsafe(nil)); end # This method minimizes the closure for our method # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/method_definer.rb:44 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/method_definer.rb#44 def wrapping_block(method_name, **defaults); end end # Base class for AST Nodes of a `NodePattern` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#7 class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node include ::RuboCop::AST::Descendence extend ::Forwardable @@ -4557,209 +4586,209 @@ class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node # # @return [Integer, Range] An Integer for fixed length terms, otherwise a Range. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:29 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#29 def arity; end # @return [Range] arity as a Range # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#69 def arity_range; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:23 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#23 def capture?; end # @return [Node] most nodes have only one child # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#48 def child; end # @return [Array] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:43 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#43 def children_nodes; end # @return [Array, nil] replace node with result, or `nil` if no change requested. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#34 def in_sequence_head; end # that matches within a Set (e.g. `42`, `:sym` but not `/regexp/`) # # @return [Boolean] returns true for nodes having a Ruby literal equivalent # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:64 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#64 def matches_within_set?; end # @return [Integer] nb of captures of that node and its descendants # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:53 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#53 def nb_captures; end # To be overridden by subclasses # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#19 def rest?; end # @return [Boolean] returns whether it matches a variable number of elements # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:58 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#58 def variadic?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#74 def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end end # Node class for `` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:176 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#176 class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:194 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#194 def arity; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:186 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#186 def ends_with_rest?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:190 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#190 def rest_node; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:182 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#182 def term_nodes; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:179 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#179 RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `$something` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:94 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#94 class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def arity(*args, &block); end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:97 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#97 def capture?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:105 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#105 def in_sequence_head; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:101 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#101 def nb_captures; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def rest?(*args, &block); end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:82 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#82 module RuboCop::AST::NodePattern::Node::ForbidInSeqHead # @raise [NodePattern::Invalid] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:83 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#83 def in_sequence_head; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:136 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#136 RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:78 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#78 RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash) # Registry # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:246 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#246 RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#12 RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set) # Node class for `predicate?(:arg, :list)` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:127 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#127 class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:132 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#132 def arg_list; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:128 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#128 def method_name; end end # Node class for `int+` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:139 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#139 class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:152 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#152 def arity; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:142 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#142 def operator; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:146 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#146 RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash) # Node class for `...` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:158 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#158 class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:166 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#166 def arity; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:170 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#170 def in_sequence_head; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:162 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#162 def rest?; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:159 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#159 RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range) # Node class for `(type first second ...)` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:114 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#114 class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead # @return [Sequence] a new instance of Sequence # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:117 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#117 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end end # A list (potentially empty) of nodes; part of a Union # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:202 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#202 class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:205 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#205 def arity; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:210 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#210 def in_sequence_head; end end # Node class for `{ ... }` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:220 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#220 class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:221 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#221 def arity; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/node.rb:228 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#228 def in_sequence_head; end end @@ -4769,149 +4798,149 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:13 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#13 class RuboCop::AST::NodePattern::Parser < ::Racc::Parser extend ::Forwardable # @return [Parser] a new instance of Parser # - # source://rubocop-ast-1.21.0/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 - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:333 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#333 def _reduce_10(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:337 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#337 def _reduce_11(val, _values); end # reduce 12 omitted # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:343 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#343 def _reduce_13(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:347 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#347 def _reduce_14(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:351 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#351 def _reduce_15(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:355 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#355 def _reduce_16(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:359 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#359 def _reduce_17(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:363 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#363 def _reduce_18(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:367 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#367 def _reduce_19(val, _values); end # reduce 1 omitted # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:301 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#301 def _reduce_2(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:371 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#371 def _reduce_20(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:375 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#375 def _reduce_21(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:379 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#379 def _reduce_22(val, _values); end # reduce 24 omitted # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:387 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#387 def _reduce_25(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:393 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#393 def _reduce_26(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:305 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#305 def _reduce_3(val, _values); end # reduce 32 omitted # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:413 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#413 def _reduce_33(val, _values); end # reduce 36 omitted # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:423 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#423 def _reduce_37(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:427 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#427 def _reduce_38(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:431 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#431 def _reduce_39(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:309 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#309 def _reduce_4(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:435 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#435 def _reduce_40(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:439 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#439 def _reduce_41(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:443 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#443 def _reduce_42(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:447 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#447 def _reduce_43(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:451 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#451 def _reduce_44(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:455 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#455 def _reduce_45(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:459 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#459 def _reduce_46(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:313 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#313 def _reduce_5(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:317 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#317 def _reduce_6(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:321 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#321 def _reduce_7(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:325 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#325 def _reduce_8(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:329 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#329 def _reduce_9(val, _values); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:463 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#463 def _reduce_none(val, _values); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def emit_atom(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def emit_call(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def emit_capture(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def emit_list(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def emit_unary_op(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def emit_union(*args, &block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40 def inspect; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def next_token(*args, &block); end # (Similar API to `parser` gem) @@ -4920,520 +4949,532 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser # @param source_buffer [Parser::Source::Buffer, String] The source buffer to parse. # @return [NodePattern::Node] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#31 def parse(source); end private # @raise [NodePattern::Invalid] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.rb:50 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#50 def enforce_unary(node); end # Overrides Racc::Parser's method: # # @raise [NodePattern::Invalid] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.rb:59 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#59 def on_error(token, val, _vstack); end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.rb:16 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#16 RuboCop::AST::NodePattern::Parser::Builder = RuboCop::AST::NodePattern::Builder -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.rb:17 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#17 RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer -# source://rubocop-ast-1.21.0/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) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/parser.racc.rb:243 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#293 +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 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 # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#9 class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser # Returns the value of attribute comments. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:99 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#99 def comments; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:101 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#101 def do_parse; end # Returns the value of attribute tokens. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:99 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#99 def tokens; end end # Overrides Builder to emit nodes with locations # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:39 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#39 class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#40 def emit_atom(type, token); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:61 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#61 def emit_call(type, selector_t, args = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:55 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#55 def emit_list(type, begin_t, children, end_t); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:49 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#49 def emit_unary_op(type, operator_t = T.unsafe(nil), *children); end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:81 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#81 def join_exprs(left_expr, right_expr); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:75 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#75 def loc(token_or_range); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:71 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#71 def n(type, children, source_map); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:86 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#86 def source_map(token_or_range, begin_t: T.unsafe(nil), end_t: T.unsafe(nil), operator_t: T.unsafe(nil), selector_t: T.unsafe(nil)); end end # Overrides Lexer to token locations and comments # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#10 class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer # @return [Lexer] a new instance of Lexer # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#13 def initialize(str_or_buffer); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:27 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#27 def emit_comment; end # @return [::Parser::Source::Range] last match's position # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#33 def pos; end # Returns the value of attribute source_buffer. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:11 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#11 def source_buffer; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/with_meta.rb:23 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/with_meta.rb#23 def token(type, value); end end # Utility to assign a set of values to a constant # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#7 module RuboCop::AST::NodePattern::Sets class << self - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#31 def [](set); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#15 def name(set); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:22 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#22 def uniq(name); end end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:14 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#14 RuboCop::AST::NodePattern::Sets::MAX = T.let(T.unsafe(nil), Integer) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#8 RuboCop::AST::NodePattern::Sets::REGISTRY = T.let(T.unsafe(nil), Hash) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_0_1 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_0_1_2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_1_2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ALL_CONTEXT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ANY_ALL_NORETURN_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_ANY_EMPTY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BACKGROUND_SCENARIO_XSCENARIO_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BEFORE_AFTER = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BE_EQ_EQL_EQUAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BE_TRUTHY_BE_FALSEY_BE_FALSY_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CALLER_CALLER_LOCATIONS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_INSTANCE_EVAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CONSTANTIZE_CONSTANTS_CONST_GET = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_CONTEXT_SHARED_CONTEXT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DOUBLE_SPY = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DOWNCASE_UPCASE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_EXAMPLE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 -RuboCop::AST::NodePattern::Sets::SET_ENUMERATOR_RATIONAL_COMPLEX_THREAD = T.let(T.unsafe(nil), Set) - -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EQL_EQ_BE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXIST_EXISTS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FACTORYGIRL_FACTORYBOT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FILETEST_FILE_DIR_SHELL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FLATTEN_FLATTEN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB_SUB_SUB = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_MEMBER = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IO_FILE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IS_EXPECTED_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LENGTH_SIZE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_MATCH__MATCH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_MATCH___MATCH = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_COMPILE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PENDING_SKIP = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_PRESENT_ANY_BLANK_EMPTY = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PROC_LAMBDA = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PROP_CONST = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RAISE_ERROR_RAISE_EXCEPTION = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_HAVE_RECEIVED = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_MESSAGE_CHAIN_STUB_CHAIN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGES_RECEIVE_MESSAGE_CHAIN_HAVE_RECEIVED = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_RECEIVE_RECEIVE_MESSAGE_CHAIN = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/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_REJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/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) -# source://rubocop-ast-1.21.0/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_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/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) -# source://rubocop-ast-1.21.0/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) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 -RuboCop::AST::NodePattern::Sets::SET_SKIP_PENDING = T.let(T.unsafe(nil), Set) - -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SORT_MIN_MAX = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_START_WITH_END_WITH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_START_WITH_STARTS_WITH_END_WITH_ENDS_WITH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TASK_NAMESPACE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_TO_TO_NOT_NOT_TO = T.let(T.unsafe(nil), Set) + +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_TYPE_TEMPLATE_TYPE_MEMBER = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__EQL_ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__EQUAL_EQL = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__FETCH = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___3 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___4 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___5 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___6 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___7 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___8 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___EQL_ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___EQL_INCLUDE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET___METHOD_____CALLEE__ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern/sets.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_____2 = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node_pattern.rb:55 +# source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#55 RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String) # Common functionality for primitive numeric nodes: `int`, `float`, ... # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/numeric_node.rb:6 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#6 module RuboCop::AST::NumericNode # Checks whether this is literal has a sign. # @@ -5442,43 +5483,43 @@ module RuboCop::AST::NumericNode # +42 # @return [Boolean] whether this literal has a sign. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/numeric_node.rb:17 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#17 def sign?; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/numeric_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/numeric_node.rb#7 RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp) # A node extension for `op_asgn` 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-1.21.0/lib/rubocop/ast/node/op_asgn_node.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#9 class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # @return [AsgnNode] the assignment node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/op_asgn_node.rb:10 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10 def assignment_node; end # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/op_asgn_node.rb:31 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#31 def expression; end # The name of the variable being assigned as a symbol. # # @return [Symbol] the name of the variable being assigned # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/op_asgn_node.rb:17 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#17 def name; end # The operator being used for assignment as a symbol. # # @return [Symbol] the assignment operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/op_asgn_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#24 def operator; end end @@ -5486,13 +5527,13 @@ end # 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-1.21.0/lib/rubocop/ast/node/or_asgn_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#11 class RuboCop::AST::OrAsgnNode < ::RuboCop::AST::OpAsgnNode # The operator being used for assignment as a symbol. # # @return [Symbol] the assignment operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/or_asgn_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/or_asgn_node.rb#12 def operator; end end @@ -5500,7 +5541,7 @@ end # node when the builder constructs the AST, making its methods available # to all `or` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/or_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#8 class RuboCop::AST::OrNode < ::RuboCop::AST::Node include ::RuboCop::AST::BinaryOperatorNode include ::RuboCop::AST::PredicateOperatorNode @@ -5510,7 +5551,7 @@ class RuboCop::AST::OrNode < ::RuboCop::AST::Node # # @return [String] the alternate of the `or` operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/or_node.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#16 def alternate_operator; end # Returns the inverse keyword of the `or` node as a string. @@ -5518,7 +5559,7 @@ class RuboCop::AST::OrNode < ::RuboCop::AST::Node # # @return [String] the inverse of the `or` operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/or_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/or_node.rb#24 def inverse_operator; end end @@ -5526,7 +5567,7 @@ end # node when the builder constructs the AST, making its methods available # to all `pair` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#8 class RuboCop::AST::PairNode < ::RuboCop::AST::Node include ::RuboCop::AST::HashElementNode @@ -5534,7 +5575,7 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node # # @return [Boolean] whether this `pair` uses a colon delimiter # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#30 def colon?; end # Returns the delimiter of the `pair` as a string. Returns `=>` for a @@ -5543,14 +5584,14 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node # @param with_spacing [Boolean] whether to include spacing # @return [String] the delimiter of the `pair` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:39 + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#39 def delimiter(*deprecated, with_spacing: T.unsafe(nil)); end # Checks whether the `pair` uses a hash rocket delimiter. # # @return [Boolean] whether this `pair` uses a hash rocket delimiter # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:23 + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#23 def hash_rocket?; end # Returns the inverse delimiter of the `pair` as a string. @@ -5558,34 +5599,34 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node # @param with_spacing [Boolean] whether to include spacing # @return [String] the inverse delimiter of the `pair` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:51 + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#51 def inverse_delimiter(*deprecated, with_spacing: T.unsafe(nil)); end # Checks whether the `pair` uses hash value omission. # # @return [Boolean] whether this `pair` uses hash value omission # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#69 def value_omission?; end # Checks whether the value starts on its own line. # # @return [Boolean] whether the value in the `pair` starts its own line # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:62 + # source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#62 def value_on_new_line?; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:15 +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#15 RuboCop::AST::PairNode::COLON = T.let(T.unsafe(nil), String) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#11 RuboCop::AST::PairNode::HASH_ROCKET = T.let(T.unsafe(nil), String) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:17 +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#17 RuboCop::AST::PairNode::SPACED_COLON = T.let(T.unsafe(nil), String) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/pair_node.rb:13 +# source://rubocop-ast//lib/rubocop/ast/node/pair_node.rb#13 RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String) # Requires implementing `arguments`. @@ -5594,13 +5635,13 @@ RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String) # `send`, `super`, `zsuper`, `def`, `defs` # and (modern only): `index`, `indexasgn`, `lambda` # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#10 module RuboCop::AST::ParameterizedNode # Checks whether this node has any arguments. # # @return [Boolean] whether this node has any arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#40 def arguments?; end # Whether the last argument of the node is a block pass, @@ -5608,7 +5649,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the last argument of the node is a block pass # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:58 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#58 def block_argument?; end # A shorthand for getting the first argument of the node. @@ -5617,7 +5658,7 @@ module RuboCop::AST::ParameterizedNode # @return [Node, nil] the first argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:24 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#24 def first_argument; end # A shorthand for getting the last argument of the node. @@ -5626,7 +5667,7 @@ module RuboCop::AST::ParameterizedNode # @return [Node, nil] the last argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#33 def last_argument; end # Checks whether this node's arguments are wrapped in parentheses. @@ -5634,7 +5675,7 @@ module RuboCop::AST::ParameterizedNode # @return [Boolean] whether this node's arguments are # wrapped in parentheses # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#15 def parenthesized?; end # Checks whether any argument of the node is a splat @@ -5642,7 +5683,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the node is a splat argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 def rest_argument?; end # Checks whether any argument of the node is a splat @@ -5650,7 +5691,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the node is a splat argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:48 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 def splat_argument?; end end @@ -5659,20 +5700,20 @@ end # Implements `arguments` as `children[first_argument_index..-1]` # and optimizes other calls # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:83 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#83 module RuboCop::AST::ParameterizedNode::RestArguments include ::RuboCop::AST::ParameterizedNode # @return [Array] arguments, if any # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:86 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#89 def arguments; end # Checks whether this node has any arguments. # # @return [Boolean] whether this node has any arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:111 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#119 def arguments?; end # A shorthand for getting the first argument of the node. @@ -5681,7 +5722,7 @@ module RuboCop::AST::ParameterizedNode::RestArguments # @return [Node, nil] the first argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:95 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#103 def first_argument; end # A shorthand for getting the last argument of the node. @@ -5690,74 +5731,77 @@ module RuboCop::AST::ParameterizedNode::RestArguments # @return [Node, nil] the last argument of the node, # or `nil` if there are no arguments # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:104 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#112 def last_argument; end end +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#86 +RuboCop::AST::ParameterizedNode::RestArguments::EMPTY_ARGUMENTS = T.let(T.unsafe(nil), Array) + # A specialized `ParameterizedNode` for node that have a single child # containing either `nil`, an argument, or a `begin` node with all the # arguments # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:66 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#66 module RuboCop::AST::ParameterizedNode::WrappedArguments include ::RuboCop::AST::ParameterizedNode # @return [Array] The arguments of the node. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/parameterized_node.rb:69 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#69 def arguments; end end # Common functionality for nodes that are predicates: # `or`, `and` ... # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:7 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#7 module RuboCop::AST::PredicateOperatorNode # Checks whether this is a logical operator. # # @return [Boolean] whether this is a logical operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:27 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#27 def logical_operator?; end # Returns the operator as a string. # # @return [String] the operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#20 def operator; end # Checks whether this is a semantic operator. # # @return [Boolean] whether this is a semantic operator # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:34 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#34 def semantic_operator?; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#8 RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:12 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#12 RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:10 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#10 RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb:14 +# source://rubocop-ast//lib/rubocop/ast/node/mixin/predicate_operator_node.rb#14 RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String) # A node extension for `procarg0` nodes. # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/procarg0_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#11 class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode # Returns the name of an argument. # # @return [Symbol, nil] the name of the argument # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/procarg0_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/procarg0_node.rb#12 def name; end end @@ -5765,42 +5809,42 @@ end # and other information such as disabled lines for cops. # It also provides a convenient way to access source lines. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:11 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#11 class RuboCop::AST::ProcessedSource # @return [ProcessedSource] a new instance of ProcessedSource # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:26 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#26 def initialize(source, ruby_version, path = T.unsafe(nil)); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:63 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#63 def [](*args); end # Returns the value of attribute ast. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def ast; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:41 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41 def ast_with_comments; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:102 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#102 def blank?; end # Returns the value of attribute buffer. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def buffer; end # Raw source checksum for tracking infinite loops. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:74 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#74 def checksum; end # @return [Comment, nil] the comment at that line, if any. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:107 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107 def comment_at_line(line); end # Consider using `each_comment_in_lines` instead @@ -5808,185 +5852,185 @@ class RuboCop::AST::ProcessedSource # @deprecated use contains_comment? # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:129 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129 def commented?(source_range); end # Returns the value of attribute comments. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def comments; end # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use. # # @deprecated Use `each_comment_in_lines` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:137 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#137 def comments_before_line(line); end # Consider using `each_comment_in_lines` instead # # @return [Boolean] if any of the lines in the given `source_range` has a comment. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:129 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129 def contains_comment?(source_range); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:151 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151 def current_line(token); end # Returns the value of attribute diagnostics. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def diagnostics; end # @deprecated Use `comments.each` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:79 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#79 def each_comment(&block); end # Enumerates on the comments contained with the given `line_range` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:117 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117 def each_comment_in_lines(line_range); end # @deprecated Use `tokens.each` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:89 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89 def each_token(&block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:98 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98 def file_path; end # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:84 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84 def find_comment(&block); end # @deprecated Use `tokens.find` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:94 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94 def find_token(&block); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:172 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#172 def first_token_of(range_or_node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:155 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#155 def following_line(token); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:176 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176 def last_token_of(range_or_node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:159 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#159 def line_indentation(line_number); end # @return [Boolean] if the given line number has a comment. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:112 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112 def line_with_comment?(line); end # Returns the source lines, line break characters removed, excluding a # possible __END__ and everything that comes after. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:49 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#49 def lines; end # Returns the value of attribute parser_error. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def parser_error; end # Returns the value of attribute path. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def path; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:147 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147 def preceding_line(token); end # Returns the value of attribute raw_source. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def raw_source; end # Returns the value of attribute ruby_version. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def ruby_version; end # The tokens list is always sorted by token position, except for cases when heredoc # is passed as a method argument. In this case tokens are interleaved by # heredoc contents' tokens. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:183 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#183 def sorted_tokens; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:141 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#141 def start_with?(string); end # Returns the value of attribute tokens. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:15 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 def tokens; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:166 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#166 def tokens_within(range_or_node); end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:67 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#67 def valid_syntax?; end private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:190 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#190 def comment_index; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:275 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#275 def create_parser(ruby_version); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:291 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#291 def first_token_index(range_or_node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:296 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#296 def last_token_index(range_or_node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:196 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#196 def parse(source, ruby_version); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:230 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#230 def parser_class(ruby_version); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:301 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#301 def source_range(range_or_node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:213 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#213 def tokenize(parser); end class << self - # source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:18 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 def from_file(path, ruby_version); end end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:23 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15 RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/processed_source.rb:13 +# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13 RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String) # A node extension for `irange` and `erange` nodes. This will be used in # place of a plain node when the builder constructs the AST, making its # methods available to all `irange` and `erange` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/range_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#8 class RuboCop::AST::RangeNode < ::RuboCop::AST::Node - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/range_node.rb:9 + # source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#9 def begin; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/range_node.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node/range_node.rb#13 def end; end end @@ -5994,128 +6038,128 @@ end # node when the builder constructs the AST, making its methods available # to all `regexp` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#8 class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node # @return [String] a string of regexp content # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:37 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#37 def content; end # @return [Bool] if char is one of the delimiters # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:57 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#57 def delimiter?(char); end # @return [String] the regexp delimiters (without %r) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:52 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#52 def delimiters; end # @return [Bool] if regexp uses the extended regopt # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:72 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#72 def extended?; end # @return [Bool] if regexp uses the fixed-encoding regopt # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:92 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#92 def fixed_encoding?; end # @return [Bool] if regexp uses the ignore-case regopt # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:77 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#77 def ignore_case?; end # @return [Bool] if regexp contains interpolation # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:62 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#62 def interpolation?; end # @return [Bool] if regexp uses the multiline regopt # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:67 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#67 def multiline_mode?; end # @return [Bool] if regexp uses the no-encoding regopt # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:87 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#87 def no_encoding?; end # NOTE: The 'o' option is ignored. # # @return [Integer] the Regexp option bits as returned by Regexp#options # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:32 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#32 def options; end # @return [Bool] if the regexp is a %r{...} literal (using any delimiters) # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:47 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#47 def percent_r_literal?; end # @return [RuboCop::AST::Node] a regopt node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:25 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#25 def regopt; end # @return [Bool] if regexp uses the single-interpolation regopt # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:82 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#82 def single_interpolation?; end # @return [Bool] if the regexp is a /.../ literal # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:42 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#42 def slash_literal?; end # @return [Regexp] a regexp of this node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#20 def to_regexp; end private # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:98 + # source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#98 def regopt_include?(option); end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/regexp_node.rb:9 +# source://rubocop-ast//lib/rubocop/ast/node/regexp_node.rb#9 RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash) # A node extension for `resbody` nodes. This will be used in place of a # plain node when the builder constructs the AST, making its methods # available to all `resbody` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/resbody_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#11 class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node # Returns the body of the `rescue` clause. # # @return [Node, nil] The body of the `resbody`. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/resbody_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#12 def body; end # Returns the index of the `resbody` branch within the exception handling statement. # # @return [Integer] the index of the `resbody` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/resbody_node.rb:40 + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#40 def branch_index; end # Returns the exception variable of the `rescue` clause. # # @return [Node, nil] The exception variable of the `resbody`. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/resbody_node.rb:33 + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#33 def exception_variable; end # Returns an array of all the exceptions in the `rescue` clause. # # @return [Array] an array of exception nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/resbody_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/resbody_node.rb#19 def exceptions; end end @@ -6123,13 +6167,13 @@ end # plain node when the builder constructs the AST, making its methods # available to all `rescue` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/rescue_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#11 class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # Returns the body of the rescue node. # # @return [Node, nil] The body of the rescue node. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/rescue_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#12 def body; end # Returns an array of all the rescue branches in the exception handling statement. @@ -6138,14 +6182,14 @@ class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # # @return [Array] an array of the bodies of the rescue branches # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/rescue_node.rb:27 + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#27 def branches; end # Checks whether this exception handling statement has an `else` branch. # # @return [Boolean] whether the exception handling statement has an `else` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/rescue_node.rb:44 + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#44 def else?; end # Returns the else branch of the exception handling statement, if any. @@ -6153,14 +6197,14 @@ class RuboCop::AST::RescueNode < ::RuboCop::AST::Node # @return [Node] the else branch node of the exception handling statement # @return [nil] if the exception handling statement does not have an else branch. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/rescue_node.rb:37 + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#37 def else_branch; end # Returns an array of all the rescue branches in the exception handling statement. # # @return [Array] an array of `resbody` nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/rescue_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/rescue_node.rb#19 def resbody_branches; end end @@ -6168,7 +6212,7 @@ end # plain node when the builder constructs the AST, making its methods # available to all `return` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/return_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/return_node.rb#8 class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::WrappedArguments @@ -6178,37 +6222,37 @@ end # # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/rubocop_compatibility.rb:8 +# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#8 module RuboCop::AST::RuboCopCompatibility # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/rubocop_compatibility.rb:13 + # source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#13 def rubocop_loaded; end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/rubocop_compatibility.rb:9 +# source://rubocop-ast//lib/rubocop/ast/rubocop_compatibility.rb#9 RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Hash) # A node extension for `sclass` nodes. This will be used in place of a # plain node when the builder constructs the AST, making its methods # available to all `sclass` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/self_class_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#11 class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node # The body of this `sclass` node. # # @return [Node, nil] the body of the class # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/self_class_node.rb:19 + # source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#19 def body; end # The identifier for this `sclass` node. (Always `self`.) # # @return [Node] the identifier of the class # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/self_class_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/self_class_node.rb#12 def identifier; end end @@ -6216,19 +6260,24 @@ end # node when the builder constructs the AST, making its methods available # to all `send` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/send_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#8 class RuboCop::AST::SendNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::ParameterizedNode::RestArguments include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/send_node.rb:13 + # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#13 def attribute_accessor?(param0 = T.unsafe(nil)); end + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#18 + def send_type?; end + private - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/send_node.rb:20 + # source://rubocop-ast//lib/rubocop/ast/node/send_node.rb#24 def first_argument_index; end end @@ -6237,11 +6286,11 @@ end # # @see https://www.rubydoc.info/gems/ast/AST/Sexp # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/sexp.rb:9 +# source://rubocop-ast//lib/rubocop/ast/sexp.rb#9 module RuboCop::AST::Sexp # Creates a {Node} with type `type` and children `children`. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/sexp.rb:11 + # source://rubocop-ast//lib/rubocop/ast/sexp.rb#11 def s(type, *children); end end @@ -6249,13 +6298,18 @@ end # in place of a plain node when the builder constructs the AST, making # its methods available to all `str` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/str_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#8 class RuboCop::AST::StrNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/str_node.rb:11 + # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#11 + def character_literal?; end + + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node/str_node.rb#15 def heredoc?; end end @@ -6263,13 +6317,13 @@ end # place of a plain node when the builder constructs the AST, making its # methods available to all `super`- and `zsuper` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/super_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#8 class RuboCop::AST::SuperNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast-2.4.2/lib/ast/node.rb:56 + # source://ast/2.4.2/lib/ast/node.rb#56 def arguments; end # Custom destructuring method. This can be used to normalize @@ -6277,7 +6331,7 @@ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `super` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/super_node.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#16 def node_parts; end end @@ -6285,602 +6339,616 @@ end # plain node when the builder constructs the AST, making its methods # available to all `sym` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/symbol_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/symbol_node.rb#8 class RuboCop::AST::SymbolNode < ::RuboCop::AST::Node include ::RuboCop::AST::BasicLiteralNode end # A basic wrapper around Parser's tokens. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:6 +# source://rubocop-ast//lib/rubocop/ast/token.rb#6 class RuboCop::AST::Token # @return [Token] a new instance of Token # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:15 + # source://rubocop-ast//lib/rubocop/ast/token.rb#17 def initialize(pos, type, text); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:30 + # source://rubocop-ast//lib/rubocop/ast/token.rb#32 def begin_pos; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:26 + # source://rubocop-ast//lib/rubocop/ast/token.rb#28 def column; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:99 + # source://rubocop-ast//lib/rubocop/ast/token.rb#101 def comma?; end # Type Predicates # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:55 + # source://rubocop-ast//lib/rubocop/ast/token.rb#57 def comment?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:103 + # source://rubocop-ast//lib/rubocop/ast/token.rb#105 def dot?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:115 + # source://rubocop-ast//lib/rubocop/ast/token.rb#117 def end?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:34 + # source://rubocop-ast//lib/rubocop/ast/token.rb#36 def end_pos; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:119 + # source://rubocop-ast//lib/rubocop/ast/token.rb#121 def equal_sign?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:63 + # source://rubocop-ast//lib/rubocop/ast/token.rb#65 def left_array_bracket?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:79 + # source://rubocop-ast//lib/rubocop/ast/token.rb#81 def left_brace?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:71 + # source://rubocop-ast//lib/rubocop/ast/token.rb#73 def left_bracket?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:83 + # source://rubocop-ast//lib/rubocop/ast/token.rb#85 def left_curly_brace?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:91 + # source://rubocop-ast//lib/rubocop/ast/token.rb#93 def left_parens?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:67 + # source://rubocop-ast//lib/rubocop/ast/token.rb#69 def left_ref_bracket?; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:22 + # source://rubocop-ast//lib/rubocop/ast/token.rb#24 def line; end + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/token.rb#125 + def new_line?; end + # Returns the value of attribute pos. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:7 + # source://rubocop-ast//lib/rubocop/ast/token.rb#9 def pos; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:107 + # source://rubocop-ast//lib/rubocop/ast/token.rb#109 def regexp_dots?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:111 + # source://rubocop-ast//lib/rubocop/ast/token.rb#113 def rescue_modifier?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:75 + # source://rubocop-ast//lib/rubocop/ast/token.rb#77 def right_bracket?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:87 + # source://rubocop-ast//lib/rubocop/ast/token.rb#89 def right_curly_brace?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:95 + # source://rubocop-ast//lib/rubocop/ast/token.rb#97 def right_parens?; end # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:59 + # source://rubocop-ast//lib/rubocop/ast/token.rb#61 def semicolon?; end # Checks if there is whitespace after token # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:43 + # source://rubocop-ast//lib/rubocop/ast/token.rb#45 def space_after?; end # Checks if there is whitespace before token # # @return [Boolean] # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:48 + # source://rubocop-ast//lib/rubocop/ast/token.rb#50 def space_before?; end # Returns the value of attribute text. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:7 + # source://rubocop-ast//lib/rubocop/ast/token.rb#9 def text; end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:38 + # source://rubocop-ast//lib/rubocop/ast/token.rb#40 def to_s; end # Returns the value of attribute type. # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:7 + # source://rubocop-ast//lib/rubocop/ast/token.rb#9 def type; end class << self - # source://rubocop-ast-1.21.0/lib/rubocop/ast/token.rb:9 + # source://rubocop-ast//lib/rubocop/ast/token.rb#11 def from_parser_token(parser_token); end end end +# source://rubocop-ast//lib/rubocop/ast/token.rb#7 +RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array) + # Provides methods for traversing an AST. # Does not transform an AST; for that, use Parser::AST::Processor. # Override methods to perform custom processing. Remember to call `super` # if you want to recursively process descendant nodes. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:9 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#9 module RuboCop::AST::Traversal extend ::RuboCop::AST::Traversal::CallbackCompiler - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:172 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#173 def on_(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on___ENCODING__(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on___FILE__(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on___LINE__(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_alias(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_and(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_and_asgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_arg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_arg_expr(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_args(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_array(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_array_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_array_pattern_with_tail(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_back_ref(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_begin(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:150 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#151 def on_block(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:128 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 def on_block_pass(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_blockarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_break(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_case(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_case_match(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#146 def on_casgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_cbase(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:146 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#147 def on_class(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_complex(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:144 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 def on_const(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_const_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:154 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 def on_csend(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_cvar(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:130 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 def on_cvasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:147 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 def on_def(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_defined?(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:152 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#153 def on_defs(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_dstr(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_dsym(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_eflipflop(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_empty_else(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_ensure(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_erange(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_false(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_find_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_float(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_for(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_forward_arg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_forward_args(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_forwarded_args(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forwarded_kwrestarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 + def on_forwarded_restarg(node); end + + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_gvar(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:130 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 def on_gvasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_hash(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_hash_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:149 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#150 def on_if(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_if_guard(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_iflipflop(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_in_match(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_in_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_index(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_indexasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_int(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_irange(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_ivar(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:130 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 def on_ivasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_kwarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_kwargs(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_kwbegin(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_kwnilarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:131 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 def on_kwoptarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:123 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124 def on_kwrestarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:124 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 def on_kwsplat(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_lambda(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_lvar(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:130 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#131 def on_lvasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_masgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_match_alt(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_match_as(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_match_current_line(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_match_nil_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_match_pattern(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_match_pattern_p(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:124 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 def on_match_rest(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_match_var(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_match_with_lvasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_match_with_trailing_comma(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_mlhs(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 def on_module(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_mrasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_next(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_nil(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_not(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_nth_ref(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:151 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#152 def on_numblock(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#149 def on_op_asgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:131 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 def on_optarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_or(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_or_asgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_pair(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_pin(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:128 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 def on_postexe(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:128 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#129 def on_preexe(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_procarg0(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_rasgn(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_rational(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_redo(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_regexp(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#135 def on_regopt(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_resbody(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_rescue(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:123 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#124 def on_restarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_retry(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_return(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 def on_sclass(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_self(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:154 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 def on_send(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_shadowarg(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:124 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#125 def on_splat(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_str(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_super(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:126 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#127 def on_sym(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_true(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_undef(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:127 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#128 def on_unless_guard(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 def on_until(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_until_post(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#139 def on_when(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 def on_while(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_while_post(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_xstr(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:135 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 def on_yield(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:122 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#123 def on_zsuper(node); end - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:17 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#17 def walk(node); end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:25 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#25 module RuboCop::AST::Traversal::CallbackCompiler # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:61 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#61 def arity_check(range); end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:52 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#52 def body(signature, prelude); end # @api private # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:35 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#35 def def_callback(type, *signature, arity: T.unsafe(nil), arity_check: T.unsafe(nil), body: T.unsafe(nil)); end end # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:26 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#26 RuboCop::AST::Traversal::CallbackCompiler::SEND = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:29 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#29 RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash) # Only for debugging. # # @api private # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:12 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#12 class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:99 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#100 RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set) -# source://rubocop-ast-1.21.0/lib/rubocop/ast/traversal.rb:15 +# source://rubocop-ast//lib/rubocop/ast/traversal.rb#15 RuboCop::AST::Traversal::TYPE_TO_METHOD = T.let(T.unsafe(nil), Hash) # A node extension for `until` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `until` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/until_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#8 class RuboCop::AST::UntilNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode include ::RuboCop::AST::ModifierNode @@ -6889,7 +6957,7 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `until` node has a `do` keyword # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/until_node.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#30 def do?; end # Returns the inverse keyword of the `until` node as a string. @@ -6897,60 +6965,60 @@ class RuboCop::AST::UntilNode < ::RuboCop::AST::Node # # @return [String] the inverse keyword of the `until` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/until_node.rb:23 + # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#23 def inverse_keyword; end # Returns the keyword of the `until` statement as a string. # # @return [String] the keyword of the `until` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/until_node.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node/until_node.rb#15 def keyword; end end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/version.rb:5 +# source://rubocop-ast//lib/rubocop/ast/version.rb#5 module RuboCop::AST::Version; end -# source://rubocop-ast-1.21.0/lib/rubocop/ast/version.rb:6 +# source://rubocop-ast//lib/rubocop/ast/version.rb#6 RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String) # A node extension for `when` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `when` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/when_node.rb:11 +# source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#11 class RuboCop::AST::WhenNode < ::RuboCop::AST::Node # Returns the body of the `when` node. # # @return [Node, nil] the body of the `when` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/when_node.rb:42 + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#42 def body; end # Returns the index of the `when` branch within the `case` statement. # # @return [Integer] the index of the `when` branch # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/when_node.rb:28 + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#28 def branch_index; end # Returns an array of all the conditions in the `when` branch. # # @return [Array] an array of condition nodes # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/when_node.rb:12 + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#12 def conditions; end # @deprecated Use `conditions.each` # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/when_node.rb:17 + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#17 def each_condition(&block); end # Checks whether the `when` node has a `then` keyword. # # @return [Boolean] whether the `when` node has a `then` keyword # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/when_node.rb:35 + # source://rubocop-ast//lib/rubocop/ast/node/when_node.rb#35 def then?; end end @@ -6958,7 +7026,7 @@ end # node when the builder constructs the AST, making its methods available # to all `while` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/while_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#8 class RuboCop::AST::WhileNode < ::RuboCop::AST::Node include ::RuboCop::AST::ConditionalNode include ::RuboCop::AST::ModifierNode @@ -6967,7 +7035,7 @@ class RuboCop::AST::WhileNode < ::RuboCop::AST::Node # # @return [Boolean] whether the `until` node has a `do` keyword # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/while_node.rb:30 + # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#30 def do?; end # Returns the inverse keyword of the `while` node as a string. @@ -6975,14 +7043,14 @@ class RuboCop::AST::WhileNode < ::RuboCop::AST::Node # # @return [String] the inverse keyword of the `while` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/while_node.rb:23 + # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#23 def inverse_keyword; end # Returns the keyword of the `while` statement as a string. # # @return [String] the keyword of the `while` statement # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/while_node.rb:15 + # source://rubocop-ast//lib/rubocop/ast/node/while_node.rb#15 def keyword; end end @@ -6990,13 +7058,13 @@ end # node when the builder constructs the AST, making its methods available # to all `yield` nodes within RuboCop. # -# source://rubocop-ast-1.21.0/lib/rubocop/ast/node/yield_node.rb:8 +# source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#8 class RuboCop::AST::YieldNode < ::RuboCop::AST::Node include ::RuboCop::AST::ParameterizedNode include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast-2.4.2/lib/ast/node.rb:56 + # source://ast/2.4.2/lib/ast/node.rb#56 def arguments; end # Custom destructuring method. This can be used to normalize @@ -7004,15 +7072,15 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node # # @return [Array] the different parts of the `send` node # - # source://rubocop-ast-1.21.0/lib/rubocop/ast/node/yield_node.rb:16 + # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#16 def node_parts; end end -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:5 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#5 RuboCop::NodePattern = RuboCop::AST::NodePattern -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:6 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:7 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#7 RuboCop::Token = RuboCop::AST::Token diff --git a/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi b/sorbet/rbi/gems/rubocop-performance@1.15.2.rbi similarity index 57% rename from sorbet/rbi/gems/rubocop-performance@1.14.3.rbi rename to sorbet/rbi/gems/rubocop-performance@1.15.2.rbi index 24da36b0..986b4cd0 100644 --- a/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +++ b/sorbet/rbi/gems/rubocop-performance@1.15.2.rbi @@ -4,23 +4,19 @@ # This is an autogenerated file for types exported from the `rubocop-performance` gem. # Please instead update this file by running `bin/tapioca gem rubocop-performance`. -# source://rubocop-performance-1.14.3/lib/rubocop/performance.rb:3 +# source://rubocop-performance//lib/rubocop/performance.rb#3 module RuboCop; end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:4 +# source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#4 module RuboCop::Cop; end -# @deprecated IgnoredMethods class has been replaced with AllowedMethods. -# -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:33 +# source://rubocop/1.42.0/lib/rubocop/cop/mixin/allowed_methods.rb#38 RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods -# @deprecated IgnoredPattern class has been replaced with AllowedPattern. -# -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:46 +# source://rubocop/1.42.0/lib/rubocop/cop/mixin/allowed_pattern.rb#54 RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:5 +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#5 module RuboCop::Cop::Performance; end # Identifies usages of `ancestors.include?` and change them to use `<=` instead. @@ -32,27 +28,27 @@ module RuboCop::Cop::Performance; end # # good # A <= B # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:19 +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#19 class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:26 + # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#26 def ancestors_include_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:30 + # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#30 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:43 + # source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#43 def range(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:23 +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#23 RuboCop::Cop::Performance::AncestorsInclude::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/ancestors_include.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/ancestors_include.rb#24 RuboCop::Cop::Performance::AncestorsInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where slicing arrays with semi-infinite ranges @@ -75,34 +71,34 @@ RuboCop::Cop::Performance::AncestorsInclude::RESTRICT_ON_SEND = T.let(T.unsafe(n # array.drop(2) # array.take(3) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:29 +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#29 class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:45 + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#45 def endless_range?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#41 def endless_range_slice?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:52 + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#52 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:65 + # source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#65 def correction(receiver, range_node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:36 +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#36 RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:39 +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#39 RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb:38 +# source://rubocop-performance//lib/rubocop/cop/performance/array_semi_infinite_range_slice.rb#38 RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::SLICE_METHODS = T.let(T.unsafe(nil), Set) # Identifies places where numeric argument to BigDecimal should be @@ -122,24 +118,24 @@ RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::SLICE_METHODS = T.let(T. # BigDecimal('1.2', 3, exception: true) # BigDecimal('4.5', 6, exception: true) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb:23 +# source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#23 class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb:29 + # source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#29 def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb:37 + # source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#37 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb:33 + # source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#33 def to_d?(param0 = T.unsafe(nil)); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb:26 +# source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#26 RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/big_decimal_with_numeric_argument.rb#27 RuboCop::Cop::Performance::BigDecimalWithNumericArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.7, `UnboundMethod#bind_call` has been added. @@ -158,34 +154,34 @@ RuboCop::Cop::Performance::BigDecimalWithNumericArgument::RESTRICT_ON_SEND = T.l # # good # umethod.bind_call(obj, foo, bar) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:22 +# source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#22 class RuboCop::Cop::Performance::BindCall < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:33 + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#32 def bind_with_call_method?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#40 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:72 + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#71 def build_call_args(call_args_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:65 + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#64 def correction_range(receiver, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:59 + # source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#58 def message(bind_arg, call_args); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:29 +# source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#29 RuboCop::Cop::Performance::BindCall::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/bind_call.rb:31 +# source://rubocop-performance//lib/rubocop/cop/performance/bind_call.rb#30 RuboCop::Cop::Performance::BindCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies unnecessary use of a `block_given?` where explicit check @@ -209,21 +205,21 @@ RuboCop::Cop::Performance::BindCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # ... # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#27 class RuboCop::Cop::Performance::BlockGivenWithExplicitBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb:35 + # source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#35 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb:33 + # source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#33 def reassigns_block_arg?(param0 = T.unsafe(nil), param1); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb:31 +# source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#31 RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/block_given_with_explicit_block.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/block_given_with_explicit_block.rb#30 RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `caller[n]` can be replaced by `caller(n..n).first`. @@ -241,29 +237,29 @@ RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::RESTRICT_ON_SEND = T.let # caller_locations(2..2).first # caller_locations(1..1).first # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#20 class RuboCop::Cop::Performance::Caller < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:33 + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#33 def caller_with_scope_method?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:40 + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#40 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:26 + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#26 def slow_caller?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:61 + # source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#61 def int_value(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:23 +# source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#23 RuboCop::Cop::Performance::Caller::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/caller.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/caller.rb#24 RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Reordering `when` conditions with a splat to the end @@ -311,65 +307,65 @@ RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # baz # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:58 +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#58 class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:66 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#66 def on_case(case_node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:83 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#83 def autocorrect(corrector, when_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:144 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#140 def indent_for(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:100 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#100 def inline_fix_branch(corrector, when_node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:169 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#164 def needs_reorder?(when_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:140 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#136 def new_branch_without_then(node, new_condition); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:136 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#132 def new_condition_with_then(node, new_condition); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:162 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#158 def non_splat?(condition); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:91 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#91 def range(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:108 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#107 def reorder_condition(corrector, when_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:118 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#116 def reordering_correction(when_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:95 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#95 def replacement(conditions); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:148 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#144 def splat_offenses(when_conditions); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:128 + # source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#126 def when_branch_range(when_node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:64 +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#64 RuboCop::Cop::Performance::CaseWhenSplat::ARRAY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/case_when_splat.rb:63 +# source://rubocop-performance//lib/rubocop/cop/performance/case_when_splat.rb#63 RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String) # Identifies places where a case-insensitive string comparison @@ -387,41 +383,41 @@ RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String) # str.casecmp('ABC').zero? # 'abc'.casecmp(str).zero? # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#24 class RuboCop::Cop::Performance::Casecmp < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:45 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#45 def downcase_downcase(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:31 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#31 def downcase_eq(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:38 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#38 def eq_downcase(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:52 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#52 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:84 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#84 def autocorrect(corrector, node, replacement); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:88 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#88 def build_good_method(method, arg, variable); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:67 + # source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#67 def take_method_apart(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:29 +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#29 RuboCop::Cop::Performance::Casecmp::CASE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#27 RuboCop::Cop::Performance::Casecmp::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/casecmp.rb:28 +# source://rubocop-performance//lib/rubocop/cop/performance/casecmp.rb#28 RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies usages of `array.compact.flatten.map { |x| x.downcase }`. @@ -440,38 +436,38 @@ RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # array.map! { |x| x.downcase } # array # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:21 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#21 class RuboCop::Cop::Performance::ChainArrayAllocation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:54 + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#54 def chain_array_allocation?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:62 + # source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#62 def on_send(node); end end # These methods ALWAYS return a new array # after they're called it's safe to mutate the the resulting array # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:37 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#37 RuboCop::Cop::Performance::ChainArrayAllocation::ALWAYS_RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set) # These methods have a mutation alternative. For example :collect # can be called as :collect! # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:45 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#45 RuboCop::Cop::Performance::ChainArrayAllocation::HAS_MUTATION_ALTERNATIVE = T.let(T.unsafe(nil), Set) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:50 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#50 RuboCop::Cop::Performance::ChainArrayAllocation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:48 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#48 RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set) # These methods return a new array only when called without a block. # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:33 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#33 RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY_WHEN_NO_BLOCK = T.let(T.unsafe(nil), Set) # These methods return a new array but only sometimes. They must be @@ -480,7 +476,7 @@ RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY_WHEN_NO_BLOCK # [1,2].first # => 1 # [1,2].first(1) # => [1] # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/chain_array_allocation.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/chain_array_allocation.rb#30 RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T.let(T.unsafe(nil), Set) # Identifies places where Array and Hash literals are used within loops. @@ -509,83 +505,83 @@ RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T. # ADMIN_ROLES.include?(user.role) # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:34 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#34 class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:74 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#74 def enumerable_loop?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:68 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#68 def kernel_loop?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:80 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#80 def on_send(node); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:90 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#90 def check_literal?(node, method); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:130 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#128 def enumerable_method?(method_name); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:112 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#110 def keyword_loop?(type); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:122 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#120 def literal_class(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:106 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#106 def loop?(ancestor, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:134 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#132 def min_size; end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:116 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#114 def node_within_enumerable_loop?(node, ancestor); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:97 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#97 def nonmutable_method_of_array_or_hash?(node, method); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:102 + # source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#102 def parent_is_loop?(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:56 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#56 RuboCop::Cop::Performance::CollectionLiteralInLoop::ARRAY_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:41 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#41 RuboCop::Cop::Performance::CollectionLiteralInLoop::ENUMERABLE_METHOD_NAMES = T.let(T.unsafe(nil), Set) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:66 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#66 RuboCop::Cop::Performance::CollectionLiteralInLoop::HASH_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:39 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#39 RuboCop::Cop::Performance::CollectionLiteralInLoop::LOOP_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#35 RuboCop::Cop::Performance::CollectionLiteralInLoop::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:42 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#42 RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:58 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#58 RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/collection_literal_in_loop.rb:38 +# source://rubocop-performance//lib/rubocop/cop/performance/collection_literal_in_loop.rb#38 RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) # Identifies places where `sort { |a, b| a.foo <=> b.foo }` @@ -609,35 +605,35 @@ RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = # array.min_by(&:foo) # array.sort_by { |a| a[:foo] } # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:26 +# source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#26 class RuboCop::Cop::Performance::CompareWithBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:34 + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#34 def compare?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:48 + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#48 def on_block(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#41 def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:105 + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#105 def compare_range(send, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:84 + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#84 def message(send, method, var_a, var_b, args); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:69 + # source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#69 def slow_compare?(method, args_a, args_b); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/compare_with_block.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/compare_with_block.rb#30 RuboCop::Cop::Performance::CompareWithBlock::MSG = T.let(T.unsafe(nil), String) # Identifies places where `Concurrent.monotonic_time` @@ -651,21 +647,21 @@ RuboCop::Cop::Performance::CompareWithBlock::MSG = T.let(T.unsafe(nil), String) # # good # Process.clock_gettime(Process::CLOCK_MONOTONIC) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb:17 +# source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#17 class RuboCop::Cop::Performance::ConcurrentMonotonicTime < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb:23 + # source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#23 def concurrent_monotonic_time?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb:28 + # source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#28 def on_send(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#20 RuboCop::Cop::Performance::ConcurrentMonotonicTime::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/concurrent_monotonic_time.rb:21 +# source://rubocop-performance//lib/rubocop/cop/performance/concurrent_monotonic_time.rb#21 RuboCop::Cop::Performance::ConcurrentMonotonicTime::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Finds regular expressions with dynamic components that are all constants. @@ -698,30 +694,30 @@ RuboCop::Cop::Performance::ConcurrentMonotonicTime::RESTRICT_ON_SEND = T.let(T.u # @separators ||= /\A#{SEPARATORS}\Z/ # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/constant_regexp.rb:36 +# source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#36 class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/constant_regexp.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#41 def on_regexp(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/constant_regexp.rb:57 + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#55 def regexp_escape?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/constant_regexp.rb:62 + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#60 def include_interpolated_const?(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/constant_regexp.rb:53 + # source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#51 def within_allowed_assignment?(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/constant_regexp.rb:39 +# source://rubocop-performance//lib/rubocop/cop/performance/constant_regexp.rb#39 RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String) # Identifies usages of `count` on an `Enumerable` that @@ -746,35 +742,50 @@ RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String) # Model.select('field AS field_one').count # Model.select(:value).count # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:49 +# source://rubocop-performance//lib/rubocop/cop/performance/count.rb#49 class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:56 + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#56 def count_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#63 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:79 + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#79 def autocorrect(corrector, node, selector_node, selector); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:90 + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#89 def eligible_node?(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:94 + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#132 + def negate_block_pass_as_inline_block(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#111 + def negate_block_pass_reject(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#118 + def negate_block_reject(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#128 + def negate_expression(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#103 + def negate_reject(corrector, node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/count.rb#93 def source_starting_at(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:53 +# source://rubocop-performance//lib/rubocop/cop/performance/count.rb#53 RuboCop::Cop::Performance::Count::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/count.rb:54 +# source://rubocop-performance//lib/rubocop/cop/performance/count.rb#54 RuboCop::Cop::Performance::Count::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.5, `String#delete_prefix` has been added. @@ -815,26 +826,26 @@ RuboCop::Cop::Performance::Count::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # str.sub(/^prefix/, '') # str.sub!(/^prefix/, '') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_prefix.rb:49 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#49 class RuboCop::Cop::Performance::DeletePrefix < ::RuboCop::Cop::Base include ::RuboCop::Cop::RegexpMetacharacter extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_prefix.rb:66 + # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#66 def delete_prefix_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_prefix.rb:70 + # source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#70 def on_send(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_prefix.rb:56 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#56 RuboCop::Cop::Performance::DeletePrefix::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_prefix.rb:59 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#59 RuboCop::Cop::Performance::DeletePrefix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_prefix.rb:57 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_prefix.rb#57 RuboCop::Cop::Performance::DeletePrefix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.5, `String#delete_suffix` has been added. @@ -875,26 +886,26 @@ RuboCop::Cop::Performance::DeletePrefix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # str.sub(/suffix$/, '') # str.sub!(/suffix$/, '') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_suffix.rb:49 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#49 class RuboCop::Cop::Performance::DeleteSuffix < ::RuboCop::Cop::Base include ::RuboCop::Cop::RegexpMetacharacter extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_suffix.rb:66 + # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#66 def delete_suffix_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_suffix.rb:70 + # source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#70 def on_send(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_suffix.rb:56 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#56 RuboCop::Cop::Performance::DeleteSuffix::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_suffix.rb:59 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#59 RuboCop::Cop::Performance::DeleteSuffix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/delete_suffix.rb:57 +# source://rubocop-performance//lib/rubocop/cop/performance/delete_suffix.rb#57 RuboCop::Cop::Performance::DeleteSuffix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies usages of `first`, `last`, `[0]` or `[-1]` @@ -916,60 +927,60 @@ RuboCop::Cop::Performance::DeleteSuffix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # [].detect { |item| true } # [].reverse.detect { |item| true } # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#30 class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#41 def detect_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:50 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#50 def on_send(node); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:69 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#69 def accept_first_call?(receiver, body); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:101 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#101 def autocorrect(corrector, node, replacement); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:127 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#127 def lazy?(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:112 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#112 def message_for_method(method, index); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:123 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#123 def preferred_method; end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:78 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#78 def register_offense(node, receiver, second_method, index); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:93 + # source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#93 def replacement(method, index); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:33 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#33 RuboCop::Cop::Performance::Detect::CANDIDATE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:37 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#37 RuboCop::Cop::Performance::Detect::INDEX_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:38 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#38 RuboCop::Cop::Performance::Detect::INDEX_REVERSE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#35 RuboCop::Cop::Performance::Detect::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:39 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#39 RuboCop::Cop::Performance::Detect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/detect.rb:36 +# source://rubocop-performance//lib/rubocop/cop/performance/detect.rb#36 RuboCop::Cop::Performance::Detect::REVERSE_MSG = T.let(T.unsafe(nil), String) # Checks for double `#start_with?` or `#end_with?` calls @@ -1005,40 +1016,40 @@ RuboCop::Cop::Performance::Detect::REVERSE_MSG = T.let(T.unsafe(nil), String) # str.starts_with?("a", "b", "c") # str.ends_with?(var1, var2) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:41 +# source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#41 class RuboCop::Cop::Performance::DoubleStartEndWith < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:97 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#96 def check_with_active_support_aliases(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:47 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#46 def on_or(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:91 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#90 def two_start_end_with_calls(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:61 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#60 def autocorrect(corrector, first_call_args, second_call_args, combined_args); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:87 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#86 def check_for_active_support_aliases?; end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:83 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#82 def combine_args(first_call_args, second_call_args); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:77 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#76 def message(node, receiver, method, combined_args); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:69 + # source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#68 def process_source(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/double_start_end_with.rb:44 +# source://rubocop-performance//lib/rubocop/cop/performance/double_start_end_with.rb#44 RuboCop::Cop::Performance::DoubleStartEndWith::MSG = T.let(T.unsafe(nil), String) # Identifies unnecessary use of a regex where `String#end_with?` would suffice. @@ -1077,25 +1088,25 @@ RuboCop::Cop::Performance::DoubleStartEndWith::MSG = T.let(T.unsafe(nil), String # 'abc'.match(/bc$/) # /bc$/.match('abc') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/end_with.rb:49 +# source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#49 class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base include ::RuboCop::Cop::RegexpMetacharacter extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/end_with.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#62 def on_match_with_lvasgn(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/end_with.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#62 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/end_with.rb:57 + # source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#56 def redundant_regex?(param0 = T.unsafe(nil)); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/end_with.rb:53 +# source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#53 RuboCop::Cop::Performance::EndWith::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/end_with.rb:55 +# source://rubocop-performance//lib/rubocop/cop/performance/end_with.rb#54 RuboCop::Cop::Performance::EndWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Do not compute the size of statically sized objects. @@ -1140,51 +1151,51 @@ RuboCop::Cop::Performance::EndWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # waldo = { a: corge, b: grault } # waldo.size # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:48 +# source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#48 class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:52 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#52 def counter(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:56 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#56 def on_send(node); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:72 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#72 def allowed_argument?(arg); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:76 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#76 def allowed_parent?(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:68 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#68 def allowed_variable?(var); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:86 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#86 def contains_double_splat?(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:80 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#80 def contains_splat?(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:92 + # source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#92 def non_string_argument?(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:49 +# source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#49 RuboCop::Cop::Performance::FixedSize::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/fixed_size.rb:50 +# source://rubocop-performance//lib/rubocop/cop/performance/fixed_size.rb#50 RuboCop::Cop::Performance::FixedSize::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies usages of `map { ... }.flatten` and @@ -1200,39 +1211,39 @@ RuboCop::Cop::Performance::FixedSize::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # [1, 2, 3, 4].map { |e| [e, e] }.flatten # [1, 2, 3, 4].collect { |e| [e, e] }.flatten # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:18 +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#18 class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:28 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#28 def flat_map_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:39 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#39 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:71 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#71 def autocorrect(corrector, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:52 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#52 def offense_for_levels(node, map_node, first_method, flatten); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:58 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#58 def offense_for_method(node, map_node, first_method, flatten); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:62 + # source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#62 def register_offense(node, map_node, first_method, flatten, message); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#24 RuboCop::Cop::Performance::FlatMap::FLATTEN_MULTIPLE_LEVELS = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:22 +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#22 RuboCop::Cop::Performance::FlatMap::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/flat_map.rb:23 +# source://rubocop-performance//lib/rubocop/cop/performance/flat_map.rb#23 RuboCop::Cop::Performance::FlatMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for inefficient searching of keys and values within @@ -1268,38 +1279,38 @@ RuboCop::Cop::Performance::FlatMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # { a: 1, b: 2 }.has_value?('garbage') # h = { a: 1, b: 2 }; h.value?(nil) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:42 +# source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#42 class RuboCop::Cop::Performance::InefficientHashSearch < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:47 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#47 def inefficient_include?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:51 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#51 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:91 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#89 def autocorrect_argument(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:95 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#93 def autocorrect_hash_expression(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:73 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#73 def autocorrect_method(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:80 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#80 def current_method(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:69 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#69 def message(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:84 + # source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#84 def use_long_method; end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/inefficient_hash_search.rb:45 +# source://rubocop-performance//lib/rubocop/cop/performance/inefficient_hash_search.rb#45 RuboCop::Cop::Performance::InefficientHashSearch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where inefficient `readlines` method @@ -1323,45 +1334,45 @@ RuboCop::Cop::Performance::InefficientHashSearch::RESTRICT_ON_SEND = T.let(T.uns # file.each_line.find { |l| l.start_with?('#') } # file.each_line { |l| puts l } # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#27 class RuboCop::Cop::Performance::IoReadlines < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:42 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#42 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:34 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#34 def readlines_on_class?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:38 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#38 def readlines_on_instance?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:58 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#58 def autocorrect(corrector, enumerable_call, readlines_call, receiver); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:90 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#90 def build_bad_method(enumerable_call); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:106 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#106 def build_call_args(call_args_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:82 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#82 def build_good_method(enumerable_call); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:94 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#94 def correction_range(enumerable_call, readlines_call); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:76 + # source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#76 def offense_range(enumerable_call, readlines_call); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:31 +# source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#31 RuboCop::Cop::Performance::IoReadlines::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/io_readlines.rb:32 +# source://rubocop-performance//lib/rubocop/cop/performance/io_readlines.rb#32 RuboCop::Cop::Performance::IoReadlines::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.7, `Enumerable#filter_map` has been added. @@ -1384,41 +1395,46 @@ RuboCop::Cop::Performance::IoReadlines::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # ary.map(&:foo).compact! # ary.compact.map(&:foo) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#30 class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:40 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#40 def map_compact(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:53 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#53 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:89 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#93 def compact_method_with_final_newline_range(compact_method_range); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:85 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#89 def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:81 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#85 def map_method_and_compact_method_on_same_line?(map_node, compact_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:67 + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#67 def remove_compact_method(corrector, map_node, compact_node, chained_method); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#81 + def use_dot?(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#35 RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/map_compact.rb:36 +# source://rubocop-performance//lib/rubocop/cop/performance/map_compact.rb#36 RuboCop::Cop::Performance::MapCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where methods are converted to blocks, with the @@ -1434,16 +1450,16 @@ RuboCop::Cop::Performance::MapCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # array.map { |x| do_something(x) } # [1, 2, 3].each { |x| out.puts(x) } # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/method_object_as_block.rb:19 +# source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#19 class RuboCop::Cop::Performance::MethodObjectAsBlock < ::RuboCop::Cop::Base - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/method_object_as_block.rb:22 + # source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#22 def method_object_as_argument?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/method_object_as_block.rb:26 + # source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#26 def on_block_pass(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/method_object_as_block.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/method_object_as_block.rb#20 RuboCop::Cop::Performance::MethodObjectAsBlock::MSG = T.let(T.unsafe(nil), String) # Checks for `OpenStruct.new` calls. @@ -1470,19 +1486,19 @@ RuboCop::Cop::Performance::MethodObjectAsBlock::MSG = T.let(T.unsafe(nil), Strin # end # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/open_struct.rb:34 +# source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#34 class RuboCop::Cop::Performance::OpenStruct < ::RuboCop::Cop::Base - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/open_struct.rb:43 + # source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#42 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/open_struct.rb:39 + # source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#38 def open_struct(param0 = T.unsafe(nil)); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/open_struct.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#35 RuboCop::Cop::Performance::OpenStruct::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/open_struct.rb:37 +# source://rubocop-performance//lib/rubocop/cop/performance/open_struct.rb#36 RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies uses of `Range#include?` and `Range#member?`, which iterates over each @@ -1504,21 +1520,21 @@ RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # ('a'..'z').cover?('yellow') # => true # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/range_include.rb:28 +# source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#28 class RuboCop::Cop::Performance::RangeInclude < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/range_include.rb:43 + # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#43 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/range_include.rb:39 + # source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#39 def range_include(param0 = T.unsafe(nil)); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/range_include.rb:31 +# source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#31 RuboCop::Cop::Performance::RangeInclude::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/range_include.rb:32 +# source://rubocop-performance//lib/rubocop/cop/performance/range_include.rb#32 RuboCop::Cop::Performance::RangeInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies the use of a `&block` parameter and `block.call` @@ -1541,59 +1557,59 @@ RuboCop::Cop::Performance::RangeInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # yield 1, 2, 3 # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#25 class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:43 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#43 def blockarg_assigned?(param0, param1); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:39 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#39 def blockarg_calls(param0, param1); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:34 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#34 def blockarg_def(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:47 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#47 def on_def(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:47 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#47 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:97 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#97 def args_include_block_pass?(blockcall); end # offenses are registered on the `block.call` nodes # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#63 def autocorrect(corrector, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:81 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#81 def calls_to_report(argname, body); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:91 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#91 def shadowed_block_argument?(body, block_argument_of_method_signature); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:31 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#31 RuboCop::Cop::Performance::RedundantBlockCall::CLOSE_PAREN = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:28 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#28 RuboCop::Cop::Performance::RedundantBlockCall::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#30 RuboCop::Cop::Performance::RedundantBlockCall::OPEN_PAREN = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:32 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#32 RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_block_call.rb:29 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_block_call.rb#29 RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String) # Checks for uses `Enumerable#all?`, `Enumerable#any?`, `Enumerable#one?`, @@ -1613,53 +1629,53 @@ RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), Stri # # good # items.all?(pattern) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:26 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#26 class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:38 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#38 def on_block(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:76 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#76 def new_argument(block_argument, block_body); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:99 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#99 def offense_range(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:58 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#58 def one_block_argument?(block_arguments); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:66 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#66 def same_block_argument_and_is_a_argument?(block_body, block_argument); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:90 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#90 def use_block_argument_in_method_argument_of_operand?(block_argument, operand); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:62 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#62 def use_equality_comparison_block?(block_body); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#35 RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:36 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#36 RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::IS_A_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:32 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#32 RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_equality_comparison_block.rb:34 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_equality_comparison_block.rb#34 RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array) # Identifies the use of `Regexp#match` or `String#match`, which @@ -1677,29 +1693,34 @@ RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T. # method(str =~ /regex/) # return value unless regex =~ 'str' # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#20 class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:29 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#28 def match_call?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:38 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#37 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:34 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#33 def only_truthiness_matters?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:50 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#49 def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#55 + def autocorrectable?(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:23 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#23 RuboCop::Cop::Performance::RedundantMatch::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_match.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_match.rb#24 RuboCop::Cop::Performance::RedundantMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `Hash#merge!` can be replaced by `Hash#[]=`. @@ -1722,123 +1743,123 @@ RuboCop::Cop::Performance::RedundantMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil # hash[:a] = 1 # hash[:b] = 2 # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#30 class RuboCop::Cop::Performance::RedundantMerge < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:47 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#47 def modifier_flow_control?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:51 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#51 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:43 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#43 def redundant_merge_candidate(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:106 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#105 def correct_multiple_elements(corrector, node, parent, new_source); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:118 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#117 def correct_single_element(corrector, node, new_source); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:78 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#78 def each_redundant_merge(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:150 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#147 def indent_width; end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:97 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#97 def kwsplat_used?(pairs); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:146 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#143 def leading_spaces(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:154 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#151 def max_key_value_pairs; end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:70 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#70 def message(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:86 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#86 def non_redundant_merge?(node, receiver, pairs); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:93 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#93 def non_redundant_pairs?(receiver, pairs); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:101 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#101 def non_redundant_value_used?(receiver, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:134 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#131 def rewrite_with_modifier(node, parent, new_source); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:122 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#121 def to_assignments(receiver, pairs); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:33 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#33 RuboCop::Cop::Performance::RedundantMerge::AREF_ASGN = T.let(T.unsafe(nil), String) # A utility class for checking the use of values within an # `each_with_object` call. # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:160 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#157 class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector extend ::RuboCop::AST::NodePattern::Macros # @return [EachWithObjectInspector] a new instance of EachWithObjectInspector # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:163 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#160 def initialize(node, receiver); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:194 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#191 def each_with_object_node(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:168 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#165 def value_used?; end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:178 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#175 def eligible_receiver?; end # Returns the value of attribute node. # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:176 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#173 def node; end # Returns the value of attribute receiver. # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:176 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#173 def receiver; end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:182 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#179 def second_argument; end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:189 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#186 def unwind(receiver); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:34 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#34 RuboCop::Cop::Performance::RedundantMerge::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#35 RuboCop::Cop::Performance::RedundantMerge::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_merge.rb:37 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_merge.rb#37 RuboCop::Cop::Performance::RedundantMerge::WITH_MODIFIER_CORRECTION = T.let(T.unsafe(nil), String) # Identifies places where `sort { |a, b| a <=> b }` can be replaced with `sort`. @@ -1850,22 +1871,25 @@ RuboCop::Cop::Performance::RedundantMerge::WITH_MODIFIER_CORRECTION = T.let(T.un # # good # array.sort # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_sort_block.rb:15 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#15 class RuboCop::Cop::Performance::RedundantSortBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SortBlock extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_sort_block.rb:21 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#21 def on_block(node); end + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#29 + def on_numblock(node); end + private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_sort_block.rb:35 - def message(var_a, var_b); end + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#40 + def register_offense(send, node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_sort_block.rb:19 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_sort_block.rb#19 RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String) # Identifies places where `split` argument can be replaced from @@ -1878,37 +1902,37 @@ RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String # # good # 'a,b,c'.split(',') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:15 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#15 class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:27 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#27 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:23 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#23 def split_call_with_regexp?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#41 def determinist_regexp?(regexp_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:45 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#45 def replacement(regexp_node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#20 RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:18 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#18 RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:19 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#19 RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_split_regexp_argument.rb:21 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_split_regexp_argument.rb#21 RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array) # Checks for redundant `String#chars`. @@ -1917,6 +1941,7 @@ RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.l # # bad # str.chars[0..2] # str.chars.slice(0..2) +# str.chars.last # # # good # str[0..2].chars @@ -1928,6 +1953,7 @@ RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.l # # good # str[0] # str[0...2].chars +# str[-1] # # # bad # str.chars.take(2) @@ -1941,51 +1967,50 @@ RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.l # str.size # str.empty? # -# # For example, if the receiver is a blank string, it will be incompatible. +# # For example, if the receiver is an empty string, it will be incompatible. # # If a negative value is specified for the receiver, `nil` is returned. -# str.chars.last # Incompatible with `str[-1]`. # str.chars.last(2) # Incompatible with `str[-2..-1].chars`. # str.chars.drop(2) # Incompatible with `str[2..-1].chars`. # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:42 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#43 class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:53 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#54 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:49 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#50 def redundant_chars_call?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:108 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#112 def build_bad_method(method, args); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:121 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#125 def build_call_args(call_args_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:83 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#85 def build_good_method(method, args); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:96 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#100 def build_good_method_for_brackets_or_first_method(method, args); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:77 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#79 def build_message(method, args); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:73 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#75 def correction_range(receiver, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:69 + # source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#71 def offense_range(receiver, node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:46 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#47 RuboCop::Cop::Performance::RedundantStringChars::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/redundant_string_chars.rb:47 +# source://rubocop-performance//lib/rubocop/cop/performance/redundant_string_chars.rb#48 RuboCop::Cop::Performance::RedundantStringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.4, `String#match?`, `Regexp#match?`, and `Symbol#match?` @@ -2058,107 +2083,107 @@ RuboCop::Cop::Performance::RedundantStringChars::RESTRICT_ON_SEND = T.let(T.unsa # end # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:75 +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#75 class RuboCop::Cop::Performance::RegexpMatch < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:125 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#125 def last_matches(param0); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:86 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#86 def match_method?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:122 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#122 def match_node?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:97 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#97 def match_operator?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:101 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#101 def match_threequals?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:93 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#93 def match_with_int_arg_method?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:105 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#105 def match_with_lvasgn?(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:138 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#138 def on_case(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:134 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#134 def on_if(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:123 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#123 def search_match_nodes(param0); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:161 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#161 def autocorrect(corrector, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:150 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#150 def check_condition(cond); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:254 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#246 def correct_operator(corrector, recv, arg, oper = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:279 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#271 def correction_range(recv, arg); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:217 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#217 def find_last_match(body, range, scope_root); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:177 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#177 def last_match_used?(match_node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:243 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#242 def match_gvar?(sym); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:173 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#173 def message(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:213 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#213 def modifier_form?(match_node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:199 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#199 def next_match_pos(body, match_node_pos, scope_root); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:186 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#186 def range_to_search_for_last_matches(match_node, body, scope_root); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:263 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#255 def replace_with_match_predicate_method(corrector, recv, arg, op_range); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:225 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#224 def scope_body(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:237 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#236 def scope_root(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:274 + # source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#266 def swap_receiver_and_arg(corrector, recv, arg); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:112 +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#112 RuboCop::Cop::Performance::RegexpMatch::MATCH_NODE_PATTERN = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:84 +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#84 RuboCop::Cop::Performance::RegexpMatch::MSG = T.let(T.unsafe(nil), String) # Constants are included in this list because it is unlikely that # someone will store `nil` as a constant and then use it for comparison # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/regexp_match.rb:83 +# source://rubocop-performance//lib/rubocop/cop/performance/regexp_match.rb#83 RuboCop::Cop::Performance::RegexpMatch::TYPES_IMPLEMENTING_MATCH = T.let(T.unsafe(nil), Array) # Identifies usages of `reverse.each` and change them to use `reverse_each` instead. @@ -2178,32 +2203,32 @@ RuboCop::Cop::Performance::RegexpMatch::TYPES_IMPLEMENTING_MATCH = T.let(T.unsaf # # good # items.reverse_each # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:22 +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#22 class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:33 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#33 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:29 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#29 def reverse_each?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:53 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#53 def offense_range(node); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:47 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#47 def use_return_value?(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:26 +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#26 RuboCop::Cop::Performance::ReverseEach::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_each.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_each.rb#27 RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `reverse.first(n)` and `reverse.first` @@ -2219,36 +2244,36 @@ RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # array.last(5).reverse # array.last # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:19 +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#19 class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:30 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#30 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:26 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#26 def reverse_first_candidate?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#63 def build_bad_method(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:55 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#55 def build_good_method(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:49 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#49 def build_message(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:45 + # source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#45 def correction_range(receiver, node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:23 +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#23 RuboCop::Cop::Performance::ReverseFirst::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/reverse_first.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/reverse_first.rb#24 RuboCop::Cop::Performance::ReverseFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.7, `Enumerable#filter_map` has been added. @@ -2263,30 +2288,30 @@ RuboCop::Cop::Performance::ReverseFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # good # ary.filter_map { |o| o.bar if o.foo } # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:18 +# source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#18 class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:27 + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#27 def bad_method?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:31 + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#31 def on_send(node); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:44 + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#44 def map_method_candidate(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:54 + # source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#54 def offense_range(node, map_method); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#24 RuboCop::Cop::Performance::SelectMap::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/select_map.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/select_map.rb#25 RuboCop::Cop::Performance::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies usages of `count` on an `Array` and `Hash` and change them to `size`. @@ -2322,27 +2347,27 @@ RuboCop::Cop::Performance::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # good # [1, 2, 3].count { |e| e > 2 } # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:37 +# source://rubocop-performance//lib/rubocop/cop/performance/size.rb#37 class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:43 + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#43 def array?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:61 + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#61 def count?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:52 + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#52 def hash?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:65 + # source://rubocop-performance//lib/rubocop/cop/performance/size.rb#65 def on_send(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:40 +# source://rubocop-performance//lib/rubocop/cop/performance/size.rb#40 RuboCop::Cop::Performance::Size::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/size.rb:41 +# source://rubocop-performance//lib/rubocop/cop/performance/size.rb#41 RuboCop::Cop::Performance::Size::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `sort { |a, b| b <=> a }` @@ -2355,22 +2380,25 @@ RuboCop::Cop::Performance::Size::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # array.sort.reverse # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sort_reverse.rb:16 +# source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#16 class RuboCop::Cop::Performance::SortReverse < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SortBlock extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sort_reverse.rb:22 + # source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#22 def on_block(node); end + # source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#30 + def on_numblock(node); end + private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sort_reverse.rb:38 - def message(var_a, var_b); end + # source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#42 + def register_offense(send, node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sort_reverse.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/sort_reverse.rb#20 RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String) # Identifies places where `gsub(/a+/, 'a')` and `gsub!(/a+/, 'a')` @@ -2388,31 +2416,31 @@ RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String) # str.squeeze('a') # str.squeeze!('a') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:21 +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#21 class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:41 + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#38 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:32 + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#29 def squeeze_candidate?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:61 + # source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#58 def repeating_literal?(regex_str); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#24 RuboCop::Cop::Performance::Squeeze::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#27 RuboCop::Cop::Performance::Squeeze::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/squeeze.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/squeeze.rb#25 RuboCop::Cop::Performance::Squeeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies unnecessary use of a regex where `String#start_with?` would suffice. @@ -2451,25 +2479,25 @@ RuboCop::Cop::Performance::Squeeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # 'abc'.match(/^ab/) # /^ab/.match('abc') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/start_with.rb:49 +# source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#49 class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base include ::RuboCop::Cop::RegexpMetacharacter extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/start_with.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#62 def on_match_with_lvasgn(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/start_with.rb:63 + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#62 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/start_with.rb:57 + # source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#56 def redundant_regex?(param0 = T.unsafe(nil)); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/start_with.rb:53 +# source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#53 RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/start_with.rb:55 +# source://rubocop-performance//lib/rubocop/cop/performance/start_with.rb#54 RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where string identifier argument can be replaced @@ -2491,22 +2519,22 @@ RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # attr_accessor :do_something # instance_variable_get(:@ivar) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_identifier_argument.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#25 class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_identifier_argument.rb:46 + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#46 def on_send(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_identifier_argument.rb:28 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#28 RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String) # NOTE: `attr` method is not included in this list as it can cause false positives in Nokogiri API. # And `attr` may not be used because `Style/Attr` registers an offense. # https://github.com/rubocop/rubocop-performance/issues/278 # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_identifier_argument.rb:33 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#33 RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies unnecessary use of a regex where `String#include?` would suffice. @@ -2523,31 +2551,31 @@ RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T. # # good # 'abc'.include?('ab') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:22 +# source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#22 class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:34 + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#34 def on_match_with_lvasgn(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:34 + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#34 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:28 + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#28 def redundant_regex?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:50 + # source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#53 def literal?(regex_str); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#25 RuboCop::Cop::Performance::StringInclude::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_include.rb:26 +# source://rubocop-performance//lib/rubocop/cop/performance/string_include.rb#26 RuboCop::Cop::Performance::StringInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `gsub` can be replaced by `tr` or `delete`. @@ -2565,79 +2593,79 @@ RuboCop::Cop::Performance::StringInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # 'abc'.tr('b', 'd') # 'a b c'.delete(' ') # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#20 class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:37 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#37 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:31 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#31 def string_replacement?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:83 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#83 def accept_first_param?(first_param); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:78 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#78 def accept_second_param?(second_param); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:59 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#59 def autocorrect(corrector, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:100 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#99 def first_source(first_param); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:143 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#142 def message(node, first_source, second_source); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:150 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#148 def method_suffix(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:48 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#48 def offense(node, first_param, second_param); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:129 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#128 def range(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:154 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#152 def remove_second_param(corrector, node, first_param); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:69 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#69 def replace_method(corrector, node, first_source, second_source, first_param); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:133 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#132 def replacement_method(node, first_source, second_source); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:118 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#117 def source_from_regex_constructor(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:111 + # source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#110 def source_from_regex_literal(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:29 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#29 RuboCop::Cop::Performance::StringReplacement::BANG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#27 RuboCop::Cop::Performance::StringReplacement::DELETE = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:26 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#26 RuboCop::Cop::Performance::StringReplacement::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:24 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#24 RuboCop::Cop::Performance::StringReplacement::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:25 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#25 RuboCop::Cop::Performance::StringReplacement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/string_replacement.rb:28 +# source://rubocop-performance//lib/rubocop/cop/performance/string_replacement.rb#28 RuboCop::Cop::Performance::StringReplacement::TR = T.let(T.unsafe(nil), String) # Identifies places where custom code finding the sum of elements @@ -2668,94 +2696,95 @@ RuboCop::Cop::Performance::StringReplacement::TR = T.let(T.unsafe(nil), String) # [1, 2, 3].sum { |elem| elem ** 2 } # [1, 2, 3].sum(10, &:count) # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:70 +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#70 class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:99 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#102 def acc_plus_elem?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:99 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#102 def elem_plus_acc?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:111 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#114 def on_block(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:104 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#107 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:79 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#82 def sum_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:83 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#86 def sum_map_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:92 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#95 def sum_with_block_candidate?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:156 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#159 def array_literal?(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:161 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#164 def autocorrect(corrector, init, range); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:169 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#172 def autocorrect_sum_map(corrector, sum, map, init); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:245 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#248 def build_block_bad_method(method, init, var_acc, var_elem, body); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:212 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#215 def build_block_message(send, init, var_acc, var_elem, body); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:218 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#221 def build_good_method(init, block_pass = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:231 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#234 def build_method_bad_method(init, method, operation); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:194 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#197 def build_method_message(node, method, init, operation); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:205 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#208 def build_sum_map_message(method, init); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:151 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#154 def empty_array_literal?(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:126 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#129 def handle_sum_candidate(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:139 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#142 def handle_sum_map_candidate(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:256 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#259 def method_call_with_args_range(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:190 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#193 def sum_block_range(send, node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:186 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#189 def sum_map_range(map, sum); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:182 + # source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#185 def sum_method_range(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:74 +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#77 RuboCop::Cop::Performance::Sum::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:75 +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#78 RuboCop::Cop::Performance::Sum::MSG_IF_NO_INIT_VALUE = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/sum.rb:77 +# source://rubocop-performance//lib/rubocop/cop/performance/sum.rb#80 RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for .times.map calls. @@ -2773,35 +2802,38 @@ RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # i.to_s # end # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:32 +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#32 class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:44 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#43 def on_block(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:40 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#43 + def on_numblock(node); end + + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#39 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:70 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#69 def times_map_call(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:50 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#50 def check(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:61 + # source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#60 def message(map_or_collect, count); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:35 +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#35 RuboCop::Cop::Performance::TimesMap::MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:37 +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#36 RuboCop::Cop::Performance::TimesMap::MESSAGE_ONLY_IF = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/times_map.rb:38 +# source://rubocop-performance//lib/rubocop/cop/performance/times_map.rb#37 RuboCop::Cop::Performance::TimesMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # In Ruby 2.3 or later, use unary plus operator to unfreeze a string @@ -2820,29 +2852,29 @@ RuboCop::Cop::Performance::TimesMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # +'something' # +'' # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:27 +# source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#27 class RuboCop::Cop::Performance::UnfreezeString < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:33 + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#33 def dup_string?(param0 = T.unsafe(nil)); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:44 + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#44 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:37 + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#37 def string_new?(param0 = T.unsafe(nil)); end private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:57 + # source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#57 def string_value(node); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:30 +# source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#30 RuboCop::Cop::Performance::UnfreezeString::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/unfreeze_string.rb:31 +# source://rubocop-performance//lib/rubocop/cop/performance/unfreeze_string.rb#31 RuboCop::Cop::Performance::UnfreezeString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `URI::Parser.new` can be replaced by `URI::DEFAULT_PARSER`. @@ -2854,133 +2886,136 @@ RuboCop::Cop::Performance::UnfreezeString::RESTRICT_ON_SEND = T.let(T.unsafe(nil # # good # URI::DEFAULT_PARSER # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/uri_default_parser.rb:15 +# source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#15 class RuboCop::Cop::Performance::UriDefaultParser < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/uri_default_parser.rb:28 + # source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#27 def on_send(node); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/uri_default_parser.rb:22 + # source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#21 def uri_parser_new?(param0 = T.unsafe(nil)); end end -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/uri_default_parser.rb:18 +# source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#18 RuboCop::Cop::Performance::UriDefaultParser::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-performance-1.14.3/lib/rubocop/cop/performance/uri_default_parser.rb:20 +# source://rubocop-performance//lib/rubocop/cop/performance/uri_default_parser.rb#19 RuboCop::Cop::Performance::UriDefaultParser::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Common functionality for handling regexp metacharacters. # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:6 +# source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#6 module RuboCop::Cop::RegexpMetacharacter private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:63 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#63 def drop_end_metacharacter(regexp_string); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:55 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#55 def drop_start_metacharacter(regexp_string); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:15 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#15 def literal_at_end?(regexp); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:41 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#41 def literal_at_end_with_backslash_z?(regex_str); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:48 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#48 def literal_at_end_with_dollar?(regex_str); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:9 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#9 def literal_at_start?(regexp); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:21 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#21 def literal_at_start_with_backslash_a?(regex_str); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:31 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#31 def literal_at_start_with_caret?(regex_str); end # @return [Boolean] # - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/regexp_metacharacter.rb:71 + # source://rubocop-performance//lib/rubocop/cop/mixin/regexp_metacharacter.rb#71 def safe_multiline?; end end # Common functionality for cops checking `Enumerable#sort` blocks. # -# source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/sort_block.rb:6 +# source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#6 module RuboCop::Cop::SortBlock include ::RuboCop::Cop::RangeHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/sort_block.rb:17 + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#24 def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/sort_block.rb:10 + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#10 def sort_with_block?(param0 = T.unsafe(nil)); end + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#17 + def sort_with_numblock?(param0 = T.unsafe(nil)); end + private - # source://rubocop-performance-1.14.3/lib/rubocop/cop/mixin/sort_block.rb:23 + # source://rubocop-performance//lib/rubocop/cop/mixin/sort_block.rb#30 def sort_range(send, node); end end -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:5 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#5 RuboCop::NodePattern = RuboCop::AST::NodePattern # RuboCop Performance project namespace # -# source://rubocop-performance-1.14.3/lib/rubocop/performance.rb:5 +# source://rubocop-performance//lib/rubocop/performance.rb#5 module RuboCop::Performance; end -# source://rubocop-performance-1.14.3/lib/rubocop/performance.rb:8 +# source://rubocop-performance//lib/rubocop/performance.rb#8 RuboCop::Performance::CONFIG = T.let(T.unsafe(nil), Hash) -# source://rubocop-performance-1.14.3/lib/rubocop/performance.rb:7 +# source://rubocop-performance//lib/rubocop/performance.rb#7 RuboCop::Performance::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) # Because RuboCop doesn't yet support plugins, we have to monkey patch in a # bit of our configuration. # -# source://rubocop-performance-1.14.3/lib/rubocop/performance/inject.rb:7 +# source://rubocop-performance//lib/rubocop/performance/inject.rb#7 module RuboCop::Performance::Inject class << self - # source://rubocop-performance-1.14.3/lib/rubocop/performance/inject.rb:8 + # source://rubocop-performance//lib/rubocop/performance/inject.rb#8 def defaults!; end end end -# source://rubocop-performance-1.14.3/lib/rubocop/performance.rb:6 +# source://rubocop-performance//lib/rubocop/performance.rb#6 RuboCop::Performance::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) # This module holds the RuboCop Performance version information. # -# source://rubocop-performance-1.14.3/lib/rubocop/performance/version.rb:6 +# source://rubocop-performance//lib/rubocop/performance/version.rb#6 module RuboCop::Performance::Version class << self - # source://rubocop-performance-1.14.3/lib/rubocop/performance/version.rb:9 + # source://rubocop-performance//lib/rubocop/performance/version.rb#9 def document_version; end end end -# source://rubocop-performance-1.14.3/lib/rubocop/performance/version.rb:7 +# source://rubocop-performance//lib/rubocop/performance/version.rb#7 RuboCop::Performance::Version::STRING = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:6 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:7 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#7 RuboCop::Token = RuboCop::AST::Token diff --git a/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi b/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi similarity index 50% rename from sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi rename to sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi index 3d82c391..ff86b072 100644 --- a/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +++ b/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi @@ -4,33 +4,28 @@ # This is an autogenerated file for types exported from the `rubocop-rspec` gem. # Please instead update this file by running `bin/tapioca gem rubocop-rspec`. -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/version.rb:3 +# source://rubocop-rspec//lib/rubocop/rspec.rb#3 module RuboCop; end class RuboCop::AST::Node < ::Parser::AST::Node include ::RuboCop::RSpec::Node end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:4 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#4 module RuboCop::Cop; end -# @deprecated IgnoredMethods class has been replaced with AllowedMethods. -# -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:33 +# source://rubocop/1.42.0/lib/rubocop/cop/mixin/allowed_methods.rb#38 RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods -# @deprecated IgnoredPattern class has been replaced with AllowedPattern. -# -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:46 +# source://rubocop/1.42.0/lib/rubocop/cop/mixin/allowed_pattern.rb#54 RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:5 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#5 module RuboCop::Cop::RSpec; end # Checks that left braces for adjacent single line lets are aligned. # # @example -# # # bad # let(:foobar) { blahblah } # let(:baz) { bar } @@ -41,31 +36,30 @@ module RuboCop::Cop::RSpec; end # let(:baz) { bar } # let(:a) { b } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_left_let_brace.rb:20 +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#19 class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_left_let_brace.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#28 def on_new_investigation; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_left_let_brace.rb:44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#43 def token_aligner; end class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_left_let_brace.rb:25 + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#24 def autocorrect_incompatible_with; end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_left_let_brace.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_left_let_brace.rb#22 RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String) # Checks that right braces for adjacent single line lets are aligned. # # @example -# # # bad # let(:foobar) { blahblah } # let(:baz) { bar } @@ -76,25 +70,25 @@ RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String) # let(:baz) { bar } # let(:a) { b } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_right_let_brace.rb:20 +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#19 class RuboCop::Cop::RSpec::AlignRightLetBrace < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_right_let_brace.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#28 def on_new_investigation; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_right_let_brace.rb:44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#43 def token_aligner; end class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_right_let_brace.rb:25 + # source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#24 def autocorrect_incompatible_with; end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/align_right_let_brace.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/align_right_let_brace.rb#22 RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String) # Check that instances are not being stubbed globally. @@ -117,16 +111,16 @@ RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/any_instance.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#26 class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/any_instance.rb:33 + # source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#34 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/any_instance.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#27 RuboCop::Cop::RSpec::AnyInstance::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/any_instance.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/any_instance.rb#28 RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that around blocks actually run the test. @@ -152,35 +146,44 @@ RuboCop::Cop::RSpec::AnyInstance::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # test.run # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#29 class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#45 def find_arg_usage(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:34 - def hook(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#35 + def hook_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:43 + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#40 + def hook_numblock(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#49 def on_block(node); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#59 + def on_numblock(node); end + private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#67 def add_no_arg_offense(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:59 + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#84 + def check_for_numblock(block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#71 def check_for_unused_proxy(block, proxy); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#30 RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/around_block.rb:30 +# source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#31 RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String) # @abstract parent class to RSpec cops # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/base.rb:7 +# source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#7 class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base include ::RuboCop::RSpec::Language extend ::RuboCop::RSpec::Language::NodePattern @@ -188,13 +191,13 @@ class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base # Set the config for dynamic DSL configuration-aware helpers # that have no other means of accessing the configuration. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/base.rb:20 + # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#20 def on_new_investigation; end class << self # Invoke the original inherited hook so our cops are recognized # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/base.rb:14 + # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#14 def inherited(subclass); end end end @@ -206,7 +209,6 @@ end # cases it's better to specify what exactly is the expected value. # # @example -# # # bad # expect(foo).to be # @@ -215,18 +217,21 @@ end # expect(foo).to be 1.0 # expect(foo).to be(true) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#21 class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be.rb:26 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#27 def be_without_args(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be.rb:30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#31 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#22 RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-rspec//lib/rubocop/cop/rspec/be.rb#24 +RuboCop::Cop::RSpec::Be::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Check for expectations where `be(...)` can replace `eq(...)`. # # The `be` matcher compares by identity while the `eq` matcher compares @@ -234,7 +239,6 @@ RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) # the `be` matcher is preferable as it is a more strict test. # # @example -# # # bad # expect(foo).to eq(true) # expect(foo).to eq(false) @@ -245,21 +249,21 @@ RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) # expect(foo).to be(false) # expect(foo).to be(nil) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eq.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#26 class RuboCop::Cop::RSpec::BeEq < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eq.rb:31 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#33 def eq_type_with_identity?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eq.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#37 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eq.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#29 RuboCop::Cop::RSpec::BeEq::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eq.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eq.rb#30 RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for expectations where `be(...)` can replace `eql(...)`. @@ -277,7 +281,6 @@ RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # coerce objects for comparison. # # @example -# # # bad # expect(foo).to eql(1) # expect(foo).to eql(1.0) @@ -294,21 +297,21 @@ RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # expect(foo).to be(:bar) # expect(foo).to be(nil) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eql.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#40 class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eql.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#47 def eql_type_with_identity(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eql.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#51 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eql.rb:41 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#43 RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_eql.rb:42 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_eql.rb#44 RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Ensures a consistent style is used when matching `nil`. @@ -331,36 +334,36 @@ RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # expect(foo).to be(nil) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#27 class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#36 def be_nil_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#41 def nil_value_expectation?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#45 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:64 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#64 def check_be_nil_style(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#56 def check_be_style(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:31 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#31 RuboCop::Cop::RSpec::BeNil::BE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#32 RuboCop::Cop::RSpec::BeNil::BE_NIL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/be_nil.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/be_nil.rb#33 RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that before/after(:all) isn't being used. @@ -384,22 +387,22 @@ RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # after(:each) { Widget.delete_all } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/before_after_all.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#27 class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/before_after_all.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#36 def before_or_after_all(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/before_after_all.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#40 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/before_after_all.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#28 RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/before_after_all.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#33 RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:6 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#6 module RuboCop::Cop::RSpec::Capybara; end # Checks that no expectations are set on Capybara's `current_path`. @@ -412,31 +415,37 @@ module RuboCop::Cop::RSpec::Capybara; end # which ensures that preceding actions (like `click_link`) have # completed. # +# This cop does not support autocorrection in some cases. +# # @example # # bad # expect(current_path).to eq('/callback') -# expect(page.current_path).to match(/widgets/) # # # good -# expect(page).to have_current_path("/callback") -# expect(page).to have_current_path(/widgets/) +# expect(page).to have_current_path('/callback') +# +# # bad (does not support autocorrection) +# expect(page.current_path).to match(variable) +# +# # good +# expect(page).to have_current_path('/callback') # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:26 -class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Base +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#32 +class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector # Supported matchers: eq(...) / match(/regexp/) / match('regexp') # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#48 def as_is_matcher(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#42 def expectation_set_on_current_path(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:59 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#65 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#55 def regexp_str_matcher(param0 = T.unsafe(nil)); end private @@ -446,28 +455,28 @@ class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RS # This ensures the option `ignore_query: true` is added # except when the expectation is a regexp or string # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:105 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#111 def add_ignore_query_options(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#77 def autocorrect(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:95 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#101 def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:82 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#88 def rewrite_expectation(corrector, node, to_symbol, matcher_node); end class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#61 def autocorrect_incompatible_with; end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#35 RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#39 RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for consistent method usage in feature specs. @@ -507,42 +516,223 @@ RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let( # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:43 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#44 class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#61 def capybara_speak(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#66 def feature_method(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:83 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#84 def message(range); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#72 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:90 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#91 def enabled?(method_name); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:94 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#95 def enabled_methods; end end # https://github.com/teamcapybara/capybara/blob/e283c1aeaa72441f5403963577e16333bf111a81/lib/capybara/rspec/features.rb#L31-L36 # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:50 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#51 RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/feature_methods.rb:47 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#48 RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String) +# Enforces use of `have_no_*` or `not_to` for negated expectations. +# +# @example EnforcedStyle: not_to (default) +# # bad +# expect(page).to have_no_selector +# expect(page).to have_no_css('a') +# +# # good +# expect(page).not_to have_selector +# expect(page).not_to have_css('a') +# @example EnforcedStyle: have_no +# # bad +# expect(page).not_to have_selector +# expect(page).not_to have_css('a') +# +# # good +# expect(page).to have_no_selector +# expect(page).to have_no_css('a') +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#27 +class RuboCop::Cop::RSpec::Capybara::NegationMatcher < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#51 + def have_no?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#45 + def not_to?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#56 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#79 + def message(matcher); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#70 + def offense?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#75 + def offense_range(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#94 + def replaced_matcher(matcher); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#85 + def replaced_runner; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#32 +RuboCop::Cop::RSpec::Capybara::NegationMatcher::CAPYBARA_MATCHERS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#31 +RuboCop::Cop::RSpec::Capybara::NegationMatcher::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#39 +RuboCop::Cop::RSpec::Capybara::NegationMatcher::NEGATIVE_MATCHERS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#37 +RuboCop::Cop::RSpec::Capybara::NegationMatcher::POSITIVE_MATCHERS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#42 +RuboCop::Cop::RSpec::Capybara::NegationMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# Checks for there is a more specific actions offered by Capybara. +# +# @example +# +# # bad +# find('a').click +# find('button.cls').click +# find('a', exact_text: 'foo').click +# find('div button').click +# +# # good +# click_link +# click_button(class: 'cls') +# click_link(exact_text: 'foo') +# find('div').click_button +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#23 +class RuboCop::Cop::RSpec::Capybara::SpecificActions < ::RuboCop::Cop::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#32 + def click_on_selector(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#36 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#78 + def good_action(action); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#64 + def last_selector(arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#72 + def message(action, selector); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#68 + def offense_range(node, receiver); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#56 + def specific_action(selector); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#60 + def supported_selector?(selector); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#24 +RuboCop::Cop::RSpec::Capybara::SpecificActions::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#25 +RuboCop::Cop::RSpec::Capybara::SpecificActions::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#26 +RuboCop::Cop::RSpec::Capybara::SpecificActions::SPECIFIC_ACTION = T.let(T.unsafe(nil), Hash) + +# Checks if there is a more specific finder offered by Capybara. +# +# @example +# # bad +# find('#some-id') +# find('[visible][id=some-id]') +# +# # good +# find_by_id('some-id') +# find_by_id('some-id', visible: true) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#18 +class RuboCop::Cop::RSpec::Capybara::SpecificFinders < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#27 + def find_argument(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#31 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#52 + def attribute?(arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#82 + def end_pos(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#78 + def offense_range(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#42 + def on_attr(node, arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#48 + def on_id(node, arg); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#57 + def register_offense(node, arg_replacement); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#65 + def replaced_arguments(arg, id); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#70 + def to_options(attrs); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#23 +RuboCop::Cop::RSpec::Capybara::SpecificFinders::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#24 +RuboCop::Cop::RSpec::Capybara::SpecificFinders::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for there is a more specific matcher offered by Capybara. # # @example @@ -551,50 +741,47 @@ RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String # expect(page).to have_selector('button') # expect(page).to have_no_selector('button.cls') # expect(page).to have_css('button') -# expect(page).to have_no_css('a.cls', exact_text: 'foo') +# expect(page).to have_no_css('a.cls', href: 'http://example.com') # expect(page).to have_css('table.cls') # expect(page).to have_css('select') +# expect(page).to have_css('input', exact_text: 'foo') # # # good # expect(page).to have_button # expect(page).to have_no_button(class: 'cls') # expect(page).to have_button -# expect(page).to have_no_link('foo', class: 'cls') +# expect(page).to have_no_link('foo', class: 'cls', href: 'http://example.com') # expect(page).to have_table(class: 'cls') # expect(page).to have_select +# expect(page).to have_field('foo') # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:27 -class RuboCop::Cop::RSpec::Capybara::SpecificMatcher < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#29 +class RuboCop::Cop::RSpec::Capybara::SpecificMatcher < ::RuboCop::Cop::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#42 def first_argument(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:43 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#46 def on_send(node); end private - # @return [Boolean] - # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:58 - def acceptable_pattern?(arg); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#70 def good_matcher(node, matcher); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:62 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#64 def message(node, matcher); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:53 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#59 def specific_matcher(arg); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#30 RuboCop::Cop::RSpec::Capybara::SpecificMatcher::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#31 RuboCop::Cop::RSpec::Capybara::SpecificMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/specific_matcher.rb:31 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#33 RuboCop::Cop::RSpec::Capybara::SpecificMatcher::SPECIFIC_MATCHER = T.let(T.unsafe(nil), Hash) # Checks for boolean visibility in Capybara finders. @@ -609,7 +796,6 @@ RuboCop::Cop::RSpec::Capybara::SpecificMatcher::SPECIFIC_MATCHER = T.let(T.unsaf # https://www.rubydoc.info/gems/capybara/Capybara%2FNode%2FFinders:all[the documentation]. # # @example -# # # bad # expect(page).to have_selector('.foo', visible: false) # expect(page).to have_css('.foo', visible: true) @@ -620,45 +806,160 @@ RuboCop::Cop::RSpec::Capybara::SpecificMatcher::SPECIFIC_MATCHER = T.let(T.unsaf # expect(page).to have_css('.foo', visible: :all) # expect(page).to have_link('my link', visible: :hidden) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:30 -class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:60 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#29 +class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#59 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#55 def visible_false?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#50 def visible_true?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#66 def capybara_matcher?(method_name); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#32 RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:31 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#30 RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#31 RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb:48 +# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#47 RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Help methods for capybara. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#7 +module RuboCop::Cop::RSpec::CapybaraHelp + private + + # @param node [RuboCop::AST::SendNode] + # @param option [Symbol] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#74 + def include_option?(node, option); end + + # @param node [RuboCop::AST::SendNode] + # @param element [String] + # @param attrs [Array] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#57 + def replaceable_element?(node, element, attrs); end + + # @param pseudo_class [String] + # @param locator [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#34 + def replaceable_pseudo_class?(pseudo_class, locator); end + + # @param locator [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#45 + def replaceable_pseudo_class_not?(locator); end + + # @param node [RuboCop::AST::SendNode] + # @param attrs [Array] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#67 + def replaceable_to_link?(node, attrs); end + + # @param node [RuboCop::AST::SendNode] + # @param locator [String] + # @param element [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#14 + def specific_option?(node, locator, element); end + + # @param locator [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#25 + def specific_pseudo_classes?(locator); end + + class << self + # @param node [RuboCop::AST::SendNode] + # @param option [Symbol] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#74 + def include_option?(node, option); end + + # @param node [RuboCop::AST::SendNode] + # @param element [String] + # @param attrs [Array] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#57 + def replaceable_element?(node, element, attrs); end + + # @param pseudo_class [String] + # @param locator [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#34 + def replaceable_pseudo_class?(pseudo_class, locator); end + + # @param locator [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#45 + def replaceable_pseudo_class_not?(locator); end + + # @param node [RuboCop::AST::SendNode] + # @param attrs [Array] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#67 + def replaceable_to_link?(node, attrs); end + + # @param node [RuboCop::AST::SendNode] + # @param locator [String] + # @param element [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#14 + def specific_option?(node, locator, element); end + + # @param locator [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/capybara_help.rb#25 + def specific_pseudo_classes?(locator); end + end +end + # Prefer negated matchers over `to change.by(0)`. # -# @example +# In the case of composite expectations, cop suggest using the +# negation matchers of `RSpec::Matchers#change`. +# +# By default the cop does not support autocorrect of +# compound expectations, but if you set the +# negated matcher for `change`, e.g. `not_change` with +# the `NegatedMatcher` option, the cop will perform the autocorrection. +# +# @example NegatedMatcher: ~ (default) # # bad # expect { run }.to change(Foo, :bar).by(0) # expect { run }.to change { Foo.bar }.by(0) # -# # bad - compound expectations +# # bad - compound expectations (does not support autocorrection) # expect { run } # .to change(Foo, :bar).by(0) # .and change(Foo, :baz).by(0) @@ -678,62 +979,161 @@ RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.uns # expect { run } # .to not_change { Foo.bar } # .and not_change { Foo.baz } +# @example NegatedMatcher: not_change +# # bad (support autocorrection to good case) +# expect { run } +# .to change(Foo, :bar).by(0) +# .and change(Foo, :baz).by(0) +# expect { run } +# .to change { Foo.bar }.by(0) +# .and change { Foo.baz }.by(0) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:34 +# # good +# define_negated_matcher :not_change, :change +# expect { run } +# .to not_change(Foo, :bar) +# .and not_change(Foo, :baz) +# expect { run } +# .to not_change { Foo.bar } +# .and not_change { Foo.baz } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#60 class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#85 + def change_nodes(param0); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#68 def expect_change_with_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#75 def expect_change_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#89 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#118 def autocorrect(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#124 + def autocorrect_compound(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#101 def check_offense(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:81 + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#114 def compound_expectations?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#138 + def message_compound; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#134 + def negated_matcher; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#142 + def preferred_method; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#62 RuboCop::Cop::RSpec::ChangeByZero::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:37 +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#63 RuboCop::Cop::RSpec::ChangeByZero::MSG_COMPOUND = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/change_by_zero.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#65 RuboCop::Cop::RSpec::ChangeByZero::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Enforces consistent use of `be_a` or `be_kind_of`. +# +# @example EnforcedStyle: be_a (default) +# # bad +# expect(object).to be_kind_of(String) +# expect(object).to be_a_kind_of(String) +# +# # good +# expect(object).to be_a(String) +# expect(object).to be_an(String) +# @example EnforcedStyle: be_kind_of +# # bad +# expect(object).to be_a(String) +# expect(object).to be_an(String) +# +# # good +# expect(object).to be_kind_of(String) +# expect(object).to be_a_kind_of(String) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#26 +class RuboCop::Cop::RSpec::ClassCheck < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#54 + def on_send(node); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#67 + def autocorrect(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#71 + def format_message(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#79 + def offending?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#87 + def preferred_method_name; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#83 + def preferred_method_name?(method_name); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#91 + def preferred_method_names; end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#32 +RuboCop::Cop::RSpec::ClassCheck::METHOD_NAMES_FOR_BE_A = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#37 +RuboCop::Cop::RSpec::ClassCheck::METHOD_NAMES_FOR_KIND_OF = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#30 +RuboCop::Cop::RSpec::ClassCheck::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#42 +RuboCop::Cop::RSpec::ClassCheck::PREFERRED_METHOD_NAME_BY_STYLE = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/class_check.rb#47 +RuboCop::Cop::RSpec::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Help methods for working with nodes containing comments. # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/comments_help.rb:7 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#7 module RuboCop::Cop::RSpec::CommentsHelp include ::RuboCop::Cop::RSpec::FinalEndLocation - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/comments_help.rb:17 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#17 def begin_pos_with_comment(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/comments_help.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#32 def buffer; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/comments_help.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#27 def end_line_position(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/comments_help.rb:10 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#10 def source_range_with_comment(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/comments_help.rb:23 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/comments_help.rb#23 def start_line_position(node); end end @@ -758,25 +1158,25 @@ end # # ... # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_method.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#27 class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_method.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#33 def context_method(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_method.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#37 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_method.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#47 def method_name?(description); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_method.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_method.rb#30 RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # Checks that `context` docstring starts with an allowed prefix. @@ -786,8 +1186,10 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # include `if`, `unless`, `for`, `before`, `after`, or `during`. # They may consist of multiple words if desired. # -# @example `Prefixes` configuration +# This cop can be customized allowed context description pattern +# with `AllowedPatterns`. By default, there are no checking by pattern. # +# @example `Prefixes` configuration # # .rubocop.yml # # RSpec/ContextWording: # # Prefixes: @@ -807,37 +1209,250 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) # context 'when the display name is not present' do # # ... # end +# @example `AllowedPatterns` configuration +# +# # .rubocop.yml +# # RSpec/ContextWording: +# # AllowedPatterns: +# # - とき$ +# @example +# # bad +# context '条件を満たす' do +# # ... +# end +# +# # good +# context '条件を満たすとき' do +# # ... +# end # @see https://rspec.rubystyle.guide/#context-descriptions # @see http://www.betterspecs.org/#contexts # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#59 class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:42 + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#65 def context_wording(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#69 def on_block(node); end private + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#80 + def allowed_patterns; end + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:55 - def bad_prefix?(description); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#88 + def bad_pattern?(description); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:59 - def joined_prefixes; end + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#94 + def expect_patterns; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:71 - def prefix_regex; end + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#84 + def prefix_regexes; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#104 def prefixes; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/context_wording.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#62 RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) +# Helps parsing css selector. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#7 +module RuboCop::Cop::RSpec::CssSelector + private + + # @example + # attribute?('[attribute]') # => true + # attribute?('attribute') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#77 + def attribute?(selector); end + + # @example + # attributes('a[foo-bar_baz]') # => {"foo-bar_baz=>true} + # attributes('button[foo][bar]') # => {"foo"=>true, "bar"=>true} + # attributes('table[foo=bar]') # => {"foo"=>"'bar'"} + # @param selector [String] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#87 + def attributes(selector); end + + # @example + # common_attributes?('a[focused]') # => true + # common_attributes?('button[focused][visible]') # => true + # common_attributes?('table[id=some-id]') # => true + # common_attributes?('h1[invalid]') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#101 + def common_attributes?(selector); end + + # @example + # id?('#some-id') # => true + # id?('.some-class') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#68 + def id?(selector); end + + # @example + # multiple_selectors?('a.cls b#id') # => true + # multiple_selectors?('a.cls') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#124 + def multiple_selectors?(selector); end + + # @example + # normalize_value('true') # => true + # normalize_value('false') # => false + # normalize_value(nil) # => false + # normalize_value("foo") # => "'foo'" + # @param value [String] + # @return [Boolean, String] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#135 + def normalize_value(value); end + + # @example + # pseudo_classes('button:not([disabled])') # => ['not()'] + # pseudo_classes('a:enabled:not([valid])') # => ['enabled', 'not()'] + # @param selector [String] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#110 + def pseudo_classes(selector); end + + # @example + # specific_pesudo_classes?('button', 'name') # => true + # specific_pesudo_classes?('link', 'invalid') # => false + # @param element [String] + # @param attribute [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#50 + def specific_options?(element, attribute); end + + # @example + # specific_pesudo_classes?('disabled') # => true + # specific_pesudo_classes?('first-of-type') # => false + # @param pseudo_class [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#59 + def specific_pesudo_classes?(pseudo_class); end + + class << self + # @example + # attribute?('[attribute]') # => true + # attribute?('attribute') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#77 + def attribute?(selector); end + + # @example + # attributes('a[foo-bar_baz]') # => {"foo-bar_baz=>true} + # attributes('button[foo][bar]') # => {"foo"=>true, "bar"=>true} + # attributes('table[foo=bar]') # => {"foo"=>"'bar'"} + # @param selector [String] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#87 + def attributes(selector); end + + # @example + # common_attributes?('a[focused]') # => true + # common_attributes?('button[focused][visible]') # => true + # common_attributes?('table[id=some-id]') # => true + # common_attributes?('h1[invalid]') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#101 + def common_attributes?(selector); end + + # @example + # id?('#some-id') # => true + # id?('.some-class') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#68 + def id?(selector); end + + # @example + # multiple_selectors?('a.cls b#id') # => true + # multiple_selectors?('a.cls') # => false + # @param selector [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#124 + def multiple_selectors?(selector); end + + # @example + # normalize_value('true') # => true + # normalize_value('false') # => false + # normalize_value(nil) # => false + # normalize_value("foo") # => "'foo'" + # @param value [String] + # @return [Boolean, String] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#135 + def normalize_value(value); end + + # @example + # pseudo_classes('button:not([disabled])') # => ['not()'] + # pseudo_classes('a:enabled:not([valid])') # => ['enabled', 'not()'] + # @param selector [String] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#110 + def pseudo_classes(selector); end + + # @example + # specific_pesudo_classes?('button', 'name') # => true + # specific_pesudo_classes?('link', 'invalid') # => false + # @param element [String] + # @param attribute [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#50 + def specific_options?(element, attribute); end + + # @example + # specific_pesudo_classes?('disabled') # => true + # specific_pesudo_classes?('first-of-type') # => false + # @param pseudo_class [String] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#59 + def specific_pesudo_classes?(pseudo_class); end + end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#8 +RuboCop::Cop::RSpec::CssSelector::COMMON_OPTIONS = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#13 +RuboCop::Cop::RSpec::CssSelector::SPECIFIC_OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/css_selector.rb#38 +RuboCop::Cop::RSpec::CssSelector::SPECIFIC_PSEUDO_CLASSES = T.let(T.unsafe(nil), Array) + # Check that the first argument to the top-level describe is a constant. # # It can be configured to ignore strings when certain metadata is passed. @@ -845,7 +1460,6 @@ RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) # Ignores Rails and Aruba `type` metadata by default. # # @example `IgnoredMetadata` configuration -# # # .rubocop.yml # # RSpec/DescribeClass: # # IgnoredMetadata: @@ -869,39 +1483,39 @@ RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) # describe "A feature example", type: :feature do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:37 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#37 class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#44 def example_group_with_ignored_metadata?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#49 def not_a_const_described(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#58 def on_top_level_group(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:54 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#54 def sym_pair(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:79 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#79 def ignored_metadata; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#68 def ignored_metadata?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#74 def string_constant?(described); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_class.rb:40 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_class.rb#40 RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String) # Checks that the second argument to `describe` specifies a method. @@ -918,18 +1532,18 @@ RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String) # describe MyClass, '.my_class_method' do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_method.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#20 class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_method.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#33 def on_top_level_group(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_method.rb:26 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#27 def second_argument(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_method.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_method.rb#23 RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String) # Avoid describing symbols. @@ -946,19 +1560,19 @@ RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String) # end # @see https://github.com/rspec/rspec-core/issues/1610 # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_symbol.rb:20 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#20 class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_symbol.rb:25 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#25 def describe_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_symbol.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#29 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_symbol.rb:21 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#21 RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/describe_symbol.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/describe_symbol.rb#22 RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that tests use `described_class`. @@ -1010,32 +1624,33 @@ RuboCop::Cop::RSpec::DescribeSymbol::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:57 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#57 class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RSpec::Namespace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#66 def common_instance_exec_closure?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:81 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#82 def contains_described_class?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:76 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#77 def described_constant(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:84 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#85 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#71 def rspec_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:73 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#74 def scope_changing_syntax?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:101 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#102 def autocorrect(corrector, match); end # @example @@ -1049,7 +1664,7 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base # @param const [Array] # @return [Array] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:176 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#178 def collapse_namespace(namespace, const); end # @example @@ -1059,53 +1674,45 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:193 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#195 def const_name(node); end # @yield [node] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#112 def find_usage(node, &block); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:162 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#163 def full_const_name(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:121 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#122 def message(offense); end - # @example - # namespace(node) # => [:A, :B, :C] - # @param node [RuboCop::AST::Node] - # @return [Array] - # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:208 - def namespace(node); end - # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#141 def offensive?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:148 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#149 def offensive_described_class?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:130 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#131 def scope_change?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:136 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#137 def skippable_block?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:61 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#62 RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class.rb:62 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class.rb#63 RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) # Avoid opening modules and defining specs within them. @@ -1124,16 +1731,16 @@ RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) # end # @see https://github.com/rubocop/rubocop-rspec/issues/735 # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class_module_wrapping.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#22 class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class_module_wrapping.rb:26 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#26 def find_rspec_blocks(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class_module_wrapping.rb:28 + # source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#28 def on_module(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/described_class_module_wrapping.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/described_class_module_wrapping.rb#23 RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String) # Enforces custom RSpec dialects. @@ -1175,25 +1782,59 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St # # ... # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/dialect.rb:44 +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#45 class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/dialect.rb:53 + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#54 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/dialect.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#52 def rspec_method?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/dialect.rb:48 +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#49 RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) +# Avoid duplicated metadata. +# +# @example +# # bad +# describe 'Something', :a, :a +# +# # good +# describe 'Something', :a +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#14 +class RuboCop::Cop::RSpec::DuplicatedMetadata < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::Metadata + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#22 + def on_metadata(symbols, _pairs); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#38 + def autocorrect(corrector, node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#50 + def duplicated?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#30 + def on_metadata_symbol(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/duplicated_metadata.rb#20 +RuboCop::Cop::RSpec::DuplicatedMetadata::MSG = T.let(T.unsafe(nil), String) + # Checks if an example group does not include any tests. # # @example usage -# # # bad # describe Bacon do # let(:bacon) { Bacon.new(chunkiness) } @@ -1223,8 +1864,11 @@ RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) # pending 'will add tests later' # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#38 class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + # Match example group blocks and yield their body # # @example source that matches @@ -1234,7 +1878,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] example group body # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#55 def example_group_body(param0 = T.unsafe(nil)); end # Match examples, example groups and includes @@ -1250,7 +1894,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:69 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#73 def example_or_group_or_include?(param0 = T.unsafe(nil)); end # Matches examples defined in scopes where they could run @@ -1259,11 +1903,11 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # it { expect(myself).to be_run } # describe { it { i_run_as_well } } # @example source that does not match - # before { it { whatever here wont run anyway } } + # before { it { whatever here won't run anyway } } # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:126 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#130 def examples?(param0 = T.unsafe(nil)); end # Match examples or examples inside blocks @@ -1275,7 +1919,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:107 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#111 def examples_directly_or_in_block?(param0 = T.unsafe(nil)); end # Match examples defined inside a block which is not a hook @@ -1291,31 +1935,34 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:93 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#97 def examples_inside_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:133 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#137 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:155 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#163 def conditionals_with_examples?(body); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:163 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#171 def examples_in_branches?(condition_node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:144 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#152 def offensive?(body); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#175 + def removed_range(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_example_group.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#43 RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String) # Checks for empty before and after hooks. @@ -1338,19 +1985,19 @@ RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String) # end # after(:all) { cleanup_feed } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_hook.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#26 class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_hook.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#33 def empty_hook?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_hook.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#37 def on_block(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_hook.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_hook.rb#30 RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after example blocks. @@ -1379,7 +2026,6 @@ RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) # it { two } # end # @example with AllowConsecutiveOneLiners configuration -# # # rubocop.yml # # RSpec/EmptyLineAfterExample: # # AllowConsecutiveOneLiners: false @@ -1390,41 +2036,40 @@ RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) # it { two } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:44 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#43 class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#49 + def on_block(node); end + + private + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:63 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#64 def allow_consecutive_one_liners?; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:59 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#60 def allowed_one_liner?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#68 def consecutive_one_liner?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#72 def next_one_line_example?(node); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:79 - def next_sibling(node); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:50 - def on_block(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example.rb:48 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example.rb#47 RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after example group blocks. @@ -1447,18 +2092,18 @@ RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example_group.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#26 class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example_group.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#32 def on_block(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_example_group.rb:30 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_example_group.rb#30 RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after the last let block. @@ -1475,22 +2120,25 @@ RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), Stri # # it { does_something } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_final_let.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#20 class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_final_let.rb:25 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#26 def on_block(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_final_let.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_final_let.rb#24 RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after hook blocks. # +# `AllowConsecutiveOneLiners` configures whether adjacent +# one-line definitions are considered an offense. +# # @example # # bad # before { do_something } @@ -1505,11 +2153,22 @@ RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) # it { does_something } # # # good -# before { do_something } +# after { do_something } # # it { does_something } # -# # good +# # fair - it's ok to have non-separated one-liners hooks +# around { |test| test.run } +# after { do_something } +# +# it { does_something } +# @example with AllowConsecutiveOneLiners configuration +# # rubocop.yml +# # RSpec/EmptyLineAfterHook: +# # AllowConsecutiveOneLiners: false +# +# # bad +# around { |test| test.run } # after { do_something } # # it { does_something } @@ -1517,20 +2176,33 @@ RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) # # good # around { |test| test.run } # +# after { do_something } +# # it { does_something } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_hook.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#53 class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_hook.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#60 + def on_numblock(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#74 + def chained_single_line_hooks?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_hook.rb:40 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_hook.rb#58 RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String) # Checks if there is an empty line after subject block. @@ -1545,7 +2217,7 @@ RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String) # # let(:foo) { bar } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_subject.rb:17 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#18 class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp @@ -1553,11 +2225,11 @@ class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_subject.rb:24 + # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#25 def on_block(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/empty_line_after_subject.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/empty_line_after_subject.rb#23 RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) # Helps determine the offending location if there is not an empty line @@ -1565,25 +2237,25 @@ RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) # in the following cases. # - followed by empty line(s) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb:11 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#11 module RuboCop::Cop::RSpec::EmptyLineSeparation include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb:52 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#52 def last_child?(node); end # @yield [offending_loc(enable_directive_line || final_end_line)] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb:26 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#26 def missing_separating_line(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb:15 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#15 def missing_separating_line_offense(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/empty_line_separation.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/empty_line_separation.rb#42 def offending_loc(last_line); end end @@ -1631,20 +2303,20 @@ end # HEREDOC # end # 5 points # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_length.rb:50 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#51 class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::CodeLength - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_length.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#56 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_length.rb:63 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#64 def cop_label; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_length.rb:53 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#54 RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String) # Checks for examples without a description. @@ -1690,40 +2362,45 @@ RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String) # expect(result).to be(true) # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:50 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#51 class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#59 def example_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#61 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#75 def check_example_without_description(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:81 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#82 def disallow_empty_description?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:55 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#56 RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_without_description.rb:53 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_without_description.rb#54 RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String) # Checks for common mistakes in example descriptions. # # This cop will correct docstrings that begin with 'should' and 'it'. +# This cop will also look for insufficient examples and call them out. # # The autocorrect is experimental - use with care! It can be configured # with CustomTransform (e.g. have => has) and IgnoredWords (e.g. only). # +# Use the DisallowedExamples setting to prevent unclear or insufficient +# descriptions. Please note that this config will not be treated as +# case sensitive. +# # @example # # bad # it 'should find nothing' do @@ -1740,52 +2417,74 @@ RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.u # # good # it 'does things' do # end +# @example `DisallowedExamples: ['works']` (default) +# # bad +# it 'works' do +# end +# +# # good +# it 'marks the task as done' do +# end # @see http://betterspecs.org/#should # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#46 class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#58 def it_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#65 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#80 def add_wording_offense(node, message); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:108 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#127 def custom_transform; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#90 def docstring(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:112 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#131 def ignored_words; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:81 + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#135 + def insufficient_docstring?(description_node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#139 + def insufficient_examples; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#144 + def preprocess(message); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#100 def replacement_text(node); end # Recursive processing is required to process nested dstr nodes # that is the case for \-separated multiline strings with interpolation. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:97 + # source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#116 def text(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#55 RuboCop::Cop::RSpec::ExampleWording::IT_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#51 +RuboCop::Cop::RSpec::ExampleWording::MSG_INSUFFICIENT_DESCRIPTION = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#50 RuboCop::Cop::RSpec::ExampleWording::MSG_IT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:35 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#49 RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/example_wording.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/example_wording.rb#54 RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp) # Checks for excessive whitespace in example descriptions. @@ -1807,14 +2506,14 @@ RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp # context 'when a condition is met' do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#26 class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:31 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#32 def example_description(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:38 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#39 def on_send(node); end private @@ -1822,31 +2521,31 @@ class RuboCop::Cop::RSpec::ExcessiveDocstringSpacing < ::RuboCop::Cop::RSpec::Ba # @param node [RuboCop::AST::Node] # @param text [String] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#67 def add_whitespace_offense(node, text); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:75 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#76 def docstring(node); end # @param text [String] # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:53 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#54 def excessive_whitespace?(text); end # @param text [String] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#61 def strip_excessive_whitespace(text); end # Recursive processing is required to process nested dstr nodes # that is the case for \-separated multiline strings with interpolation. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:87 + # source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#88 def text(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/excessive_docstring_spacing.rb#29 RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), String) # Checks for `expect(...)` calls containing literal values. @@ -1864,21 +2563,24 @@ RuboCop::Cop::RSpec::ExcessiveDocstringSpacing::MSG = T.let(T.unsafe(nil), Strin # expect(pattern).to eq(/foo/) # expect(name).to eq("John") # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:21 +# # bad (not supported autocorrection) +# expect(false).to eq(true) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#24 class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#56 def expect_literal(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:62 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#67 def on_send(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#90 def complex_literal?(node); end # This is not implement using a NodePattern because it seems @@ -1886,28 +2588,31 @@ class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Base # # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#82 def literal?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:81 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#86 def simple_literal?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:90 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#95 def swap(corrector, actual, expected); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#44 RuboCop::Cop::RSpec::ExpectActual::COMPLEX_LITERALS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#27 RuboCop::Cop::RSpec::ExpectActual::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#29 +RuboCop::Cop::RSpec::ExpectActual::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#31 RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_actual.rb:48 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_actual.rb#53 RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Array) # Checks for consistent style of change matcher. @@ -1935,31 +2640,31 @@ RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Arr # # good # expect { run }.to change { Foo.bar } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#32 class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#41 def expect_change_with_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#46 def expect_change_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#72 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#60 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#36 RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:37 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#37 RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_change.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_change.rb#38 RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Do not use `expect` in hooks such as `before`. @@ -1980,21 +2685,24 @@ RuboCop::Cop::RSpec::ExpectChange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # expect(something).to eq 'foo' # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_in_hook.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#24 class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_in_hook.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#28 def expectation(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_in_hook.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 def on_block(node); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#30 + def on_numblock(node); end + private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_in_hook.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#44 def message(expect, hook); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_in_hook.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_hook.rb#25 RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String) # Checks for opportunities to use `expect { ... }.to output`. @@ -2009,9 +2717,9 @@ RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String) # # good # expect { my_app.print_report }.to output('Hello World').to_stdout # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_output.rb:17 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#18 class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_output.rb:21 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#22 def on_gvasgn(node); end private @@ -2026,62 +2734,62 @@ class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base # # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_output.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#43 def inside_example_scope?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/expect_output.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/expect_output.rb#19 RuboCop::Cop::RSpec::ExpectOutput::MSG = T.let(T.unsafe(nil), String) # A helper for `explicit` style # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:121 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#121 module RuboCop::Cop::RSpec::ExplicitHelper include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:159 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#159 def predicate_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:168 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#168 def predicate_matcher_block?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:135 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#135 def allowed_explicit_matchers; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:139 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#139 def check_explicit(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:191 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#191 def corrector_explicit(corrector, to_node, actual, matcher, block_child); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:185 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#185 def message_explicit(matcher); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:198 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#198 def move_predicate(corrector, actual, matcher, block_child); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:177 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#177 def predicate_matcher_name?(name); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:228 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#228 def replacement_matcher(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:210 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#210 def to_predicate_method(matcher); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:127 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#127 RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:125 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#125 RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:6 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#6 module RuboCop::Cop::RSpec::FactoryBot; end # Always declare attribute values as blocks. @@ -2105,70 +2813,150 @@ module RuboCop::Cop::RSpec::FactoryBot; end # # good # count { 1 } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:27 -class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Base +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#28 +class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#86 def association?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:38 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#39 def factory_attributes(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#43 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:33 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#34 def value_matcher(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:119 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#120 def attribute_defining_method?(method_name); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#59 def autocorrect(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:87 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#88 def autocorrect_replacing_parens(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:94 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#95 def autocorrect_without_parens(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:103 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#104 def braces(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#67 def offensive_receiver?(receiver, node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:80 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#81 def proc?(attribute); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#73 def receiver_matches_first_block_argument?(receiver, node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:115 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#116 def reserved_method?(method_name); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#112 def value_hash_without_braces?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb:30 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#31 RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String) +# Use a consistent style for parentheses in factory bot calls. +# +# @example +# +# # bad +# create :user +# build(:user) +# create(:login) +# create :login +# @example `EnforcedStyle: require_parentheses` (default) +# +# # good +# create(:user) +# create(:user) +# create(:login) +# build(:login) +# @example `EnforcedStyle: omit_parentheses` +# +# # good +# create :user +# build :user +# create :login +# create :login +# +# # also good +# # when method name and first argument are not on same line +# create( +# :user +# ) +# build( +# :user, +# name: 'foo' +# ) +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#43 +class RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::RSpec::FactoryBot::Language + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#61 + def factory_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#68 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#103 + def ambiguous_without_parentheses?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#84 + def process_with_parentheses(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#94 + def process_without_parentheses(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#109 + def remove_parentheses(corrector, node); end + + class << self + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#49 + def autocorrect_incompatible_with; end + end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#56 +RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#54 +RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle::MSG_OMIT_PARENS = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#53 +RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle::MSG_REQUIRE_PARENS = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#58 +RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + # Checks for create_list usage. # # This cop can be configured using the `EnforcedStyle` option @@ -2195,126 +2983,132 @@ RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsaf # # good # 3.times { create :user } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:33 -class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Base +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#34 +class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::RSpec::FactoryBot::Language extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#64 def arguments_include_method_call?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:65 - def factory_call(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#44 + def array_new_or_n_times_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:70 - def factory_list_call(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#55 + def block_with_arg_and_used?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:43 - def n_times_block?(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#69 + def factory_call(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:51 - def n_times_block_with_arg_and_used?(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#74 + def factory_list_call(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#78 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:88 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#92 def on_send(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:101 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#105 def contains_only_factory?(node); end end # :nodoc # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:110 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#114 module RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:113 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#117 def build_options_string(options); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:117 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#121 def format_method_call(node, method, arguments); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:125 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#129 def format_receiver(receiver); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:163 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#174 class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector # @return [CreateListCorrector] a new instance of CreateListCorrector # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:166 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#177 def initialize(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:170 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#181 def call(corrector); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:193 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#204 def build_arguments(node, count); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:202 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#213 def call_replacement(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:184 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#195 def call_with_block_replacement(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:215 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#226 + def count_from(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#236 def format_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:223 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#244 def format_multiline_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:231 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#252 def format_singleline_block(node); end # Returns the value of attribute node. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:182 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#193 def node; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#39 RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:39 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#40 RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:40 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#41 RuboCop::Cop::RSpec::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # :nodoc # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:133 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#137 class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector include ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector # @return [TimesCorrector] a new instance of TimesCorrector # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:136 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#140 def initialize(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#144 def call(corrector); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:149 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#166 + def factory_call_block_source; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#153 def generate_n_times_block(node); end # Returns the value of attribute node. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/create_list.rb:147 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#151 def node; end end @@ -2334,33 +3128,89 @@ end # factory :foo, class: 'Foo' do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:22 -class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Base +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#23 +class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:31 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#32 def class_name(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#36 def on_send(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#49 def allowed?(const_name); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#28 RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#26 RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#29 RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Checks for name style for argument of FactoryBot::Syntax::Methods. +# +# @example EnforcedStyle: symbol (default) +# # bad +# create('user') +# build "user", username: "NAME" +# +# # good +# create(:user) +# build :user, username: "NAME" +# @example EnforcedStyle: string +# # bad +# create(:user) +# build :user, username: "NAME" +# +# # good +# create('user') +# build "user", username: "NAME" +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#27 +class RuboCop::Cop::RSpec::FactoryBot::FactoryNameStyle < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::RSpec::FactoryBot::Language + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#37 + def factory_call(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#44 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#60 + def offense_for_string_style?(name); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#56 + def offense_for_symbol_style?(name); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#64 + def register_offense(name, prefer); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#33 +RuboCop::Cop::RSpec::FactoryBot::FactoryNameStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#32 +RuboCop::Cop::RSpec::FactoryBot::FactoryNameStyle::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#34 +RuboCop::Cop::RSpec::FactoryBot::FactoryNameStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + # Use shorthands from `FactoryBot::Syntax::Methods` in your specs. # # @example @@ -2374,29 +3224,29 @@ RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.un # build(:bar) # attributes_for(:bar) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb:49 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#49 class RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::InsideExampleGroup include ::RuboCop::Cop::RangeHelp include ::RuboCop::RSpec::FactoryBot::Language extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#59 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb:90 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#72 def crime_scene(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb:97 + # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#79 def offense(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb:55 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#55 RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb:57 +# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#57 RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Checks that spec file paths are consistent and well-formed. @@ -2450,83 +3300,92 @@ RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsaf # # good # my_class_spec.rb # describe MyClass, '#method' # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:59 +# source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#59 class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup + include ::RuboCop::Cop::RSpec::Namespace - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#66 def example_group(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#75 def on_top_level_example_group(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#73 def routing_metadata?(param0); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:133 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#136 def camel_to_snake_case(string); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#143 def custom_transform; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:86 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#85 def ensure_correct_file_path(send_node, example_group, arguments); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:125 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#167 + def expanded_file_path; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#126 def expected_path(constant); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:148 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#151 def filename_ends_with?(pattern); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:144 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#147 def ignore_methods?; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:118 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#119 def name_pattern(method_name); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:102 - def pattern_for(example_group, method_name); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#101 + def pattern_for(example_group, arguments); end - # @return [Boolean] - # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:114 - def pattern_for_spec_suffix_only?; end + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#115 + def pattern_for_spec_suffix_only; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:153 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#155 def relevant_rubocop_rspec_file?(_file); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:98 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#97 def routing_spec?(args); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:157 + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#163 + def routing_spec_path?; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#159 def spec_suffix_only?; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/file_path.rb:62 +# source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#63 RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String) # Helps find the true end location of nodes which might contain heredocs. # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/final_end_location.rb:7 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#7 module RuboCop::Cop::RSpec::FinalEndLocation - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/final_end_location.rb:8 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#8 def final_end_location(start_node); end end # Checks if examples are focused. # +# This cop does not support autocorrection in some cases. +# # @example # # bad # describe MyClass, focus: true do @@ -2542,38 +3401,53 @@ end # describe MyClass do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:22 +# # bad +# fdescribe 'test' do; end +# +# # good +# describe 'test' do; end +# +# # bad +# fdescribe 'test' do; end +# +# # good +# describe 'test' do; end +# +# # bad (does not support autocorrection) +# focus 'test' do; end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#40 class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#47 def focusable_selector?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#64 def focused_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:40 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#58 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#69 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:78 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#96 def correct_send(corrector, focus); end # @yield [node] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#83 def focus_metadata(node, &block); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#89 def with_surrounding(focus); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/focus.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#44 RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String) # Checks the arguments passed to `before`, `around`, and `after`. @@ -2629,51 +3503,53 @@ RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String) # # ... # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:60 +# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#61 class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:75 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#78 + def on_numblock(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#69 def scoped_hook(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:73 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#74 def unscoped_hook(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:118 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#123 def argument_range(send_node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:91 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#96 def check_implicit(method_send); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:102 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#107 def explicit_message(scope); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:114 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#119 def hook(node, &block); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:110 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#115 def implicit_style?; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:65 +# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#66 RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hook_argument.rb:64 +# source://rubocop-rspec//lib/rubocop/cop/rspec/hook_argument.rb#65 RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String) # Checks for before/around/after hooks that come after an example. # # @example -# # Bad -# +# # bad # it 'checks what foo does' do # expect(foo).to be # end @@ -2681,7 +3557,7 @@ RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String) # before { prepare } # after { clean_up } # -# # Good +# # good # before { prepare } # after { clean_up } # @@ -2689,40 +3565,42 @@ RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String) # expect(foo).to be # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#25 class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#31 def example_or_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#39 def on_block(node); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#39 + def on_numblock(node); end + private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#71 def autocorrect(corrector, node, first_example); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#53 def check_hooks(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#67 def find_first_example(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:47 + # source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#49 def multiline_block?(block); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/hooks_before_examples.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/hooks_before_examples.rb#28 RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String) # Checks for equality assertions with identical expressions on both sides. # # @example -# # # bad # expect(foo.bar).to eq(foo.bar) # expect(foo.bar).to eql(foo.bar) @@ -2731,19 +3609,19 @@ RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String) # expect(foo.bar).to eq(2) # expect(foo.bar).to eql(2) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/identical_equality_assertion.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#17 class RuboCop::Cop::RSpec::IdenticalEqualityAssertion < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/identical_equality_assertion.rb:24 + # source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#23 def equality_check?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/identical_equality_assertion.rb:30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#29 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/identical_equality_assertion.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#18 RuboCop::Cop::RSpec::IdenticalEqualityAssertion::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/identical_equality_assertion.rb:21 +# source://rubocop-rspec//lib/rubocop/cop/rspec/identical_equality_assertion.rb#20 RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that implicit block expectation syntax is not used. @@ -2760,38 +3638,38 @@ RuboCop::Cop::RSpec::IdenticalEqualityAssertion::RESTRICT_ON_SEND = T.let(T.unsa # expect { do_something }.to change(something).to(new_value) # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#20 class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#36 def implicit_expect(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:24 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#25 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#33 def lambda_subject?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#40 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#62 def find_subject(block_node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:57 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#58 def multi_statement_example_group?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#49 def nearest_subject(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:20 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#21 RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_block_expectation.rb:21 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_block_expectation.rb#22 RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that a consistent implicit expectation style is used. @@ -2800,52 +3678,53 @@ RuboCop::Cop::RSpec::ImplicitBlockExpectation::RESTRICT_ON_SEND = T.let(T.unsafe # and supports the `--auto-gen-config` flag. # # @example `EnforcedStyle: is_expected` (default) -# # # bad # it { should be_truthy } # # # good # it { is_expected.to be_truthy } # @example `EnforcedStyle: should` -# # # bad # it { is_expected.to be_truthy } # # # good # it { should be_truthy } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#25 class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#34 def implicit_expect(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#49 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:78 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#78 def is_expected_range(source_map); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:69 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#69 def offending_expect(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:86 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#86 def offense_message(offending_source); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:94 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#94 def replacement_source(offending_source); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:47 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#47 RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_expect.rb:31 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#29 RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_expect.rb#31 +RuboCop::Cop::RSpec::ImplicitExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for usage of implicit subject (`is_expected` / `should`). # # This cop can be configured using the `EnforcedStyle` option @@ -2882,112 +3761,168 @@ RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String) # # # good # it { expect(subject).to be_truthy } +# @example `EnforcedStyle: require_implicit` +# # bad +# it { expect(subject).to be_truthy } +# +# # good +# it { is_expected.to be_truthy } +# +# # bad +# it do +# expect(subject).to be_truthy +# end +# +# # good +# it do +# is_expected.to be_truthy +# end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:45 +# # good +# it { expect(named_subject).to be_truthy } +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#65 class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:53 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#81 + def explicit_unnamed_subject?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#86 def implicit_subject?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:57 + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#90 def on_send(node); end private + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#100 + def autocorrect(corrector, node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#159 + def example_of(node); end + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:87 - def allowed_by_style?(example); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#135 + def implicit_subject_in_non_its?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:68 - def autocorrect(corrector, node); end + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#139 + def implicit_subject_in_non_its_and_non_single_line?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:80 - def valid_usage?(node); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#143 + def implicit_subject_in_non_its_and_non_single_statement?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#122 + def invalid?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#147 + def its?(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#113 + def message(_node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#151 + def single_line?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#155 + def single_statement?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:49 -RuboCop::Cop::RSpec::ImplicitSubject::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#69 +RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_EXPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/implicit_subject.rb:50 +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#71 +RuboCop::Cop::RSpec::ImplicitSubject::MSG_REQUIRE_IMPLICIT = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/implicit_subject.rb#73 RuboCop::Cop::RSpec::ImplicitSubject::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # A helper for `inflected` style # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:7 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#7 module RuboCop::Cop::RSpec::InflectedHelper include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#39 def be_bool?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:44 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#44 def be_boolthy?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#29 def predicate_in_actual?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#48 def boolean_matcher?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:16 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#16 def check_inflected(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#60 def message_inflected(predicate); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#56 def predicate?(sym); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#85 def remove_predicate(corrector, predicate); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:96 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#96 def rewrite_matcher(corrector, predicate, matcher); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#67 def to_predicate_matcher(name); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:107 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#107 def true?(to_symbol, matcher); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:11 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#11 RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String) # Helps you identify whether a given node # is within an example group or not. # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/inside_example_group.rb:8 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#8 module RuboCop::Cop::RSpec::InsideExampleGroup private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/inside_example_group.rb:19 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#19 def example_group_root?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/inside_example_group.rb:23 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#23 def example_group_root_with_siblings?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/inside_example_group.rb:11 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/inside_example_group.rb#11 def inside_example_group?(node); end end @@ -3006,26 +3941,26 @@ end # expect(foo).to have_received(:bar) # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_spy.rb:21 +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#21 class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_spy.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#36 def have_received_usage(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_spy.rb:28 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#28 def null_double(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_spy.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#45 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_spy.rb:61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#61 def autocorrect(corrector, node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_spy.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_spy.rb#24 RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) # Checks for instance variable usage in specs. @@ -3048,7 +3983,6 @@ RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) # it { expect(foo).to be_empty } # end # @example with AssignmentOnly configuration -# # # rubocop.yml # # RSpec/InstanceVariable: # # AssignmentOnly: false @@ -3070,39 +4004,39 @@ RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) # it { expect(foo).to be_empty } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:49 +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#48 class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#60 def custom_matcher?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#55 def dynamic_class?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#71 def ivar_assigned?(param0, param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:69 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#68 def ivar_usage(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#73 def on_top_level_group(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:91 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#90 def assignment_only?; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#84 def valid_usage?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/instance_variable.rb:52 +# source://rubocop-rspec//lib/rubocop/cop/rspec/instance_variable.rb#51 RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String) # Checks that only one `it_behaves_like` style is used. @@ -3120,27 +4054,27 @@ RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String) # # good # it_should_behave_like 'a foo' # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/it_behaves_like.rb:21 +# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#22 class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/it_behaves_like.rb:30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#31 def example_inclusion_offense(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/it_behaves_like.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#33 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/it_behaves_like.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#43 def message(_node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/it_behaves_like.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#26 RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/it_behaves_like.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/it_behaves_like.rb#28 RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check that `all` matcher is used instead of iterating over an array. @@ -3156,31 +4090,37 @@ RuboCop::Cop::RSpec::ItBehavesLike::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # expect([user1, user2, user3]).to all(be_valid) # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#19 class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:23 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#24 def each?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#33 + def each_numblock?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#40 def expectation?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#44 def on_block(node); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#52 + def on_numblock(node); end + private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:50 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#66 def only_expectations?(body, arg); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#62 def single_expectation?(body, arg); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/iterated_expectation.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/iterated_expectation.rb#20 RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) # Enforce that subject is the first definition in the test. @@ -3210,35 +4150,35 @@ RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) # it { expect_something } # it { expect_something_else } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:34 +# source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#34 class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:47 - def check_previous_nodes(node); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:40 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#40 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#70 def autocorrect(corrector, node, sibling); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#49 + def check_previous_nodes(node); end + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:76 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#76 def offending?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#58 def offending_node(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#66 def parent(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leading_subject.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/leading_subject.rb#38 RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String) # Checks that no class, module, or constant is declared. @@ -3329,38 +4269,38 @@ RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String) # end # @see https://relishapp.com/rspec/rspec-mocks/docs/mutating-constants # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:96 +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#96 class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:101 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#101 def on_casgn(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:107 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#107 def on_class(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:113 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#113 def on_module(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:121 + # source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#121 def inside_describe_block?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:98 +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#98 RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:97 +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#97 RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/leaky_constant_declaration.rb:99 +# source://rubocop-rspec//lib/rubocop/cop/rspec/leaky_constant_declaration.rb#99 RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String) # Checks for `let` definitions that come after an example. # # @example -# # Bad +# # bad # let(:foo) { bar } # # it 'checks what foo does' do @@ -3373,7 +4313,7 @@ RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), # expect(some).to be # end # -# # Good +# # good # let(:foo) { bar } # let(:some) { other } # @@ -3385,83 +4325,91 @@ RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), # expect(some).to be # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#33 class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#39 def example_or_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#47 + def include_examples?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#54 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:76 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#89 def autocorrect(corrector, node, first_example); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#70 def check_let_declarations(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:72 + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#62 + def example_group_with_include_examples?(body); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#85 def find_first_example(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:54 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#66 def multiline_block?(block); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_before_examples.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_before_examples.rb#36 RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String) # Checks unreferenced `let!` calls being used for test setup. # # @example -# # Bad +# # bad # let!(:my_widget) { create(:widget) } # # it 'counts widgets' do # expect(Widget.count).to eq(1) # end # -# # Good +# # good # it 'counts widgets' do # create(:widget) # expect(Widget.count).to eq(1) # end # -# # Good +# # good # before { create(:widget) } # # it 'counts widgets' do # expect(Widget.count).to eq(1) # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#28 class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#32 def example_or_shared_group_or_including?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#42 def let_bang(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:50 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#50 def method_called?(param0, param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:52 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#52 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#68 def child_let_bang(node, &block); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:62 + # source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#62 def unused_let_bang(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/let_setup.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/let_setup.rb#29 RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String) # Check that chains of messages are not being stubbed. @@ -3470,20 +4418,20 @@ RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String) # # bad # allow(foo).to receive_message_chain(:bar, :baz).and_return(42) # -# # better +# # good # thing = Thing.new(baz: 42) # allow(foo).to receive(:bar).and_return(thing) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_chain.rb:16 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#16 class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_chain.rb:20 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#20 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_chain.rb:17 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#17 RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_chain.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_chain.rb#18 RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for consistent message expectation style. @@ -3506,34 +4454,34 @@ RuboCop::Cop::RSpec::MessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # expect(foo).to receive(:bar) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#27 class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:36 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#36 def message_expectation(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:43 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#43 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#41 def receive_message?(param0); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#56 def preferred_style?(expectation); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:30 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#30 RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#33 RuboCop::Cop::RSpec::MessageExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_expectation.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_expectation.rb#32 RuboCop::Cop::RSpec::MessageExpectation::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array) # Checks that message expectations are set using spies. @@ -3562,42 +4510,73 @@ RuboCop::Cop::RSpec::MessageExpectation::SUPPORTED_STYLES = T.let(T.unsafe(nil), # expect(foo).to receive(:bar) # do_something # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#33 class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#47 def message_expectation(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:54 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#56 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:50 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#52 def receive_message(param0); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#79 def error_message(receiver); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:73 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#75 def preferred_style?(expectation); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#69 def receive_message_matcher(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:38 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#38 RuboCop::Cop::RSpec::MessageSpies::MSG_HAVE_RECEIVED = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#36 RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/message_spies.rb:42 +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#44 +RuboCop::Cop::RSpec::MessageSpies::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/message_spies.rb#42 RuboCop::Cop::RSpec::MessageSpies::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array) +# Helper methods to find RSpec metadata. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#7 +module RuboCop::Cop::RSpec::Metadata + include ::RuboCop::RSpec::Language + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#26 + def metadata_in_block(param0, param1); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + def on_block(node); end + + # @raise [::NotImplementedError] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#43 + def on_metadata(_symbols, _pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#30 + def on_numblock(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#21 + def rspec_configure(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#13 + def rspec_metadata(param0 = T.unsafe(nil)); end +end + # Checks that the first argument to an example group is not empty. # # @example @@ -3615,13 +4594,13 @@ RuboCop::Cop::RSpec::MessageSpies::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array # describe "A feature example" do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/missing_example_group_argument.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#23 class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/missing_example_group_argument.rb:25 + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#26 def on_block(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/missing_example_group_argument.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#24 RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String) # Checks for multiple top-level example groups. @@ -3644,15 +4623,15 @@ RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), Str # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_describes.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#26 class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_describes.rb:30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#31 def on_top_level_group(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_describes.rb:28 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_describes.rb#29 RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # Checks if examples contain too many `expect` calls. @@ -3661,7 +4640,6 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # and works with `--auto-gen-config`. # # @example -# # # bad # describe UserCreator do # it 'builds a user' do @@ -3681,7 +4659,6 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # end # end # @example `aggregate_failures: true` (default) -# # # good - the cop ignores when RSpec aggregates failures # describe UserCreator do # it 'builds a user', :aggregate_failures do @@ -3690,7 +4667,6 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # end # end # @example `aggregate_failures: false` -# # # Detected as an offense # describe UserCreator do # it 'builds a user', aggregate_failures: false do @@ -3699,7 +4675,6 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # end # end # @example configuration -# # # .rubocop.yml # # RSpec/MultipleExpectations: # # Max: 2 @@ -3713,49 +4688,49 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) # end # @see http://betterspecs.org/#single Single expectation test # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:68 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#64 class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableMax - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#73 def aggregate_failures?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:87 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#83 def aggregate_failures_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:85 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#81 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:91 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#87 def on_block(node); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:107 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#103 def example_with_aggregate_failures?(example_node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:114 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#110 def find_aggregate_failures(example_node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:119 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#115 def find_expectation(node, &block); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:130 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#126 def flag_example(node, expectation_count:); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:141 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#137 def max_expectations; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:73 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#69 RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:71 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#67 RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_expectations.rb:74 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#70 RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc) # Checks if example groups contain too many `let` and `subject` calls. @@ -3810,7 +4785,6 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc) # end # end # @example when disabling AllowSubject configuration -# # # rubocop.yml # # RSpec/MultipleMemoizedHelpers: # # AllowSubject: false @@ -3825,7 +4799,6 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc) # let(:quux) { [] } # end # @example with Max configuration -# # # rubocop.yml # # RSpec/MultipleMemoizedHelpers: # # Max: 1 @@ -3836,47 +4809,48 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc) # let(:bar) { [] } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:86 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#84 class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableMax include ::RuboCop::Cop::RSpec::Variable - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:92 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#90 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:103 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#101 def on_new_investigation; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:112 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#110 def all_helpers(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:144 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#142 def allow_subject?; end # Returns the value of attribute example_group_memoized_helpers. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:110 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#108 def example_group_memoized_helpers; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:119 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#117 def helpers(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#138 def max; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:130 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#128 def variable_nodes(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb:90 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#88 RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) # Checks if an example group defines `subject` multiple times. # +# This cop does not support autocorrection in some cases. # The autocorrect behavior for this cop depends on the type of # duplication: # @@ -3893,7 +4867,6 @@ RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) # a `before` hook on their own # # @example -# # # bad # describe Foo do # subject(:user) { User.new } @@ -3906,32 +4879,46 @@ RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) # subject(:post) { Post.new } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:36 +# # bad (does not support autocorrection) +# describe Foo do +# subject!(:user) { User.new } +# subject!(:post) { Post.new } +# end +# +# # good +# describe Foo do +# before do +# User.new +# Post.new +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#51 class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#57 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#71 def autocorrect(corrector, subject); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#81 def named_subject?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#89 def remove_autocorrect(corrector, node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#85 def rename_autocorrect(corrector, node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/multiple_subjects.rb:40 +# source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_subjects.rb#55 RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) # Checks for explicitly referenced test subjects. @@ -3943,11 +4930,11 @@ RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) # should be the most important object in your tests so they deserve # a descriptive name. # -# This cop can be configured in your configuration using the -# `IgnoreSharedExamples` which will not report offenses for implicit +# This cop can be configured in your configuration using `EnforcedStyle`, +# and `IgnoreSharedExamples` which will not report offenses for implicit # subjects in shared example groups. # -# @example +# @example `EnforcedStyle: always` (default) # # bad # RSpec.describe User do # subject { described_class.new } @@ -3958,7 +4945,7 @@ RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) # end # # # good -# RSpec.describe Foo do +# RSpec.describe User do # subject(:user) { described_class.new } # # it 'is valid' do @@ -3967,35 +4954,117 @@ RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) # end # # # also good -# RSpec.describe Foo do +# RSpec.describe User do +# subject(:user) { described_class.new } +# +# it { is_expected.to be_valid } +# end +# @example `EnforcedStyle: named_only` +# # bad +# RSpec.describe User do +# subject(:user) { described_class.new } +# +# it 'is valid' do +# expect(subject.valid?).to be(true) +# end +# end +# +# # good +# RSpec.describe User do # subject(:user) { described_class.new } # +# it 'is valid' do +# expect(user.valid?).to be(true) +# end +# end +# +# # also good +# RSpec.describe User do +# subject { described_class.new } +# # it { is_expected.to be_valid } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:44 +# # acceptable +# RSpec.describe User do +# subject { described_class.new } +# +# it 'is valid' do +# expect(subject.valid?).to be(true) +# end +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#79 class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:48 + include ::RuboCop::Cop::ConfigurableEnforcedStyle + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#85 def example_or_hook_block?(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#95 + def on_block(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#89 + def shared_example?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#93 + def subject_usage(param0); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#118 + def allow_explicit_subject?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#122 + def always?; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#112 + def check_explicit_subject(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#145 + def find_subject(block_node); end + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#107 def ignored_shared_example?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:58 - def on_block(node); end + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#126 + def named_only?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:52 - def shared_example?(param0 = T.unsafe(nil)); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#137 + def nearest_subject(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:56 - def subject_usage(param0); end + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#131 + def subject_definition_is_named?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/named_subject.rb:45 +# source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#82 RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String) +# Helps to find namespace of the node. +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/namespace.rb#7 +module RuboCop::Cop::RSpec::Namespace + private + + # @example + # namespace(node) # => ['A', 'B', 'C'] + # @param node [RuboCop::AST::Node] + # @return [Array] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/namespace.rb#14 + def namespace(node); end +end + # Checks for nested example groups. # # This cop is configurable using the `Max` option @@ -4029,7 +5098,7 @@ RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String) # end # end # -# # better +# # good # context 'using some feature as an admin' do # let(:some) { :various } # let(:feature) { :setup } @@ -4045,76 +5114,173 @@ RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String) # it 'blah blah' # it 'yada yada' # end -# @example configuration -# -# # .rubocop.yml -# # RSpec/NestedGroups: -# # Max: 2 -# -# context 'when using some feature' do -# let(:some) { :various } -# let(:feature) { :setup } -# -# context 'when user is signed in' do -# let(:user) do -# UserCreate.call(user_attributes) +# @example `Max: 3` (default) +# # bad +# describe Foo do +# context 'foo' do +# context 'bar' do +# context 'baz' do # flagged by rubocop # end -# -# let(:user_attributes) do -# { -# name: 'John', -# age: 22, -# role: role -# } # end -# -# context 'when user is an admin' do # flagged by rubocop -# let(:role) { 'admin' } -# -# it 'blah blah' -# it 'yada yada' +# end +# end +# @example `Max: 2` +# # bad +# describe Foo do +# context 'foo' do +# context 'bar' do # flagged by rubocop +# context 'baz' do # flagged by rubocop +# end +# end +# end +# end +# @example `AllowedGroups: [] (default)` +# describe Foo do # <-- nested groups 1 +# context 'foo' do # <-- nested groups 2 +# context 'bar' do # <-- nested groups 3 +# end +# end +# end +# @example `AllowedGroups: [path]` +# describe Foo do # <-- nested groups 1 +# path '/foo' do # <-- nested groups 1 (not counted) +# context 'bar' do # <-- nested groups 2 # end # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:88 +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#94 class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableMax include ::RuboCop::Cop::RSpec::TopLevelGroup - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:100 + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#106 def on_top_level_group(node); end private - # @yield [node, nesting] + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#156 + def allowed_groups; end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#133 + def count_up_nesting?(node, example_group); end + + # @yield [node, nesting] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#118 + def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#143 + def max_nesting; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#147 + def max_nesting_config; end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#139 + def message(nesting); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#100 +RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#102 +RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#98 +RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) + +# Checks if an example contains any expectation. +# +# All RSpec's example and expectation methods are covered by default. +# If you are using your own custom methods, +# add the following configuration: +# +# RSpec: +# Language: +# Examples: +# Regular: +# - custom_it +# Expectations: +# - custom_expect +# +# This cop can be customized with an allowed expectation methods pattern +# with an `AllowedPatterns` option. ^expect_ and ^assert_ are allowed +# by default. +# +# @example +# # bad +# it do +# a? +# end +# +# # good +# it do +# expect(a?).to be(true) +# end +# @example `AllowedPatterns` configuration +# +# # .rubocop.yml +# # RSpec/NoExpectationExample: +# # AllowedPatterns: +# # - ^expect_ +# # - ^assert_ +# @example +# # bad +# it do +# not_expect_something +# end +# +# # good +# it do +# expect_something +# end +# +# it do +# assert_something +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#58 +class RuboCop::Cop::RSpec::NoExpectationExample < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::RSpec::SkipOrPending + + # @param node [RuboCop::AST::Node] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#77 + def includes_expectation?(param0); end + + # @param node [RuboCop::AST::Node] + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:112 - def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#87 + def includes_skip_example?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:127 - def max_nesting; end + # @param node [RuboCop::AST::BlockNode] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#92 + def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:131 - def max_nesting_config; end + # @param node [RuboCop::AST::BlockNode] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#92 + def on_numblock(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:123 - def message(nesting); end + # @param node [RuboCop::AST::Node] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#67 + def regular_or_focused_example?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:94 -RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:96 -RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/nested_groups.rb:92 -RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-rspec//lib/rubocop/cop/rspec/no_expectation_example.rb#62 +RuboCop::Cop::RSpec::NoExpectationExample::MSG = T.let(T.unsafe(nil), String) # Checks for consistent method usage for negating expectations. # # @example `EnforcedStyle: not_to` (default) -# # # bad # it '...' do # expect(false).to_not be_true @@ -4125,7 +5291,6 @@ RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) # expect(false).not_to be_true # end # @example `EnforcedStyle: to_not` -# # # bad # it '...' do # expect(false).not_to be_true @@ -4136,27 +5301,27 @@ RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String) # expect(false).to_not be_true # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/not_to_not.rb:31 +# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#30 class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/not_to_not.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#38 def not_to_not_offense(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/not_to_not.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#40 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/not_to_not.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#50 def message(_node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/not_to_not.rb:35 +# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#34 RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/not_to_not.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/not_to_not.rb#35 RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks if there is a let/subject that overwrites an existing one. @@ -4178,29 +5343,29 @@ RuboCop::Cop::RSpec::NotToNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # let(:baz) { baz } # let!(:other) { other } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#25 class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:31 + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#32 def first_argument_name(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:33 + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#34 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:28 + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#29 def setup?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#62 def common_setup?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#47 def find_duplicates(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/overwriting_setup.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/overwriting_setup.rb#26 RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String) # Checks for any pending or skipped examples. @@ -4232,34 +5397,130 @@ RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String) # describe MyClass do # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:34 +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#35 class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:64 + include ::RuboCop::Cop::RSpec::SkipOrPending + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#56 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#47 def pending_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:52 - def skip_or_pending?(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:38 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#41 def skippable?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:44 - def skipped_in_metadata?(param0 = T.unsafe(nil)); end - private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#64 def skipped?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/pending.rb:35 +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending.rb#38 RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String) +# Checks for pending or skipped examples without reason. +# +# @example +# # bad +# pending 'does something' do +# end +# +# # bad +# it 'does something', :pending do +# end +# +# # bad +# it 'does something' do +# pending +# end +# +# # bad +# xdescribe 'something' do +# end +# +# # bad +# skip 'does something' do +# end +# +# # bad +# it 'does something', :skip do +# end +# +# # bad +# it 'does something' do +# skip +# end +# +# # bad +# it 'does something' +# +# # good +# it 'does something' do +# pending 'reason' +# end +# +# # good +# it 'does something' do +# skip 'reason' +# end +# +# # good +# it 'does something', pending: 'reason' do +# end +# +# # good +# it 'does something', skip: 'reason' do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#59 +class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#90 + def on_send(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#63 + def pending_by_example_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#68 + def pending_by_metadata_without_reason?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#78 + def skipped_by_example_group_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#73 + def skipped_by_example_method?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#86 + def skipped_by_metadata_without_reason?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#100 + def pending_by_pending_step_without_reason?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#104 + def pending_without_reason?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#110 + def skipped_by_skip_step_without_reason?(node); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#114 + def skipped_without_reason?(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#60 +RuboCop::Cop::RSpec::PendingWithoutReason::MSG = T.let(T.unsafe(nil), String) + # Prefer using predicate matcher over using predicate method directly. # # RSpec defines magic matchers for predicate methods. @@ -4295,17 +5556,17 @@ RuboCop::Cop::RSpec::Pending::MSG = T.let(T.unsafe(nil), String) # # good - the above code is rewritten to it by this cop # expect(foo.something?).to be_truthy # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:279 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#280 class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::InflectedHelper include ::RuboCop::Cop::RSpec::ExplicitHelper extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:294 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#297 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:285 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#288 def on_send(node); end private @@ -4316,7 +5577,7 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base # foo 1, 2 # ^^^^^ # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:304 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#307 def args_loc(send_node); end # returns block location with whitespace @@ -4325,17 +5586,19 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base # foo { bar } # ^^^^^^^^ # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/predicate_matcher.rb:314 + # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#317 def block_loc(send_node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb:6 +# source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#286 +RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#6 module RuboCop::Cop::RSpec::Rails; end # Checks that tests use RSpec `before` hook over Rails `setup` method. # # @example -# # # bad # setup do # allow(foo).to receive(:bar) @@ -4346,18 +5609,18 @@ module RuboCop::Cop::RSpec::Rails; end # allow(foo).to receive(:bar) # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb:21 +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#20 class RuboCop::Cop::RSpec::Rails::AvoidSetupHook < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb:33 + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#32 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#26 def setup_call(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#23 RuboCop::Cop::RSpec::Rails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String) # Checks that tests use `have_http_status` instead of equality matchers. @@ -4369,24 +5632,137 @@ RuboCop::Cop::RSpec::Rails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String) # # good # expect(response).to have_http_status(200) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/have_http_status.rb:16 -class RuboCop::Cop::RSpec::Rails::HaveHttpStatus < ::RuboCop::Cop::RSpec::Base +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#16 +class RuboCop::Cop::RSpec::Rails::HaveHttpStatus < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/have_http_status.rb:24 + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#27 def match_status(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/have_http_status.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#37 def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/rails/have_http_status.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#19 RuboCop::Cop::RSpec::Rails::HaveHttpStatus::MSG = T.let(T.unsafe(nil), String) -# Check for `once` and `twice` receive counts matchers usage. +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#24 +RuboCop::Cop::RSpec::Rails::HaveHttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#23 +RuboCop::Cop::RSpec::Rails::HaveHttpStatus::RUNNERS = T.let(T.unsafe(nil), Set) + +# Identifies redundant spec type. +# +# After setting up rspec-rails, you will have enabled +# `config.infer_spec_type_from_file_location!` by default in +# spec/rails_helper.rb. This cop works in conjunction with this config. +# If you disable this config, disable this cop as well. # # @example +# # bad +# # spec/models/user_spec.rb +# RSpec.describe User, type: :model do +# end +# +# # good +# # spec/models/user_spec.rb +# RSpec.describe User do +# end +# +# # good +# # spec/models/user_spec.rb +# RSpec.describe User, type: :common do +# end +# @example `Inferences` configuration +# # .rubocop.yml +# # RSpec/Rails/InferredSpecType: +# # Inferences: +# # services: service +# +# # bad +# # spec/services/user_spec.rb +# RSpec.describe User, type: :service do +# end +# +# # good +# # spec/services/user_spec.rb +# RSpec.describe User do +# end +# +# # good +# # spec/services/user_spec.rb +# RSpec.describe User, type: :common do +# end +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#54 +class RuboCop::Cop::RSpec::Rails::InferredSpecType < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + # @param node [RuboCop::AST::BlockNode] + # @return [RuboCop::AST::PairNode, nil] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#79 + def describe_with_type(param0 = T.unsafe(nil)); end + + # @param node [RuboCop::AST::BlockNode] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#60 + def on_block(node); end + + # @param node [RuboCop::AST::BlockNode] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#60 + def on_numblock(node); end + + private + + # @param corrector [RuboCop::AST::Corrector] + # @param node [RuboCop::AST::Node] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#91 + def autocorrect(corrector, node); end + + # @param node [RuboCop::AST::PairNode] + # @return [RuboCop::AST::Node] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#111 + def detect_removable_node(node); end + + # @return [String] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#120 + def file_path; end + + # @return [Hash] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#138 + def inferences; end + + # @param node [RuboCop::AST::PairNode] + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#126 + def inferred_type?(node); end + + # @return [Symbol, nil] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#131 + def inferred_type_from_file_path; end + + # @param node [RuboCop::AST::Node] + # @return [Parser::Source::Range] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#97 + def remove_range(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#57 +RuboCop::Cop::RSpec::Rails::InferredSpecType::MSG = T.let(T.unsafe(nil), String) + +# Check for `once` and `twice` receive counts matchers usage. # +# @example # # bad # expect(foo).to receive(:bar).exactly(1).times # expect(foo).to receive(:bar).exactly(2).times @@ -4403,76 +5779,74 @@ RuboCop::Cop::RSpec::Rails::HaveHttpStatus::MSG = T.let(T.unsafe(nil), String) # expect(foo).to receive(:bar).at_most(:once) # expect(foo).to receive(:bar).at_most(:twice).times # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#25 class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#40 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#33 def receive_counts(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:39 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#38 def stub?(param0); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:56 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#55 def autocorrect(corrector, node, range); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:73 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#72 def matcher_for(method, count); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#64 def message_for(node, source); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:82 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#81 def range(node, offending_node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#28 RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_counts.rb:31 +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_counts.rb#30 RuboCop::Cop::RSpec::ReceiveCounts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Prefer `not_to receive(...)` over `receive(...).never`. # # @example -# # # bad # expect(foo).to receive(:bar).never # # # good # expect(foo).not_to receive(:bar) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_never.rb:16 +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#15 class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_never.rb:22 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#21 def method_on_stub?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_never.rb:24 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#23 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_never.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#33 def autocorrect(corrector, node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_never.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#17 RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/receive_never.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/receive_never.rb#18 RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for repeated description strings in example groups. # # @example -# # # bad # RSpec.describe User do # it 'is valid' do @@ -4506,23 +5880,29 @@ RuboCop::Cop::RSpec::ReceiveNever::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_description.rb:43 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#42 class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_description.rb:46 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#45 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_description.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#88 def example_signature(example); end + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#92 + def its_signature(example); end + # Select examples in the current scope with repeated description strings # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_description.rb:57 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#60 def repeated_descriptions(node); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#74 + def repeated_its(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_description.rb:44 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_description.rb#43 RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String) # Check for repeated examples within example groups. @@ -4537,27 +5917,26 @@ RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String) # expect(user).to be_valid # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#18 class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example.rb:21 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#21 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#41 def example_signature(example); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example.rb:31 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#31 def repeated_examples(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example.rb#19 RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String) # Check for repeated describe and context block body. # # @example -# # # bad # describe 'cool feature x' do # it { cool_predicate } @@ -4594,48 +5973,47 @@ RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String) # it { is_expected.to respond_to :each } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:46 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#45 class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#57 def body(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:61 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#60 def const_arg(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#54 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:68 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#67 def on_begin(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:50 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#49 def several_example_groups?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:64 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#63 def skip_or_pending?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:89 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#88 def add_repeated_lines(groups); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:98 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#97 def message(group, repeats); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:78 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#77 def repeated_group_bodies(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:94 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#93 def signature_keys(group); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_body.rb:47 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_body.rb#46 RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String) # Check for repeated example group descriptions. # # @example -# # # bad # describe 'cool feature' do # # example group @@ -4672,42 +6050,41 @@ RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String # # example group # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:46 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#45 class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#54 def doc_string_and_metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#64 def empty_description?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#66 def on_begin(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:50 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#49 def several_example_groups?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#59 def skip_or_pending?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:89 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#88 def add_repeated_lines(groups); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:94 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#93 def message(group, repeats); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#76 def repeated_group_descriptions(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_example_group_description.rb:47 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_example_group_description.rb#46 RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String) # Check for repeated include of shared examples. # # @example -# # # bad # describe 'foo' do # include_examples 'cool stuff' @@ -4747,41 +6124,41 @@ RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), # it_should_behave_like 'a goose' # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:49 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#48 class RuboCop::Cop::RSpec::RepeatedIncludeExample < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:59 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#58 def include_examples?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#66 def on_begin(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:54 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#53 def several_include_examples?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:63 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#62 def shared_examples_name(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:92 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#91 def add_repeated_lines(items); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:87 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#86 def literal_include_examples?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:101 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#100 def message(item, repeats); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#76 def repeated_include_examples(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:97 + # source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#96 def signature_keys(item); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/repeated_include_example.rb:50 +# source://rubocop-rspec//lib/rubocop/cop/rspec/repeated_include_example.rb#49 RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String) # Checks for consistent style of stub's return setting. @@ -4813,127 +6190,127 @@ RuboCop::Cop::RSpec::RepeatedIncludeExample::MSG = T.let(T.unsafe(nil), String) # # also good as the returned value is dynamic # allow(Foo).to receive(:bar).and_return(bar.baz) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:36 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#36 class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#51 def and_return_value(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#45 def contains_stub?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:62 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#62 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#55 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#48 def stub_with_block?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:71 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#71 def check_and_return_call(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:81 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#81 def check_block_body(block); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:90 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#90 def dynamic?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:95 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#95 class RuboCop::Cop::RSpec::ReturnFromStub::AndReturnCallCorrector # @return [AndReturnCallCorrector] a new instance of AndReturnCallCorrector # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:96 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#96 def initialize(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:102 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#102 def call(corrector); end private # Returns the value of attribute arg. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 def arg; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:133 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#133 def hash_without_braces?; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:113 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#113 def heredoc?; end # Returns the value of attribute node. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 def node; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:117 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#117 def range; end # Returns the value of attribute receiver. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:111 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#111 def receiver; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:125 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#125 def replacement; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:139 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#139 class RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector # @return [BlockBodyCorrector] a new instance of BlockBodyCorrector # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:140 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#140 def initialize(block); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:146 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#146 def call(corrector); end private # Returns the value of attribute block. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:158 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 def block; end # Returns the value of attribute body. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:158 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 def body; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:160 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#160 def heredoc?; end # Returns the value of attribute node. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:158 + # source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#158 def node; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:164 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#164 RuboCop::Cop::RSpec::ReturnFromStub::BlockBodyCorrector::NULL_BLOCK_BODY = T.let(T.unsafe(nil), T.untyped) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:40 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#40 RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:41 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#41 RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/return_from_stub.rb:42 +# source://rubocop-rspec//lib/rubocop/cop/rspec/return_from_stub.rb#42 RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for let scattered across the example group. @@ -4959,23 +6336,20 @@ RuboCop::Cop::RSpec::ReturnFromStub::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # let!(:baz) { 3 } # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_let.rb:29 +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#29 class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_let.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#34 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_let.rb:42 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#42 def check_let_declarations(body); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_let.rb:57 - def find_first_let(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_let.rb:32 +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_let.rb#32 RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) # Checks for setup scattered across multiple hooks in an example group. @@ -4997,19 +6371,21 @@ RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_setup.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#25 class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_setup.rb:57 - def lines_msg(numbers); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_setup.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#29 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_setup.rb:44 + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#59 + def lines_msg(numbers); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#46 def repeated_hooks(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/scattered_setup.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#26 RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String) # Checks for proper shared_context and shared_examples usage. @@ -5058,38 +6434,38 @@ RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:53 +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#53 class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:64 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#64 def context?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#60 def examples?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:82 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#82 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:76 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#76 def shared_context(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:79 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#79 def shared_example(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:98 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#98 def context_with_only_examples(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:102 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#102 def examples_with_only_context(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:57 +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#57 RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_context.rb:56 +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_context.rb#56 RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String) # Enforces use of string to titleize shared examples. @@ -5109,45 +6485,45 @@ RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String) # shared_examples_for 'foo bar baz' # include_examples 'foo bar baz' # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#23 class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#32 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#27 def shared_examples(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:45 +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#45 class RuboCop::Cop::RSpec::SharedExamples::Checker # @return [Checker] a new instance of Checker # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:51 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#51 def initialize(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#55 def message; end # Returns the value of attribute node. # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#49 def node; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:59 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#59 def preferred_style; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#66 def symbol; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:70 + # source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#70 def wrap_with_single_quotes(string); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/shared_examples.rb:46 +# source://rubocop-rspec//lib/rubocop/cop/rspec/shared_examples.rb#46 RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String) # Checks that chains of messages contain more than one element. @@ -5163,57 +6539,114 @@ RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String) # allow(foo).to receive(:bar, :baz) # allow(foo).to receive("bar.baz") # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:19 +# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#19 class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#27 def message_chain(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#34 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#32 def single_key_hash?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#49 def autocorrect(corrector, node, method, arg); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:77 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#77 def autocorrect_array_arg(corrector, arg); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:69 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#69 def autocorrect_hash_arg(corrector, arg); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:83 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#83 def key_to_arg(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:88 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#88 def replacement(method); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:65 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#65 def single_element_array?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:55 + # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#55 def valid_usage?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#22 RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/single_argument_message_chain.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#24 RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Checks that message expectations do not have a configured response. +# Helps check offenses with variable definitions +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#7 +module RuboCop::Cop::RSpec::SkipOrPending + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#19 + def skip_or_pending?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/skip_or_pending.rb#11 + def skipped_in_metadata?(param0 = T.unsafe(nil)); end +end + +# Sort RSpec metadata alphabetically. # # @example +# # bad +# describe 'Something', :b, :a +# context 'Something', foo: 'bar', baz: true +# it 'works', :b, :a, foo: 'bar', baz: true +# +# # good +# describe 'Something', :a, :b +# context 'Something', baz: true, foo: 'bar' +# it 'works', :a, :b, baz: true, foo: 'bar' +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#19 +class RuboCop::Cop::RSpec::SortMetadata < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::Metadata + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#26 + def on_metadata(symbols, pairs); end + + private + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#37 + def crime_scene(symbols, pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#46 + def replacement(symbols, pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#54 + def sort_pairs(pairs); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#58 + def sort_symbols(symbols); end + + # @return [Boolean] + # + # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#50 + def sorted?(symbols, pairs); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#24 +RuboCop::Cop::RSpec::SortMetadata::MSG = T.let(T.unsafe(nil), String) + +# Checks that message expectations do not have a configured response. # +# @example # # bad # expect(foo).to receive(:bar).with(42).and_return("hello world") # @@ -5221,9 +6654,9 @@ RuboCop::Cop::RSpec::SingleArgumentMessageChain::RESTRICT_ON_SEND = T.let(T.unsa # allow(foo).to receive(:bar).with(42).and_return("hello world") # expect(foo).to receive(:bar).with(42) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:17 +# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#16 class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:43 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#42 def configured_response?(param0 = T.unsafe(nil)); end # Match expectation @@ -5237,7 +6670,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] expectation, method name, matcher # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:62 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#61 def expectation(param0 = T.unsafe(nil)); end # Match matcher with a configured response in block-pass @@ -5251,7 +6684,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:130 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#129 def matcher_with_blockpass(param0 = T.unsafe(nil)); end # Match matcher with a configured response @@ -5265,7 +6698,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:82 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#81 def matcher_with_configured_response(param0 = T.unsafe(nil)); end # Match matcher with a configured response defined as a hash @@ -5277,7 +6710,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:109 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#108 def matcher_with_hash(param0 = T.unsafe(nil)); end # Match matcher with a return block @@ -5287,7 +6720,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [RuboCop::AST::Node] matcher # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:94 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#93 def matcher_with_return_block(param0 = T.unsafe(nil)); end # Match message expectation matcher @@ -5301,31 +6734,33 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @return [Array] matching nodes # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#34 def message_expectation?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:137 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#138 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:154 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#155 def msg(method_name); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:143 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#144 def on_expectation(expectation, method_name, matcher); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:160 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#161 def replacement(method_name); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/stubbed_mock.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#17 RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#136 +RuboCop::Cop::RSpec::StubbedMock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Ensure that subject is defined using subject helper. # # @example -# # # bad # let(:subject) { foo } # let!(:subject) { foo } @@ -5339,24 +6774,24 @@ RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String) # # good # subject(:test_subject) { foo } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_declaration.rb:23 +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#22 class RuboCop::Cop::RSpec::SubjectDeclaration < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_declaration.rb:28 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#27 def offensive_subject_declaration?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_declaration.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#31 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_declaration.rb:41 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#40 def message_for(offense); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_declaration.rb:24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#23 RuboCop::Cop::RSpec::SubjectDeclaration::MSG_LET = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_declaration.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_declaration.rb#24 RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), String) # Checks for stubbed test subjects. @@ -5398,16 +6833,16 @@ RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), St # end # end # @see https://robots.thoughtbot.com/don-t-stub-the-system-under-test -# @see https://samphippen.com/introducing-rspec-smells-and-where-to-find-them#smell-1-stubject +# @see https://penelope.zone/2015/12/27/introducing-rspec-smells-and-where-to-find-them.html#smell-1-stubjec # @see https://github.com/rubocop-hq/rspec-style-guide#dont-stub-subject # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:51 +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#51 class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup # Find a memoized helper # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:81 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#81 def let?(param0 = T.unsafe(nil)); end # Match `allow` and `expect(...).to receive` @@ -5420,13 +6855,13 @@ class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base # expect(foo).to receive(:bar).with(1) # expect(foo).to receive(:bar).with(1).and_return(2) # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:98 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#98 def message_expectation?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:110 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#110 def message_expectation_matcher?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:116 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#116 def on_top_level_group(node); end # Find a named or unnamed subject definition @@ -5442,52 +6877,52 @@ class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base # @param node [RuboCop::AST::Node] # @yield [Symbol] subject name # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#72 def subject?(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:127 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#127 def find_all_explicit(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:141 + # source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#141 def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/subject_stub.rb:54 +# source://rubocop-rspec//lib/rubocop/cop/rspec/subject_stub.rb#54 RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String) # Helper methods for top level example group cops # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:7 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#7 module RuboCop::Cop::RSpec::TopLevelGroup extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:10 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#10 def on_new_investigation; end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:19 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#19 def top_level_groups; end private # Dummy methods to be overridden in the consumer # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#27 def on_top_level_example_group(_node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#29 def on_top_level_group(_node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:48 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#48 def root_node; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:31 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#31 def top_level_group?(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/top_level_group.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#35 def top_level_nodes(node); end end @@ -5498,7 +6933,6 @@ end # to `raise_error` # # @example -# # # bad # expect { # raise StandardError.new('error') @@ -5519,45 +6953,47 @@ end # # expect { do_something }.not_to raise_error # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:33 +# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#33 class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#38 + def empty_raise_error_or_exception(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#47 + def on_send(node); end + + private + # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:57 + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#59 def block_with_args?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:53 + # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#55 def empty_exception_matcher?(node); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:38 - def empty_raise_error_or_exception(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:47 - def on_send(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:34 +# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#34 RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/unspecified_exception.rb:35 +# source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#35 RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Helps check offenses with variable definitions # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/variable.rb:7 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#7 module RuboCop::Cop::RSpec::Variable extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/variable.rb:14 + # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#14 def variable_definition?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/variable.rb:11 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#11 RuboCop::Cop::RSpec::Variable::Helpers = RuboCop::RSpec::Language::Helpers -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/mixin/variable.rb:10 +# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/variable.rb#10 RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects # Checks that memoized helpers names are symbols or strings. @@ -5579,42 +7015,42 @@ RuboCop::Cop::RSpec::Variable::Subjects = RuboCop::RSpec::Language::Subjects # subject('user') { create_user } # let('user_name') { 'Adam' } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#26 class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RSpec::Variable extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#33 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:47 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#48 def correct_variable(variable); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:63 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#64 def string?(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:58 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#59 def style_violation?(variable); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:67 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#68 def symbol?(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_definition.rb:30 +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_definition.rb#31 RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String) # Checks that memoized helper names use the configured style. # -# Variables can be excluded from checking using the `IgnoredPatterns` +# Variables can be excluded from checking using the `AllowedPatterns` # option. # # @example EnforcedStyle: snake_case (default) @@ -5633,19 +7069,18 @@ RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String) # # good # subject(:userName1) { 'Adam' } # let(:userName2) { 'Adam' } -# @example IgnoredPatterns configuration -# +# @example AllowedPatterns configuration # # rubocop.yml # # RSpec/VariableName: # # EnforcedStyle: snake_case -# # IgnoredPatterns: +# # AllowedPatterns: # # - ^userFood # @example -# # okay because it matches the `^userFood` regex in `IgnoredPatterns` +# # okay because it matches the `^userFood` regex in `AllowedPatterns` # subject(:userFood_1) { 'spaghetti' } # let(:userFood_2) { 'fettuccine' } # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_name.rb:42 +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#41 class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting @@ -5653,16 +7088,16 @@ class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::AllowedPattern include ::RuboCop::Cop::RSpec::Variable - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_name.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#48 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_name.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#59 def message(style); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/variable_name.rb:47 +# source://rubocop-rspec//lib/rubocop/cop/rspec/variable_name.rb#46 RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) # Checks for consistent verified double reference style. @@ -5700,35 +7135,35 @@ RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) # end # @see https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:43 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#43 class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:74 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#74 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:66 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#66 def verified_double(param0 = T.unsafe(nil)); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:101 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#101 def correct_style(violation); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:92 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#92 def opposing_style?(class_reference); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:47 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#47 RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:60 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#60 RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_double_reference.rb:49 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#49 RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Prefer using verifying doubles over normal doubles. @@ -5750,26 +7185,26 @@ RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe( # end # @see https://relishapp.com/rspec/rspec-mocks/docs/verifying-doubles # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_doubles.rb:25 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#26 class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_doubles.rb:34 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#35 def on_send(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_doubles.rb:30 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#31 def unverified_double(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_doubles.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#46 def symbol?(name); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_doubles.rb:26 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#27 RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/verified_doubles.rb:27 +# source://rubocop-rspec//lib/rubocop/cop/rspec/verified_doubles.rb#28 RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks void `expect()`. @@ -5781,35 +7216,35 @@ RuboCop::Cop::RSpec::VerifiedDoubles::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # good # expect(something).to be(1) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:14 +# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#15 class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:20 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#21 def expect?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:25 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#26 def expect_block?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:35 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#36 def on_block(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#30 def on_send(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:43 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#44 def check_expect(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:49 + # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#50 def void?(expect); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:15 +# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#16 RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/void_expect.rb:17 +# source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#18 RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for calling a block within a stub. @@ -5821,155 +7256,78 @@ RuboCop::Cop::RSpec::VoidExpect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # expect(foo).to receive(:bar).and_yield(1) # -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:14 +# source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#15 class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:24 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#25 def block_arg(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#28 def block_call?(param0 = T.unsafe(nil), param1); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:21 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#22 def method_on_stub?(param0); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:29 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#30 def on_block(node); end private - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:45 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#46 def autocorrect(corrector, node, range); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:60 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#61 def block_range(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:52 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#53 def calling_block?(node, block); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:72 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#73 def convert_block_to_yield(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:64 + # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#65 def generate_replacement(node); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/cop/rspec/yield.rb:18 +# source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#19 RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String) module RuboCop::Cop::Style; end -# Checks for trailing comma in argument lists. -# The supported styles are: -# -# * `consistent_comma`: Requires a comma after the last argument, -# for all parenthesized method calls with arguments. -# * `comma`: Requires a comma after the last argument, but only for -# parenthesized method calls where each argument is on its own line. -# * `no_comma`: Requires that there is no comma after the last -# argument. -# -# @example EnforcedStyleForMultiline: consistent_comma -# # bad -# method(1, 2,) -# -# # good -# method(1, 2) -# -# # good -# method( -# 1, 2, -# 3, -# ) -# -# # good -# method( -# 1, 2, 3, -# ) -# -# # good -# method( -# 1, -# 2, -# ) -# @example EnforcedStyleForMultiline: comma -# # bad -# method(1, 2,) -# -# # good -# method(1, 2) -# -# # bad -# method( -# 1, 2, -# 3, -# ) -# -# # good -# method( -# 1, 2, -# 3 -# ) -# -# # bad -# method( -# 1, 2, 3, -# ) -# -# # good -# method( -# 1, 2, 3 -# ) -# -# # good -# method( -# 1, -# 2, -# ) -# @example EnforcedStyleForMultiline: no_comma (default) -# # bad -# method(1, 2,) -# -# # good -# method(1, 2) -# -# # good -# method( -# 1, -# 2 -# ) class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb:91 + # source://rubocop/1.42.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb:91 + # source://rubocop/1.42.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 def on_send(node); end class << self - # source://rubocop-rspec-2.12.1/lib/rubocop-rspec.rb:51 + # source://rubocop-rspec//lib/rubocop-rspec.rb#61 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:5 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#5 RuboCop::NodePattern = RuboCop::AST::NodePattern -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:6 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/version.rb:4 +# RuboCop RSpec project namespace +# +# source://rubocop-rspec//lib/rubocop/rspec.rb#5 module RuboCop::RSpec; end # Shared behavior for aligning braces for single line lets # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:6 +# source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#6 class RuboCop::RSpec::AlignLetBrace include ::RuboCop::RSpec::Language include ::RuboCop::PathUtil @@ -5977,46 +7335,49 @@ class RuboCop::RSpec::AlignLetBrace # @return [AlignLetBrace] a new instance of AlignLetBrace # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:10 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#10 def initialize(root, token); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:21 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#21 def indent_for(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:15 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#15 def offending_tokens; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:43 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#43 def adjacent_let_chunks; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:35 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#35 def let_group_for(let); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:27 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#27 def let_token(node); end # Returns the value of attribute root. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:60 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#60 def root; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:53 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#53 def single_line_lets; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:31 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#31 def target_column_for(let); end # Returns the value of attribute token. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/align_let_brace.rb:60 + # source://rubocop-rspec//lib/rubocop/rspec/align_let_brace.rb#60 def token; end end +# source://rubocop-rspec//lib/rubocop/rspec.rb#7 +RuboCop::RSpec::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) + # Wrapper for RSpec DSL methods # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:6 +# source://rubocop-rspec//lib/rubocop/rspec/concept.rb#6 class RuboCop::RSpec::Concept include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros @@ -6024,39 +7385,39 @@ class RuboCop::RSpec::Concept # @return [Concept] a new instance of Concept # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:11 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#11 def initialize(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:15 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#15 def ==(other); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:15 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#15 def eql?(other); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:21 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#21 def hash; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:25 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#25 def to_node; end protected # Returns the value of attribute node. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/concept.rb:31 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#31 def node; end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:5 +# source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#5 module RuboCop::RSpec::Corrector; end # Helper methods to move a node # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#7 class RuboCop::RSpec::Corrector::MoveNode include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::FinalEndLocation @@ -6064,94 +7425,94 @@ class RuboCop::RSpec::Corrector::MoveNode # @return [MoveNode] a new instance of MoveNode # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:14 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#14 def initialize(node, corrector, processed_source); end # Returns the value of attribute corrector. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:12 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 def corrector; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:27 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#27 def move_after(other); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:20 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#20 def move_before(other); end # Returns the value of attribute original. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:12 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 def original; end # Returns the value of attribute processed_source. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:12 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#12 def processed_source; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:40 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#40 def node_range(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:44 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#44 def node_range_with_surrounding_space(node); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/corrector/move_node.rb:36 + # source://rubocop-rspec//lib/rubocop/rspec/corrector/move_node.rb#36 def source(node); end end # Wrapper for RSpec examples # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/example.rb#7 class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:28 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#28 def definition; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:16 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#16 def doc_string; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:8 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#8 def extract_doc_string(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:14 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#14 def extract_implementation(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:11 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#11 def extract_metadata(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:24 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#24 def implementation; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example.rb:20 + # source://rubocop-rspec//lib/rubocop/rspec/example.rb#20 def metadata; end end # Wrapper for RSpec example groups # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:12 +# source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#12 class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:30 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#30 def examples; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:36 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#36 def hooks; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:22 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#22 def lets; end # Detect if the node is an example group or shared example # # Selectors which indicate that we should stop searching # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:13 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#13 def scope_change?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:26 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#26 def subjects; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:58 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#58 def find_all(node, predicate); end # Recursively search for predicate within the current scope @@ -6162,98 +7523,101 @@ class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept # @param predicate [Symbol] method to call with node as argument # @return [Array] discovered nodes # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/example_group.rb:52 + # source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#52 def find_all_in_scope(node, predicate); end end # RuboCop FactoryBot project namespace # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot/language.rb:5 +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot/language.rb#5 module RuboCop::RSpec::FactoryBot class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot.rb:55 + # source://rubocop-rspec//lib/rubocop/rspec/factory_bot.rb#55 def attribute_defining_methods; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot.rb:59 + # source://rubocop-rspec//lib/rubocop/rspec/factory_bot.rb#59 def reserved_methods; end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot.rb#7 RuboCop::RSpec::FactoryBot::ATTRIBUTE_DEFINING_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot.rb:30 +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot.rb#30 RuboCop::RSpec::FactoryBot::DEFINITION_PROXY_METHODS = T.let(T.unsafe(nil), Array) # Contains node matchers for common FactoryBot DSL. # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot/language.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot/language.rb#7 module RuboCop::RSpec::FactoryBot::Language extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot/language.rb:11 + # source://rubocop-rspec//lib/rubocop/rspec/factory_bot/language.rb#31 def factory_bot?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot.rb:43 +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot/language.rb#10 +RuboCop::RSpec::FactoryBot::Language::METHODS = T.let(T.unsafe(nil), Set) + +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot.rb#43 RuboCop::RSpec::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/factory_bot.rb:15 +# source://rubocop-rspec//lib/rubocop/rspec/factory_bot.rb#15 RuboCop::RSpec::FactoryBot::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array) # Wrapper for RSpec hook # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/hook.rb#7 class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:24 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#24 def example?; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:8 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#8 def extract_metadata(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:18 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#18 def knowable_scope?; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:38 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#38 def metadata; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:14 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#14 def name; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:28 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#28 def scope; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:74 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#74 def scope_argument; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:70 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#70 def scope_name; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:51 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#51 def transform_metadata(meta); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:66 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#66 def transform_true(node); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/hook.rb:47 + # source://rubocop-rspec//lib/rubocop/rspec/hook.rb#47 def valid_scope?(node); end end # Because RuboCop doesn't yet support plugins, we have to monkey patch in a # bit of our configuration. # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/inject.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/inject.rb#7 module RuboCop::RSpec::Inject class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/inject.rb:8 + # source://rubocop-rspec//lib/rubocop/rspec/inject.rb#8 def defaults!; end end end @@ -6268,274 +7632,286 @@ end # In addition to providing useful matchers, this class is responsible for # using the configured aliases. # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language/node_pattern.rb:5 +# source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#5 module RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros extend ::RuboCop::RSpec::Language::NodePattern - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:41 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#41 def example?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:26 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#26 def example_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:36 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#36 def example_group_with_body?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:44 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#44 def hook?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:55 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#60 def include?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:47 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#52 def let?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:23 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#23 def rspec?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:29 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#29 def shared_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:32 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#32 def spec_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:63 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#68 def subject?(param0 = T.unsafe(nil)); end class << self # Returns the value of attribute config. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:19 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#19 def config; end # Sets the attribute config # # @param value the value to set the attribute config to. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:19 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#19 def config=(_arg0); end end end # This is used in Dialect and DescribeClass cops to detect RSpec blocks. # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:185 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#196 module RuboCop::RSpec::Language::ALL class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:186 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#197 def all(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:65 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#70 module RuboCop::RSpec::Language::ExampleGroups class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:67 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#72 def all(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:77 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#82 def focused(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:73 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#78 def regular(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:81 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#86 def skipped(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:87 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#92 module RuboCop::RSpec::Language::Examples class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:89 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#94 def all(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:100 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#105 def focused(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:108 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#113 def pending(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:96 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#101 def regular(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:104 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#109 def skipped(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:114 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#119 module RuboCop::RSpec::Language::Expectations class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:115 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#120 def all(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:120 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#125 module RuboCop::RSpec::Language::Helpers class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:121 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#126 def all(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:132 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#137 module RuboCop::RSpec::Language::HookScopes class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:133 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#139 def all(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:126 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#138 +RuboCop::RSpec::Language::HookScopes::ALL = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#131 module RuboCop::RSpec::Language::Hooks class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:127 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#132 def all(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:138 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#144 module RuboCop::RSpec::Language::Includes class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:140 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#146 def all(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:149 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#155 def context(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:145 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#151 def examples(element); end end end # Helper methods to detect RSpec DSL used with send and block # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language/node_pattern.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#7 module RuboCop::RSpec::Language::NodePattern - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language/node_pattern.rb:12 + # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#12 def block_pattern(string); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language/node_pattern.rb:8 + # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#16 + def numblock_pattern(string); end + + # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#8 def send_pattern(string); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:155 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#161 module RuboCop::RSpec::Language::Runners class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:156 - def all(element); end + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#164 + def all(element = T.unsafe(nil)); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:161 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#162 +RuboCop::RSpec::Language::Runners::ALL = T.let(T.unsafe(nil), Array) + +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#172 module RuboCop::RSpec::Language::SharedGroups class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:163 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#174 def all(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:172 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#183 def context(element); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:168 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#179 def examples(element); end end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:178 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#189 module RuboCop::RSpec::Language::Subjects class << self - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/language.rb:179 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#190 def all(element); end end end # RuboCop RSpec specific extensions of RuboCop::AST::Node # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/node.rb:6 +# source://rubocop-rspec//lib/rubocop/rspec/node.rb#6 module RuboCop::RSpec::Node # In various cops we want to regard const as literal although it's not # strictly literal. # # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/node.rb:9 + # source://rubocop-rspec//lib/rubocop/rspec/node.rb#9 def recursive_literal_or_const?; end end +# source://rubocop-rspec//lib/rubocop/rspec.rb#6 +RuboCop::RSpec::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname) + # Version information for the RSpec RuboCop plugin. # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/version.rb:6 +# source://rubocop-rspec//lib/rubocop/rspec/version.rb#6 module RuboCop::RSpec::Version; end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/version.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/version.rb#7 RuboCop::RSpec::Version::STRING = T.let(T.unsafe(nil), String) # RSpec example wording rewriter # -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:6 +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#6 class RuboCop::RSpec::Wording # @return [Wording] a new instance of Wording # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:12 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#12 def initialize(text, ignore:, replace:); end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:18 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#18 def rewrite; end private - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:72 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#72 def append_suffix(word, suffix); end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:57 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#57 def ignored_word?(word); end # Returns the value of attribute ignores. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:31 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#31 def ignores; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:43 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#43 def remove_should_and_pluralize; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:33 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#33 def replace_prefix(pattern, replacement); end # Returns the value of attribute replacements. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:31 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#31 def replacements; end - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:61 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#61 def substitute(word); end # Returns the value of attribute text. # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:31 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#31 def text; end # @return [Boolean] # - # source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:39 + # source://rubocop-rspec//lib/rubocop/rspec/wording.rb#39 def uppercase?(word); end end -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:9 +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#9 RuboCop::RSpec::Wording::ES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:10 +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#10 RuboCop::RSpec::Wording::IES_SUFFIX_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:8 +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#8 RuboCop::RSpec::Wording::SHOULDNT_BE_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-rspec-2.12.1/lib/rubocop/rspec/wording.rb:7 +# source://rubocop-rspec//lib/rubocop/rspec/wording.rb#7 RuboCop::RSpec::Wording::SHOULDNT_PREFIX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:7 +# source://rubocop/1.42.0/lib/rubocop/ast_aliases.rb#7 RuboCop::Token = RuboCop::AST::Token diff --git a/sorbet/rbi/gems/rubocop@1.35.1.rbi b/sorbet/rbi/gems/rubocop@1.42.0.rbi similarity index 61% rename from sorbet/rbi/gems/rubocop@1.35.1.rbi rename to sorbet/rbi/gems/rubocop@1.42.0.rbi index 575819ce..dff115ce 100644 --- a/sorbet/rbi/gems/rubocop@1.35.1.rbi +++ b/sorbet/rbi/gems/rubocop@1.42.0.rbi @@ -16,9 +16,7 @@ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression include ::RuboCop::Ext::RegexpParser::Expression::CharacterSet end -# These aliases are for compatibility. -# -# source://rubocop-1.35.1/lib/rubocop/version.rb:3 +# source://rubocop//lib/rubocop/version.rb#3 module RuboCop; end class RuboCop::AST::ProcessedSource @@ -29,24 +27,52 @@ class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node include ::RuboCop::Ext::RegexpNode end +# This is a class that reads optional command line arguments to rubocop from environment variable. +# +# @api private +# +# source://rubocop//lib/rubocop/arguments_env.rb#6 +class RuboCop::ArgumentsEnv + class << self + # @api private + # + # source://rubocop//lib/rubocop/arguments_env.rb#7 + def read_as_arguments; end + end +end + +# This is a class that reads optional command line arguments to rubocop from .rubocop file. +# +# @api private +# +# source://rubocop//lib/rubocop/arguments_file.rb#6 +class RuboCop::ArgumentsFile + class << self + # @api private + # + # source://rubocop//lib/rubocop/arguments_file.rb#7 + def read_as_arguments; end + end +end + # The CLI is a class responsible of handling all the command line interface # logic. # -# source://rubocop-1.35.1/lib/rubocop/cli.rb:6 +# source://rubocop//lib/rubocop/cli.rb#6 class RuboCop::CLI # @return [CLI] a new instance of CLI # - # source://rubocop-1.35.1/lib/rubocop/cli.rb:22 + # source://rubocop//lib/rubocop/cli.rb#22 def initialize; end # Returns the value of attribute config_store. # - # source://rubocop-1.35.1/lib/rubocop/cli.rb:20 + # source://rubocop//lib/rubocop/cli.rb#20 def config_store; end # Returns the value of attribute options. # - # source://rubocop-1.35.1/lib/rubocop/cli.rb:20 + # source://rubocop//lib/rubocop/cli.rb#20 def options; end # Entry point for the application logic. Here we @@ -58,40 +84,40 @@ class RuboCop::CLI # @param args [Array] command line arguments # @return [Integer] UNIX exit code # - # source://rubocop-1.35.1/lib/rubocop/cli.rb:37 + # source://rubocop//lib/rubocop/cli.rb#37 def run(args = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cli.rb:106 + # source://rubocop//lib/rubocop/cli.rb#106 def act_on_options; end - # source://rubocop-1.35.1/lib/rubocop/cli.rb:140 + # source://rubocop//lib/rubocop/cli.rb#140 def apply_default_formatter; end - # source://rubocop-1.35.1/lib/rubocop/cli.rb:75 + # source://rubocop//lib/rubocop/cli.rb#75 def execute_runners; end # @raise [Finished] # - # source://rubocop-1.35.1/lib/rubocop/cli.rb:131 + # source://rubocop//lib/rubocop/cli.rb#131 def handle_exiting_options; end - # source://rubocop-1.35.1/lib/rubocop/cli.rb:94 + # source://rubocop//lib/rubocop/cli.rb#94 def parallel_by_default!; end - # source://rubocop-1.35.1/lib/rubocop/cli.rb:71 + # source://rubocop//lib/rubocop/cli.rb#71 def run_command(name); end - # source://rubocop-1.35.1/lib/rubocop/cli.rb:123 + # source://rubocop//lib/rubocop/cli.rb#123 def set_options_to_config_loader; end - # source://rubocop-1.35.1/lib/rubocop/cli.rb:83 + # source://rubocop//lib/rubocop/cli.rb#83 def suggest_extensions; end # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/cli.rb:87 + # source://rubocop//lib/rubocop/cli.rb#87 def validate_options_vs_config; end end @@ -99,21 +125,21 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command.rb:7 +# source://rubocop//lib/rubocop/cli/command.rb#7 module RuboCop::CLI::Command class << self # Find the command with a given name and run it in an environment. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command.rb:10 + # source://rubocop//lib/rubocop/cli/command.rb#10 def run(env, name); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command.rb:16 + # source://rubocop//lib/rubocop/cli/command.rb#16 def class_for(name); end end end @@ -122,75 +148,75 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:8 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#8 class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:20 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#20 def run; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:90 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#90 def add_formatter; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:98 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#98 def add_inheritance_from_auto_generated_file(config_file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:94 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#94 def execute_runner; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:119 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#119 def existing_configuration(config_file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:56 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#56 def line_length_cop(config); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:44 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#44 def line_length_enabled?(config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:52 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#52 def max_line_length(config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:29 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#29 def maybe_run_line_length_cop; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:141 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#141 def options_config_in_root?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:132 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#132 def relative_path_to_todo_from_options_config; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:83 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#83 def reset_config_and_auto_gen_file; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:74 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#74 def run_all_cops(line_length_contents); end # Do an initial run with only Layout/LineLength so that cops that @@ -199,93 +225,93 @@ class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:63 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#63 def run_line_length_cop; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:48 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48 def same_max_line_length?(config1, config2); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:39 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#39 def skip_line_length_cop(reason); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:125 + # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#125 def write_config_file(file_name, file_string, rubocop_yml_contents); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:11 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#11 RuboCop::CLI::Command::AutoGenerateConfig::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:14 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#14 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1 = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:18 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#18 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_DISABLED = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:17 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#17 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:15 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#15 RuboCop::CLI::Command::AutoGenerateConfig::PHASE_2 = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/auto_generate_config.rb:12 +# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#12 RuboCop::CLI::Command::AutoGenerateConfig::YAML_OPTIONAL_DOC_START = T.let(T.unsafe(nil), Regexp) # A subcommand in the CLI. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:8 +# source://rubocop//lib/rubocop/cli/command/base.rb#8 class RuboCop::CLI::Command::Base # @api private # @return [Base] a new instance of Base # - # source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:26 + # source://rubocop//lib/rubocop/cli/command/base.rb#26 def initialize(env); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:9 + # source://rubocop//lib/rubocop/cli/command/base.rb#9 def env; end class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:21 + # source://rubocop//lib/rubocop/cli/command/base.rb#21 def by_command_name(name); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:14 + # source://rubocop//lib/rubocop/cli/command/base.rb#14 def command_name; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:14 + # source://rubocop//lib/rubocop/cli/command/base.rb#14 def command_name=(_arg0); end # @api private # @private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/base.rb:16 + # source://rubocop//lib/rubocop/cli/command/base.rb#16 def inherited(subclass); end end end @@ -294,45 +320,45 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:8 +# source://rubocop//lib/rubocop/cli/command/execute_runner.rb#8 class RuboCop::CLI::Command::ExecuteRunner < ::RuboCop::CLI::Command::Base include ::RuboCop::Formatter::TextUtil # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:16 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#16 def run; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:69 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#69 def display_error_summary(errors); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:56 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#56 def display_summary(runner); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:61 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#61 def display_warning_summary(warnings); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:22 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#22 def execute_runner(paths); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:86 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#86 def maybe_print_corrected_source; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:42 + # source://rubocop//lib/rubocop/cli/command/execute_runner.rb#42 def with_redirect; end end @@ -340,24 +366,24 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/execute_runner.rb:12 +# source://rubocop//lib/rubocop/cli/command/execute_runner.rb#12 RuboCop::CLI::Command::ExecuteRunner::INTEGRATION_FORMATTERS = T.let(T.unsafe(nil), Array) # Generate a .rubocop.yml file in the current directory. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/init_dotfile.rb:8 +# source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#8 class RuboCop::CLI::Command::InitDotfile < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/init_dotfile.rb:13 + # source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#13 def run; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/init_dotfile.rb:9 +# source://rubocop//lib/rubocop/cli/command/init_dotfile.rb#9 RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String) # Shows the given cops, or all cops by default, and their configurations @@ -365,49 +391,49 @@ RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:9 +# source://rubocop//lib/rubocop/cli/command/show_cops.rb#9 class RuboCop::CLI::Command::ShowCops < ::RuboCop::CLI::Command::Base # @api private # @return [ShowCops] a new instance of ShowCops # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:12 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def initialize(env); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:19 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#19 def run; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:67 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#67 def config_lines(cop); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:63 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#63 def cops_of_department(cops, department); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:25 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#25 def print_available_cops; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:48 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#48 def print_cop_details(cops); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:36 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#36 def print_cops_of_department(registry, department, show_all); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_cops.rb:57 + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#57 def selected_cops_of_department(cops, department); end end @@ -416,34 +442,34 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/show_docs_url.rb:9 +# source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#9 class RuboCop::CLI::Command::ShowDocsUrl < ::RuboCop::CLI::Command::Base # @api private # @return [ShowDocsUrl] a new instance of ShowDocsUrl # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_docs_url.rb:12 + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#12 def initialize(env); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_docs_url.rb:18 + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#18 def run; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_docs_url.rb:38 + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#38 def cops_array; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_docs_url.rb:24 + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#24 def print_documentation_url; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/show_docs_url.rb:42 + # source://rubocop//lib/rubocop/cli/command/show_docs_url.rb#42 def registry_hash; end end @@ -454,89 +480,89 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:12 +# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#12 class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:17 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#17 def run; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:73 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#73 def all_extensions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:69 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#69 def current_formatter; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:104 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#111 def dependent_gems; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:80 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#87 def extensions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:96 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#103 def installed_and_not_loaded_extensions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:84 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#91 def installed_extensions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:108 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#115 def installed_gems; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:92 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#99 def loaded_extensions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:100 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#107 def lockfile; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:88 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#95 def not_installed_extensions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:41 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#41 def print_install_suggestions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:51 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#51 def print_load_suggestions; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:60 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#60 def print_opt_out_instruction; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:112 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#119 def puts(*args); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:30 + # source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#30 def skip?; end end @@ -544,84 +570,84 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/suggest_extensions.rb:13 +# source://rubocop//lib/rubocop/cli/command/suggest_extensions.rb#13 RuboCop::CLI::Command::SuggestExtensions::INCLUDED_FORMATTERS = T.let(T.unsafe(nil), Array) # Display version. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/command/version.rb:8 +# source://rubocop//lib/rubocop/cli/command/version.rb#8 class RuboCop::CLI::Command::Version < ::RuboCop::CLI::Command::Base # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/command/version.rb:11 + # source://rubocop//lib/rubocop/cli/command/version.rb#11 def run; end end -# source://rubocop-1.35.1/lib/rubocop/cli.rb:11 +# source://rubocop//lib/rubocop/cli.rb#11 RuboCop::CLI::DEFAULT_PARALLEL_OPTIONS = T.let(T.unsafe(nil), Array) # Execution environment for a CLI command. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cli/environment.rb:7 +# source://rubocop//lib/rubocop/cli/environment.rb#7 class RuboCop::CLI::Environment # @api private # @return [Environment] a new instance of Environment # - # source://rubocop-1.35.1/lib/rubocop/cli/environment.rb:10 + # source://rubocop//lib/rubocop/cli/environment.rb#10 def initialize(options, config_store, paths); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/environment.rb:8 + # source://rubocop//lib/rubocop/cli/environment.rb#8 def config_store; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/environment.rb:8 + # source://rubocop//lib/rubocop/cli/environment.rb#8 def options; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/environment.rb:8 + # source://rubocop//lib/rubocop/cli/environment.rb#8 def paths; end # Run a command in this environment. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cli/environment.rb:17 + # source://rubocop//lib/rubocop/cli/environment.rb#17 def run(name); end end -# source://rubocop-1.35.1/lib/rubocop/cli.rb:18 +# source://rubocop//lib/rubocop/cli.rb#18 class RuboCop::CLI::Finished < ::StandardError; end -# source://rubocop-1.35.1/lib/rubocop/cli.rb:9 +# source://rubocop//lib/rubocop/cli.rb#9 RuboCop::CLI::STATUS_ERROR = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cli.rb:10 +# source://rubocop//lib/rubocop/cli.rb#10 RuboCop::CLI::STATUS_INTERRUPTED = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cli.rb:8 +# source://rubocop//lib/rubocop/cli.rb#8 RuboCop::CLI::STATUS_OFFENSES = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cli.rb:7 +# source://rubocop//lib/rubocop/cli.rb#7 RuboCop::CLI::STATUS_SUCCESS = T.let(T.unsafe(nil), Integer) # This class represents the cache config of the caching RuboCop runs. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cache_config.rb:6 +# source://rubocop//lib/rubocop/cache_config.rb#6 class RuboCop::CacheConfig class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/cache_config.rb:7 + # source://rubocop//lib/rubocop/cache_config.rb#7 def root_dir; end end end @@ -630,22 +656,22 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cached_data.rb:8 +# source://rubocop//lib/rubocop/cached_data.rb#8 class RuboCop::CachedData # @api private # @return [CachedData] a new instance of CachedData # - # source://rubocop-1.35.1/lib/rubocop/cached_data.rb:9 + # source://rubocop//lib/rubocop/cached_data.rb#9 def initialize(filename); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cached_data.rb:13 + # source://rubocop//lib/rubocop/cached_data.rb#13 def from_json(text); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cached_data.rb:17 + # source://rubocop//lib/rubocop/cached_data.rb#17 def to_json(offenses); end private @@ -654,93 +680,179 @@ class RuboCop::CachedData # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cached_data.rb:47 + # source://rubocop//lib/rubocop/cached_data.rb#47 def deserialize_offenses(offenses); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cached_data.rb:40 + # source://rubocop//lib/rubocop/cached_data.rb#40 def message(offense); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cached_data.rb:23 + # source://rubocop//lib/rubocop/cached_data.rb#23 def serialize_offense(offense); end end # and provides a way to check if each cop is enabled at arbitrary line. # -# source://rubocop-1.35.1/lib/rubocop/comment_config.rb:6 +# source://rubocop//lib/rubocop/comment_config.rb#6 class RuboCop::CommentConfig + extend ::Forwardable + # @return [CommentConfig] a new instance of CommentConfig # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:11 + # source://rubocop//lib/rubocop/comment_config.rb#32 def initialize(processed_source); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:31 + # source://rubocop//lib/rubocop/comment_config.rb#57 def comment_only_line?(line_number); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:23 + # source://forwardable/1.3.2/forwardable.rb#229 + def config(*args, &block); end + + # source://rubocop//lib/rubocop/comment_config.rb#45 def cop_disabled_line_ranges; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:15 + # source://rubocop//lib/rubocop/comment_config.rb#37 def cop_enabled_at_line?(cop, line_number); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:27 + # source://rubocop//lib/rubocop/comment_config.rb#49 def extra_enabled_comments; end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:9 + # source://rubocop//lib/rubocop/comment_config.rb#28 def processed_source; end + # source://forwardable/1.3.2/forwardable.rb#229 + def registry(*args, &block); end + private - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:51 + # source://rubocop//lib/rubocop/comment_config.rb#77 def analyze; end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:67 + # source://rubocop//lib/rubocop/comment_config.rb#105 def analyze_cop(analysis, directive); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:87 + # source://rubocop//lib/rubocop/comment_config.rb#125 def analyze_disabled(analysis, directive); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:98 + # source://rubocop//lib/rubocop/comment_config.rb#136 def analyze_rest(analysis, directive); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:78 + # source://rubocop//lib/rubocop/comment_config.rb#116 def analyze_single_line(analysis, directive); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:107 + # source://rubocop//lib/rubocop/comment_config.rb#145 def cop_line_ranges(analysis); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:113 + # source://rubocop//lib/rubocop/comment_config.rb#151 def each_directive; end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:37 + # source://rubocop//lib/rubocop/comment_config.rb#63 def extra_enabled_comments_with_names(extras:, names:); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:131 + # source://rubocop//lib/rubocop/comment_config.rb#171 def handle_enable_all(directive, names, extras); end # Collect cops that have been disabled or enabled by name in a directive comment # so that `Lint/RedundantCopEnableDirective` can register offenses correctly. # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:145 + # source://rubocop//lib/rubocop/comment_config.rb#185 def handle_switch(directive, names, extras); end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:124 + # source://rubocop//lib/rubocop/comment_config.rb#96 + def inject_disabled_cops_directives(analyses); end + + # source://rubocop//lib/rubocop/comment_config.rb#164 def non_comment_token_line_numbers; end - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:120 + # source://rubocop//lib/rubocop/comment_config.rb#160 def qualified_cop_name(cop_name); end end -# source://rubocop-1.35.1/lib/rubocop/comment_config.rb:7 +# source://rubocop//lib/rubocop/comment_config.rb#9 +RuboCop::CommentConfig::CONFIG_DISABLED_LINE_RANGE_MIN = T.let(T.unsafe(nil), Float) + +# This class provides an API compatible with RuboCop::DirectiveComment +# to be used for cops that are disabled in the config file +# +# source://rubocop//lib/rubocop/comment_config.rb#13 +class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment + # @return [ConfigDisabledCopDirectiveComment] a new instance of ConfigDisabledCopDirectiveComment + # + # source://rubocop//lib/rubocop/comment_config.rb#19 + def initialize(cop_name); end + + # Returns the value of attribute line_number. + # + # source://rubocop//lib/rubocop/comment_config.rb#14 + def line_number; end + + # Returns the value of attribute loc. + # + # source://rubocop//lib/rubocop/comment_config.rb#14 + def loc; end + + # Returns the value of attribute text. + # + # source://rubocop//lib/rubocop/comment_config.rb#14 + def text; end +end + +# source://rubocop//lib/rubocop/comment_config.rb#17 +class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Expression < ::Struct + # Returns the value of attribute line + # + # @return [Object] the current value of line + def line; end + + # Sets the attribute line + # + # @param value [Object] the value to set the attribute line to. + # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/comment_config.rb#17 + def line=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/comment_config.rb#16 +class RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment::Loc < ::Struct + # Returns the value of attribute expression + # + # @return [Object] the current value of expression + def expression; end + + # Sets the attribute expression + # + # @param value [Object] the value to set the attribute expression to. + # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/comment_config.rb#16 + def expression=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def members; end + def new(*_arg0); end + end +end + +# source://rubocop//lib/rubocop/comment_config.rb#26 class RuboCop::CommentConfig::CopAnalysis < ::Struct # Returns the value of attribute line_ranges # @@ -752,7 +864,7 @@ class RuboCop::CommentConfig::CopAnalysis < ::Struct # @param value [Object] the value to set the attribute line_ranges to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:7 + # source://rubocop//lib/rubocop/comment_config.rb#26 def line_ranges=(_); end # Returns the value of attribute start_line_number @@ -765,7 +877,7 @@ class RuboCop::CommentConfig::CopAnalysis < ::Struct # @param value [Object] the value to set the attribute start_line_number to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/comment_config.rb:7 + # source://rubocop//lib/rubocop/comment_config.rb#26 def start_line_number=(_); end class << self @@ -782,7 +894,7 @@ end # during a run of the rubocop program, if files in several # directories are inspected. # -# source://rubocop-1.35.1/lib/rubocop/config.rb:14 +# source://rubocop//lib/rubocop/config.rb#14 class RuboCop::Config include ::RuboCop::PathUtil include ::RuboCop::FileFinder @@ -790,26 +902,26 @@ class RuboCop::Config # @return [Config] a new instance of Config # - # source://rubocop-1.35.1/lib/rubocop/config.rb:24 + # source://rubocop//lib/rubocop/config.rb#32 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def [](*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def []=(*args, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:149 + # source://rubocop//lib/rubocop/config.rb#172 def active_support_extensions_enabled?; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:92 + # source://rubocop//lib/rubocop/config.rb#98 def add_excludes_from_higher_level(highest_config); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:172 + # source://rubocop//lib/rubocop/config.rb#195 def allowed_camel_case_file?(file); end # Paths specified in configuration files starting with .rubocop are @@ -818,61 +930,67 @@ class RuboCop::Config # config/default.yml, for example, are not relative to RuboCop's config # directory since that wouldn't work. # - # source://rubocop-1.35.1/lib/rubocop/config.rb:216 + # source://rubocop//lib/rubocop/config.rb#239 def base_dir_for_path_parameters; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:241 + # source://rubocop//lib/rubocop/config.rb#264 def bundler_lock_file_path; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:47 + # source://rubocop//lib/rubocop/config.rb#53 def check; end - # source://RUBY_ROOT/forwardable.rb:226 + # @api private + # @return [Boolean] whether config for this badge has 'Include' or 'Exclude' keys + # + # source://rubocop//lib/rubocop/config.rb#144 + def clusivity_config_for_badge?(badge); end + + # source://forwardable/1.3.2/forwardable.rb#229 def delete(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:104 + # source://rubocop//lib/rubocop/config.rb#110 def deprecation_check; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def dig(*args, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:141 + # source://rubocop//lib/rubocop/config.rb#164 def disabled_new_cops?; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def each_key(*args, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:145 + # source://rubocop//lib/rubocop/config.rb#168 def enabled_new_cops?; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def fetch(*args, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:194 + # source://rubocop//lib/rubocop/config.rb#217 def file_to_exclude?(file); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:153 + # source://rubocop//lib/rubocop/config.rb#176 def file_to_include?(file); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:137 + # source://rubocop//lib/rubocop/config.rb#160 def for_all_cops; end # Note: the 'Enabled' attribute is same as that returned by `for_cop` # # @return [Config] for the given cop merged with that of its department (if any) # - # source://rubocop-1.35.1/lib/rubocop/config.rb:124 + # source://rubocop//lib/rubocop/config.rb#130 def for_badge(badge); end # Note: the 'Enabled' attribute is calculated according to the department's @@ -880,7 +998,7 @@ class RuboCop::Config # # @return [Config] for the given cop / cop name. # - # source://rubocop-1.35.1/lib/rubocop/config.rb:118 + # source://rubocop//lib/rubocop/config.rb#124 def for_cop(cop); end # Note: the 'Enabled' attribute will be present only if specified @@ -888,49 +1006,49 @@ class RuboCop::Config # # @return [Config] for the given department name. # - # source://rubocop-1.35.1/lib/rubocop/config.rb:132 + # source://rubocop//lib/rubocop/config.rb#155 def for_department(department_name); end # True if this is a config file that is shipped with RuboCop # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:72 + # source://rubocop//lib/rubocop/config.rb#78 def internal?; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def key?(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def keys(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:43 + # source://rubocop//lib/rubocop/config.rb#49 def loaded_features; end # Returns the value of attribute loaded_path. # - # source://rubocop-1.35.1/lib/rubocop/config.rb:22 + # source://rubocop//lib/rubocop/config.rb#22 def loaded_path; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:77 + # source://rubocop//lib/rubocop/config.rb#83 def make_excludes_absolute; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def map(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def merge(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:207 + # source://rubocop//lib/rubocop/config.rb#230 def path_relative_to_config(path); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:203 + # source://rubocop//lib/rubocop/config.rb#226 def patterns_to_exclude; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:199 + # source://rubocop//lib/rubocop/config.rb#222 def patterns_to_include; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:252 + # source://rubocop//lib/rubocop/config.rb#275 def pending_cops; end # Returns true if there's a chance that an Include pattern matches hidden @@ -938,65 +1056,65 @@ class RuboCop::Config # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:186 + # source://rubocop//lib/rubocop/config.rb#209 def possibly_include_hidden?; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def replace(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:67 + # source://rubocop//lib/rubocop/config.rb#73 def signature; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:237 + # source://rubocop//lib/rubocop/config.rb#260 def smart_loaded_path; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:226 + # source://rubocop//lib/rubocop/config.rb#249 def target_rails_version; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def target_ruby_version(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def to_h(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def to_hash(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:63 + # source://rubocop//lib/rubocop/config.rb#69 def to_s; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def transform_values(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def validate(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:54 + # source://rubocop//lib/rubocop/config.rb#60 def validate_after_resolution; end private - # source://rubocop-1.35.1/lib/rubocop/config.rb:294 + # source://rubocop//lib/rubocop/config.rb#318 def department_of(qualified_cop_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config.rb:282 + # source://rubocop//lib/rubocop/config.rb#306 def enable_cop?(qualified_cop_name, cop_options); end - # source://rubocop-1.35.1/lib/rubocop/config.rb:270 + # source://rubocop//lib/rubocop/config.rb#293 def read_rails_version_from_bundler_lock_file; end - # source://rubocop-1.35.1/lib/rubocop/config.rb:266 + # source://rubocop//lib/rubocop/config.rb#289 def target_rails_version_from_bundler_lock_file; end class << self - # source://rubocop-1.35.1/lib/rubocop/config.rb:36 + # source://rubocop//lib/rubocop/config.rb#24 def create(hash, path, check: T.unsafe(nil)); end end end -# source://rubocop-1.35.1/lib/rubocop/config.rb:19 +# source://rubocop//lib/rubocop/config.rb#19 class RuboCop::Config::CopConfig < ::Struct # Returns the value of attribute metadata # @@ -1008,7 +1126,7 @@ class RuboCop::Config::CopConfig < ::Struct # @param value [Object] the value to set the attribute metadata to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/config.rb:19 + # source://rubocop//lib/rubocop/config.rb#19 def metadata=(_); end # Returns the value of attribute name @@ -1021,7 +1139,7 @@ class RuboCop::Config::CopConfig < ::Struct # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/config.rb:19 + # source://rubocop//lib/rubocop/config.rb#19 def name=(_); end class << self @@ -1032,21 +1150,21 @@ class RuboCop::Config::CopConfig < ::Struct end end -# source://rubocop-1.35.1/lib/rubocop/config.rb:21 +# source://rubocop//lib/rubocop/config.rb#21 RuboCop::Config::DEFAULT_RAILS_VERSION = T.let(T.unsafe(nil), Float) # This class has methods related to finding configuration path. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_finder.rb:8 +# source://rubocop//lib/rubocop/config_finder.rb#8 class RuboCop::ConfigFinder extend ::RuboCop::FileFinder class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:19 + # source://rubocop//lib/rubocop/config_finder.rb#19 def find_config_path(target_dir); end # Returns the path RuboCop inferred as the root of the project. No file @@ -1054,61 +1172,61 @@ class RuboCop::ConfigFinder # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:26 + # source://rubocop//lib/rubocop/config_finder.rb#26 def project_root; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:17 + # source://rubocop//lib/rubocop/config_finder.rb#17 def project_root=(_arg0); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:59 + # source://rubocop//lib/rubocop/config_finder.rb#59 def expand_path(path); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:40 + # source://rubocop//lib/rubocop/config_finder.rb#40 def find_project_dotfile(target_dir); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:32 + # source://rubocop//lib/rubocop/config_finder.rb#32 def find_project_root; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:44 + # source://rubocop//lib/rubocop/config_finder.rb#44 def find_user_dotfile; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_finder.rb:52 + # source://rubocop//lib/rubocop/config_finder.rb#52 def find_user_xdg_config; end end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_finder.rb:12 +# source://rubocop//lib/rubocop/config_finder.rb#12 RuboCop::ConfigFinder::DEFAULT_FILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_finder.rb:9 +# source://rubocop//lib/rubocop/config_finder.rb#9 RuboCop::ConfigFinder::DOTFILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_finder.rb:11 +# source://rubocop//lib/rubocop/config_finder.rb#11 RuboCop::ConfigFinder::RUBOCOP_HOME = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_finder.rb:10 +# source://rubocop//lib/rubocop/config_finder.rb#10 RuboCop::ConfigFinder::XDG_CONFIG = T.let(T.unsafe(nil), String) # This class represents the configuration of the RuboCop application @@ -1117,12 +1235,12 @@ RuboCop::ConfigFinder::XDG_CONFIG = T.let(T.unsafe(nil), String) # during a run of the rubocop program, if files in several # directories are inspected. # -# source://rubocop-1.35.1/lib/rubocop/config_loader.rb:18 +# source://rubocop//lib/rubocop/config_loader.rb#18 class RuboCop::ConfigLoader extend ::RuboCop::FileFinder class << self - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:123 + # source://rubocop//lib/rubocop/config_loader.rb#123 def add_excludes_from_files(config, config_file); end # Used to add features that were required inside a config or from @@ -1130,13 +1248,13 @@ class RuboCop::ConfigLoader # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:185 + # source://rubocop//lib/rubocop/config_loader.rb#194 def add_loaded_features(loaded_features); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:73 + # source://rubocop//lib/rubocop/config_loader.rb#73 def add_missing_namespaces(path, hash); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:34 + # source://rubocop//lib/rubocop/config_loader.rb#34 def clear_options; end # Returns the path of .rubocop.yml searching upwards in the @@ -1145,120 +1263,125 @@ class RuboCop::ConfigLoader # user's home directory is checked. If there's no .rubocop.yml # there either, the path to the default file is returned. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:97 + # source://rubocop//lib/rubocop/config_loader.rb#97 def configuration_file_for(target_dir); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:101 + # source://rubocop//lib/rubocop/config_loader.rb#101 def configuration_from_file(config_file, check: T.unsafe(nil)); end # Returns the value of attribute debug. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def debug; end # Sets the attribute debug # # @param value the value to set the attribute debug to. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def debug=(_arg0); end # Returns the value of attribute debug. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def debug?; end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:133 + # source://rubocop//lib/rubocop/config_loader.rb#133 def default_configuration; end # Sets the attribute default_configuration # # @param value the value to set the attribute default_configuration to. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:28 + # source://rubocop//lib/rubocop/config_loader.rb#28 def default_configuration=(_arg0); end # Returns the value of attribute disable_pending_cops. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def disable_pending_cops; end # Sets the attribute disable_pending_cops # # @param value the value to set the attribute disable_pending_cops to. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def disable_pending_cops=(_arg0); end # Returns the value of attribute enable_pending_cops. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def enable_pending_cops; end # Sets the attribute enable_pending_cops # # @param value the value to set the attribute enable_pending_cops to. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def enable_pending_cops=(_arg0); end # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def ignore_parent_exclusion; end # Sets the attribute ignore_parent_exclusion # # @param value the value to set the attribute ignore_parent_exclusion to. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def ignore_parent_exclusion=(_arg0); end # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def ignore_parent_exclusion?; end # Returns the value of attribute ignore_unrecognized_cops. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def ignore_unrecognized_cops; end # Sets the attribute ignore_unrecognized_cops # # @param value the value to set the attribute ignore_unrecognized_cops to. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:26 + # source://rubocop//lib/rubocop/config_loader.rb#26 def ignore_unrecognized_cops=(_arg0); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:40 + # @api private + # + # source://rubocop//lib/rubocop/config_loader.rb#141 + def inject_defaults!(project_root); end + + # source://rubocop//lib/rubocop/config_loader.rb#40 def load_file(file, check: T.unsafe(nil)); end # @raise [TypeError] # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:60 + # source://rubocop//lib/rubocop/config_loader.rb#60 def load_yaml_configuration(absolute_path); end # Returns the value of attribute loaded_features. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:29 + # source://rubocop//lib/rubocop/config_loader.rb#29 def loaded_features; end # Return a recursive merge of two hashes. That is, a normal hash merge, # with the addition that any value that is a hash, and occurs in both # arguments, will also be merged. And so on. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:88 + # source://rubocop//lib/rubocop/config_loader.rb#88 def merge(base_hash, derived_hash); end # Merges the given configuration with the default one. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:178 + # source://rubocop//lib/rubocop/config_loader.rb#187 def merge_with_default(config, config_file, unset_nil: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:118 + # source://rubocop//lib/rubocop/config_loader.rb#118 def possible_new_cops?(config); end # Returns the path RuboCop inferred as the root of the project. No file @@ -1266,55 +1389,55 @@ class RuboCop::ConfigLoader # # @deprecated Use `RuboCop::ConfigFinder.project_root` instead. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:143 + # source://rubocop//lib/rubocop/config_loader.rb#152 def project_root; end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:160 + # source://rubocop//lib/rubocop/config_loader.rb#169 def warn_on_pending_cops(pending_cops); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:170 + # source://rubocop//lib/rubocop/config_loader.rb#179 def warn_pending_cop(cop); end private - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:199 + # source://rubocop//lib/rubocop/config_loader.rb#208 def check_duplication(yaml_code, absolute_path); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:191 + # source://rubocop//lib/rubocop/config_loader.rb#200 def file_path(file); end # Read the specified file, or exit with a friendly, concise message on # stderr. Care is taken to use the standard OS exit code for a "file not # found" error. # - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:219 + # source://rubocop//lib/rubocop/config_loader.rb#228 def read_file(absolute_path); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:195 + # source://rubocop//lib/rubocop/config_loader.rb#204 def resolver; end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:225 + # source://rubocop//lib/rubocop/config_loader.rb#234 def yaml_safe_load(yaml_code, filename); end - # source://rubocop-1.35.1/lib/rubocop/config_loader.rb:236 + # source://rubocop//lib/rubocop/config_loader.rb#245 def yaml_safe_load!(yaml_code, filename); end end end -# source://rubocop-1.35.1/lib/rubocop/config_loader.rb:21 +# source://rubocop//lib/rubocop/config_loader.rb#21 RuboCop::ConfigLoader::DEFAULT_FILE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/config_loader.rb:19 +# source://rubocop//lib/rubocop/config_loader.rb#19 RuboCop::ConfigLoader::DOTFILE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/config_loader.rb:20 +# source://rubocop//lib/rubocop/config_loader.rb#20 RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String) # A help class for ConfigLoader that handles configuration resolution. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:9 +# source://rubocop//lib/rubocop/config_loader_resolver.rb#9 class RuboCop::ConfigLoaderResolver # When one .rubocop.yml file inherits from another .rubocop.yml file, the Include paths in the # base configuration are relative to the directory where the base configuration file is. For the @@ -1323,7 +1446,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:45 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#45 def fix_include_paths(base_config_path, hash, path, key, value); end # Return a recursive merge of two hashes. That is, a normal hash merge, @@ -1333,7 +1456,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:99 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#99 def merge(base_hash, derived_hash, **opts); end # Merges the given configuration with the default one. If @@ -1344,7 +1467,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:75 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#75 def merge_with_default(config, config_file, unset_nil:); end # An `Enabled: true` setting in user configuration for a cop overrides an @@ -1352,7 +1475,7 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:119 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#119 def override_department_setting_for_cops(base_hash, derived_hash); end # If a cop was previously explicitly enabled, but then superseded by the @@ -1360,135 +1483,135 @@ class RuboCop::ConfigLoaderResolver # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:136 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#136 def override_enabled_for_disabled_departments(base_hash, derived_hash); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:19 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#19 def resolve_inheritance(path, hash, file, debug); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:55 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#55 def resolve_inheritance_from_gems(hash); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:10 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#10 def resolve_requires(path, hash); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:208 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#208 def base_configs(path, inherit_from, file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:176 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#176 def determine_inherit_mode(hash, key); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:152 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#152 def disabled?(hash, department); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:156 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#156 def duplicate_setting?(base_hash, derived_hash, key, inherited_file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:264 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#268 def gem_config_path(gem_name, relative_config_path); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:242 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#246 def handle_disabled_by_default(config, new_default_configuration); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:216 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#220 def inherited_file(path, inherit_from, file); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:204 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#204 def merge_hashes?(base_hash, derived_hash, key); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:237 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#241 def remote_file?(uri); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:196 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#196 def should_merge?(mode, key); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:200 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#200 def should_override?(mode, key); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:182 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#182 def should_union?(derived_hash, base_hash, root_mode, key); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:260 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#264 def transform(config, &block); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_loader_resolver.rb:165 + # source://rubocop//lib/rubocop/config_loader_resolver.rb#165 def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts); end end # Raised when a RuboCop configuration file is not found. # -# source://rubocop-1.35.1/lib/rubocop/config_loader.rb:10 +# source://rubocop//lib/rubocop/config_loader.rb#10 class RuboCop::ConfigNotFoundError < ::RuboCop::Error; end # This class handles obsolete configuration. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:4 +# source://rubocop//lib/rubocop/config_obsoletion/rule.rb#4 class RuboCop::ConfigObsoletion # @api private # @return [ConfigObsoletion] a new instance of ConfigObsoletion # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:33 + # source://rubocop//lib/rubocop/config_obsoletion.rb#33 def initialize(config); end # @api private # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:39 + # source://rubocop//lib/rubocop/config_obsoletion.rb#39 def reject_obsolete!; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:19 + # source://rubocop//lib/rubocop/config_obsoletion.rb#19 def rules; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:19 + # source://rubocop//lib/rubocop/config_obsoletion.rb#19 def warnings; end private @@ -1497,7 +1620,7 @@ class RuboCop::ConfigObsoletion # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:69 + # source://rubocop//lib/rubocop/config_obsoletion.rb#69 def load_cop_rules(rules); end # Parameter rules may apply to multiple cops and multiple parameters @@ -1506,7 +1629,7 @@ class RuboCop::ConfigObsoletion # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:82 + # source://rubocop//lib/rubocop/config_obsoletion.rb#82 def load_parameter_rules(rules); end # Default rules for obsoletions are in config/obsoletion.yml @@ -1514,116 +1637,116 @@ class RuboCop::ConfigObsoletion # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:50 + # source://rubocop//lib/rubocop/config_obsoletion.rb#50 def load_rules; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:95 + # source://rubocop//lib/rubocop/config_obsoletion.rb#95 def obsoletions; end class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:22 + # source://rubocop//lib/rubocop/config_obsoletion.rb#22 def files; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:22 + # source://rubocop//lib/rubocop/config_obsoletion.rb#22 def files=(_arg0); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:24 + # source://rubocop//lib/rubocop/config_obsoletion.rb#24 def legacy_cop_names; end end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion.rb#8 RuboCop::ConfigObsoletion::COP_RULE_CLASSES = T.let(T.unsafe(nil), Hash) # Encapsulation of a ConfigObsoletion rule for changing a parameter # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_enforced_styles.rb:7 +# source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#7 class RuboCop::ConfigObsoletion::ChangedEnforcedStyles < ::RuboCop::ConfigObsoletion::ParameterRule # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_enforced_styles.rb:14 + # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#14 def message; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_enforced_styles.rb:10 + # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#10 def violated?; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_enforced_styles.rb:28 + # source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#28 def value; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_enforced_styles.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion/changed_enforced_styles.rb#8 RuboCop::ConfigObsoletion::ChangedEnforcedStyles::BASE_MESSAGE = T.let(T.unsafe(nil), String) # Encapsulation of a ConfigObsoletion rule for changing a parameter # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_parameter.rb:7 +# source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#7 class RuboCop::ConfigObsoletion::ChangedParameter < ::RuboCop::ConfigObsoletion::ParameterRule # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_parameter.rb:10 + # source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#10 def message; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/changed_parameter.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion/changed_parameter.rb#8 RuboCop::ConfigObsoletion::ChangedParameter::BASE_MESSAGE = T.let(T.unsafe(nil), String) # Base class for ConfigObsoletion rules relating to cops # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:7 +# source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#7 class RuboCop::ConfigObsoletion::CopRule < ::RuboCop::ConfigObsoletion::Rule # @api private # @return [CopRule] a new instance of CopRule # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:10 + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#10 def initialize(config, old_name); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:15 + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#15 def cop_rule?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:19 + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#19 def message; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:8 + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#8 def old_name; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:28 + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#28 def violated?; end # Cop rules currently can only be failures, not warnings @@ -1631,13 +1754,13 @@ class RuboCop::ConfigObsoletion::CopRule < ::RuboCop::ConfigObsoletion::Rule # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/cop_rule.rb:24 + # source://rubocop//lib/rubocop/config_obsoletion/cop_rule.rb#24 def warning?; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:7 +# source://rubocop//lib/rubocop/config_obsoletion.rb#7 RuboCop::ConfigObsoletion::DEFAULT_RULES_FILE = T.let(T.unsafe(nil), String) # Encapsulation of a ConfigObsoletion rule for splitting a cop's @@ -1645,119 +1768,119 @@ RuboCop::ConfigObsoletion::DEFAULT_RULES_FILE = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#8 class RuboCop::ConfigObsoletion::ExtractedCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [ExtractedCop] a new instance of ExtractedCop # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:11 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#11 def initialize(config, old_name, gem); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:9 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#9 def department; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:9 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#9 def gem; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:23 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#23 def rule_message; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:17 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#17 def violated?; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:32 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#32 def affected_cops; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/extracted_cop.rb:41 + # source://rubocop//lib/rubocop/config_obsoletion/extracted_cop.rb#41 def feature_loaded?; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion.rb:14 +# source://rubocop//lib/rubocop/config_obsoletion.rb#14 RuboCop::ConfigObsoletion::PARAMETER_RULE_CLASSES = T.let(T.unsafe(nil), Hash) # Base class for ConfigObsoletion rules relating to parameters # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:7 +# source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#7 class RuboCop::ConfigObsoletion::ParameterRule < ::RuboCop::ConfigObsoletion::Rule # @api private # @return [ParameterRule] a new instance of ParameterRule # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:10 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#10 def initialize(config, cop, parameter, metadata); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:8 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 def cop; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:8 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 def metadata; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:8 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#8 def parameter; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:17 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#17 def parameter_rule?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:21 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#21 def violated?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:25 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#25 def warning?; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:31 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#31 def alternative; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:35 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#35 def alternatives; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:39 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#39 def reason; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/parameter_rule.rb:43 + # source://rubocop//lib/rubocop/config_obsoletion/parameter_rule.rb#43 def severity; end end @@ -1766,45 +1889,45 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#8 class RuboCop::ConfigObsoletion::RemovedCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [RemovedCop] a new instance of RemovedCop # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:13 + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#13 def initialize(config, old_name, metadata); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:9 + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#9 def metadata; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:9 + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#9 def old_name; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:18 + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#18 def rule_message; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:36 + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#36 def alternatives; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:32 + # source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#32 def reason; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/removed_cop.rb:11 +# source://rubocop//lib/rubocop/config_obsoletion/removed_cop.rb#11 RuboCop::ConfigObsoletion::RemovedCop::BASE_MESSAGE = T.let(T.unsafe(nil), String) # Encapsulation of a ConfigObsoletion rule for renaming @@ -1812,22 +1935,22 @@ RuboCop::ConfigObsoletion::RemovedCop::BASE_MESSAGE = T.let(T.unsafe(nil), Strin # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/renamed_cop.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#8 class RuboCop::ConfigObsoletion::RenamedCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [RenamedCop] a new instance of RenamedCop # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/renamed_cop.rb:11 + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#11 def initialize(config, old_name, new_name); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/renamed_cop.rb:9 + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#9 def new_name; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/renamed_cop.rb:16 + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#16 def rule_message; end private @@ -1835,12 +1958,12 @@ class RuboCop::ConfigObsoletion::RenamedCop < ::RuboCop::ConfigObsoletion::CopRu # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/renamed_cop.rb:22 + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#22 def moved?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/renamed_cop.rb:29 + # source://rubocop//lib/rubocop/config_obsoletion/renamed_cop.rb#29 def verb; end end @@ -1848,12 +1971,12 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:7 +# source://rubocop//lib/rubocop/config_obsoletion/rule.rb#7 class RuboCop::ConfigObsoletion::Rule # @api private # @return [Rule] a new instance of Rule # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:8 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#8 def initialize(config); end # Does this rule relate to cops? @@ -1861,7 +1984,7 @@ class RuboCop::ConfigObsoletion::Rule # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:13 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#13 def cop_rule?; end # Does this rule relate to parameters? @@ -1869,31 +1992,31 @@ class RuboCop::ConfigObsoletion::Rule # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:18 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#18 def parameter_rule?; end # @api private # @raise [NotImplementedError] # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:22 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#22 def violated?; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:28 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#28 def config; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:36 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#36 def smart_loaded_path; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/rule.rb:30 + # source://rubocop//lib/rubocop/config_obsoletion/rule.rb#30 def to_sentence(collection, connector: T.unsafe(nil)); end end @@ -1902,29 +2025,29 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_obsoletion/split_cop.rb:8 +# source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#8 class RuboCop::ConfigObsoletion::SplitCop < ::RuboCop::ConfigObsoletion::CopRule # @api private # @return [SplitCop] a new instance of SplitCop # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/split_cop.rb:11 + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#11 def initialize(config, old_name, metadata); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/split_cop.rb:9 + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#9 def metadata; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/split_cop.rb:16 + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#16 def rule_message; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_obsoletion/split_cop.rb:22 + # source://rubocop//lib/rubocop/config_obsoletion/split_cop.rb#22 def alternatives; end end @@ -1932,111 +2055,111 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:6 +# source://rubocop//lib/rubocop/config_regeneration.rb#6 class RuboCop::ConfigRegeneration # Get options from the comment in the TODO file, and parse them as options # # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:12 + # source://rubocop//lib/rubocop/config_regeneration.rb#12 def options; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:29 + # source://rubocop//lib/rubocop/config_regeneration.rb#29 def generation_command; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:25 + # source://rubocop//lib/rubocop/config_regeneration.rb#25 def todo_exists?; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:7 +# source://rubocop//lib/rubocop/config_regeneration.rb#7 RuboCop::ConfigRegeneration::AUTO_GENERATED_FILE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:8 +# source://rubocop//lib/rubocop/config_regeneration.rb#8 RuboCop::ConfigRegeneration::COMMAND_REGEX = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_regeneration.rb:9 +# source://rubocop//lib/rubocop/config_regeneration.rb#9 RuboCop::ConfigRegeneration::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # Handles caching of configurations and association of inspected # ruby files to configurations. # -# source://rubocop-1.35.1/lib/rubocop/config_store.rb:6 +# source://rubocop//lib/rubocop/config_store.rb#6 class RuboCop::ConfigStore # @return [ConfigStore] a new instance of ConfigStore # - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:10 + # source://rubocop//lib/rubocop/config_store.rb#10 def initialize; end # If type (file/dir) is known beforehand, # prefer using #for_file or #for_dir for improved performance # - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:52 + # source://rubocop//lib/rubocop/config_store.rb#52 def for(file_or_dir); end - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:61 + # source://rubocop//lib/rubocop/config_store.rb#61 def for_dir(dir); end - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:42 + # source://rubocop//lib/rubocop/config_store.rb#42 def for_file(file); end - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:46 + # source://rubocop//lib/rubocop/config_store.rb#46 def for_pwd; end - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:33 + # source://rubocop//lib/rubocop/config_store.rb#33 def force_default_config!; end - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:28 + # source://rubocop//lib/rubocop/config_store.rb#28 def options_config=(options_config); end - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:37 + # source://rubocop//lib/rubocop/config_store.rb#37 def unvalidated; end # Returns the value of attribute validated. # - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:7 + # source://rubocop//lib/rubocop/config_store.rb#7 def validated; end # Returns the value of attribute validated. # - # source://rubocop-1.35.1/lib/rubocop/config_store.rb:7 + # source://rubocop//lib/rubocop/config_store.rb#7 def validated?; end end # Handles validation of configuration, for example cop names, parameter # names, and Ruby versions. # -# source://rubocop-1.35.1/lib/rubocop/config_validator.rb:8 +# source://rubocop//lib/rubocop/config_validator.rb#8 class RuboCop::ConfigValidator extend ::Forwardable # @return [ConfigValidator] a new instance of ConfigValidator # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:27 + # source://rubocop//lib/rubocop/config_validator.rb#27 def initialize(config); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def for_all_cops(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def smart_loaded_path(*args, &block); end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:63 + # source://rubocop//lib/rubocop/config_validator.rb#63 def target_ruby_version; end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:33 + # source://rubocop//lib/rubocop/config_validator.rb#33 def validate; end # Validations that should only be run after all config resolving has @@ -2045,194 +2168,194 @@ class RuboCop::ConfigValidator # chain has been loaded so that only the final value is validated, and # any obsolete but overridden values are ignored. # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:59 + # source://rubocop//lib/rubocop/config_validator.rb#59 def validate_after_resolution; end # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:67 + # source://rubocop//lib/rubocop/config_validator.rb#67 def validate_section_presence(name); end private # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:104 + # source://rubocop//lib/rubocop/config_validator.rb#104 def alert_about_unrecognized_cops(invalid_cop_names); end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:253 + # source://rubocop//lib/rubocop/config_validator.rb#253 def check_cop_config_value(hash, parent = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:77 + # source://rubocop//lib/rubocop/config_validator.rb#77 def check_obsoletions; end # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:84 + # source://rubocop//lib/rubocop/config_validator.rb#84 def check_target_ruby; end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:195 + # source://rubocop//lib/rubocop/config_validator.rb#195 def each_invalid_parameter(cop_name); end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:120 + # source://rubocop//lib/rubocop/config_validator.rb#120 def list_unknown_cops(invalid_cop_names); end # FIXME: Handling colors in exception messages like this is ugly. # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:266 + # source://rubocop//lib/rubocop/config_validator.rb#266 def msg_not_boolean(parent, key, value); end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:242 + # source://rubocop//lib/rubocop/config_validator.rb#242 def reject_conflicting_safe_settings; end # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:233 + # source://rubocop//lib/rubocop/config_validator.rb#233 def reject_mutually_exclusive_defaults; end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:142 + # source://rubocop//lib/rubocop/config_validator.rb#142 def suggestion(name); end # Returns the value of attribute target_ruby. # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:75 + # source://rubocop//lib/rubocop/config_validator.rb#75 def target_ruby; end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:207 + # source://rubocop//lib/rubocop/config_validator.rb#207 def validate_enforced_styles(valid_cop_names); end # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:169 + # source://rubocop//lib/rubocop/config_validator.rb#169 def validate_new_cops_parameter; end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:180 + # source://rubocop//lib/rubocop/config_validator.rb#180 def validate_parameter_names(valid_cop_names); end - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:227 + # source://rubocop//lib/rubocop/config_validator.rb#227 def validate_support_and_has_list(name, formats, valid); end # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/config_validator.rb:158 + # source://rubocop//lib/rubocop/config_validator.rb#158 def validate_syntax_cop; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_validator.rb:12 +# source://rubocop//lib/rubocop/config_validator.rb#12 RuboCop::ConfigValidator::COMMON_PARAMS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/config_validator.rb:22 +# source://rubocop//lib/rubocop/config_validator.rb#22 RuboCop::ConfigValidator::CONFIG_CHECK_DEPARTMENTS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_validator.rb:21 +# source://rubocop//lib/rubocop/config_validator.rb#21 RuboCop::ConfigValidator::CONFIG_CHECK_KEYS = T.let(T.unsafe(nil), Set) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_validator.rb:14 +# source://rubocop//lib/rubocop/config_validator.rb#14 RuboCop::ConfigValidator::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/config_validator.rb:18 +# source://rubocop//lib/rubocop/config_validator.rb#18 RuboCop::ConfigValidator::NEW_COPS_VALUES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/util.rb:4 +# source://rubocop//lib/rubocop/cop/util.rb#4 module RuboCop::Cop; end # This module checks for nodes that should be aligned to the left or right. # This amount is determined by the instance variable @column_delta. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#7 module RuboCop::Cop::Alignment private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#26 def check_alignment(items, base_column = T.unsafe(nil)); end # Returns the value of attribute column_delta. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#12 def column_delta; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#14 def configured_indentation_width; end # @api public # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:58 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#58 def display_column(range); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:45 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#45 def each_bad_alignment(items, base_column); end # @deprecated Use processed_source.comment_at_line(line) # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:69 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#69 def end_of_line_comment(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#18 def indentation(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#22 def offset(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:74 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#74 def register_offense(offense_node, message_node); end # @api public # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:64 + # source://rubocop//lib/rubocop/cop/mixin/alignment.rb#64 def within?(inner, outer); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/alignment.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/alignment.rb#10 RuboCop::Cop::Alignment::SPACE = T.let(T.unsafe(nil), String) # This class does autocorrection of nodes that should just be moved to # the left or to the right, amount being determined by the instance # variable column_delta. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:8 +# source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#8 class RuboCop::Cop::AlignmentCorrector extend ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::Alignment class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:29 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#29 def align_end(corrector, processed_source, node, align_to); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:15 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#15 def correct(corrector, processed_source, node, column_delta); end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:13 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#13 def processed_source; end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:124 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#124 def alignment_column(align_to); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:40 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#40 def autocorrect_line(corrector, line_begin_pos, expr, column_delta, taboo_ranges); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:81 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#81 def block_comment_within?(expr); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:87 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#87 def calculate_range(expr, line_begin_pos, column_delta); end # Some special kinds of string literals are not composed of literal @@ -2243,126 +2366,132 @@ class RuboCop::Cop::AlignmentCorrector # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:75 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#75 def delimited_string_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:110 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#110 def each_line(expr); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:60 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#60 def inside_string_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:54 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#54 def inside_string_ranges(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:99 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#99 def remove(range, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/alignment_corrector.rb:118 + # source://rubocop//lib/rubocop/cop/correctors/alignment_corrector.rb#118 def whitespace_range(node); end end end # This module encapsulates the ability to allow certain identifiers in a cop. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_identifiers.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#6 module RuboCop::Cop::AllowedIdentifiers # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_identifiers.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#9 def allowed_identifier?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_identifiers.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#13 def allowed_identifiers; end end # if a variable starts with a sigil it will be removed # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_identifiers.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/allowed_identifiers.rb#7 RuboCop::Cop::AllowedIdentifiers::SIGILS = T.let(T.unsafe(nil), String) # This module encapsulates the ability to allow certain methods when # parsing. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#7 module RuboCop::Cop::AllowedMethods private # @api public # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#11 def allowed_method?(name); end # @api public # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#19 def allowed_methods; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:28 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#27 + def cop_config_allowed_methods; end + + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#31 def cop_config_deprecated_values; end # @api public # @deprecated Use allowed_method? instead # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#11 def ignored_method?(name); end end # This module encapsulates the ability to ignore certain lines when # parsing. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#7 module RuboCop::Cop::AllowedPattern private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 def allowed_line?(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:30 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#30 def allowed_patterns; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:40 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#46 def cop_config_deprecated_methods_values; end + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#40 + def cop_config_patterns_values; end + # @deprecated Use allowed_line? instead # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#10 def ignored_line?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#23 def matches_allowed_pattern?(line); end # @deprecated Use matches_allowed_pattern?? instead # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#23 def matches_ignored_pattern?(line); end end # Error raised when an unqualified cop name is used that could # refer to two or more cops under different departments # -# source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:7 +# source://rubocop//lib/rubocop/cop/registry.rb#7 class RuboCop::Cop::AmbiguousCopName < ::RuboCop::Error # @return [AmbiguousCopName] a new instance of AmbiguousCopName # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:11 + # source://rubocop//lib/rubocop/cop/registry.rb#11 def initialize(name, origin, badges); end end -# source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:8 +# source://rubocop//lib/rubocop/cop/registry.rb#8 RuboCop::Cop::AmbiguousCopName::MSG = T.let(T.unsafe(nil), String) # Representation of an annotation comment in source code (eg. `# TODO: blah blah blah`). # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#6 class RuboCop::Cop::AnnotationComment extend ::Forwardable @@ -2370,187 +2499,193 @@ class RuboCop::Cop::AnnotationComment # @param keywords [Array] # @return [AnnotationComment] a new instance of AnnotationComment # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#13 def initialize(comment, keywords); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#19 def annotation?; end # Returns the range bounds for just the annotation # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#31 def bounds; end # Returns the value of attribute colon. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 def colon; end # Returns the value of attribute comment. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 def comment; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#23 def correct?(colon:); end # Returns the value of attribute keyword. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 def keyword; end # Returns the value of attribute margin. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 def margin; end # Returns the value of attribute note. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 def note; end # Returns the value of attribute space. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#9 def space; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:60 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#67 def just_keyword_of_sentence?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:56 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#63 def keyword_appearance?; end # Returns the value of attribute keywords. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:39 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#39 def keywords; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/annotation_comment.rb:41 + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#53 + def regex; end + + # source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#41 def split_comment(comment); end end +# source://rubocop//lib/rubocop/cop/mixin/annotation_comment.rb#50 +RuboCop::Cop::AnnotationComment::KEYWORDS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) + # Handles the `MinSize` configuration option for array-based cops # `Style/SymbolArray` and `Style/WordArray`, which check for use of the # relevant percent literal syntax such as `%i[...]` and `%w[...]` # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_min_size.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#8 module RuboCop::Cop::ArrayMinSize private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_min_size.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#19 def array_style_detected(style, ary_size); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_min_size.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#11 def below_array_length?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_min_size.rb:38 + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#38 def largest_brackets_size(style, ary_size); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_min_size.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#15 def min_size_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_min_size.rb:48 + # source://rubocop//lib/rubocop/cop/mixin/array_min_size.rb#48 def smallest_percent_size(style, ary_size); end end # Common code for ordinary arrays with [] that can be written with % # syntax. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_syntax.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/array_syntax.rb#7 module RuboCop::Cop::ArraySyntax private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/array_syntax.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/array_syntax.rb#10 def bracketed_array_of?(element_type, node); end end # extend this module to signal autocorrection support # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/auto_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/auto_corrector.rb#6 module RuboCop::Cop::AutoCorrector # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/auto_corrector.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/auto_corrector.rb#7 def support_autocorrect?; end end # This module encapsulates the logic for autocorrect behavior for a cop. # -# source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:6 +# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#6 module RuboCop::Cop::AutocorrectLogic # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:7 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#7 def autocorrect?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:31 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#31 def autocorrect_enabled?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:15 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#15 def autocorrect_requested?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:11 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#11 def autocorrect_with_disable_uncorrectable?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:19 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#19 def correctable?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:23 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#23 def disable_uncorrectable?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:27 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#27 def safe_autocorrect?; end private - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:46 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#46 def disable_offense(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:95 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#95 def disable_offense_at_end_of_line(range, eol_comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:99 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#99 def disable_offense_before_and_after(range_by_lines); end - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:91 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#91 def max_line_length; end # Expand the given range to include all of any lines it covers. Does not # include newline at end of the last line. # - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:81 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#81 def range_by_lines(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:72 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#72 def range_of_first_line(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/autocorrect_logic.rb:61 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#61 def surrounding_heredoc(offense_range); end end @@ -2562,56 +2697,61 @@ end # allow for badge references in source files that omit the department for # RuboCop to infer. # -# source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:12 +# source://rubocop//lib/rubocop/cop/badge.rb#12 class RuboCop::Cop::Badge # @return [Badge] a new instance of Badge # - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:31 + # source://rubocop//lib/rubocop/cop/badge.rb#34 def initialize(class_name_parts); end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:37 + # source://rubocop//lib/rubocop/cop/badge.rb#41 def ==(other); end # Returns the value of attribute cop_name. # - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:13 + # source://rubocop//lib/rubocop/cop/badge.rb#13 def cop_name; end # Returns the value of attribute department. # - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:13 + # source://rubocop//lib/rubocop/cop/badge.rb#13 def department; end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:37 + # Returns the value of attribute department_name. + # + # source://rubocop//lib/rubocop/cop/badge.rb#13 + def department_name; end + + # source://rubocop//lib/rubocop/cop/badge.rb#41 def eql?(other); end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:42 + # source://rubocop//lib/rubocop/cop/badge.rb#46 def hash; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:46 + # source://rubocop//lib/rubocop/cop/badge.rb#51 def match?(other); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:54 + # source://rubocop//lib/rubocop/cop/badge.rb#59 def qualified?; end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:50 + # source://rubocop//lib/rubocop/cop/badge.rb#55 def to_s; end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:58 + # source://rubocop//lib/rubocop/cop/badge.rb#63 def with_department(department); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:25 + # source://rubocop//lib/rubocop/cop/badge.rb#27 def camel_case(name_part); end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:15 + # source://rubocop//lib/rubocop/cop/badge.rb#15 def for(class_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/badge.rb:21 + # source://rubocop//lib/rubocop/cop/badge.rb#23 def parse(identifier); end end end @@ -2645,7 +2785,7 @@ end # Private methods are not meant for custom cops consumption, # nor are any instance variables. # -# source://rubocop-1.35.1/lib/rubocop/cop/base.rb:34 +# source://rubocop//lib/rubocop/cop/base.rb#34 class RuboCop::Cop::Base include ::RuboCop::AST::Sexp include ::RuboCop::PathUtil @@ -2658,18 +2798,18 @@ class RuboCop::Cop::Base # @return [Base] a new instance of Base # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:71 + # source://rubocop//lib/rubocop/cop/base.rb#129 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:223 + # source://rubocop//lib/rubocop/cop/base.rb#235 def active_support_extensions_enabled?; end # Adds an offense that has no particular location. # No correction can be applied to global offenses # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:107 + # source://rubocop//lib/rubocop/cop/base.rb#162 def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end # Adds an offense on the specified range (or node with an expression) @@ -2677,36 +2817,36 @@ class RuboCop::Cop::Base # to provide the cop the opportunity to autocorrect the offense. # If message is not specified, the method `message` will be called. # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:118 + # source://rubocop//lib/rubocop/cop/base.rb#172 def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:274 + # source://rubocop//lib/rubocop/cop/base.rb#276 def callbacks_needed; end # Returns the value of attribute config. # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:43 + # source://rubocop//lib/rubocop/cop/base.rb#43 def config; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:207 + # source://rubocop//lib/rubocop/cop/base.rb#219 def config_to_allow_offenses; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:211 + # source://rubocop//lib/rubocop/cop/base.rb#223 def config_to_allow_offenses=(hash); end # Configuration Helpers # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:201 + # source://rubocop//lib/rubocop/cop/base.rb#213 def cop_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:193 + # source://rubocop//lib/rubocop/cop/base.rb#205 def cop_name; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:233 + # source://rubocop//lib/rubocop/cop/base.rb#247 def excluded_file?(file); end # This method should be overridden when a cop's behavior depends @@ -2725,145 +2865,151 @@ class RuboCop::Cop::Base # ResultCache system when those external dependencies change, # ie when the ResultCache should be invalidated. # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:147 + # source://rubocop//lib/rubocop/cop/base.rb#201 def external_dependency_checksum; end # Gets called if no message is specified when calling `add_offense` or # `add_global_offense` # Cops are discouraged to override this; instead pass your message directly # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:101 + # source://rubocop//lib/rubocop/cop/base.rb#156 def message(_range = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:193 + # source://rubocop//lib/rubocop/cop/base.rb#205 def name; end # @deprecated Make potential errors with previous API more obvious # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:266 + # source://rubocop//lib/rubocop/cop/base.rb#267 def offenses; end # Called after all on_... have been called # When refining this method, always call `super` # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:85 + # source://rubocop//lib/rubocop/cop/base.rb#143 def on_investigation_end; end # Called before all on_... have been called # When refining this method, always call `super` # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:79 + # source://rubocop//lib/rubocop/cop/base.rb#137 def on_new_investigation; end # Called instead of all on_... callbacks for unrecognized files / syntax errors # When refining this method, always call `super` # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:91 + # source://rubocop//lib/rubocop/cop/base.rb#149 def on_other_file; end # There should be very limited reasons for a Cop to do it's own parsing # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:238 + # source://rubocop//lib/rubocop/cop/base.rb#252 def parse(source, path = T.unsafe(nil)); end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:43 + # source://rubocop//lib/rubocop/cop/base.rb#43 def processed_source; end # Called between investigations # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:257 + # source://rubocop//lib/rubocop/cop/base.rb#258 def ready; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:227 + # source://rubocop//lib/rubocop/cop/base.rb#239 def relevant_file?(file); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:219 + # source://rubocop//lib/rubocop/cop/base.rb#231 def target_rails_version; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:215 + # source://rubocop//lib/rubocop/cop/base.rb#227 def target_ruby_version; end private - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:405 + # source://rubocop//lib/rubocop/cop/base.rb#422 def annotate(message); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:294 + # source://rubocop//lib/rubocop/cop/base.rb#297 def apply_correction(corrector); end # @return [Symbol] offense status # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:369 + # source://rubocop//lib/rubocop/cop/base.rb#386 def attempt_correction(range, corrector); end # Called before any investigation # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:313 + # source://rubocop//lib/rubocop/cop/base.rb#324 def begin_investigation(processed_source); end # Reserved for Cop::Cop # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:290 + # source://rubocop//lib/rubocop/cop/base.rb#293 def callback_argument(range); end # Called to complete an investigation # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:322 + # source://rubocop//lib/rubocop/cop/base.rb#335 def complete_investigation; end # @return [Symbol, Corrector] offense status # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:343 + # source://rubocop//lib/rubocop/cop/base.rb#360 def correct(range); end + # source://rubocop//lib/rubocop/cop/base.rb#311 + def current_corrector; end + # Reserved for Commissioner: # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:300 + # source://rubocop//lib/rubocop/cop/base.rb#303 def current_offense_locations; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:304 + # source://rubocop//lib/rubocop/cop/base.rb#315 + def current_offenses; end + + # source://rubocop//lib/rubocop/cop/base.rb#307 def currently_disabled_lines; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:440 + # source://rubocop//lib/rubocop/cop/base.rb#450 def custom_severity; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:436 + # source://rubocop//lib/rubocop/cop/base.rb#446 def default_severity; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:383 + # source://rubocop//lib/rubocop/cop/base.rb#400 def disable_uncorrectable(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:426 + # source://rubocop//lib/rubocop/cop/base.rb#436 def enabled_line?(line_number); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:411 + # source://rubocop//lib/rubocop/cop/base.rb#428 def file_name_matches_any?(file, parameter, default_result); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:401 + # source://rubocop//lib/rubocop/cop/base.rb#418 def find_message(range, message); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:432 + # source://rubocop//lib/rubocop/cop/base.rb#442 def find_severity(_range, severity); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:390 + # source://rubocop//lib/rubocop/cop/base.rb#407 def range_from_node_or_range(node_or_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:338 + # source://rubocop//lib/rubocop/cop/base.rb#355 def reset_investigation; end # @return [Symbol] offense status # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:358 + # source://rubocop//lib/rubocop/cop/base.rb#375 def use_corrector(range, corrector); end class << self @@ -2873,23 +3019,23 @@ class RuboCop::Cop::Base # @api public # @return [Array] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:59 + # source://rubocop//lib/rubocop/cop/base.rb#59 def autocorrect_incompatible_with; end # Naming # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:169 + # source://rubocop//lib/rubocop/cop/base.rb#89 def badge; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:279 + # source://rubocop//lib/rubocop/cop/base.rb#281 def callbacks_needed; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:173 + # source://rubocop//lib/rubocop/cop/base.rb#93 def cop_name; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:177 + # source://rubocop//lib/rubocop/cop/base.rb#97 def department; end # Cops (other than builtin) are encouraged to implement this @@ -2897,27 +3043,27 @@ class RuboCop::Cop::Base # @api public # @return [String, nil] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:67 + # source://rubocop//lib/rubocop/cop/base.rb#67 def documentation_url; end # Call for abstract Cop classes # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:157 + # source://rubocop//lib/rubocop/cop/base.rb#77 def exclude_from_registry; end # @private # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:151 + # source://rubocop//lib/rubocop/cop/base.rb#71 def inherited(subclass); end # Override and return the Force class(es) you need to join # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:96 + # source://rubocop//lib/rubocop/cop/base.rb#114 def joining_forces; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:181 + # source://rubocop//lib/rubocop/cop/base.rb#101 def lint?; end # Returns true if the cop name or the cop namespace matches any of the @@ -2925,7 +3071,7 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:187 + # source://rubocop//lib/rubocop/cop/base.rb#107 def match?(given_names); end # Returns if class supports autocorrect. @@ -2933,7 +3079,7 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:163 + # source://rubocop//lib/rubocop/cop/base.rb#83 def support_autocorrect?; end # Override if your cop should be called repeatedly for multiple investigations @@ -2946,28 +3092,29 @@ class RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:251 + # source://rubocop//lib/rubocop/cop/base.rb#125 def support_multiple_source?; end private - # Actually private methods - # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:330 + # source://rubocop//lib/rubocop/cop/base.rb#346 def builtin?; end - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:308 + # source://rubocop//lib/rubocop/cop/base.rb#319 def restrict_on_send; end end end +# source://rubocop//lib/rubocop/cop/base.rb#332 +RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array) + # Reports of an investigation. # Immutable # Consider creation API private # -# source://rubocop-1.35.1/lib/rubocop/cop/base.rb:48 +# source://rubocop//lib/rubocop/cop/base.rb#48 class RuboCop::Cop::Base::InvestigationReport < ::Struct # Returns the value of attribute cop # @@ -2979,7 +3126,7 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:48 + # source://rubocop//lib/rubocop/cop/base.rb#48 def cop=(_); end # Returns the value of attribute corrector @@ -2992,7 +3139,7 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute corrector to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:48 + # source://rubocop//lib/rubocop/cop/base.rb#48 def corrector=(_); end # Returns the value of attribute offenses @@ -3005,7 +3152,7 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:48 + # source://rubocop//lib/rubocop/cop/base.rb#48 def offenses=(_); end # Returns the value of attribute processed_source @@ -3018,7 +3165,7 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/base.rb:48 + # source://rubocop//lib/rubocop/cop/base.rb#48 def processed_source=(_); end class << self @@ -3031,10 +3178,10 @@ end # List of methods names to restrict calls for `on_send` / `on_csend` # -# source://rubocop-1.35.1/lib/rubocop/cop/base.rb:51 +# source://rubocop//lib/rubocop/cop/base.rb#51 RuboCop::Cop::Base::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:5 +# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#5 module RuboCop::Cop::Bundler; end # A Gem's requirements should be listed only once in a Gemfile. @@ -3070,36 +3217,36 @@ module RuboCop::Cop::Bundler; end # gem 'rubocop', '~> 0.90.0' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:38 +# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#38 class RuboCop::Cop::Bundler::DuplicatedGem < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:57 + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#57 def gem_declarations(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:44 + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#44 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:66 + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#66 def conditional_declaration?(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:59 + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#59 def duplicated_gem_nodes; end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:80 + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#80 def register_offense(node, gem_name, line_of_first_occurrence); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:74 + # source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#74 def within_conditional?(node, conditional_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/duplicated_gem.rb:41 +# source://rubocop//lib/rubocop/cop/bundler/duplicated_gem.rb#41 RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) # Each gem in the Gemfile should have a comment explaining @@ -3176,43 +3323,43 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) # # Version 2.1 introduces breaking change baz # gem 'bar', '< 2.1' # -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:83 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#83 class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::DefNode include ::RuboCop::Cop::GemDeclaration - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:94 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#94 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:135 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#135 def checked_options_present?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:109 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#109 def commented?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:105 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#105 def commented_any_descendant?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:159 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#159 def contains_checked_options?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:163 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#163 def gem_options(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:130 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#130 def ignored_gem?(node); end # The args node1 & node2 may represent a RuboCop::AST::Node @@ -3220,15 +3367,15 @@ class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:116 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#116 def precede?(node1, node2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:126 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#126 def preceding_comment?(node1, node2); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:120 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#120 def preceding_lines(node); end # Version specifications that restrict all updates going forward. This excludes versions @@ -3236,7 +3383,7 @@ class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:152 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#152 def restrictive_version_specified_gem?(node); end # Besides the gem name, all other *positional* arguments to `gem` are version specifiers, @@ -3244,26 +3391,26 @@ class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:145 + # source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#145 def version_specified_gem?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:88 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#88 RuboCop::Cop::Bundler::GemComment::CHECKED_OPTIONS_CONFIG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:87 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#87 RuboCop::Cop::Bundler::GemComment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:91 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#91 RuboCop::Cop::Bundler::GemComment::RESTRICTIVE_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:90 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#90 RuboCop::Cop::Bundler::GemComment::RESTRICTIVE_VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:92 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#92 RuboCop::Cop::Bundler::GemComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_comment.rb:89 +# source://rubocop//lib/rubocop/cop/bundler/gem_comment.rb#89 RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) # Verifies that a project contains Gemfile or gems.rb file and correct @@ -3288,67 +3435,67 @@ RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(ni # # good # Project contains gems.rb and gems.locked files # -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:28 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#28 class RuboCop::Cop::Bundler::GemFilename < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:43 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#43 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:88 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#88 def expected_gemfile?(basename); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:80 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#80 def gemfile_offense?(basename); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:93 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#93 def gemfile_required?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:84 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#84 def gems_rb_offense?(basename); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:97 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#97 def gems_rb_required?; end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:58 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#58 def register_gemfile_offense(file_path, basename); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:69 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#69 def register_gems_rb_offense(file_path, basename); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:53 + # source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#53 def register_offense(file_path, basename); end end -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:40 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#40 RuboCop::Cop::Bundler::GemFilename::GEMFILE_FILES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:41 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#41 RuboCop::Cop::Bundler::GemFilename::GEMS_RB_FILES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:36 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#36 RuboCop::Cop::Bundler::GemFilename::MSG_GEMFILE_MISMATCHED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:32 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#32 RuboCop::Cop::Bundler::GemFilename::MSG_GEMFILE_REQUIRED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:38 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#38 RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_MISMATCHED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_filename.rb:34 +# source://rubocop//lib/rubocop/cop/bundler/gem_filename.rb#34 RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_REQUIRED = T.let(T.unsafe(nil), String) # Enforce that Gem version specifications or a commit reference (branch, @@ -3397,71 +3544,71 @@ RuboCop::Cop::Bundler::GemFilename::MSG_GEMS_RB_REQUIRED = T.let(T.unsafe(nil), # # bad # gem 'rubocop', tag: 'v1.17.0' # -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:53 +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#53 class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::GemDeclaration - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:67 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#67 def includes_commit_reference?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:62 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#62 def includes_version_specification?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:71 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#71 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:85 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#85 def allowed_gem?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:89 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#89 def allowed_gems; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:113 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#113 def forbidden_offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:119 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#119 def forbidden_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:93 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#93 def message(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:103 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#103 def offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:107 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#107 def required_offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:123 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#123 def required_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:127 + # source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#127 def version_specification?(expression); end end -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:58 +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#58 RuboCop::Cop::Bundler::GemVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:57 +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#57 RuboCop::Cop::Bundler::GemVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/gem_version.rb:59 +# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#59 RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp) # Passing symbol arguments to `source` (e.g. `source :rubygems`) is @@ -3497,32 +3644,32 @@ RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe( # # bad # source 'http://rubygems.org' # -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:41 +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#41 class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:54 + # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#54 def insecure_protocol_source?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:59 + # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#59 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:80 + # source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#80 def allow_http_protocol?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:45 +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#45 RuboCop::Cop::Bundler::InsecureProtocolSource::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:49 +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#49 RuboCop::Cop::Bundler::InsecureProtocolSource::MSG_HTTP_PROTOCOL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/insecure_protocol_source.rb:51 +# source://rubocop//lib/rubocop/cop/bundler/insecure_protocol_source.rb#51 RuboCop::Cop::Bundler::InsecureProtocolSource::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Gems should be alphabetically sorted within groups. @@ -3547,67 +3694,67 @@ RuboCop::Cop::Bundler::InsecureProtocolSource::RESTRICT_ON_SEND = T.let(T.unsafe # # For tests # gem 'rspec' # -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/ordered_gems.rb:27 +# source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#27 class RuboCop::Cop::Bundler::OrderedGems < ::RuboCop::Cop::Base include ::RuboCop::Cop::OrderedGemNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/ordered_gems.rb:56 + # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#56 def gem_declarations(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/ordered_gems.rb:35 + # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#35 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/bundler/ordered_gems.rb:49 + # source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#49 def previous_declaration(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/bundler/ordered_gems.rb:31 +# source://rubocop//lib/rubocop/cop/bundler/ordered_gems.rb#31 RuboCop::Cop::Bundler::OrderedGems::MSG = T.let(T.unsafe(nil), String) # Common functionality for checking assignment nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#6 module RuboCop::Cop::CheckAssignment - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_and_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_masgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_op_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#7 def on_or_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#19 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#29 def extract_rhs(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/mixin/check_assignment.rb#29 def extract_rhs(node); end end end @@ -3652,9 +3799,9 @@ end # # (Note: Passes may not happen exactly in this sequence.) # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:44 +# source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#44 module RuboCop::Cop::CheckLineBreakable - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:45 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#45 def extract_breakable_node(node, max); end private @@ -3662,64 +3809,64 @@ module RuboCop::Cop::CheckLineBreakable # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:200 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#200 def all_on_same_line?(nodes); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:220 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#220 def already_on_multiple_lines?(node); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:133 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#133 def breakable_collection?(node, elements); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:187 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#187 def children_could_be_broken_up?(children); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:150 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#150 def contained_by_breakable_collection_on_same_line?(node); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:170 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#170 def contained_by_multiline_collection_that_could_be_broken_up?(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:60 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#60 def extract_breakable_node_from_elements(node, elements, max); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:72 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#72 def extract_first_element_over_column_limit(node, elements, max); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:92 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#92 def first_argument_is_heredoc?(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:207 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#207 def process_args(args); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:117 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#117 def safe_to_ignore?(node); end # If a send node contains a heredoc argument, splitting cannot happen @@ -3727,523 +3874,537 @@ module RuboCop::Cop::CheckLineBreakable # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:101 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#101 def shift_elements_for_heredoc_arg(node, elements, index); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/check_line_breakable.rb:112 + # source://rubocop//lib/rubocop/cop/mixin/check_line_breakable.rb#112 def within_column_limit?(element, max, line); end end # Common functionality for checking length of code segments. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/code_length.rb#6 module RuboCop::Cop::CodeLength extend ::RuboCop::ExcludeLimit - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:49 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#49 def build_code_length_calculator(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#31 def check_code_length(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:27 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#27 def count_as_one; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#23 def count_comments?; end # Returns true for lines that shall not be included in the count. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:45 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#45 def irrelevant_line(source_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#19 def max_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/code_length.rb#15 def message(length, max_length); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/code_length.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/code_length.rb#9 RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String) # Help methods for working with nodes containing comments. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#6 module RuboCop::Cop::CommentsHelp - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:18 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#25 + def comments_contain_disables?(node, cop_name); end + + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#18 def comments_in_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#14 def contains_comments?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#7 def source_range_with_comment(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:32 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#44 def begin_pos_with_comment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:46 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#58 def buffer; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:27 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#39 def end_position_for(node); end # Returns the end line of a node, which might be a comment and not part of the AST # End line is considered either the line at which another node starts, or # the line at which the parent node ends. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:54 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#66 def find_end_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/comments_help.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/comments_help.rb#54 def start_line_position(node); end end # Commissioner class is responsible for processing the AST and delegating # work to the specified cops. # -# source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:7 +# source://rubocop//lib/rubocop/cop/commissioner.rb#7 class RuboCop::Cop::Commissioner include ::RuboCop::AST::Traversal # @return [Commissioner] a new instance of Commissioner # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:44 + # source://rubocop//lib/rubocop/cop/commissioner.rb#44 def initialize(cops, forces = T.unsafe(nil), options = T.unsafe(nil)); end # Returns the value of attribute errors. # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:42 + # source://rubocop//lib/rubocop/cop/commissioner.rb#42 def errors; end # @return [InvestigationReport] # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:79 + # source://rubocop//lib/rubocop/cop/commissioner.rb#79 def investigate(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on___ENCODING__(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on___FILE__(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on___LINE__(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_alias(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_and_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_arg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_arg_expr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_array_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_array_pattern_with_tail(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_back_ref(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_block_pass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_blockarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_break(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_case_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_cbase(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_complex(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_const(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_const_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_cvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_defined?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_dstr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_dsym(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_eflipflop(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_empty_else(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_ensure(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_erange(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_false(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_find_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_float(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_forward_arg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_forward_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_forwarded_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forwarded_kwrestarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 + def on_forwarded_restarg(node); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_gvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_hash(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_hash_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_if_guard(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_iflipflop(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_in_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_in_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_index(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_indexasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_int(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_irange(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_ivar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwargs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwbegin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwnilarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwoptarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwrestarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_kwsplat(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_lambda(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_lvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_masgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_alt(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_as(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_current_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_nil_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_pattern_p(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_rest(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_var(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_with_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_match_with_trailing_comma(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_mlhs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_next(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_nil(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_not(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_nth_ref(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_op_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_optarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_or_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_pair(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_pin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_postexe(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_preexe(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_procarg0(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_rational(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_redo(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_regexp(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_regopt(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_resbody(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_restarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_retry(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_return(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_sclass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_self(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_shadowarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_splat(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_str(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_super(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_sym(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_true(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_undef(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_unless_guard(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_when(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_while_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_xstr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_yield(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:68 + # source://rubocop//lib/rubocop/cop/commissioner.rb#68 def on_zsuper(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:114 + # source://rubocop//lib/rubocop/cop/commissioner.rb#115 def build_callbacks(cops); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:109 + # source://rubocop//lib/rubocop/cop/commissioner.rb#110 def initialize_callbacks; end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:152 - def invoke(callback, cops, *args); end + # source://rubocop//lib/rubocop/cop/commissioner.rb#153 + def invoke(callback, cops); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:105 + # source://rubocop//lib/rubocop/cop/commissioner.rb#157 + def invoke_with_argument(callback, cops, arg); end + + # source://rubocop//lib/rubocop/cop/commissioner.rb#106 def reset; end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:124 + # source://rubocop//lib/rubocop/cop/commissioner.rb#125 def restrict_callbacks(callbacks); end # NOTE: mutates `callbacks` in place # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:142 + # source://rubocop//lib/rubocop/cop/commissioner.rb#143 def restricted_map(callbacks); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:97 + # source://rubocop//lib/rubocop/cop/commissioner.rb#98 def trigger_responding_cops(callback, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:132 + # source://rubocop//lib/rubocop/cop/commissioner.rb#133 def trigger_restricted_cops(event, node); end # Allow blind rescues here, since we're absorbing and packaging or # re-raising exceptions that can be raised from within the individual # cops' `#investigate` methods. # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:159 + # source://rubocop//lib/rubocop/cop/commissioner.rb#164 def with_cop_error_handling(cop, node = T.unsafe(nil)); end end @@ -4253,7 +4414,7 @@ end # Immutable # Consider creation API private # -# source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:18 +# source://rubocop//lib/rubocop/cop/commissioner.rb#18 class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # Returns the value of attribute cop_reports # @@ -4265,13 +4426,13 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute cop_reports to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:18 + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def cop_reports=(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:19 + # source://rubocop//lib/rubocop/cop/commissioner.rb#19 def cops; end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:27 + # source://rubocop//lib/rubocop/cop/commissioner.rb#27 def correctors; end # Returns the value of attribute errors @@ -4284,16 +4445,16 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute errors to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:18 + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def errors=(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:35 + # source://rubocop//lib/rubocop/cop/commissioner.rb#35 def merge(investigation); end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:31 + # source://rubocop//lib/rubocop/cop/commissioner.rb#31 def offenses; end - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:23 + # source://rubocop//lib/rubocop/cop/commissioner.rb#23 def offenses_per_cop; end # Returns the value of attribute processed_source @@ -4306,7 +4467,7 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:18 + # source://rubocop//lib/rubocop/cop/commissioner.rb#18 def processed_source=(_); end class << self @@ -4317,91 +4478,94 @@ class RuboCop::Cop::Commissioner::InvestigationReport < ::Struct end end -# source://rubocop-1.35.1/lib/rubocop/cop/commissioner.rb:10 +# source://rubocop//lib/rubocop/cop/commissioner.rb#10 RuboCop::Cop::Commissioner::RESTRICTED_CALLBACKS = T.let(T.unsafe(nil), Array) # This class does condition autocorrection # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/condition_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#6 class RuboCop::Cop::ConditionCorrector class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/condition_corrector.rb:8 + # source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#8 def correct_negative_condition(corrector, node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/condition_corrector.rb:17 + # source://rubocop//lib/rubocop/cop/correctors/condition_corrector.rb#17 def negated_condition(node); end end end # Handles `EnforcedStyle` configuration parameters. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#6 module RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:76 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#88 def alternative_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:84 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#96 def alternative_styles; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#19 def ambiguous_style_detected(*possibilities); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:48 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 def conflicting_styles_detected; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#11 def correct_style_detected; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:52 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#64 def detected_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:56 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#68 def detected_style=(style); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:48 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 def no_acceptable_style!; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:44 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#56 def no_acceptable_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#7 def opposite_style_detected; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:67 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#79 def style; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:63 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#75 def style_configured?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#29 def style_detected(detected); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:95 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#107 def style_parameter_name; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:88 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#100 def supported_styles; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#15 def unexpected_style_detected(unexpected); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_enforced_style.rb:48 + # source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#60 def unrecognized_style_detected; end end +# source://rubocop//lib/rubocop/cop/mixin/configurable_enforced_style.rb#23 +RuboCop::Cop::ConfigurableEnforcedStyle::SYMBOL_TO_STRING_CACHE = T.let(T.unsafe(nil), Hash) + # Shared functionality between mixins that enforce naming conventions # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_formatting.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#6 module RuboCop::Cop::ConfigurableFormatting include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_formatting.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#9 def check_name(node, name, name_range); end # A class emitter method is a singleton method in a class/module, where @@ -4409,15 +4573,15 @@ module RuboCop::Cop::ConfigurableFormatting # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_formatting.rb:29 + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#29 def class_emitter_method?(node, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_formatting.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#17 def report_opposing_styles(node, name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_formatting.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#23 def valid_name?(node, name, given_style = T.unsafe(nil)); end end @@ -4426,140 +4590,138 @@ end # # @deprecated Use `exclude_limit ParameterName` instead. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_max.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#8 module RuboCop::Cop::ConfigurableMax private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_max.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#11 def max=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_max.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/configurable_max.rb#19 def max_parameter_name; end end # This module provides functionality for checking if names match the # configured EnforcedStyle. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_naming.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/configurable_naming.rb#7 module RuboCop::Cop::ConfigurableNaming include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_naming.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/configurable_naming.rb#10 RuboCop::Cop::ConfigurableNaming::FORMATS = T.let(T.unsafe(nil), Hash) # This module provides functionality for checking if numbering match the # configured EnforcedStyle. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_numbering.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#7 module RuboCop::Cop::ConfigurableNumbering include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/configurable_numbering.rb:11 +# source://rubocop//lib/rubocop/cop/mixin/configurable_numbering.rb#11 RuboCop::Cop::ConfigurableNumbering::FORMATS = T.let(T.unsafe(nil), Hash) -# Legacy scaffold for Cops. -# See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html -# -# @deprecated Use Cop::Base instead +# Monkey-patch Cop for tests to provide easy access to messages and +# highlights. # -# source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:11 +# source://rubocop//lib/rubocop/cop/cop.rb#11 class RuboCop::Cop::Cop < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:25 + # source://rubocop//lib/rubocop/cop/cop.rb#53 def add_offense(node_or_range, location: T.unsafe(nil), message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # @deprecated # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:60 + # source://rubocop//lib/rubocop/cop/cop.rb#77 def corrections; end - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:37 + # source://rubocop//lib/rubocop/cop/cop.rb#65 def find_location(node, loc); end # Returns the value of attribute offenses. # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:12 + # source://rubocop//lib/rubocop/cop/cop.rb#12 def offenses; end # Called after all on_... have been called # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:74 + # source://rubocop//lib/rubocop/cop/cop.rb#91 def on_investigation_end; end # Called before all on_... have been called # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:68 + # source://rubocop//lib/rubocop/cop/cop.rb#85 def on_new_investigation; end # @deprecated Use class method # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:43 + # source://rubocop//lib/rubocop/cop/cop.rb#71 def support_autocorrect?; end private - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:109 + # source://rubocop//lib/rubocop/cop/cop.rb#109 def apply_correction(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:98 + # source://rubocop//lib/rubocop/cop/cop.rb#98 def begin_investigation(processed_source); end # Override Base # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:105 + # source://rubocop//lib/rubocop/cop/cop.rb#105 def callback_argument(_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:126 + # source://rubocop//lib/rubocop/cop/cop.rb#126 def correction_lambda; end - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:132 + # source://rubocop//lib/rubocop/cop/cop.rb#132 def dedup_on_node(node); end # Just for legacy # # @yield [corrector] # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:114 + # source://rubocop//lib/rubocop/cop/cop.rb#114 def emulate_v0_callsequence(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:139 + # source://rubocop//lib/rubocop/cop/cop.rb#139 def suppress_clobbering; end class << self # @deprecated Use Registry.all # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:87 + # source://rubocop//lib/rubocop/cop/cop.rb#44 def all; end - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:52 + # source://rubocop//lib/rubocop/cop/cop.rb#29 def joining_forces; end # @deprecated Use Registry.qualified_cop_name # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:92 + # source://rubocop//lib/rubocop/cop/cop.rb#49 def qualified_cop_name(name, origin); end # @deprecated Use Registry.global # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:82 + # source://rubocop//lib/rubocop/cop/cop.rb#39 def registry; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:48 + # source://rubocop//lib/rubocop/cop/cop.rb#25 def support_autocorrect?; end end end # @deprecated # -# source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:17 +# source://rubocop//lib/rubocop/cop/cop.rb#17 class RuboCop::Cop::Cop::Correction < ::Struct - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:18 + # source://rubocop//lib/rubocop/cop/cop.rb#18 def call(corrector); end # Returns the value of attribute cop @@ -4572,7 +4734,7 @@ class RuboCop::Cop::Cop::Correction < ::Struct # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:17 + # source://rubocop//lib/rubocop/cop/cop.rb#17 def cop=(_); end # Returns the value of attribute lambda @@ -4585,7 +4747,7 @@ class RuboCop::Cop::Cop::Correction < ::Struct # @param value [Object] the value to set the attribute lambda to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:17 + # source://rubocop//lib/rubocop/cop/cop.rb#17 def lambda=(_); end # Returns the value of attribute node @@ -4598,7 +4760,7 @@ class RuboCop::Cop::Cop::Correction < ::Struct # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/cop.rb:17 + # source://rubocop//lib/rubocop/cop/cop.rb#17 def node=(_); end class << self @@ -4616,7 +4778,7 @@ end # The nodes modified by the corrections should be part of the # AST of the source_buffer. # -# source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:11 +# source://rubocop//lib/rubocop/cop/corrector.rb#11 class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # corrector = Corrector.new(cop) # @@ -4624,7 +4786,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # leading to one via `(processed_source.)buffer`] # @return [Corrector] a new instance of Corrector # - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:18 + # source://rubocop//lib/rubocop/cop/corrector.rb#32 def initialize(source); end # Removes `size` characters from the beginning of the given range. @@ -4634,7 +4796,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param range [Parser::Source::Range, RuboCop::AST::Node] or node # @param size [Integer] # - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:49 + # source://rubocop//lib/rubocop/cop/corrector.rb#63 def remove_leading(node_or_range, size); end # Removes `size` characters prior to the source range. @@ -4642,7 +4804,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param range [Parser::Source::Range, RuboCop::AST::Node] or node # @param size [Integer] # - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:37 + # source://rubocop//lib/rubocop/cop/corrector.rb#51 def remove_preceding(node_or_range, size); end # Removes `size` characters from the end of the given range. @@ -4652,129 +4814,137 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # @param range [Parser::Source::Range, RuboCop::AST::Node] or node # @param size [Integer] # - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:61 + # source://rubocop//lib/rubocop/cop/corrector.rb#75 def remove_trailing(node_or_range, size); end # Legacy # - # source://parser-3.1.2.1/lib/parser/source/tree_rewriter.rb:252 + # source://parser/3.2.0.0/lib/parser/source/tree_rewriter.rb#252 def rewrite; end + # Swaps sources at the given ranges. + # + # @param node_or_range1 [Parser::Source::Range, RuboCop::AST::Node] + # @param node_or_range2 [Parser::Source::Range, RuboCop::AST::Node] + # + # source://rubocop//lib/rubocop/cop/corrector.rb#85 + def swap(node_or_range1, node_or_range2); end + private - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:99 + # source://rubocop//lib/rubocop/cop/corrector.rb#111 def check_range_validity(node_or_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:84 + # source://rubocop//lib/rubocop/cop/corrector.rb#96 def to_range(node_or_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:103 + # source://rubocop//lib/rubocop/cop/corrector.rb#115 def validate_buffer(buffer); end class << self # Duck typing for get to a ::Parser::Source::Buffer # - # source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:68 + # source://rubocop//lib/rubocop/cop/corrector.rb#15 def source_buffer(source); end end end # noop # -# source://rubocop-1.35.1/lib/rubocop/cop/corrector.rb:12 +# source://rubocop//lib/rubocop/cop/corrector.rb#12 RuboCop::Cop::Corrector::NOOP_CONSUMER = T.let(T.unsafe(nil), Proc) # Common functionality for checking def nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/def_node.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/def_node.rb#6 module RuboCop::Cop::DefNode include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/def_node.rb:21 + # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#21 def non_public_modifier?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/def_node.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#12 def non_public?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/def_node.rb:16 + # source://rubocop//lib/rubocop/cop/mixin/def_node.rb#16 def preceding_non_public_modifier?(node); end end # Helpers for builtin documentation # -# source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:6 +# source://rubocop//lib/rubocop/cop/documentation.rb#6 module RuboCop::Cop::Documentation private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:24 + # source://rubocop//lib/rubocop/cop/documentation.rb#24 def base_url_for(cop_class, config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:34 + # source://rubocop//lib/rubocop/cop/documentation.rb#34 def default_base_url; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:10 + # source://rubocop//lib/rubocop/cop/documentation.rb#10 def department_to_basename(department); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:15 + # source://rubocop//lib/rubocop/cop/documentation.rb#15 def url_for(cop_class, config = T.unsafe(nil)); end class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:24 + # source://rubocop//lib/rubocop/cop/documentation.rb#24 def base_url_for(cop_class, config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:34 + # source://rubocop//lib/rubocop/cop/documentation.rb#34 def default_base_url; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:10 + # source://rubocop//lib/rubocop/cop/documentation.rb#10 def department_to_basename(department); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/documentation.rb:15 + # source://rubocop//lib/rubocop/cop/documentation.rb#15 def url_for(cop_class, config = T.unsafe(nil)); end end end # Common functionality for checking documentation. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#6 module RuboCop::Cop::DocumentationComment extend ::RuboCop::AST::NodePattern::Macros private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:47 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#47 def annotation_keywords; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#11 def documentation_comment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:39 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#39 def interpreter_directive_comment?(comment); end # The args node1 & node2 may represent a RuboCop::AST::Node @@ -4782,7 +4952,7 @@ module RuboCop::Cop::DocumentationComment # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#31 def precede?(node1, node2); end # The args node1 & node2 may represent a RuboCop::AST::Node @@ -4790,21 +4960,21 @@ module RuboCop::Cop::DocumentationComment # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:25 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#25 def preceding_comment?(node1, node2); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:35 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#35 def preceding_lines(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/documentation_comment.rb:43 + # source://rubocop//lib/rubocop/cop/mixin/documentation_comment.rb#43 def rubocop_directive_comment?(comment); end end # Common functionality for dealing with duplication. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/duplication.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/duplication.rb#6 module RuboCop::Cop::Duplication private @@ -4814,7 +4984,7 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to return consecutive duplicates for # @return [Array] the consecutive duplicates # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/duplication.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#31 def consecutive_duplicates(collection); end # Returns all duplicates, including the first instance of the duplicated @@ -4823,7 +4993,7 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to return duplicates for # @return [Array] all the duplicates # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/duplication.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#22 def duplicates(collection); end # Whether the `collection` contains any duplicates. @@ -4831,7 +5001,7 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to check for duplicates # @return [Boolean] whether the array contains any duplicates # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/duplication.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#13 def duplicates?(collection); end # Returns a hash of grouped duplicates. The key will be the first @@ -4841,88 +5011,88 @@ module RuboCop::Cop::Duplication # @param collection [Array] an array to group duplicates for # @return [Array] the grouped duplicates # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/duplication.rb:41 + # source://rubocop//lib/rubocop/cop/mixin/duplication.rb#41 def grouped_duplicates(collection); end end # This class autocorrects `#each` enumeration to `for` iteration. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#6 class RuboCop::Cop::EachToForCorrector extend ::RuboCop::AST::NodePattern::Macros # @return [EachToForCorrector] a new instance of EachToForCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:12 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#12 def initialize(block_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:18 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#18 def call(corrector); end private # Returns the value of attribute argument_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:24 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 def argument_node; end # Returns the value of attribute block_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:24 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 def block_node; end # Returns the value of attribute collection_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:24 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#24 def collection_node; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:26 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#26 def correction; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:36 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#36 def offending_range; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:44 + # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#44 def replacement_range(end_pos); end end -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:10 +# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#10 RuboCop::Cop::EachToForCorrector::CORRECTION_WITHOUT_ARGUMENTS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/each_to_for_corrector.rb:9 +# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#9 RuboCop::Cop::EachToForCorrector::CORRECTION_WITH_ARGUMENTS = T.let(T.unsafe(nil), String) # This class does empty line autocorrection # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/empty_line_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#6 class RuboCop::Cop::EmptyLineCorrector class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/empty_line_corrector.rb:8 + # source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#8 def correct(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/empty_line_corrector.rb:19 + # source://rubocop//lib/rubocop/cop/correctors/empty_line_corrector.rb#19 def insert_before(corrector, node); end end end # Common code for empty parameter cops. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_parameter.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#6 module RuboCop::Cop::EmptyParameter extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_parameter.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#12 def empty_arguments?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_parameter.rb:16 + # source://rubocop//lib/rubocop/cop/mixin/empty_parameter.rb#16 def check(node); end end # Functions for checking the alignment of the `end` keyword. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#6 module RuboCop::Cop::EndKeywordAlignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -4931,39 +5101,39 @@ module RuboCop::Cop::EndKeywordAlignment # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:60 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#60 def accept_end_kw_alignment?(end_loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:50 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#50 def add_offense_for_misalignment(node, align_with); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#19 def check_end_kw_alignment(node, align_ranges); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#15 def check_end_kw_in_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:75 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#75 def line_break_before_keyword?(whole_expression, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:35 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#35 def matching_ranges(end_loc, align_ranges); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:41 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#41 def start_line_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:65 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#65 def style_parameter_name; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:69 + # source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#69 def variable_alignment?(whole_expression, rhs, end_alignment_style); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/end_keyword_alignment.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/end_keyword_alignment.rb#10 RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String) # Common functionality for enforcing a specific superclass. @@ -4977,23 +5147,23 @@ RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String) # @api private # @deprecated This module is deprecated and will be removed by RuboCop 2.0. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/enforce_superclass.rb:15 +# source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#15 module RuboCop::Cop::EnforceSuperclass # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/enforce_superclass.rb:35 + # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#35 def on_class(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/enforce_superclass.rb:39 + # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#39 def on_send(node); end class << self # @api private # @private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/enforce_superclass.rb:16 + # source://rubocop//lib/rubocop/cop/mixin/enforce_superclass.rb#16 def included(base); end end end @@ -5001,184 +5171,187 @@ end # Common functionality for checking for a line break before the first # element in a multi-line collection. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/first_element_line_break.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#7 module RuboCop::Cop::FirstElementLineBreak private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/first_element_line_break.rb:23 - def check_children_line_break(node, children, start = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#23 + def check_children_line_break(node, children, start = T.unsafe(nil), ignore_last: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/first_element_line_break.rb:10 - def check_method_line_break(node, children); end + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#10 + def check_method_line_break(node, children, ignore_last: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/first_element_line_break.rb:37 + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#37 def first_by_line(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/first_element_line_break.rb:41 - def last_by_line(nodes); end + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#41 + def last_line(nodes, ignore_last:); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/first_element_line_break.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/first_element_line_break.rb#18 def method_uses_parens?(node, limit); end end # This class autocorrects `for` iteration to `#each` enumeration. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#6 class RuboCop::Cop::ForToEachCorrector extend ::RuboCop::AST::NodePattern::Macros # @return [ForToEachCorrector] a new instance of ForToEachCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:11 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#11 def initialize(for_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:17 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#17 def call(corrector); end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:55 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#55 def collection_end; end # Returns the value of attribute collection_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:23 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23 def collection_node; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:29 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#29 def collection_source; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:25 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25 def correction; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:43 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#43 def end_position; end # Returns the value of attribute for_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:23 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23 def for_node; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:51 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#51 def keyword_begin; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:63 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#63 def offending_range; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:67 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#67 def replacement_range(end_pos); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:37 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#37 def requires_parentheses?; end # Returns the value of attribute variable_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:23 + # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23 def variable_node; end end -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/for_to_each_corrector.rb:9 +# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#9 RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String) # A scaffold for concrete forces. # -# source://rubocop-1.35.1/lib/rubocop/cop/force.rb:6 +# source://rubocop//lib/rubocop/cop/force.rb#6 class RuboCop::Cop::Force # @return [Force] a new instance of Force # - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:22 + # source://rubocop//lib/rubocop/cop/force.rb#22 def initialize(cops); end # Returns the value of attribute cops. # - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:7 + # source://rubocop//lib/rubocop/cop/force.rb#7 def cops; end - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:38 + # source://rubocop//lib/rubocop/cop/force.rb#38 def investigate(_processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:26 + # source://rubocop//lib/rubocop/cop/force.rb#26 def name; end - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:30 + # source://rubocop//lib/rubocop/cop/force.rb#30 def run_hook(method_name, *args); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:9 + # source://rubocop//lib/rubocop/cop/force.rb#9 def all; end - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:18 + # source://rubocop//lib/rubocop/cop/force.rb#18 def force_name; end # @private # - # source://rubocop-1.35.1/lib/rubocop/cop/force.rb:13 + # source://rubocop//lib/rubocop/cop/force.rb#13 def inherited(subclass); end end end # Common functionality for dealing with frozen string literals. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#6 module RuboCop::Cop::FrozenStringLiteral private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:35 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#35 def frozen_heredoc?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:21 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#21 def frozen_string_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 def frozen_string_literal_comment_exists?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:66 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#66 def frozen_string_literal_specified?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:60 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#60 def frozen_string_literals_disabled?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:41 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#41 def frozen_string_literals_enabled?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:72 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#76 def leading_comment_lines; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#72 + def leading_magic_comments; end + + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#31 def uninterpolated_string?(node); end class << self # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#15 def frozen_string_literal_comment_exists?; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#9 RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#10 RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_ENABLED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/frozen_string_literal.rb:11 +# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#11 RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES_RUBY27 = T.let(T.unsafe(nil), Array) # Common functionality for checking gem declarations. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/gem_declaration.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/gem_declaration.rb#6 module RuboCop::Cop::GemDeclaration extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/gem_declaration.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/gem_declaration.rb#10 def gem_declaration?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:5 +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#5 module RuboCop::Cop::Gemspec; end # Enforce that gem dependency version specifications or a commit reference (branch, @@ -5227,87 +5400,90 @@ module RuboCop::Cop::Gemspec; end # spec.add_development_dependency 'parser' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:53 +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#53 class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::GemspecHelp - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:62 - def add_dependency_method_declarations(param0); end + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#67 + def add_dependency_method_declaration?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:73 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#78 def includes_commit_reference?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:68 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#73 def includes_version_specification?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:77 - def on_new_investigation; end + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#82 + def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:118 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#120 def add_dependency_method?(method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:122 - def add_dependency_method_nodes; end - # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:94 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#96 def allowed_gem?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:98 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#100 def allowed_gems; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:136 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#134 def forbidden_offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:142 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#140 def forbidden_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:112 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#114 def match_block_variable_name?(receiver_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:102 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#104 def message(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:126 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#124 def offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:130 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#128 def required_offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:146 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#144 def required_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:150 + # source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#148 def version_specification?(expression); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:58 +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#61 +RuboCop::Cop::Gemspec::DependencyVersion::ADD_DEPENDENCY_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#58 RuboCop::Cop::Gemspec::DependencyVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:57 +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#57 RuboCop::Cop::Gemspec::DependencyVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/dependency_version.rb:59 +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#64 +RuboCop::Cop::Gemspec::DependencyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#59 RuboCop::Cop::Gemspec::DependencyVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp) # Checks that deprecated attribute attributes are not set in a gemspec file. @@ -5332,32 +5508,32 @@ RuboCop::Cop::Gemspec::DependencyVersion::VERSION_SPECIFICATION_REGEX = T.let(T. # spec.name = 'your_cool_gem_name' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:28 +# source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#28 class RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:35 + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#35 def gem_specification(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:43 + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#43 def on_block(block_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:86 + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#86 def format_message_from; end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:63 + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#63 def node_and_method_name(node, attribute); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:72 + # source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#72 def use_deprecated_attributes?(node, block_parameter); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb:32 +# source://rubocop//lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb#32 RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment::MSG = T.let(T.unsafe(nil), String) # An attribute assignment method calls should be listed only once @@ -5392,32 +5568,32 @@ RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment::MSG = T.let(T.unsafe(nil), # spec.add_runtime_dependency('parser', '>= 2.3.3.1', '< 3.0') # end # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:37 +# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#37 class RuboCop::Cop::Gemspec::DuplicatedAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::GemspecHelp - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:45 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#45 def assignment_method_declarations(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:50 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#50 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:68 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#68 def duplicated_assignment_method_nodes; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:62 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#62 def match_block_variable_name?(receiver_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:76 + # source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#76 def register_offense(node, assignment, line_of_first_occurrence); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/duplicated_assignment.rb:41 +# source://rubocop//lib/rubocop/cop/gemspec/duplicated_assignment.rb#41 RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String) # Dependencies in the gemspec should be alphabetically sorted. @@ -5468,27 +5644,27 @@ RuboCop::Cop::Gemspec::DuplicatedAssignment::MSG = T.let(T.unsafe(nil), String) # # For tests # spec.add_dependency 'rspec' # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb:53 +# source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#53 class RuboCop::Cop::Gemspec::OrderedDependencies < ::RuboCop::Cop::Base include ::RuboCop::Cop::OrderedGemNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb:87 + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#87 def dependency_declarations(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb:61 + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#61 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb:82 + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#82 def get_dependency_name(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb:76 + # source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#76 def previous_declaration(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ordered_dependencies.rb:57 +# source://rubocop//lib/rubocop/cop/gemspec/ordered_dependencies.rb#57 RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String) # Requires a gemspec to have `rubygems_mfa_required` metadata set. @@ -5548,42 +5724,42 @@ RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String) # spec.metadata['rubygems_mfa_required'] = 'true' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:63 +# source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#63 class RuboCop::Cop::Gemspec::RequireMFA < ::RuboCop::Cop::Base include ::RuboCop::Cop::GemspecHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:70 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#70 def metadata(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:87 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#87 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:78 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#78 def rubygems_mfa_required(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:83 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#83 def true_string?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:115 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#115 def autocorrect(corrector, node, block_var, metadata); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:139 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#139 def change_value(corrector, value); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:125 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#125 def correct_metadata(corrector, metadata); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:133 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#133 def insert_mfa_required(corrector, node, block_var); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:108 + # source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#108 def mfa_value(metadata_value); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/require_mfa.rb:67 +# source://rubocop//lib/rubocop/cop/gemspec/require_mfa.rb#67 RuboCop::Cop::Gemspec::RequireMFA::MSG = T.let(T.unsafe(nil), String) # Checks that `required_ruby_version` in a gemspec file is set to a valid @@ -5636,43 +5812,43 @@ RuboCop::Cop::Gemspec::RequireMFA::MSG = T.let(T.unsafe(nil), String) # spec.required_ruby_version = '~> 2.5' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:55 +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#55 class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:70 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#70 def defined_ruby_version(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:78 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#78 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:82 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#82 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:65 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#65 def required_ruby_version?(param0); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:94 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#94 def dynamic_version?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:100 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#100 def extract_ruby_version(required_ruby_version); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:116 + # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#116 def not_equal_message(required_ruby_version, target_ruby_version); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:62 +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#62 RuboCop::Cop::Gemspec::RequiredRubyVersion::MISSING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:59 +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#59 RuboCop::Cop::Gemspec::RequiredRubyVersion::NOT_EQUAL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/required_ruby_version.rb:58 +# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#58 RuboCop::Cop::Gemspec::RequiredRubyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks that `RUBY_VERSION` constant is not used in gemspec. @@ -5697,37 +5873,37 @@ RuboCop::Cop::Gemspec::RequiredRubyVersion::RESTRICT_ON_SEND = T.let(T.unsafe(ni # spec.add_runtime_dependency 'gem_a' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb:28 +# source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#28 class RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage < ::RuboCop::Cop::Base include ::RuboCop::Cop::GemspecHelp - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb:36 + # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#36 def on_const(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb:34 + # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#34 def ruby_version?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb:44 + # source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#44 def gem_spec_with_ruby_version?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb:31 +# source://rubocop//lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb#31 RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage::MSG = T.let(T.unsafe(nil), String) # Common functionality for checking gem declarations. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/gemspec_help.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#6 module RuboCop::Cop::GemspecHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/gemspec_help.rb:20 + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#20 def gem_specification(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/gemspec_help.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/gemspec_help.rb#10 def gem_specification?(param0 = T.unsafe(nil)); end end @@ -5738,275 +5914,243 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:10 +# source://rubocop//lib/rubocop/cop/generator.rb#10 class RuboCop::Cop::Generator # @api private # @raise [ArgumentError] # @return [Generator] a new instance of Generator # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:113 + # source://rubocop//lib/rubocop/cop/generator.rb#113 def initialize(name, output: T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:133 + # source://rubocop//lib/rubocop/cop/generator.rb#133 def inject_config(config_file_path: T.unsafe(nil), version_added: T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:129 + # source://rubocop//lib/rubocop/cop/generator.rb#129 def inject_require(root_file_path: T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:146 + # source://rubocop//lib/rubocop/cop/generator.rb#146 def todo; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:121 + # source://rubocop//lib/rubocop/cop/generator.rb#121 def write_source; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:125 + # source://rubocop//lib/rubocop/cop/generator.rb#125 def write_spec; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:160 + # source://rubocop//lib/rubocop/cop/generator.rb#160 def badge; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:183 + # source://rubocop//lib/rubocop/cop/generator.rb#183 def generate(template); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:175 + # source://rubocop//lib/rubocop/cop/generator.rb#175 def generated_source; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:179 + # source://rubocop//lib/rubocop/cop/generator.rb#179 def generated_spec; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:160 + # source://rubocop//lib/rubocop/cop/generator.rb#160 def output; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:208 + # source://rubocop//lib/rubocop/cop/generator.rb#208 def snake_case(camel_case_string); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:198 + # source://rubocop//lib/rubocop/cop/generator.rb#198 def source_path; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:188 + # source://rubocop//lib/rubocop/cop/generator.rb#188 def spec_path; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:162 + # source://rubocop//lib/rubocop/cop/generator.rb#162 def write_unless_file_exists(path, contents); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:109 +# source://rubocop//lib/rubocop/cop/generator.rb#109 RuboCop::Cop::Generator::CONFIGURATION_ADDED_MESSAGE = T.let(T.unsafe(nil), String) # A class that injects a require directive into the root RuboCop file. # It looks for other directives that require files in the same (cop) # namespace and injects the provided one in alpha # -# @api private -# -# source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:9 +# source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#9 class RuboCop::Cop::Generator::ConfigurationInjector - # @api private # @return [ConfigurationInjector] a new instance of ConfigurationInjector # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:17 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#17 def initialize(configuration_file_path:, badge:, version_added: T.unsafe(nil)); end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:24 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#24 def inject; end private - # @api private + # Returns the value of attribute badge. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:39 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def badge; end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:41 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#41 def configuration_entries; end - # @api private + # Returns the value of attribute configuration_file_path. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:39 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def configuration_file_path; end - # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:59 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#59 def cop_name_line?(yaml); end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:49 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#49 def find_target_line; end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:45 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#45 def new_configuration_entry; end - # @api private + # Returns the value of attribute output. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:39 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def output; end - # @api private + # Returns the value of attribute version_added. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:39 + # source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#39 def version_added; end end -# @api private -# -# source://rubocop-1.35.1/lib/rubocop/cop/generator/configuration_injector.rb:10 +# source://rubocop//lib/rubocop/cop/generator/configuration_injector.rb#10 RuboCop::Cop::Generator::ConfigurationInjector::TEMPLATE = T.let(T.unsafe(nil), String) # A class that injects a require directive into the root RuboCop file. # It looks for other directives that require files in the same (cop) # namespace and injects the provided one in alpha # -# @api private -# -# source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:9 +# source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#9 class RuboCop::Cop::Generator::RequireFileInjector - # @api private # @return [RequireFileInjector] a new instance of RequireFileInjector # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:12 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#12 def initialize(source_path:, root_file_path:, output: T.unsafe(nil)); end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:19 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#19 def inject; end private - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:64 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#64 def injectable_require_directive; end - # @api private + # Returns the value of attribute output. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:29 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def output; end - # @api private + # Returns the value of attribute require_entries. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:29 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def require_entries; end - # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:31 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#31 def require_exists?; end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:68 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#68 def require_path; end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:58 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#58 def require_path_fragments(require_directive); end - # @api private + # Returns the value of attribute root_file_path. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:29 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def root_file_path; end - # @api private + # Returns the value of attribute source_path. # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:29 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#29 def source_path; end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:39 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#39 def target_line; end - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:35 + # source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#35 def updated_directives; end end -# @api private -# -# source://rubocop-1.35.1/lib/rubocop/cop/generator/require_file_injector.rb:10 +# source://rubocop//lib/rubocop/cop/generator/require_file_injector.rb#10 RuboCop::Cop::Generator::RequireFileInjector::REQUIRE_PATH = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:11 +# source://rubocop//lib/rubocop/cop/generator.rb#11 RuboCop::Cop::Generator::SOURCE_TEMPLATE = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/generator.rb:85 +# source://rubocop//lib/rubocop/cop/generator.rb#85 RuboCop::Cop::Generator::SPEC_TEMPLATE = T.let(T.unsafe(nil), String) # Common functionality for checking hash alignment. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#6 module RuboCop::Cop::HashAlignmentStyles; end # Handles calculation of deltas when the enforced style is 'key'. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#8 class RuboCop::Cop::HashAlignmentStyles::KeyAlignment # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#9 def checkable_layout?(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:20 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#20 def deltas(first_pair, current_pair); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#13 def deltas_for_first_pair(first_pair, _node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#34 def separator_delta(pair); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:45 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#45 def value_delta(pair); end end @@ -6014,255 +6158,261 @@ end # This is a special case that just ensures the kwsplat is aligned with the rest of the hash # since a `kwsplat` does not have a key, separator or value. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:145 +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#145 class RuboCop::Cop::HashAlignmentStyles::KeywordSplatAlignment - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:146 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#146 def deltas(first_pair, current_pair); end end # Handles calculation of deltas when the enforced style is 'separator'. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:120 +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#120 class RuboCop::Cop::HashAlignmentStyles::SeparatorAlignment include ::RuboCop::Cop::HashAlignmentStyles::ValueAlignment - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:123 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#123 def deltas_for_first_pair(*_nodes); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:133 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#133 def hash_rocket_delta(first_pair, current_pair); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:129 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#129 def key_delta(first_pair, current_pair); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:137 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#137 def value_delta(first_pair, current_pair); end end # Handles calculation of deltas when the enforced style is 'table'. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:81 +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#81 class RuboCop::Cop::HashAlignmentStyles::TableAlignment include ::RuboCop::Cop::HashAlignmentStyles::ValueAlignment # @return [TableAlignment] a new instance of TableAlignment # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:84 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#84 def initialize; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:88 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#88 def deltas_for_first_pair(first_pair, node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:106 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#106 def hash_rocket_delta(first_pair, current_pair); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:102 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#102 def key_delta(first_pair, current_pair); end # Returns the value of attribute max_key_width. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:100 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 def max_key_width; end # Sets the attribute max_key_width # # @param value the value to set the attribute max_key_width to. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:100 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#100 def max_key_width=(_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:110 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#110 def value_delta(first_pair, current_pair); end end # Common functionality for checking alignment of hash values. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:56 +# source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#56 module RuboCop::Cop::HashAlignmentStyles::ValueAlignment # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:57 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#57 def checkable_layout?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:61 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#61 def deltas(first_pair, current_pair); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_alignment_styles.rb:71 + # source://rubocop//lib/rubocop/cop/mixin/hash_alignment_styles.rb#71 def separator_delta(first_pair, current_pair, key_delta); end end # This module checks for Ruby 3.1's hash value omission syntax. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#6 module RuboCop::Cop::HashShorthandSyntax - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#13 def on_hash_for_mixed_shorthand(hash_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:25 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#25 def on_pair(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:106 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#132 def breakdown_value_types_of_hash(hash_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:130 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#95 + def def_node_that_require_parentheses(node); end + + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156 def each_omittable_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:126 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#152 def each_omitted_value_pair(hash_value_type_breakdown, &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:65 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75 def enforced_shorthand_syntax; end + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#104 + def find_ancestor_send_node(node); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:118 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#144 def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:122 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#148 def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:59 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#69 def ignore_hash_shorthand_syntax?(pair_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:54 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#64 def ignore_mixed_hash_shorthand_syntax?(hash_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:134 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#160 def mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:150 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176 def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:48 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49 def register_offense(node, message, replacement); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:69 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#79 def require_hash_value?(hash_key_source, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:78 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#88 def require_hash_value_for_around_hash_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:87 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#110 def use_element_of_hash_literal_as_receiver?(ancestor, parent); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:92 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#115 def use_modifier_form_without_parenthesized_method_call?(ancestor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:98 + # source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#121 def without_parentheses_call_expr_follows?(ancestor); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:11 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_EXPLICIT_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#9 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#10 RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#8 RuboCop::Cop::HashShorthandSyntax::EXPLICIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#7 RuboCop::Cop::HashShorthandSyntax::OMIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) # Common functionality for Style/HashTransformKeys and # Style/HashTransformValues # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#7 module RuboCop::Cop::HashTransformMethod extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#13 def array_receiver?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#17 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#34 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:27 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#27 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:106 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#108 def execute_correction(corrector, node, correction); end # @abstract # @raise [NotImplementedError] # @return [Captures] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:81 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#83 def extract_captures(_match); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:60 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#60 def handle_possible_offense(node, match, match_desc); end # @abstract # @raise [NotImplementedError] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:88 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#90 def new_method_name; end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:41 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#41 def on_bad_each_with_object(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:46 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#46 def on_bad_hash_brackets_map(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:51 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#51 def on_bad_map_to_h(_node); end # @abstract Implemented with `def_node_matcher` # @raise [NotImplementedError] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:56 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#56 def on_bad_to_h(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:92 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#94 def prepare_correction(node); end end # Internal helper class to hold autocorrect data # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:132 +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # Returns the value of attribute block_node # @@ -6274,7 +6424,7 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # @param value [Object] the value to set the attribute block_node to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:132 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def block_node=(_); end # Returns the value of attribute leading @@ -6287,7 +6437,7 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # @param value [Object] the value to set the attribute leading to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:132 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def leading=(_); end # Returns the value of attribute match @@ -6300,19 +6450,19 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # @param value [Object] the value to set the attribute match to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:132 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def match=(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:173 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#177 def set_new_arg_name(transformed_argname, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:177 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#181 def set_new_body_expression(transforming_body_expr, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:163 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#167 def set_new_method_name(new_method_name, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:157 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#161 def strip_prefix_and_suffix(node, corrector); end # Returns the value of attribute trailing @@ -6325,22 +6475,22 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < ::Struct # @param value [Object] the value to set the attribute trailing to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:132 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#136 def trailing=(_); end class << self def [](*_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:133 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#137 def from_each_with_object(node, match); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:137 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#141 def from_hash_brackets_map(node, match); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:141 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#145 def from_map_to_h(node, match); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:153 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#157 def from_to_h(node, match); end def inspect; end @@ -6351,16 +6501,16 @@ end # Internal helper class to hold match data # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:116 +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:121 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#119 def noop_transformation?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:126 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#124 def transformation_uses_both_args?; end # Returns the value of attribute transformed_argname @@ -6373,7 +6523,7 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @param value [Object] the value to set the attribute transformed_argname to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:116 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 def transformed_argname=(_); end # Returns the value of attribute transforming_body_expr @@ -6386,7 +6536,7 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @param value [Object] the value to set the attribute transforming_body_expr to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:116 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 def transforming_body_expr=(_); end # Returns the value of attribute unchanged_body_expr @@ -6399,9 +6549,14 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct # @param value [Object] the value to set the attribute unchanged_body_expr to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:116 + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#118 def unchanged_body_expr=(_); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#128 + def use_transformed_argname?; end + class << self def [](*_arg0); end def inspect; end @@ -6410,119 +6565,119 @@ class RuboCop::Cop::HashTransformMethod::Captures < ::Struct end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/hash_transform_method.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/hash_transform_method.rb#10 RuboCop::Cop::HashTransformMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Common functionality for working with heredoc strings. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#6 module RuboCop::Cop::Heredoc - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 def on_dstr(node); end # @raise [NotImplementedError] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#17 def on_heredoc(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 def on_str(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#9 def on_xstr(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:28 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#28 def delimiter_string(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:32 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#32 def heredoc_type(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#23 def indent_level(str); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/heredoc.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/heredoc.rb#7 RuboCop::Cop::Heredoc::OPENING_DELIMITER = T.let(T.unsafe(nil), Regexp) # This class autocorrects `if...then` structures to a multiline `if` statement # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#6 class RuboCop::Cop::IfThenCorrector # @return [IfThenCorrector] a new instance of IfThenCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:9 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#9 def initialize(if_node, indentation: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:14 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#14 def call(corrector); end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:50 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#50 def branch_body_indentation; end # Returns the value of attribute if_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:20 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#20 def if_node; end # Returns the value of attribute indentation. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:20 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#20 def indentation; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:22 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#22 def replacement(node = T.unsafe(nil), indentation = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:36 + # source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#36 def rewrite_else_branch(else_branch, indentation); end end -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/if_then_corrector.rb:7 +# source://rubocop//lib/rubocop/cop/correctors/if_then_corrector.rb#7 RuboCop::Cop::IfThenCorrector::DEFAULT_INDENTATION_WIDTH = T.let(T.unsafe(nil), Integer) # @deprecated IgnoredMethods class has been replaced with AllowedMethods. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_methods.rb:33 +# source://rubocop//lib/rubocop/cop/mixin/allowed_methods.rb#38 RuboCop::Cop::IgnoredMethods = RuboCop::Cop::AllowedMethods # Handles adding and checking ignored nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/ignored_node.rb:6 +# source://rubocop//lib/rubocop/cop/ignored_node.rb#6 module RuboCop::Cop::IgnoredNode - # source://rubocop-1.35.1/lib/rubocop/cop/ignored_node.rb:7 + # source://rubocop//lib/rubocop/cop/ignored_node.rb#7 def ignore_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/ignored_node.rb:24 + # source://rubocop//lib/rubocop/cop/ignored_node.rb#24 def ignored_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/ignored_node.rb:11 + # source://rubocop//lib/rubocop/cop/ignored_node.rb#11 def part_of_ignored_node?(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/ignored_node.rb:31 + # source://rubocop//lib/rubocop/cop/ignored_node.rb#31 def ignored_nodes; end end # @deprecated IgnoredPattern class has been replaced with AllowedPattern. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/allowed_pattern.rb:46 +# source://rubocop//lib/rubocop/cop/mixin/allowed_pattern.rb#54 RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern # Common functionality for checking integer nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/integer_node.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/integer_node.rb#6 module RuboCop::Cop::IntegerNode private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/integer_node.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/integer_node.rb#9 def integer_part(node); end end @@ -6530,112 +6685,112 @@ end # # @abstract Subclasses are expected to implement {#on_interpolation}. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/interpolation.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#8 module RuboCop::Cop::Interpolation - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/interpolation.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 def on_dstr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/interpolation.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 def on_dsym(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/interpolation.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#17 def on_node_with_interpolations(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/interpolation.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 def on_regexp(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/interpolation.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/interpolation.rb#9 def on_xstr(node); end end # This class autocorrects lambda literal to method notation. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#6 class RuboCop::Cop::LambdaLiteralToMethodCorrector # @return [LambdaLiteralToMethodCorrector] a new instance of LambdaLiteralToMethodCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:7 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#7 def initialize(block_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:13 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#13 def call(corrector); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:115 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#115 def arg_to_unparenthesized_call?; end # Returns the value of attribute arguments. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:31 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#31 def arguments; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:99 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#99 def arguments_begin_pos; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:95 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#95 def arguments_end_pos; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:107 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#107 def block_begin; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:103 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#103 def block_end; end # Returns the value of attribute block_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:31 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#31 def block_node; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:56 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#56 def insert_arguments(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:40 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#40 def insert_separating_space(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:85 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#85 def lambda_arg_string; end # Returns the value of attribute method. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:31 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#31 def method; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:89 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#89 def needs_separating_space?; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:50 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#50 def remove_arguments(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:63 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#63 def remove_leading_whitespace(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:71 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#71 def remove_trailing_whitespace(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:33 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#33 def remove_unparenthesized_whitespace(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:76 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#76 def replace_delimiters(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:46 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#46 def replace_selector(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:111 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#111 def selector_end; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb:131 + # source://rubocop//lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb#131 def separating_space?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:5 +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#5 module RuboCop::Cop::Layout; end # Bare access modifiers (those not applying to specific methods) should be @@ -6667,50 +6822,50 @@ module RuboCop::Cop::Layout; end # def smooth; end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:35 +# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#35 class RuboCop::Cop::Layout::AccessModifierIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:43 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#43 def on_sclass(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:54 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#54 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:58 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#58 def check_body(body, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:65 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#65 def check_modifier(send_node, end_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:88 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#88 def expected_indent_offset; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:84 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#84 def message(range); end # An offset that is not expected, but correct if the configuration is # changed. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:94 + # source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#94 def unexpected_indent_offset; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/access_modifier_indentation.rb:41 +# source://rubocop//lib/rubocop/cop/layout/access_modifier_indentation.rb#41 RuboCop::Cop::Layout::AccessModifierIndentation::MSG = T.let(T.unsafe(nil), String) # Here we check if the arguments on a multi-line method @@ -6753,73 +6908,73 @@ RuboCop::Cop::Layout::AccessModifierIndentation::MSG = T.let(T.unsafe(nil), Stri # :baz, # key: value # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:46 +# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#46 class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:55 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#55 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:55 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#55 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:92 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#92 def arguments_or_first_arg_pairs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:80 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#80 def arguments_with_last_arg_pairs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:108 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#108 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:68 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#68 def autocorrect_incompatible_with_other_cops?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:124 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#124 def base_column(node, first_argument); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:144 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#144 def enforce_hash_argument_with_separator?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:116 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#116 def fixed_indentation?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:72 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#72 def flattened_arguments(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:152 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#152 def hash_argument_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:112 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#112 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:101 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#101 def multiple_arguments?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:135 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#135 def target_method_lineno(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:120 + # source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#120 def with_first_argument_style?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:50 +# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#50 RuboCop::Cop::Layout::ArgumentAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/argument_alignment.rb:52 +# source://rubocop//lib/rubocop/cop/layout/argument_alignment.rb#52 RuboCop::Cop::Layout::ArgumentAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) # Here we check if the elements of a multi-line array literal are @@ -6852,38 +7007,38 @@ RuboCop::Cop::Layout::ArgumentAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), # array = [1, 2, 3, # 4, 5, 6] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:36 +# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#36 class RuboCop::Cop::Layout::ArrayAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:46 + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#46 def on_array(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:55 + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#55 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:67 + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#67 def base_column(node, args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:63 + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#63 def fixed_indentation?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:59 + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#59 def message(_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:78 + # source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#78 def target_method_lineno(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:40 +# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#40 RuboCop::Cop::Layout::ArrayAlignment::ALIGN_ELEMENTS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/array_alignment.rb:43 +# source://rubocop//lib/rubocop/cop/layout/array_alignment.rb#43 RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first line of the @@ -6905,7 +7060,7 @@ RuboCop::Cop::Layout::ArrayAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), St # 'bar' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/assignment_indentation.rb:24 +# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#24 class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::Alignment @@ -6913,17 +7068,17 @@ class RuboCop::Cop::Layout::AssignmentIndentation < ::RuboCop::Cop::Base private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/assignment_indentation.rb:42 + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#42 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/assignment_indentation.rb:33 + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#33 def check_assignment(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/assignment_indentation.rb:46 + # source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#46 def leftmost_multiple_assignment(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/assignment_indentation.rb:29 +# source://rubocop//lib/rubocop/cop/layout/assignment_indentation.rb#29 RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keyword of `begin` is aligned properly. @@ -6960,29 +7115,29 @@ RuboCop::Cop::Layout::AssignmentIndentation::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/begin_end_alignment.rb:41 +# source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#41 class RuboCop::Cop::Layout::BeginEndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/begin_end_alignment.rb:48 + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#48 def on_kwbegin(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/begin_end_alignment.rb:63 + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#63 def alignment_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/begin_end_alignment.rb:59 + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#59 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/begin_end_alignment.rb:54 + # source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#54 def check_begin_alignment(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/begin_end_alignment.rb:46 +# source://rubocop//lib/rubocop/cop/layout/begin_end_alignment.rb#46 RuboCop::Cop::Layout::BeginEndAlignment::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keywords are aligned properly for do @@ -7010,8 +7165,9 @@ RuboCop::Cop::Layout::BeginEndAlignment::MSG = T.let(T.unsafe(nil), String) # # # good # -# variable = lambda do |i| -# i +# foo.bar +# .each do +# baz # end # @example EnforcedStyleAlignWith: start_of_block # # bad @@ -7042,77 +7198,77 @@ RuboCop::Cop::Layout::BeginEndAlignment::MSG = T.let(T.unsafe(nil), String) # baz # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:64 +# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#66 class RuboCop::Cop::Layout::BlockAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:72 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#74 def block_end_align_target?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:81 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:81 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#83 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:87 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#89 def style_parameter_name; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:226 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#228 def add_space_before(corrector, loc, delta); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:203 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#205 def alt_start_msg(start_loc, source_line_column); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:153 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#155 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:103 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#105 def block_end_align_target(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:121 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#123 def check_block_alignment(start_node, block_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:176 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#178 def compute_do_source_line_column(node, end_loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:218 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#220 def compute_start_col(ancestor_node, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:117 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#119 def disqualified_parent?(parent, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:113 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#115 def end_align_target?(node, parent); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:166 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#168 def format_message(start_loc, end_loc, do_source_line_column, error_source_line_column); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:213 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#215 def format_source_line_column(source_line_column); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:195 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#197 def loc_to_source_line_column(loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:134 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#136 def register_offense(block_node, start_loc, end_loc, do_source_line_column); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:230 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#232 def remove_space_before(corrector, end_pos, delta); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:93 + # source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#95 def start_for_block_node(block_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/block_alignment.rb:69 +# source://rubocop//lib/rubocop/cop/layout/block_alignment.rb#71 RuboCop::Cop::Layout::BlockAlignment::MSG = T.let(T.unsafe(nil), String) # Checks whether the end statement of a do..end block @@ -7137,36 +7293,36 @@ RuboCop::Cop::Layout::BlockAlignment::MSG = T.let(T.unsafe(nil), String) # foo(i) # } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:27 +# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#27 class RuboCop::Cop::Layout::BlockEndNewline < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:33 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:33 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#33 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:82 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#82 def end_of_method_chain(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:64 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#64 def last_heredoc_argument(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:60 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#60 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:74 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#74 def offense_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:46 + # source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#46 def register_offense(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/block_end_newline.rb:31 +# source://rubocop//lib/rubocop/cop/layout/block_end_newline.rb#31 RuboCop::Cop::Layout::BlockEndNewline::MSG = T.let(T.unsafe(nil), String) # Checks how the `when` and ``in``s of a `case` expression @@ -7274,59 +7430,59 @@ RuboCop::Cop::Layout::BlockEndNewline::MSG = T.let(T.unsafe(nil), String) # y / 3 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:112 +# source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#112 class RuboCop::Cop::Layout::CaseIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:120 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#120 def on_case(case_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:127 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#127 def on_case_match(case_match_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:193 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#193 def base_column(case_node, base); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:150 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#150 def check_when(when_node, branch_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:182 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#182 def detect_incorrect_style(when_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:136 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#136 def end_and_last_conditional_same_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:146 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#146 def enforced_style_end?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:169 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#169 def incorrect_style(when_node, branch_type); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:161 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#161 def indent_one_step?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:165 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#165 def indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:207 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#207 def replacement(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:200 + # source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#200 def whitespace_range(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/case_indentation.rb:118 +# source://rubocop//lib/rubocop/cop/layout/case_indentation.rb#118 RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # Checks if the code style follows the ExpectedOrder configuration: @@ -7457,42 +7613,38 @@ RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String) # def some_private_method # end # end -# @see https://rubystyle.guide#consistent-classes # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:136 +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#135 class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:150 - def dynamic_constant?(param0 = T.unsafe(nil)); end - # Validates code style on class declaration. # Add offense when find a node out of expected order. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:156 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#150 def on_class(class_node); end private # Autocorrect by swapping between two nodes autocorrecting them # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:171 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#165 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:288 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#309 def begin_pos_with_comment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:311 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#332 def buffer; end # Setting categories hash allow you to group methods in group to match # in the {expected_order}. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:323 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#344 def categories; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:231 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#225 def class_elements(class_node); end # Classifies a node to match with something in the {expected_order} @@ -7504,16 +7656,21 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # by method name # @return String otherwise trying to {humanize_node} of the current node # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:191 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#185 def classify(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:280 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#262 + def dynamic_constant?(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#301 def end_position_for(node); end # Load expected order from `ExpectedOrder` config. # Define new terms in the expected order by adding new {categories}. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:317 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#338 def expected_order; end # Categorize a node according to the {expected_order} @@ -7523,44 +7680,54 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Base # @param node to be analysed. # @return [String] with the key category or the `method_name` as string # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:209 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#203 def find_category(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:307 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#328 def find_heredoc(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:256 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#253 def humanize_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:243 - def ignore?(classification); end + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#237 + def ignore?(node, classification); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:249 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#244 def ignore_for_autocorrect?(node, sibling); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:265 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#280 + def marked_as_private_constant?(node, name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#270 + def private_constant?(node); end + + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#286 def source_range_with_comment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:303 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#324 def start_line_position(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:222 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#216 def walk_over_nested_class_definition(class_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:299 + # source://rubocop//lib/rubocop/cop/layout/class_structure.rb#320 def whole_line_comment_at_line?(line); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:140 +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#139 RuboCop::Cop::Layout::ClassStructure::HUMANIZED_NODE_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/class_structure.rb:147 +# source://rubocop//lib/rubocop/cop/layout/class_structure.rb#146 RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of here document closings. @@ -7605,53 +7772,53 @@ RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String) # Hi # EOS # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:49 +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#49 class RuboCop::Cop::Layout::ClosingHeredocIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:58 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#58 def on_heredoc(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:75 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#75 def argument_indentation_correct?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:83 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#83 def closing_indentation(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:102 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#102 def find_node_used_heredoc_argument(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:91 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#91 def heredoc_closing(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:87 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#87 def heredoc_opening(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:118 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#118 def indent_level(source_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:95 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#95 def indented_end(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:110 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#110 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:71 + # source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#71 def opening_indentation(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:54 +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#54 RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:55 +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#55 RuboCop::Cop::Layout::ClosingHeredocIndentation::MSG_ARG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_heredoc_indentation.rb:53 +# source://rubocop//lib/rubocop/cop/layout/closing_heredoc_indentation.rb#53 RuboCop::Cop::Layout::ClosingHeredocIndentation::SIMPLE_HEREDOC = T.let(T.unsafe(nil), String) # Checks the indentation of hanging closing parentheses in @@ -7718,70 +7885,70 @@ RuboCop::Cop::Layout::ClosingHeredocIndentation::SIMPLE_HEREDOC = T.let(T.unsafe # y: 2 # ) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:71 +# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#71 class RuboCop::Cop::Layout::ClosingParenthesisIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:84 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#84 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:79 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:88 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:88 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#88 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:79 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#79 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:157 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#157 def all_elements_aligned?(elements); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:95 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#95 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:99 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#99 def check(node, elements); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:107 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#107 def check_for_elements(node, elements); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:125 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#125 def check_for_no_elements(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:171 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#171 def correct_column_candidates(node, left_paren); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:144 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#144 def expected_column(left_paren, elements); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:167 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#167 def first_argument_line(elements); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:187 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#187 def indentation_width; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:191 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#191 def line_break_after_left_paren?(left_paren, elements); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:179 + # source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#179 def message(correct_column, left_paren, right_paren); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:77 +# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#77 RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb:75 +# source://rubocop//lib/rubocop/cop/layout/closing_parenthesis_indentation.rb#75 RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_INDENT = T.let(T.unsafe(nil), String) # Checks the indentation of comments. @@ -7825,20 +7992,20 @@ RuboCop::Cop::Layout::ClosingParenthesisIndentation::MSG_INDENT = T.let(T.unsafe # a = 1 # A really long comment # # spanning two lines. # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:48 +# source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#48 class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:55 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#55 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:61 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#61 def autocorrect(corrector, comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:88 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#88 def autocorrect_one(corrector, comment); end # Corrects all comment lines that occur immediately before the given @@ -7846,13 +8013,13 @@ class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base # of correcting, saving the file, parsing and inspecting again, and # then correcting one more line, and so on. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:71 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#71 def autocorrect_preceding_comments(corrector, comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:92 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#92 def check(comment, comment_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:145 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#145 def correct_indentation(next_line); end # Returns true if: @@ -7862,37 +8029,37 @@ class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:121 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#121 def correctly_aligned_with_preceding_comment?(comment_index, column); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:156 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#156 def less_indented?(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:140 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#140 def line_after_comment(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:131 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#131 def message(column, correct_comment_indentation); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:135 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#135 def own_line_comment?(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:82 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#82 def should_correct?(preceding_comment, reference_comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:160 + # source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#162 def two_alternatives?(line); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/comment_indentation.rb:52 +# source://rubocop//lib/rubocop/cop/layout/comment_indentation.rb#52 RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks for conditions that are not on the same line as @@ -7914,30 +8081,30 @@ RuboCop::Cop::Layout::CommentIndentation::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:25 +# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#25 class RuboCop::Cop::Layout::ConditionPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:31 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#31 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:37 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#37 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:37 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#37 def on_while(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:44 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#44 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:58 + # source://rubocop//lib/rubocop/cop/layout/condition_position.rb#58 def message(condition); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/condition_position.rb:29 +# source://rubocop//lib/rubocop/cop/layout/condition_position.rb#29 RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String) # Checks whether the end keywords of method definitions are @@ -7970,29 +8137,29 @@ RuboCop::Cop::Layout::ConditionPosition::MSG = T.let(T.unsafe(nil), String) # private def foo # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/def_end_alignment.rb:36 +# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#36 class RuboCop::Cop::Layout::DefEndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/def_end_alignment.rb:43 + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/def_end_alignment.rb:43 + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#43 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/def_end_alignment.rb:48 + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#48 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/def_end_alignment.rb:63 + # source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#63 def autocorrect(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/def_end_alignment.rb:41 +# source://rubocop//lib/rubocop/cop/layout/def_end_alignment.rb#41 RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String) # Checks the . position in multi-line method calls. @@ -8014,65 +8181,65 @@ RuboCop::Cop::Layout::DefEndAlignment::MSG = T.let(T.unsafe(nil), String) # something. # method # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:25 +# source://rubocop//lib/rubocop/cop/layout/dot_position.rb#25 class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:34 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:34 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#34 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:137 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#137 def ampersand_dot?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:49 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#49 def autocorrect(corrector, dot, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:99 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#99 def correct_dot_position_style?(dot_line, selector_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:126 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#126 def end_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:122 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#122 def heredoc?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:114 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#114 def last_heredoc_line(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:95 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#95 def line_between?(first_line, second_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:64 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#64 def message(dot); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:74 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#74 def proper_dot_position?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:106 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#106 def receiver_end_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:130 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#130 def selector_range(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/layout/dot_position.rb:30 + # source://rubocop//lib/rubocop/cop/layout/dot_position.rb#30 def autocorrect_incompatible_with; end end end @@ -8104,7 +8271,7 @@ end # code # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:32 +# source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#32 class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -8113,46 +8280,46 @@ class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:57 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#57 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:63 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#63 def on_case_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:40 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#40 def on_if(node, base = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:51 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#51 def on_rescue(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:147 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#147 def assignment_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:71 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#71 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:106 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#106 def base_for_method_definition(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:80 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#80 def base_range_of_if(node, base); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:89 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#89 def base_range_of_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:131 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#131 def check_alignment(base_range, else_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:115 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#115 def check_assignment(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:75 + # source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#75 def check_nested(node, base); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/else_alignment.rb:38 +# source://rubocop//lib/rubocop/cop/layout/else_alignment.rb#38 RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String) # Checks empty comment. @@ -8208,51 +8375,51 @@ RuboCop::Cop::Layout::ElseAlignment::MSG = T.let(T.unsafe(nil), String) # class Foo # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:63 +# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#63 class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:69 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#69 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:131 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#131 def allow_border_comment?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:135 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#135 def allow_margin_comment?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:97 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#97 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:127 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#127 def comment_text(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:108 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#108 def concat_consecutive_comments(comments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:139 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#139 def current_token(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:117 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#117 def empty_comment_only?(comment_text); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:85 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#85 def investigate(comments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:143 + # source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#143 def previous_token(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_comment.rb:67 +# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#67 RuboCop::Cop::Layout::EmptyComment::MSG = T.let(T.unsafe(nil), String) # Enforces empty line after guard clause @@ -8288,88 +8455,88 @@ RuboCop::Cop::Layout::EmptyComment::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:38 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#38 class RuboCop::Cop::Layout::EmptyLineAfterGuardClause < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::PathUtil extend ::RuboCop::Cop::Util - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:46 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#46 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:65 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#65 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:87 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#87 def contains_guard_clause?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:80 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#80 def correct_style?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:160 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#160 def heredoc?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:153 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#153 def heredoc_line(node, heredoc_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:129 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#129 def last_heredoc_argument(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:143 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#143 def last_heredoc_argument_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:172 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#172 def multiple_statements_on_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:98 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#98 def next_line_empty?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:91 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#91 def next_line_empty_or_enable_directive_comment?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:102 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#102 def next_line_enable_directive_comment?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:108 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#108 def next_line_rescue_or_ensure?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:122 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#122 def next_sibling_empty_or_guard_clause?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:113 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#113 def next_sibling_parent_empty_or_else?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:164 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#164 def offense_location(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:44 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#44 RuboCop::Cop::Layout::EmptyLineAfterGuardClause::END_OF_HEREDOC_LINE = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb:43 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_guard_clause.rb#43 RuboCop::Cop::Layout::EmptyLineAfterGuardClause::MSG = T.let(T.unsafe(nil), String) # Checks for a newline after the final magic comment. @@ -8390,12 +8557,12 @@ RuboCop::Cop::Layout::EmptyLineAfterGuardClause::MSG = T.let(T.unsafe(nil), Stri # # Some code # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb:23 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#23 class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb:29 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#29 def on_new_investigation; end private @@ -8408,14 +8575,14 @@ class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base # @return [Parser::Source::Comment] if magic comments exist before code # @return [nil] otherwise # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb:54 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#54 def last_magic_comment(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb:43 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43 def offending_range(last_magic_comment); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb:27 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#27 RuboCop::Cop::Layout::EmptyLineAfterMagicComment::MSG = T.let(T.unsafe(nil), String) # Enforces empty line after multiline condition. @@ -8466,57 +8633,57 @@ RuboCop::Cop::Layout::EmptyLineAfterMagicComment::MSG = T.let(T.unsafe(nil), Str # handle_error # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:54 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#54 class RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:82 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#82 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:60 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#60 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:93 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#93 def on_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:70 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:75 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:70 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#70 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:75 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#75 def on_while_post(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:127 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#127 def autocorrect(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:105 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#105 def check_condition(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:120 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#120 def multiline_rescue_exceptions?(exception_nodes); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:116 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#116 def multiline_when_condition?(when_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:112 + # source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#112 def next_line_empty?(line); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb:58 +# source://rubocop//lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb#58 RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil), String) # Checks whether class/module/method definitions are @@ -8614,15 +8781,15 @@ RuboCop::Cop::Layout::EmptyLineAfterMultilineCondition::MSG = T.let(T.unsafe(nil # def b # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:108 +# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#108 class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:144 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#144 def autocorrect(corrector, prev_def, node, count); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:130 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#130 def check_defs(nodes); end # We operate on `begin` nodes, instead of using `OnMethodDef`, @@ -8631,89 +8798,89 @@ class RuboCop::Cop::Layout::EmptyLineBetweenDefs < ::RuboCop::Cop::Base # doing a linear scan over siblings, so we don't want to call # it on each def. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:123 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#123 def on_begin(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:267 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#267 def allowance_range?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:251 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#251 def autocorrect_insert_lines(corrector, newline_pos, count); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:244 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#244 def autocorrect_remove_lines(corrector, newline_pos, count); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:208 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#208 def blank_lines_count_between(first_def_node, second_def_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:162 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#162 def candidate?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:172 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#172 def class_candidate?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:232 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#232 def def_end(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:228 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#228 def def_start(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:236 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#236 def end_loc(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:186 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#186 def expected_lines; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:204 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#204 def line_count_allowed?(count); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:220 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#220 def lines_between_defs(first_def_node, second_def_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:216 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#216 def maximum_empty_lines; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:180 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#180 def message(node, count: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:168 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#168 def method_candidate?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:212 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#212 def minimum_empty_lines; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:176 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#176 def module_candidate?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:195 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#195 def multiple_blank_lines_groups?(first_def_node, second_def_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:258 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#258 def node_type(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:114 + # source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#114 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_line_between_defs.rb:112 +# source://rubocop//lib/rubocop/cop/layout/empty_line_between_defs.rb#112 RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String) # Checks for two or more consecutive blank lines. @@ -8731,34 +8898,34 @@ RuboCop::Cop::Layout::EmptyLineBetweenDefs::MSG = T.let(T.unsafe(nil), String) # # one empty line # some_method # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:21 +# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#21 class RuboCop::Cop::Layout::EmptyLines < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:28 + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#28 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:43 + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#45 def each_extra_empty_line(lines); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:61 + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#63 def exceeds_line_offset?(line_diff); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:65 + # source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#67 def previous_and_current_lines_empty?(line); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:26 +# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#26 RuboCop::Cop::Layout::EmptyLines::LINE_OFFSET = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines.rb:25 +# source://rubocop//lib/rubocop/cop/layout/empty_lines.rb#25 RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String) # Access modifiers should be surrounded by blank lines. @@ -8797,7 +8964,7 @@ RuboCop::Cop::Layout::EmptyLines::MSG = T.let(T.unsafe(nil), String) # def baz; end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:43 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#43 class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -8805,98 +8972,98 @@ class RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier < ::RuboCop::Cop::Bas # @return [EmptyLinesAroundAccessModifier] a new instance of EmptyLinesAroundAccessModifier # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:54 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#54 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:79 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#79 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:60 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#60 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:69 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#69 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:79 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#79 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:74 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#74 def on_sclass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:85 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#85 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:113 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#113 def allowed_only_before_style?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:162 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#162 def block_start?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:168 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#168 def body_end?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:156 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#156 def class_def?(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:122 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#122 def correct_next_line_if_denied_style(corrector, node, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:152 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#152 def empty_lines_around?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:102 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#102 def expected_empty_lines?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:178 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#178 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:187 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#187 def message_for_around_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:197 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#197 def message_for_only_before_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:174 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#174 def next_empty_line_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:146 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#146 def next_line_empty?(last_send_line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:139 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#139 def previous_line_empty?(send_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:135 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#135 def previous_line_ignoring_comments(processed_source, send_line); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:48 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#48 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:52 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#52 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_AFTER_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:49 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#49 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_AND_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb:51 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb#51 RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_FOR_ONLY_BEFORE = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the arguments @@ -8934,44 +9101,44 @@ RuboCop::Cop::Layout::EmptyLinesAroundAccessModifier::MSG_BEFORE_FOR_ONLY_BEFORE # x: y # ) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:41 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#41 class RuboCop::Cop::Layout::EmptyLinesAroundArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:47 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:47 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#47 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:65 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#65 def empty_lines(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:71 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#71 def extra_lines(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:93 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#93 def inner_lines(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:84 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#84 def line_numbers(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:97 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#97 def outer_lines(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:78 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#78 def processed_lines(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:61 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#61 def receiver_and_method_call_on_different_lines?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_arguments.rb:45 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_arguments.rb#45 RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), String) # Checks for a newline after an attribute accessor or a group of them. @@ -9028,60 +9195,60 @@ RuboCop::Cop::Layout::EmptyLinesAroundArguments::MSG = T.let(T.unsafe(nil), Stri # def do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:63 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#63 class RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:70 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#70 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:123 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#123 def allow_alias?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:133 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#133 def allow_alias_syntax?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:127 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#127 def attribute_or_allowed_method?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:83 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#83 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:107 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#107 def next_line_empty?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:94 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#94 def next_line_empty_or_enable_directive_comment?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:101 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#101 def next_line_enable_directive_comment?(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:117 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#117 def next_line_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:111 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#111 def require_empty_line?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb:68 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb#68 RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor::MSG = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the bodies of begin-end @@ -9103,23 +9270,23 @@ RuboCop::Cop::Layout::EmptyLinesAroundAttributeAccessor::MSG = T.let(T.unsafe(ni # # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb:24 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#24 class RuboCop::Cop::Layout::EmptyLinesAroundBeginBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb:30 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#30 def on_kwbegin(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb:36 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#36 def style; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb:28 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_begin_body.rb#28 RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), String) # Checks if empty lines around the bodies of blocks match @@ -9140,102 +9307,102 @@ RuboCop::Cop::Layout::EmptyLinesAroundBeginBody::KIND = T.let(T.unsafe(nil), Str # # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_block_body.rb:24 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#24 class RuboCop::Cop::Layout::EmptyLinesAroundBlockBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_block_body.rb:30 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_block_body.rb:30 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#30 def on_numblock(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_block_body.rb:28 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_block_body.rb#28 RuboCop::Cop::Layout::EmptyLinesAroundBlockBody::KIND = T.let(T.unsafe(nil), String) # Common functionality for checking if presence/absence of empty lines # around some kind of body matches the configuration. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#8 module RuboCop::Cop::Layout::EmptyLinesAroundBody include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:20 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#20 def constant_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#23 def empty_line_required?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#26 def check(node, body, adjusted_first_line: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:81 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#81 def check_beginning(style, first_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:67 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#67 def check_both(style, first_line, last_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:108 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#108 def check_deferred_empty_line(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:43 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#43 def check_empty_lines_except_namespace(body, first_line, last_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:51 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#51 def check_empty_lines_special(body, first_line, last_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:85 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#85 def check_ending(style, last_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:98 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#98 def check_line(style, line, msg); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:89 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#89 def check_source(style, line_no, desc); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:159 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#159 def deferred_message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:132 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#132 def first_child_requires_empty_line?(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:140 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#140 def first_empty_line_required_child(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:155 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#155 def message(type, desc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:122 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#122 def namespace?(body, with_one_child: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:148 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#148 def previous_line_ignoring_comments(send_line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:163 + # source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#163 def valid_body_style?(body); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:15 +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#15 RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_DEFERRED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:13 +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#13 RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_EXTRA = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/empty_lines_around_body.rb:14 +# source://rubocop//lib/rubocop/cop/mixin/empty_lines_around_body.rb#14 RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), String) # Checks if empty lines around the bodies of classes match @@ -9295,21 +9462,21 @@ RuboCop::Cop::Layout::EmptyLinesAroundBody::MSG_MISSING = T.let(T.unsafe(nil), S # # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_class_body.rb:67 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#67 class RuboCop::Cop::Layout::EmptyLinesAroundClassBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_class_body.rb:73 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#73 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_class_body.rb:79 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#79 def on_sclass(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_class_body.rb:71 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_class_body.rb#71 RuboCop::Cop::Layout::EmptyLinesAroundClassBody::KIND = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the bodies of `begin` @@ -9368,47 +9535,47 @@ RuboCop::Cop::Layout::EmptyLinesAroundClassBody::KIND = T.let(T.unsafe(nil), Str # do_something2 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:61 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#61 class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:67 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:67 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#67 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:72 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#72 def on_kwbegin(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:79 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#79 def check_body(body, line_of_def_or_kwbegin); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:106 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#106 def keyword_locations(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:123 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#123 def keyword_locations_in_ensure(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:119 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#119 def keyword_locations_in_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:94 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#94 def last_rescue_and_end_on_same_line(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:98 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#98 def message(location, keyword); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:102 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#102 def style; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb:65 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb#65 RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords::MSG = T.let(T.unsafe(nil), String) # Checks if empty lines exist around the bodies of methods. @@ -9429,26 +9596,26 @@ RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords::MSG = T.let(T.u # # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb:23 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#23 class RuboCop::Cop::Layout::EmptyLinesAroundMethodBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb:29 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb:29 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#29 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb:36 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#36 def style; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_method_body.rb:27 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_method_body.rb#27 RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), String) # Checks if empty lines around the bodies of modules match @@ -9490,18 +9657,18 @@ RuboCop::Cop::Layout::EmptyLinesAroundMethodBody::KIND = T.let(T.unsafe(nil), St # # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_module_body.rb:47 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#47 class RuboCop::Cop::Layout::EmptyLinesAroundModuleBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Layout::EmptyLinesAroundBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_module_body.rb:53 + # source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#53 def on_module(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/empty_lines_around_module_body.rb:51 +# source://rubocop//lib/rubocop/cop/layout/empty_lines_around_module_body.rb#51 RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), String) # Checks whether the end keywords are aligned properly. @@ -9572,7 +9739,7 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St # if true # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:75 +# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#75 class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -9580,48 +9747,48 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:101 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#101 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:81 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#81 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:89 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#89 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:85 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#85 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:97 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#97 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:93 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#93 def on_while(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:156 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#156 def alignment_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:167 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#167 def alignment_node_for_variable_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:137 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#137 def asgn_variable_align_with(outer_node, inner_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:182 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#182 def assignment_or_operator_method(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:111 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:126 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#126 def check_asgn_alignment(outer_node, inner_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:115 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#115 def check_assignment(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_alignment.rb:147 + # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#147 def check_other_alignment(node); end end @@ -9657,34 +9824,34 @@ end # # good # puts 'Hello' # Return character is CR+LF on all platforms. # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:40 +# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#40 class RuboCop::Cop::Layout::EndOfLine < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:71 + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#71 def offense_message(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:47 + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#47 def on_new_investigation; end # If there is no LF on the last line, we don't care if there's no CR. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:67 + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#67 def unimportant_missing_cr?(index, last_line, line); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:85 + # source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#85 def last_line(processed_source); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:44 +# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#44 RuboCop::Cop::Layout::EndOfLine::MSG_DETECTED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/end_of_line.rb:45 +# source://rubocop//lib/rubocop/cop/layout/end_of_line.rb#45 RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String) # Checks for extra/unnecessary whitespace. @@ -9713,78 +9880,78 @@ RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String) # another_object.method(arg) # this is another comment # some_object.method(arg) # this is some comment # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:31 +# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#31 class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base include ::RuboCop::Cop::PrecedingFollowingAlignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:39 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#39 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:167 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#171 def align_column(asgn_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:144 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#148 def align_equal_sign(corrector, token, align_to); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:134 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#138 def align_equal_signs(range, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:52 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#52 def aligned_locations(locs); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:104 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#104 def aligned_tok?(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:156 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#160 def all_relevant_assignment_lines(line_number); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:176 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#180 def allow_for_trailing_comments?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:73 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#73 def check_assignment(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:82 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#82 def check_other(token1, token2, ast); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:63 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#63 def check_tokens(ast, token1, token2); end # @yield [range_between(start_pos, end_pos)] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:92 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#92 def extra_space_range(token1, token2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:130 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#134 def force_equal_sign_alignment?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:112 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#112 def ignored_range?(ast, start_pos); end # Returns an array of ranges that should not be reported. It's the # extra spaces between the keys and values in a multiline hash, # since those are handled by the Layout/HashAlignment cop. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:119 + # source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#119 def ignored_ranges(ast); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:37 +# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#37 RuboCop::Cop::Layout::ExtraSpacing::MSG_UNALIGNED_ASGN = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/extra_spacing.rb:36 +# source://rubocop//lib/rubocop/cop/layout/extra_spacing.rb#36 RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) # Checks the indentation of the first argument in a method call. @@ -9924,80 +10091,83 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin # nested_first_param), # second_param # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:147 +# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#147 class RuboCop::Cop::Layout::FirstArgumentIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:216 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#217 def eligible_method_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:155 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:155 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 def on_send(node); end + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#155 + def on_super(node); end + private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:275 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#276 def argument_alignment_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:168 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#169 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:172 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#173 def bare_operator?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:192 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#193 def base_indentation(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:220 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#221 def base_range(send_node, arg_node); end # Returns the column of the given range. For single line ranges, this # is simple. For ranges with line breaks, we look a the last code line. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:232 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#233 def column_of(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:253 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#254 def comment_lines; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:271 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#272 def enable_layout_first_method_argument_line_break?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:265 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#266 def enforce_first_argument_with_fixed_indentation?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:176 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#177 def message(arg_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:261 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#262 def on_new_investigation; end # Takes the line number of a given code line and returns a string # containing the previous line that's not a comment line or a blank # line. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:244 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#245 def previous_code_line(line_number); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:200 + # source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#201 def special_inner_call_indentation?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_argument_indentation.rb:153 +# source://rubocop//lib/rubocop/cop/layout/first_argument_indentation.rb#153 RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first element in an array literal @@ -10075,82 +10245,119 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin # :completely_different # ] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:82 +# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#82 class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:91 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:95 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#95 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:95 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#95 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:104 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#104 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:142 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#142 def base_description(indent_base_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:108 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#108 def brace_alignment_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:112 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#112 def check(array_node, left_parenthesis); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:126 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#126 def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:155 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#155 def message(base_description); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:163 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#163 def message_for_right_bracket(indent_base_type); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_indentation.rb:88 +# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#88 RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first element in a # multi-line array. # -# @example +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# [ :a, +# :b] +# +# # bad +# [ :a, { +# :b => :c +# }] +# +# # good +# [:a, :b] +# +# # good +# [ +# :a, +# :b] +# +# # good +# [ +# :a, { +# :b => :c +# }] +# @example AllowMultilineFinalElement: true # # # bad # [ :a, # :b] # # # good +# [ :a, { +# :b => :c +# }] +# +# # good # [ # :a, # :b] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_line_break.rb:20 +# # good +# [:a, :b] +# +# source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#52 class RuboCop::Cop::Layout::FirstArrayElementLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_line_break.rb:26 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#58 def on_array(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_line_break.rb:34 + # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#66 def assignment_on_same_line?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#71 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_array_element_line_break.rb:24 +# source://rubocop//lib/rubocop/cop/layout/first_array_element_line_break.rb#56 RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first key in a hash literal @@ -10258,133 +10465,272 @@ RuboCop::Cop::Layout::FirstArrayElementLineBreak::MSG = T.let(T.unsafe(nil), Str # d: 2 # }) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:113 +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#113 class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:126 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:122 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#122 def on_hash(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:126 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#126 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:233 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#233 def argument_alignment_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:137 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#137 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:191 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#191 def base_description(indent_base_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:141 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#141 def brace_alignment_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:145 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#145 def check(hash_node, left_parenthesis); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:184 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#184 def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:164 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#164 def check_right_brace(right_brace, first_pair, left_brace, left_parenthesis); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:227 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#227 def enforce_first_argument_with_fixed_indentation?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:204 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#204 def message(base_description); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:212 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#212 def message_for_right_brace(indent_base_type); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:178 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#178 def separator_style?(first_pair); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_indentation.rb:119 +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_indentation.rb#119 RuboCop::Cop::Layout::FirstHashElementIndentation::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first element in a # multi-line hash. # -# @example +# @example AllowMultilineFinalElement: false (default) # # # bad # { a: 1, # b: 2} # +# # bad +# { a: 1, b: { +# c: 3 +# }} +# +# # good +# { +# a: 1, +# b: 2 } +# +# # good +# { +# a: 1, b: { +# c: 3 +# }} +# @example AllowMultilineFinalElement: true +# +# # bad +# { a: 1, +# b: 2} +# +# # bad +# { a: 1, +# b: { +# c: 3 +# }} +# +# # good +# { a: 1, b: { +# c: 3 +# }} +# # # good # { # a: 1, # b: 2 } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_line_break.rb:19 +# # good +# { +# a: 1, b: { +# c: 3 +# }} +# +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#58 class RuboCop::Cop::Layout::FirstHashElementLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_line_break.rb:25 + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#64 def on_hash(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#74 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_hash_element_line_break.rb:23 +# source://rubocop//lib/rubocop/cop/layout/first_hash_element_line_break.rb#62 RuboCop::Cop::Layout::FirstHashElementLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first argument in a # multi-line method call. # -# @example +# @example AllowMultilineFinalElement: false (default) # # # bad # method(foo, bar, # baz) # +# # bad +# method(foo, bar, { +# baz: "a", +# qux: "b", +# }) +# # # good # method( # foo, bar, # baz) # +# # good +# method( +# foo, bar, { +# baz: "a", +# qux: "b", +# }) +# # # ignored # method foo, bar, # baz +# @example AllowMultilineFinalElement: true # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb:23 +# # bad +# method(foo, bar, +# baz) +# +# # bad +# method(foo, +# bar, +# { +# baz: "a", +# qux: "b", +# } +# ) +# +# # good +# method(foo, bar, { +# baz: "a", +# qux: "b", +# }) +# +# # good +# method( +# foo, bar, +# baz) +# +# # good +# method( +# foo, +# bar, +# { +# baz: "a", +# qux: "b", +# } +# ) +# +# # ignored +# method foo, bar, +# baz +# +# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#76 class RuboCop::Cop::Layout::FirstMethodArgumentLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb:29 + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#82 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb:29 + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#82 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb:29 + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#82 def on_super(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#101 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_argument_line_break.rb:27 +# source://rubocop//lib/rubocop/cop/layout/first_method_argument_line_break.rb#80 RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks for a line break before the first parameter in a # multi-line method parameter definition. # -# @example +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# def method(foo, bar, +# baz) +# do_something +# end +# +# # bad +# def method(foo, bar, baz = { +# :a => "b", +# }) +# do_something +# end +# +# # good +# def method( +# foo, bar, +# baz) +# do_something +# end +# +# # good +# def method( +# foo, bar, baz = { +# :a => "b", +# }) +# do_something +# end +# +# # ignored +# def method foo, +# bar +# do_something +# end +# @example AllowMultilineFinalElement: true # # # bad # def method(foo, bar, @@ -10393,6 +10739,13 @@ RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), S # end # # # good +# def method(foo, bar, baz = { +# :a => "b", +# }) +# do_something +# end +# +# # good # def method( # foo, bar, # baz) @@ -10405,19 +10758,26 @@ RuboCop::Cop::Layout::FirstMethodArgumentLineBreak::MSG = T.let(T.unsafe(nil), S # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_parameter_line_break.rb:29 +# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#73 class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::FirstElementLineBreak extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_parameter_line_break.rb:35 + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#79 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_parameter_line_break.rb:35 + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#79 def on_defs(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#86 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_method_parameter_line_break.rb:33 +# source://rubocop//lib/rubocop/cop/layout/first_method_parameter_line_break.rb#77 RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the first parameter in a method @@ -10457,40 +10817,40 @@ RuboCop::Cop::Layout::FirstMethodParameterLineBreak::MSG = T.let(T.unsafe(nil), # 123 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:44 +# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#44 class RuboCop::Cop::Layout::FirstParameterIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineElementIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:53 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:53 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#53 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:63 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#63 def autocorrect(corrector, node); end # Returns the description of what the correct indentation is based on. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:83 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#83 def base_description(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:67 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#67 def brace_alignment_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:71 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#71 def check(def_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:91 + # source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#91 def message(base_description); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/first_parameter_indentation.rb:50 +# source://rubocop//lib/rubocop/cop/layout/first_parameter_indentation.rb#50 RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), String) # Check that the keys, separators, and values of a multi-line hash @@ -10656,7 +11016,7 @@ RuboCop::Cop::Layout::FirstParameterIndentation::MSG = T.let(T.unsafe(nil), Stri # :ba => baz # } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:178 +# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#178 class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::HashAlignmentStyles include ::RuboCop::Cop::RangeHelp @@ -10664,117 +11024,117 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base # Returns the value of attribute column_deltas. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:218 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 def column_deltas; end # Sets the attribute column_deltas # # @param value the value to set the attribute column_deltas to. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:218 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 def column_deltas=(_arg0); end # Returns the value of attribute offenses_by. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:218 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 def offenses_by; end # Sets the attribute offenses_by # # @param value the value to set the attribute offenses_by to. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:218 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#218 def offenses_by=(_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:208 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#208 def on_hash(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:195 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:195 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 def on_super(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:195 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#195 def on_yield(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:265 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#265 def add_offenses; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:371 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#371 def adjust(corrector, delta, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:300 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#300 def alignment_for(pair); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:314 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#314 def alignment_for_colons; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:310 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#310 def alignment_for_hash_rockets; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:390 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#390 def argument_alignment_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:233 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#233 def argument_before_hash(hash_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:222 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#222 def autocorrect_incompatible_with_other_cops?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:283 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#283 def check_delta(delta, node:, alignment:); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:246 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#246 def check_pairs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:337 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#337 def correct_key_value(corrector, delta, key, value, separator); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:333 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#333 def correct_no_value(corrector, key_delta, key); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:318 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#318 def correct_node(corrector, node, delta); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:242 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#242 def double_splat?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:384 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#384 def enforce_first_argument_with_fixed_indentation?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:380 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#380 def good_alignment?(column_deltas); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:291 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#291 def ignore_hash_argument?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:353 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#353 def new_alignment(key); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:273 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#273 def register_offenses_with_format(offenses, format); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:237 + # source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#237 def reset!; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:183 +# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#183 RuboCop::Cop::Layout::HashAlignment::MESSAGES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/hash_alignment.rb:193 +# source://rubocop//lib/rubocop/cop/layout/hash_alignment.rb#193 RuboCop::Cop::Layout::HashAlignment::SEPARATOR_ALIGNMENT_STYLES = T.let(T.unsafe(nil), Array) # Checks for the placement of the closing parenthesis @@ -10824,20 +11184,20 @@ RuboCop::Cop::Layout::HashAlignment::SEPARATOR_ALIGNMENT_STYLES = T.let(T.unsafe # 123, # ) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:53 +# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#53 class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:64 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#64 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:179 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#179 def add_correct_closing_paren(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:265 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#265 def add_correct_external_trailing_comma(node, corrector); end # Autocorrection note: @@ -10867,110 +11227,110 @@ class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop:: # third_array_value, # ] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:108 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#108 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:217 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#217 def exist_argument_between_heredoc_end_and_closing_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:283 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#283 def external_trailing_comma?(node); end # Returns nil if no trailing external comma. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:288 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#288 def external_trailing_comma_offset_from_loc_end(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:138 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#138 def extract_heredoc(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:134 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#134 def extract_heredoc_argument(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:224 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#224 def find_most_bottom_of_heredoc_end(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:174 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#174 def fix_closing_parenthesis(node, corrector); end # External trailing comma helpers. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:260 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#260 def fix_external_trailing_comma(node, corrector); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:150 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#150 def heredoc_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:192 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#192 def incorrect_parenthesis_removal_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:208 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#208 def incorrect_parenthesis_removal_end(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:238 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#238 def internal_trailing_comma?(node); end # Returns nil if no trailing internal comma. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:243 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#243 def internal_trailing_comma_offset_from_last_arg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:116 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#116 def outermost_send_on_same_line(heredoc); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:183 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#183 def remove_incorrect_closing_paren(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:271 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#271 def remove_incorrect_external_trailing_comma(node, corrector); end # Internal trailing comma helpers. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:232 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#232 def remove_internal_trailing_comma(node, corrector); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:202 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#202 def safe_to_remove_line_containing_closing_paren?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:127 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#127 def send_missing_closing_parens?(parent, child, heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:154 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#154 def single_line_send_with_heredoc_receiver?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:299 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#299 def space?(pos); end # Closing parenthesis helpers. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:163 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#163 def subsequent_closing_parentheses_in_same_line?(outermost_send); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:60 + # source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#60 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb:57 +# source://rubocop//lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb#57 RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the here document bodies. The bodies @@ -10991,78 +11351,78 @@ RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(ni # something # RUBY # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:24 +# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#24 class RuboCop::Cop::Layout::HeredocIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:32 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#32 def on_heredoc(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:116 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#116 def adjust_minus(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:111 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#111 def adjust_squiggly(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:140 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#140 def base_indent_level(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:155 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#155 def heredoc_body(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:159 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#159 def heredoc_end(node); end # Returns '~', '-' or nil # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:147 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#147 def heredoc_indent_type(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:151 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#151 def indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:122 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#122 def indented_body(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:129 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#129 def indented_end(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:87 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#87 def line_too_long?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:99 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#99 def longest_line(lines); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:107 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#107 def max_line_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:65 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#65 def message(heredoc_indent_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:53 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#53 def register_offense(node, heredoc_indent_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:75 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#75 def type_message(indentation_width, current_indent_type); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:103 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#103 def unlimited_heredoc_length?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:83 + # source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#83 def width_message(indentation_width); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:28 +# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#28 RuboCop::Cop::Layout::HeredocIndentation::TYPE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/heredoc_indentation.rb:30 +# source://rubocop//lib/rubocop/cop/layout/heredoc_indentation.rb#30 RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), String) # Checks for inconsistent indentation. @@ -11180,21 +11540,21 @@ RuboCop::Cop::Layout::HeredocIndentation::WIDTH_MSG = T.let(T.unsafe(nil), Strin # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:121 +# source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#121 class RuboCop::Cop::Layout::IndentationConsistency < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:128 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#128 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:132 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#132 def on_kwbegin(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:138 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#138 def autocorrect(corrector, node); end # Not all nodes define `bare_access_modifier?` (for example, @@ -11203,27 +11563,27 @@ class RuboCop::Cop::Layout::IndentationConsistency < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:145 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#145 def bare_access_modifier?(node); end # Returns an integer representing the correct indentation, or nil to # indicate that the correct indentation is that of the first child that # is not an access modifier. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:152 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#152 def base_column_for_normal_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:172 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#172 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:187 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#187 def check_indented_internal_methods_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:180 + # source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#180 def check_normal_style(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_consistency.rb:126 +# source://rubocop//lib/rubocop/cop/layout/indentation_consistency.rb#126 RuboCop::Cop::Layout::IndentationConsistency::MSG = T.let(T.unsafe(nil), String) # Checks that the indentation method is consistent. @@ -11254,43 +11614,43 @@ RuboCop::Cop::Layout::IndentationConsistency::MSG = T.let(T.unsafe(nil), String) # bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:34 +# source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#34 class RuboCop::Cop::Layout::IndentationStyle < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:42 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#42 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:55 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#58 def autocorrect(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:79 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#82 def autocorrect_lambda_for_spaces(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:74 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#77 def autocorrect_lambda_for_tabs(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:63 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#66 def find_offense(line, lineno); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:85 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#88 def in_string_literal?(ranges, tabs_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:104 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#109 def message(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:89 + # source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#92 def string_literal_ranges(ast); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_style.rb:40 +# source://rubocop//lib/rubocop/cop/layout/indentation_style.rb#40 RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String) # Checks for indentation that doesn't use the specified number @@ -11332,7 +11692,7 @@ RuboCop::Cop::Layout::IndentationStyle::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:45 +# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#45 class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -11342,126 +11702,126 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:57 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#57 def access_modifier?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:81 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:138 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#138 def on_case(case_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:146 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#146 def on_case_match(case_match); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:95 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#95 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:104 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#104 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:121 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#121 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:121 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#121 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:66 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#66 def on_ensure(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:66 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#66 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:154 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#156 def on_if(node, base = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:73 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#73 def on_kwbegin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:95 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#95 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:81 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#81 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:66 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#66 def on_resbody(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:61 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#61 def on_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:95 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#95 def on_sclass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:104 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#104 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:128 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#128 def on_until(node, base = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:128 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#128 def on_while(node, base = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:225 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#227 def access_modifier_indentation_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:163 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#165 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:233 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#235 def check_assignment(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:253 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#255 def check_if(node, body, else_clause, base_loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:266 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#268 def check_indentation(base_loc, body_node, style = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:167 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#169 def check_members(base, members); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:191 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#193 def check_members_for_indented_internal_methods_style(members); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:197 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#199 def check_members_for_normal_style(base, members); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:339 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#341 def check_rescue?(rescue_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:375 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#377 def configured_indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:205 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#207 def each_member(members); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:229 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#231 def indentation_consistency_style; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:321 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#323 def indentation_to_check?(base_loc, body_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:217 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#219 def indented_internal_methods_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:379 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#381 def leftmost_modifier_of(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:300 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#302 def message(configured_indentation_width, indentation, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:358 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#360 def offending_range(body_node, indentation); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:276 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#278 def offense(body_node, indentation, style); end # Returns true if the given node is within another node that has @@ -11469,29 +11829,29 @@ class RuboCop::Cop::Layout::IndentationWidth < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:311 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#313 def other_offense_in_same_range?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:179 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#181 def select_check_member(member); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:343 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#345 def skip_check?(base_loc, body_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:221 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#223 def special_modifier?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:366 + # source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#368 def starts_with_access_modifier?(body_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/indentation_width.rb:53 +# source://rubocop//lib/rubocop/cop/layout/indentation_width.rb#53 RuboCop::Cop::Layout::IndentationWidth::MSG = T.let(T.unsafe(nil), String) # Checks for indentation of the first non-blank non-comment @@ -11508,26 +11868,26 @@ RuboCop::Cop::Layout::IndentationWidth::MSG = T.let(T.unsafe(nil), String) # def foo; end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/initial_indentation.rb:20 +# source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#20 class RuboCop::Cop::Layout::InitialIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/initial_indentation.rb:26 + # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#26 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/initial_indentation.rb:36 + # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#36 def first_token; end # @yield [range_between(space_range.begin_pos, token.begin_pos)] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/initial_indentation.rb:40 + # source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#40 def space_before(token); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/initial_indentation.rb:24 +# source://rubocop//lib/rubocop/cop/layout/initial_indentation.rb#24 RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) # Checks whether comments have a leading space after the @@ -11572,71 +11932,71 @@ RuboCop::Cop::Layout::InitialIndentation::MSG = T.let(T.unsafe(nil), String) # #ruby=2.7.0 # #ruby-gemset=myproject # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:52 +# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#52 class RuboCop::Cop::Layout::LeadingCommentSpace < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:58 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#58 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:95 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#95 def allow_doxygen_comment?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:103 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#103 def allow_gemfile_ruby_comment?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:79 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#79 def allowed_on_first_line?(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:99 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#99 def doxygen_comment_style?(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:107 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#107 def gemfile?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:115 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#115 def gemfile_ruby_comment?(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:75 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#75 def hash_mark(expr); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:91 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#91 def rackup_config_file?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:87 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#87 def rackup_options?(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:111 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#111 def ruby_comment_in_gemfile?(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:83 + # source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#83 def shebang?(comment); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_comment_space.rb:56 +# source://rubocop//lib/rubocop/cop/layout/leading_comment_space.rb#56 RuboCop::Cop::Layout::LeadingCommentSpace::MSG = T.let(T.unsafe(nil), String) # Checks for unnecessary leading blank lines at the beginning @@ -11664,15 +12024,15 @@ RuboCop::Cop::Layout::LeadingCommentSpace::MSG = T.let(T.unsafe(nil), String) # # (start of file) # # a comment # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_empty_lines.rb:30 +# source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#30 class RuboCop::Cop::Layout::LeadingEmptyLines < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_empty_lines.rb:35 + # source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#35 def on_new_investigation; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/leading_empty_lines.rb:33 +# source://rubocop//lib/rubocop/cop/layout/leading_empty_lines.rb#33 RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String) # Checks that strings broken over multiple lines (by a backslash) contain @@ -11712,44 +12072,60 @@ RuboCop::Cop::Layout::LeadingEmptyLines::MSG = T.let(T.unsafe(nil), String) # 'this text is too' \ # ' long' # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:43 +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#43 class RuboCop::Cop::Layout::LineContinuationLeadingSpace < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:46 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#55 def on_dstr(node); end private + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#107 + def autocorrect(corrector, offense_range, insert_pos, spaces); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:82 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#103 def continuation?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:106 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#132 def enforced_style_leading?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:68 - def investigate_leading_style(first_line, end_of_first_line); end + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#81 + def investigate_leading_style(first_line, second_line, end_of_first_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:75 - def investigate_trailing_style(second_line, end_of_first_line); end + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#92 + def investigate_trailing_style(first_line, second_line, end_of_first_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:86 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#112 def leading_offense_range(end_of_first_line, matches); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:98 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#124 def message(_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:64 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#77 def raw_lines(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_leading_space.rb:92 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#118 def trailing_offense_range(end_of_first_line, matches); end end +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#49 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::LEADING_STYLE_OFFENSE = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#47 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::LINE_1_ENDING = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#48 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::LINE_2_BEGINNING = T.let(T.unsafe(nil), Regexp) + +# source://rubocop//lib/rubocop/cop/layout/line_continuation_leading_space.rb#50 +RuboCop::Cop::Layout::LineContinuationLeadingSpace::TRAILING_STYLE_OFFENSE = T.let(T.unsafe(nil), Regexp) + # Checks that the backslash of a line continuation is separated from # preceding text by exactly one space (default) or zero spaces. # @@ -11774,50 +12150,53 @@ end # 'b'\ # 'c' # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:30 +# source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#30 class RuboCop::Cop::Layout::LineContinuationSpacing < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:34 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#34 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:82 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#81 def autocorrect(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:106 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#107 def comment_ranges(comments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:66 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#65 def find_offensive_spacing(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:116 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#117 def ignore_range?(backtick_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:50 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#121 + def ignored_ranges; end + + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#49 def investigate(line, line_number); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:110 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#111 def last_line(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:74 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#73 def message(_range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:120 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#126 def no_space_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:124 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#130 def space_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_continuation_spacing.rb:91 + # source://rubocop//lib/rubocop/cop/layout/line_continuation_spacing.rb#90 def string_literal_ranges(ast); end end @@ -11887,50 +12266,50 @@ end # 'in two parts' # } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:74 +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#74 class RuboCop::Cop::Layout::LineEndStringConcatenationIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:95 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#95 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:83 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#83 def on_dstr(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:135 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#135 def add_offense_and_correction(node, message); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:107 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#107 def always_indented?(dstr_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:126 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#126 def base_column(child); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:111 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#111 def check_aligned(children, start_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:120 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#120 def check_indented(children); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:101 + # source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#101 def strings_concatenated_with_backslash?(dstr_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:79 +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#79 RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::MSG_ALIGN = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:80 +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#80 RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::MSG_INDENT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb:81 +# source://rubocop//lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb#81 RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_INDENTED = T.let(T.unsafe(nil), Array) # Checks the length of lines in the source code. @@ -11989,7 +12368,7 @@ RuboCop::Cop::Layout::LineEndStringConcatenationIndentation::PARENT_TYPES_FOR_IN # baz: "0000000000", # } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:63 +# source://rubocop//lib/rubocop/cop/layout/line_length.rb#63 class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckLineBreakable include ::RuboCop::Cop::AllowedPattern @@ -11997,125 +12376,125 @@ class RuboCop::Cop::Layout::LineLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:80 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:74 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:80 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:80 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 def on_hash(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:92 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#94 def on_investigation_end; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:88 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#88 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:74 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#74 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:80 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 def on_potential_breakable_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:80 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#80 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:217 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#219 def allow_heredoc?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:221 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#223 def allowed_heredoc; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:181 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#183 def allowed_line?(line, line_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:133 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#135 def breakable_block_range(block_node); end # Returns the value of attribute breakable_range. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:100 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#102 def breakable_range; end # Sets the attribute breakable_range # # @param value the value to set the attribute breakable_range to. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:100 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#102 def breakable_range=(_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:141 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#143 def breakable_range_after_semicolon(semicolon_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:154 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#156 def breakable_range_by_line_index; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:248 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#250 def check_directive_line(line, line_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:123 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#125 def check_for_breakable_block(block_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:102 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#104 def check_for_breakable_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:115 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#117 def check_for_breakable_semicolons(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:169 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#171 def check_line(line, line_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:265 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#267 def check_uri_line(line, line_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:202 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#204 def excess_range(uri_range, line, line_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:225 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#227 def extract_heredocs(ast); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:158 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#160 def heredocs; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:162 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#164 def highlight_start(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:244 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#246 def line_in_heredoc?(line_number); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:235 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#237 def line_in_permitted_heredoc?(line_number); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:213 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#215 def max; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:191 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#193 def register_offense(loc, line, line_index, length: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:187 + # source://rubocop//lib/rubocop/cop/layout/line_length.rb#189 def shebang?(line, line_index); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/line_length.rb:72 +# source://rubocop//lib/rubocop/cop/layout/line_length.rb#72 RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String) # Checks that the closing brace in an array literal is either @@ -12202,32 +12581,32 @@ RuboCop::Cop::Layout::LineLength::MSG = T.let(T.unsafe(nil), String) # [ :a, # :b ] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb:91 +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#91 class RuboCop::Cop::Layout::MultilineArrayBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb:109 + # source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#109 def on_array(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb:103 +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#103 RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb:106 +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#106 RuboCop::Cop::Layout::MultilineArrayBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb:99 +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#99 RuboCop::Cop::Layout::MultilineArrayBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_brace_layout.rb:95 +# source://rubocop//lib/rubocop/cop/layout/multiline_array_brace_layout.rb#95 RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Ensures that each item in a multi-line array # starts on a separate line. # -# @example +# @example AllowMultilineFinalElement: false (default) # # # bad # [ @@ -12235,6 +12614,11 @@ RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.uns # c # ] # +# # bad +# [ a, b, foo( +# bar +# )] +# # # good # [ # a, @@ -12242,16 +12626,60 @@ RuboCop::Cop::Layout::MultilineArrayBraceLayout::SAME_LINE_MESSAGE = T.let(T.uns # c # ] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_line_breaks.rb:23 +# # good +# [ +# a, +# b, +# foo( +# bar +# ) +# ] +# @example AllowMultilineFinalElement: true +# +# # bad +# [ +# a, b, +# c +# ] +# +# # good +# [ a, b, foo( +# bar +# )] +# +# # good +# [ +# a, +# b, +# c +# ] +# +# # good +# [ +# a, +# b, +# foo( +# bar +# ) +# ] +# +# source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#66 class RuboCop::Cop::Layout::MultilineArrayLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_line_breaks.rb:29 + # source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#72 def on_array(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#78 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_array_line_breaks.rb:27 +# source://rubocop//lib/rubocop/cop/layout/multiline_array_line_breaks.rb#70 RuboCop::Cop::Layout::MultilineArrayLineBreaks::MSG = T.let(T.unsafe(nil), String) # Checks whether the multiline assignments have a newline @@ -12305,35 +12733,35 @@ RuboCop::Cop::Layout::MultilineArrayLineBreaks::MSG = T.let(T.unsafe(nil), Strin # 'bar' * i # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:60 +# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#60 class RuboCop::Cop::Layout::MultilineAssignmentLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:72 + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#72 def check_assignment(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:81 + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#81 def check_by_enforced_style(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:90 + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#90 def check_new_line_offense(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:98 + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#98 def check_same_line_offense(node, rhs); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:111 + # source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#111 def supported_types; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:66 +# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#66 RuboCop::Cop::Layout::MultilineAssignmentLayout::NEW_LINE_OFFENSE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_assignment_layout.rb:69 +# source://rubocop//lib/rubocop/cop/layout/multiline_assignment_layout.rb#69 RuboCop::Cop::Layout::MultilineAssignmentLayout::SAME_LINE_OFFENSE = T.let(T.unsafe(nil), String) # Checks whether the multiline do end blocks have a newline @@ -12382,63 +12810,63 @@ RuboCop::Cop::Layout::MultilineAssignmentLayout::SAME_LINE_OFFENSE = T.let(T.uns # bar(i) # } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:51 +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#51 class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:59 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:59 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#59 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:98 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#98 def add_offense_for_expression(node, expr, msg); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:75 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#75 def args_on_beginning_line?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:105 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#105 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:120 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#120 def autocorrect_arguments(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:130 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#130 def autocorrect_body(corrector, node, block_body); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:142 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#142 def block_arg_string(node, args); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:90 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#90 def characters_needed_for_space_and_pipes(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:154 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#154 def include_trailing_comma?(args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:79 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#79 def line_break_necessary_in_args?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:83 + # source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#83 def needed_length_for_args(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:56 +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#56 RuboCop::Cop::Layout::MultilineBlockLayout::ARG_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:55 +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#55 RuboCop::Cop::Layout::MultilineBlockLayout::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_block_layout.rb:57 +# source://rubocop//lib/rubocop/cop/layout/multiline_block_layout.rb#57 RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Integer) # Checks that the closing brace in a hash literal is either @@ -12525,32 +12953,32 @@ RuboCop::Cop::Layout::MultilineBlockLayout::PIPE_SIZE = T.let(T.unsafe(nil), Int # { a: 1, # b: 2 } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb:91 +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#91 class RuboCop::Cop::Layout::MultilineHashBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb:109 + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#109 def on_hash(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb:103 +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#103 RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb:106 +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#106 RuboCop::Cop::Layout::MultilineHashBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb:99 +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#99 RuboCop::Cop::Layout::MultilineHashBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb:95 +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_brace_layout.rb#95 RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Ensures that each key in a multi-line hash # starts on a separate line. # -# @example +# @example AllowMultilineFinalElement: false (default) # # # bad # { @@ -12558,6 +12986,11 @@ RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsa # c: 3 # } # +# # bad +# { a: 1, b: { +# c: 3, +# }} +# # # good # { # a: 1, @@ -12565,23 +12998,63 @@ RuboCop::Cop::Layout::MultilineHashBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsa # c: 3 # } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb:23 +# # good +# { +# a: 1, +# b: { +# c: 3, +# } +# } +# @example AllowMultilineFinalElement: true +# +# # bad +# { +# a: 1, b: 2, +# c: 3 +# } +# +# # good +# { a: 1, b: { +# c: 3, +# }} +# +# # good +# { +# a: 1, +# b: 2, +# c: 3 +# } +# +# # good +# { +# a: 1, +# b: { +# c: 3, +# } +# } +# +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#65 class RuboCop::Cop::Layout::MultilineHashKeyLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb:29 + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#71 def on_hash(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb:40 + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#87 + def ignore_last_element?; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#83 def starts_with_curly_brace?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb:27 +# source://rubocop//lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb#69 RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), String) # Ensures that each argument in a multi-line method call @@ -12590,7 +13063,37 @@ RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), Str # NOTE: This cop does not move the first argument, if you want that to # be on a separate line, see `Layout/FirstMethodArgumentLineBreak`. # -# @example +# @example AllowMultilineFinalElement: false (default) +# +# # bad +# foo(a, b, +# c +# ) +# +# # bad +# foo(a, b, { +# foo: "bar", +# }) +# +# # good +# foo( +# a, +# b, +# c +# ) +# +# # good +# foo(a, b, c) +# +# # good +# foo( +# a, +# b, +# { +# foo: "bar", +# } +# ) +# @example AllowMultilineFinalElement: true # # # bad # foo(a, b, @@ -12598,6 +13101,11 @@ RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), Str # ) # # # good +# foo(a, b, { +# foo: "bar", +# }) +# +# # good # foo( # a, # b, @@ -12607,16 +13115,32 @@ RuboCop::Cop::Layout::MultilineHashKeyLineBreaks::MSG = T.let(T.unsafe(nil), Str # # good # foo(a, b, c) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb:28 +# # good +# foo( +# a, +# b, +# { +# foo: "bar", +# } +# ) +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#73 class RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb:34 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#79 def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#98 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb:32 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb#77 RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(nil), String) # Checks that the closing brace in a method call is either @@ -12703,41 +13227,41 @@ RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks::MSG = T.let(T.unsafe(ni # foo(a, # b) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:91 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#91 class RuboCop::Cop::Layout::MultilineMethodCallBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:109 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#109 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:115 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#115 def children(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:119 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#119 def ignored_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:123 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#123 def single_line_ignoring_receiver?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:103 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#103 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:106 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#106 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:99 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#99 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb:95 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb#95 RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Checks the indentation of the method name part in method calls @@ -12782,7 +13306,7 @@ RuboCop::Cop::Layout::MultilineMethodCallBraceLayout::SAME_LINE_MESSAGE = T.let( # .b # .c # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:49 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#49 class RuboCop::Cop::Layout::MultilineMethodCallIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment @@ -12791,89 +13315,89 @@ class RuboCop::Cop::Layout::MultilineMethodCallIndentation < ::RuboCop::Cop::Bas # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:55 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#55 def validate_config; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:136 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#136 def align_with_base_message(rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:152 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#152 def alignment_base(node, rhs, given_style); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:67 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#67 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:140 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#140 def base_source; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:101 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#101 def extra_indentation(given_style, parent); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:222 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#222 def first_call_has_a_dot(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:213 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#213 def get_dot_right_above(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:113 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#113 def message(node, lhs, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:144 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#144 def no_base_message(lhs, rhs, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:87 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#87 def offending_range(node, lhs, rhs, given_style); end # @yield [operation_rhs.first_argument] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:232 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#232 def operation_rhs(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:242 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#242 def operator_rhs?(node, receiver); end # a # .b # .c # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:193 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#193 def receiver_alignment_base(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:131 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#131 def relative_to_receiver_message(rhs); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:71 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#71 def relevant_node?(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:75 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#75 def right_hand_side(send_node); end # a.b # .c # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:181 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#181 def semantic_alignment_base(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:201 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#201 def semantic_alignment_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:127 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#127 def should_align_with_base?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:123 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#123 def should_indent_relative_to_receiver?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_call_indentation.rb:163 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_call_indentation.rb#163 def syntactic_alignment_base(lhs, rhs); end end @@ -12973,29 +13497,29 @@ end # b) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:103 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#103 class RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:121 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:121 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#121 def on_defs(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:115 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#115 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:118 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#118 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::ALWAYS_SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:111 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#111 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::NEW_LINE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb:107 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb#107 RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = T.let(T.unsafe(nil), String) # Ensures that each parameter in a multi-line method definition @@ -13004,7 +13528,7 @@ RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = # NOTE: This cop does not move the first argument, if you want that to # be on a separate line, see `Layout/FirstMethodParameterLineBreak`. # -# @example +# @example AllowMultilineFinalElement: false (default) # # # bad # def foo(a, b, @@ -13012,6 +13536,12 @@ RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = # ) # end # +# # bad +# def foo(a, b = { +# foo: "bar", +# }) +# end +# # # good # def foo( # a, @@ -13021,19 +13551,69 @@ RuboCop::Cop::Layout::MultilineMethodDefinitionBraceLayout::SAME_LINE_MESSAGE = # end # # # good +# def foo( +# a, +# b = { +# foo: "bar", +# } +# ) +# end +# +# # good # def foo(a, b, c) # end +# @example AllowMultilineFinalElement: true # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb:31 +# # bad +# def foo(a, b, +# c +# ) +# end +# +# # good +# def foo(a, b = { +# foo: "bar", +# }) +# end +# +# # good +# def foo( +# a, +# b, +# c +# ) +# end +# +# # good +# def foo( +# a, +# b = { +# foo: "bar", +# } +# ) +# end +# +# # good +# def foo(a, b, c) +# end +# +# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#81 class RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks < ::RuboCop::Cop::Base include ::RuboCop::Cop::MultilineElementLineBreaks extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb:37 + # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#87 def on_def(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#95 + def ignore_last_element?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb:35 +# source://rubocop//lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb#85 RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(nil), String) # Checks the indentation of the right hand side operand in binary operations that @@ -13072,49 +13652,49 @@ RuboCop::Cop::Layout::MultilineMethodParameterLineBreaks::MSG = T.let(T.unsafe(n # something_else # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:43 +# source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#43 class RuboCop::Cop::Layout::MultilineOperationIndentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::MultilineExpressionIndentation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:49 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#49 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:53 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#53 def on_or(node); end # @raise [ValidationError] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:57 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#57 def validate_config; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:68 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#68 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:78 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#78 def check_and_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:110 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#110 def message(node, lhs, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:84 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#84 def offending_range(node, lhs, rhs, given_style); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:72 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#72 def relevant_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:121 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#121 def right_hand_side(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/multiline_operation_indentation.rb:97 + # source://rubocop//lib/rubocop/cop/layout/multiline_operation_indentation.rb#97 def should_align?(node, rhs, given_style); end end @@ -13183,41 +13763,41 @@ end # 123 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:71 +# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#71 class RuboCop::Cop::Layout::ParameterAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:81 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#81 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:81 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#81 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:90 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#90 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:102 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#102 def base_column(node, args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:98 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#98 def fixed_indentation?; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:94 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#94 def message(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:113 + # source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#113 def target_method_lineno(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:75 +# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#75 RuboCop::Cop::Layout::ParameterAlignment::ALIGN_PARAMS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/parameter_alignment.rb:78 +# source://rubocop//lib/rubocop/cop/layout/parameter_alignment.rb#78 RuboCop::Cop::Layout::ParameterAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil), String) # Checks whether certain expressions, e.g. method calls, that could fit @@ -13257,70 +13837,70 @@ RuboCop::Cop::Layout::ParameterAlignment::FIXED_INDENT_MSG = T.let(T.unsafe(nil) # # good # foo(a) { |x| puts x } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:45 +# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#45 class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base include ::RuboCop::Cop::CheckAssignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:51 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#51 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:64 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#64 def check_assignment(node, _rhs); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:113 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#113 def comment_within?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:83 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#83 def configured_to_not_be_inspected?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:107 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#107 def convertible_block?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:133 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133 def max_line_length; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:77 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#77 def offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:90 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#90 def other_cop_takes_precedence?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:70 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#70 def register_offense(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:96 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#96 def single_line_block_chain_enabled?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:100 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#100 def suitable_as_single_line?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:124 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#124 def to_single_line(source); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:119 + # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#119 def too_long?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/redundant_line_break.rb:49 +# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#49 RuboCop::Cop::Layout::RedundantLineBreak::MSG = T.let(T.unsafe(nil), String) # Checks whether the rescue and ensure keywords are aligned @@ -13342,92 +13922,92 @@ RuboCop::Cop::Layout::RedundantLineBreak::MSG = T.let(T.unsafe(nil), String) # puts 'error' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:24 +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#24 class RuboCop::Cop::Layout::RescueEnsureAlignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::EndKeywordAlignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:40 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#40 def on_ensure(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:44 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#44 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:36 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#36 def on_resbody(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:186 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#186 def access_modifier?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:163 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#163 def access_modifier_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:149 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#149 def aligned_with_leading_dot?(do_keyword_line, send_node_loc, rescue_keyword_column); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:136 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#136 def aligned_with_line_break_method?(ancestor_node, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:195 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#195 def alignment_location(alignment_node); end # We will use ancestor or wrapper with access modifier. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:116 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#116 def alignment_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:95 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#95 def alignment_source(node, starting_loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:132 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#132 def ancestor_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:155 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#155 def assignment_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:73 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#73 def autocorrect(corrector, node, alignment_location); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:203 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#203 def begin_end_alignment_style; end # Check alignment of node with rescue or ensure modifiers. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:57 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#57 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:83 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#83 def format_message(alignment_node, alignment_loc, kw_loc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:173 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#173 def modifier?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:179 + # source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#179 def whitespace_range(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:34 +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#34 RuboCop::Cop::Layout::RescueEnsureAlignment::ALTERNATIVE_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:32 +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#32 RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:33 +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#33 RuboCop::Cop::Layout::RescueEnsureAlignment::ANCESTOR_TYPES_WITH_ACCESS_MODIFIERS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/rescue_ensure_alignment.rb:29 +# source://rubocop//lib/rubocop/cop/layout/rescue_ensure_alignment.rb#29 RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String) # Checks if method calls are chained onto single line blocks. It considers that a @@ -13446,29 +14026,29 @@ RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String) # item.cond? # end.join('-') # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/single_line_block_chain.rb:22 +# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#22 class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/single_line_block_chain.rb:28 + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#28 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/single_line_block_chain.rb:51 + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#51 def call_method_after_block?(node, dot_range, closing_block_delimiter_line_num); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/single_line_block_chain.rb:35 + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#35 def offending_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/single_line_block_chain.rb:57 + # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#57 def selector_range(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/single_line_block_chain.rb:26 +# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#26 RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String) # Checks for colon (:) not followed by some kind of space. @@ -13482,28 +14062,28 @@ RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String) # # good # def f(a:, b: 2); {a: 3}; end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_colon.rb:16 +# source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#16 class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_colon.rb:29 + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#29 def on_kwoptarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_colon.rb:21 + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#21 def on_pair(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_colon.rb:43 + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#43 def followed_by_space?(colon); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_colon.rb:39 + # source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#39 def register_offense(colon); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_colon.rb:19 +# source://rubocop//lib/rubocop/cop/layout/space_after_colon.rb#19 RuboCop::Cop::Layout::SpaceAfterColon::MSG = T.let(T.unsafe(nil), String) # Checks for comma (,) not followed by some kind of space. @@ -13518,15 +14098,15 @@ RuboCop::Cop::Layout::SpaceAfterColon::MSG = T.let(T.unsafe(nil), String) # [1, 2] # { foo:bar, } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_comma.rb:17 +# source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#17 class RuboCop::Cop::Layout::SpaceAfterComma < ::RuboCop::Cop::Base include ::RuboCop::Cop::SpaceAfterPunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_comma.rb:26 + # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#26 def kind(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_comma.rb:21 + # source://rubocop//lib/rubocop/cop/layout/space_after_comma.rb#21 def space_style_before_rcurly; end end @@ -13542,19 +14122,19 @@ end # def func(x) end # def method=(y) end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_method_name.rb:17 +# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#17 class RuboCop::Cop::Layout::SpaceAfterMethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_method_name.rb:23 + # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_method_name.rb:23 + # source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#23 def on_defs(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_method_name.rb:21 +# source://rubocop//lib/rubocop/cop/layout/space_after_method_name.rb#21 RuboCop::Cop::Layout::SpaceAfterMethodName::MSG = T.let(T.unsafe(nil), String) # Checks for space after `!`. @@ -13566,26 +14146,26 @@ RuboCop::Cop::Layout::SpaceAfterMethodName::MSG = T.let(T.unsafe(nil), String) # # good # !something # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_not.rb:14 +# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#14 class RuboCop::Cop::Layout::SpaceAfterNot < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_not.rb:21 + # source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#21 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_not.rb:33 + # source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#33 def whitespace_after_operator?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_not.rb:18 +# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#18 RuboCop::Cop::Layout::SpaceAfterNot::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_not.rb:19 +# source://rubocop//lib/rubocop/cop/layout/space_after_not.rb#19 RuboCop::Cop::Layout::SpaceAfterNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for semicolon (;) not followed by some kind of space. @@ -13597,15 +14177,15 @@ RuboCop::Cop::Layout::SpaceAfterNot::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # x = 1; y = 2 # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_semicolon.rb:14 +# source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#14 class RuboCop::Cop::Layout::SpaceAfterSemicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::SpaceAfterPunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_semicolon.rb:23 + # source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#23 def kind(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_after_semicolon.rb:18 + # source://rubocop//lib/rubocop/cop/layout/space_after_semicolon.rb#18 def space_style_before_rcurly; end end @@ -13630,59 +14210,59 @@ end # {}.each { | x, y | puts x } # ->( x, y ) { puts x } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:27 +# source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#27 class RuboCop::Cop::Layout::SpaceAroundBlockParameters < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:32 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#32 def on_block(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:65 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#65 def check_after_closing_pipe(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:125 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#125 def check_arg(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#103 def check_closing_pipe_space(arguments, closing_pipe); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:121 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#121 def check_each_arg(args); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:56 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#56 def check_inside_pipes(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:150 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#150 def check_no_space(space_begin_pos, space_end_pos, msg); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:73 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#73 def check_no_space_style_inside_pipes(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:92 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#92 def check_opening_pipe_space(arguments, opening_pipe); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:136 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#136 def check_space(space_begin_pos, space_end_pos, range, msg, node = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:85 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#85 def check_space_style_inside_pipes(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:113 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#113 def last_end_pos_inside_pipes(arguments, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:44 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#44 def pipes(arguments); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:48 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#48 def pipes?(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_block_parameters.rb:52 + # source://rubocop//lib/rubocop/cop/layout/space_around_block_parameters.rb#52 def style_parameter_name; end end @@ -13710,42 +14290,42 @@ end # # do something... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:30 +# source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#30 class RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:38 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#38 def on_optarg(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:67 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#67 def autocorrect(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:46 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#46 def check_optarg(arg, equals, value); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:58 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#58 def incorrect_style_detected(arg, value); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:83 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#83 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:79 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#79 def no_surrounding_space?(arg, equals); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:75 + # source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#75 def space_on_both_sides?(arg, equals); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb:36 +# source://rubocop//lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb#36 RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe(nil), String) # Checks the spacing around the keywords. @@ -13770,190 +14350,190 @@ RuboCop::Cop::Layout::SpaceAroundEqualsInParameterDefault::MSG = T.let(T.unsafe( # # something = 123 if test # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:27 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#27 class RuboCop::Cop::Layout::SpaceAroundKeyword < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:40 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#40 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:44 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#44 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:48 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#48 def on_break(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:52 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#52 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:56 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#56 def on_case_match(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:156 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#156 def on_defined?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:60 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#60 def on_ensure(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:64 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#64 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:68 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#68 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:72 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#72 def on_if_guard(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:76 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#76 def on_in_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:80 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#80 def on_kwbegin(node); end # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby27`. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:85 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#85 def on_match_pattern(node); end # Handle one-line pattern matching syntax (`in`) with `Parser::Ruby30`. # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:92 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#92 def on_match_pattern_p(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:96 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#96 def on_next(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:100 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#100 def on_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:104 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#104 def on_postexe(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:108 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#108 def on_preexe(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:112 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#112 def on_resbody(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:116 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#116 def on_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:120 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#120 def on_return(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:124 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#124 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:128 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#128 def on_super(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:136 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#136 def on_unless_guard(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:140 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#140 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:144 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#144 def on_when(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:148 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#148 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:152 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#152 def on_yield(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:132 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#132 def on_zsuper(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:235 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#235 def accept_left_parenthesis?(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:239 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#239 def accept_left_square_bracket?(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:243 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#243 def accept_namespace_operator?(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:228 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#228 def accepted_opening_delimiter?(range, char); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:162 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#162 def check(node, locations, begin_keyword = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:177 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#177 def check_begin(node, range, begin_keyword); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:183 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#183 def check_end(node, range, begin_keyword); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:196 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#196 def check_keyword(node, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:192 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#192 def do?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:251 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#251 def namespace_operator?(range, pos); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:255 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#255 def preceded_by_operator?(node, _range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:247 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#247 def safe_navigation_call?(range, pos); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:217 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#217 def space_after_missing?(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:210 + # source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#210 def space_before_missing?(range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:36 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#36 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_PAREN = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:37 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#37 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_LEFT_SQUARE_BRACKET = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:38 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#38 RuboCop::Cop::Layout::SpaceAroundKeyword::ACCEPT_NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:33 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#33 RuboCop::Cop::Layout::SpaceAroundKeyword::DO = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:31 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#31 RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_AFTER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:30 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#30 RuboCop::Cop::Layout::SpaceAroundKeyword::MSG_BEFORE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:35 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#35 RuboCop::Cop::Layout::SpaceAroundKeyword::NAMESPACE_OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_keyword.rb:34 +# source://rubocop//lib/rubocop/cop/layout/space_around_keyword.rb#34 RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String) # Checks method call operators to not have spaces around them. @@ -13987,39 +14567,39 @@ RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), # RuboCop::Cop::Cop # ::RuboCop::Cop # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:37 +# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#37 class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:53 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#53 def on_const(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:45 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:45 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#45 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:87 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#87 def check_space(begin_pos, end_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:67 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#67 def check_space_after_dot(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:81 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#81 def check_space_after_double_colon(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:61 + # source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#61 def check_space_before_dot(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:43 +# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#43 RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_method_call_operator.rb:41 +# source://rubocop//lib/rubocop/cop/layout/space_around_method_call_operator.rb#41 RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.unsafe(nil), Regexp) # Checks that operators have space around them, except for ** which @@ -14066,148 +14646,148 @@ RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.uns # # good # a ** b # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:53 +# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#53 class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Base include ::RuboCop::Cop::PrecedingFollowingAlignment include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RationalLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:119 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_and_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_assignment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:119 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 def on_binary(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:111 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#111 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:119 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:78 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#78 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_masgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:135 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#135 def on_match_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:127 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#127 def on_op_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:119 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#119 def on_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:103 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#103 def on_or_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:70 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#70 def on_pair(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:85 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#85 def on_resbody(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:66 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#66 def on_sclass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:93 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#93 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:127 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#127 def on_special_asgn(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:236 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#236 def align_hash_cop_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:179 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#179 def autocorrect(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:163 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#163 def check_operator(type, operator, right_operand); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:189 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#189 def enclose_operator_with_space(corrector, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:216 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#216 def excess_leading_space?(type, operator, with_space); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:231 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#231 def excess_trailing_space?(right_operand, with_space); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:248 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#248 def force_equal_sign_alignment?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:240 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#240 def hash_table_style?; end # @yield [msg] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:174 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#174 def offense(type, operator, with_space, right_operand); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:202 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#202 def offense_message(type, operator, with_space, right_operand); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:159 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#159 def operator_with_regular_syntax?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:155 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#155 def regular_operator?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:252 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#252 def should_not_have_surrounding_space?(operator); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:244 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#244 def space_around_exponent_operator?; end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:62 + # source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#62 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:60 +# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#60 RuboCop::Cop::Layout::SpaceAroundOperators::EXCESSIVE_SPACE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_around_operators.rb:59 +# source://rubocop//lib/rubocop/cop/layout/space_around_operators.rb#59 RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(nil), Array) # Checks that block braces have or don't have a space before the opening @@ -14246,61 +14826,61 @@ RuboCop::Cop::Layout::SpaceAroundOperators::IRREGULAR_METHODS = T.let(T.unsafe(n # # good # 7.times{} # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:44 +# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#44 class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:56 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:56 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#56 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:124 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#124 def autocorrect(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:144 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#144 def block_delimiters_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:83 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#83 def check_empty(left_brace, space_plus_brace, used_style); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:100 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#100 def check_non_empty(left_brace, space_plus_brace, used_style); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:140 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#140 def conflict_with_block_delimiters?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:148 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#148 def empty_braces?(loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:115 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#115 def space_detected(left_brace, space_plus_brace); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:108 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#108 def space_missing(left_brace); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:131 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#131 def style_for_empty_braces; end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:52 + # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#52 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:50 +# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#50 RuboCop::Cop::Layout::SpaceBeforeBlockBraces::DETECTED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_block_braces.rb:49 +# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#49 RuboCop::Cop::Layout::SpaceBeforeBlockBraces::MISSING_MSG = T.let(T.unsafe(nil), String) # Checks for space between the name of a receiver and a left @@ -14314,40 +14894,40 @@ RuboCop::Cop::Layout::SpaceBeforeBlockBraces::MISSING_MSG = T.let(T.unsafe(nil), # # good # collection[index_or_key] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:17 +# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#17 class RuboCop::Cop::Layout::SpaceBeforeBrackets < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:24 + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#24 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:48 + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#48 def dot_before_brackets?(node, receiver_end_pos, selector_begin_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:35 + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#35 def offense_range(node, begin_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:54 + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#54 def offense_range_for_assignment(node, begin_pos); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:67 + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#67 def reference_variable_with_brackets?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:63 + # source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#63 def register_offense(range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:21 +# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#21 RuboCop::Cop::Layout::SpaceBeforeBrackets::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_brackets.rb:22 +# source://rubocop//lib/rubocop/cop/layout/space_before_brackets.rb#22 RuboCop::Cop::Layout::SpaceBeforeBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for comma (,) preceded by space. @@ -14363,13 +14943,13 @@ RuboCop::Cop::Layout::SpaceBeforeBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil # a(1, 2) # each { |a, b| } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_comma.rb:19 +# source://rubocop//lib/rubocop/cop/layout/space_before_comma.rb#19 class RuboCop::Cop::Layout::SpaceBeforeComma < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SpaceBeforePunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_comma.rb:23 + # source://rubocop//lib/rubocop/cop/layout/space_before_comma.rb#23 def kind(token); end end @@ -14383,15 +14963,15 @@ end # # good # 1 + 1 # this operation does ... # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_comment.rb:15 +# source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#15 class RuboCop::Cop::Layout::SpaceBeforeComment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_comment.rb:20 + # source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#20 def on_new_investigation; end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_comment.rb:18 +# source://rubocop//lib/rubocop/cop/layout/space_before_comment.rb#18 RuboCop::Cop::Layout::SpaceBeforeComment::MSG = T.let(T.unsafe(nil), String) # Checks that exactly one space is used between a method name and the @@ -14412,42 +14992,42 @@ RuboCop::Cop::Layout::SpaceBeforeComment::MSG = T.let(T.unsafe(nil), String) # something y, z # something 'hello' # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:24 +# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#24 class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Base include ::RuboCop::Cop::PrecedingFollowingAlignment include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:35 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:35 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#35 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:54 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#54 def expect_params_after_method_name?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:64 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#64 def no_space_between_method_name_and_first_argument?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:50 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#50 def regular_method_call_with_arguments?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:31 + # source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#31 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_first_arg.rb:29 +# source://rubocop//lib/rubocop/cop/layout/space_before_first_arg.rb#29 RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String) # Checks for semicolon (;) preceded by space. @@ -14459,13 +15039,13 @@ RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String) # # good # x = 1; y = 2 # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_semicolon.rb:14 +# source://rubocop//lib/rubocop/cop/layout/space_before_semicolon.rb#14 class RuboCop::Cop::Layout::SpaceBeforeSemicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SpaceBeforePunctuation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_before_semicolon.rb:18 + # source://rubocop//lib/rubocop/cop/layout/space_before_semicolon.rb#18 def kind(token); end end @@ -14485,41 +15065,41 @@ end # # good # a = -> (x, y) { x + y } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:22 +# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#22 class RuboCop::Cop::Layout::SpaceInLambdaLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:30 + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#30 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:50 + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#50 def arrow_lambda_with_args?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:72 + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#72 def lambda_arguments(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:65 + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#65 def range_of_offense(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:58 + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#58 def space_after_arrow(lambda_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:54 + # source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#54 def space_after_arrow?(lambda_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:28 +# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#28 RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_NO_SPACE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_in_lambda_literal.rb:27 +# source://rubocop//lib/rubocop/cop/layout/space_in_lambda_literal.rb#27 RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(nil), String) # Checks that brackets used for array literals have or don't have @@ -14582,94 +15162,97 @@ RuboCop::Cop::Layout::SpaceInLambdaLiteral::MSG_REQUIRE_SPACE = T.let(T.unsafe(n # foo = [ ] # bar = [ ] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:70 +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#70 class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:78 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#78 def on_array(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:106 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#106 def array_brackets(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:92 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#92 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:215 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#219 def compact(corrector, bracket, side); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:202 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#205 def compact_corrections(corrector, node, left, right); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:194 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#197 def compact_offense(node, token, side: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:157 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#157 def compact_offenses(node, left, right, start_ok, end_ok); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:118 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#118 def empty_config; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:126 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#126 def end_has_own_line?(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:133 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#133 def index_for(node, token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:141 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#141 def issue_offenses(node, left, right, start_ok, end_ok); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:110 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#110 def left_array_bracket(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:137 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#137 def line_and_column_for(token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:179 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#178 def multi_dimensional_array?(node, token, side: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:188 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#191 def next_to_bracket?(token, side: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:153 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#153 def next_to_comment?(node, token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:122 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#122 def next_to_newline?(node, token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:170 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#170 def qualifies_for_compact?(node, token, side: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:114 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#114 def right_array_bracket(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:76 +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#76 RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb:75 +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb#75 RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::MSG = T.let(T.unsafe(nil), String) # Checks for unnecessary additional spaces inside array percent literals # (i.e. %i/%w). # +# Note that blank percent literals (e.g. `%i( )`) are checked by +# `Layout/SpaceInsidePercentLiteralDelimiters`. +# # @example # # # bad @@ -14677,29 +15260,29 @@ RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets::MSG = T.let(T.unsafe(nil) # # good # %i(foo bar baz) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb:15 +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#18 class RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MatchRange include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb:23 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#26 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb:27 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#30 def on_percent_literal(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb:37 + # source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#40 def each_unnecessary_space_match(node, &blk); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb:20 +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#23 RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb:21 +# source://rubocop//lib/rubocop/cop/layout/space_inside_array_percent_literal.rb#24 RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_ITEMS_REGEX = T.let(T.unsafe(nil), Regexp) # Checks that block braces have or don't have surrounding space inside @@ -14768,70 +15351,73 @@ RuboCop::Cop::Layout::SpaceInsideArrayPercentLiteral::MULTIPLE_SPACES_BETWEEN_IT # # good # [1, 2, 3].each {|n| n * 2 } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:79 +# source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#79 class RuboCop::Cop::Layout::SpaceInsideBlockBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:85 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:85 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#85 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:122 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#122 def adjacent_braces(left_brace, right_brace); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:160 - def aligned_braces?(left_brace, right_brace); end + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#161 + def aligned_braces?(inner, right_brace, column); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:130 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#130 def braces_with_contents_inside(node, inner); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:105 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#105 def check_inside(node, left_brace, right_brace); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:137 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#137 def check_left_brace(inner, left_brace, args_delimiter); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:145 - def check_right_brace(inner, left_brace, right_brace, single_line); end + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#145 + def check_right_brace(node, inner, left_brace, right_brace, single_line); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#165 + def inner_last_space_count(inner); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:156 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#157 def multiline_block?(left_brace, right_brace); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:206 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#222 def no_space(begin_pos, end_pos, msg); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:164 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#169 def no_space_inside_left_brace(left_brace, args_delimiter); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:222 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#238 def offense(begin_pos, end_pos, msg, style_param = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:196 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#201 def pipe?(args_delimiter); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:214 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#230 def space(begin_pos, end_pos, msg); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:181 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#186 def space_inside_left_brace(left_brace, args_delimiter); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:200 - def space_inside_right_brace(right_brace); end + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#205 + def space_inside_right_brace(inner, right_brace, column); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_block_braces.rb:235 + # source://rubocop//lib/rubocop/cop/layout/space_inside_block_braces.rb#251 def style_for_empty_braces; end end @@ -14875,10 +15461,13 @@ end # # bad # foo = { } # bar = { } +# baz = { +# } # # # good # foo = {} # bar = {} +# baz = {} # @example EnforcedStyleForEmptyBraces: space # # The `space` EnforcedStyleForEmptyBraces style enforces that # # empty hash braces contain space. @@ -14888,57 +15477,69 @@ end # # # good # foo = { } -# foo = { } -# foo = { } +# foo = { } +# foo = { +# } # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:66 +# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#70 class RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:74 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#78 def on_hash(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:132 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#137 def ambiguous_or_unexpected_style_detected(style, is_match); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:124 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#129 def autocorrect(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:84 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#89 def check(token1, token2); end + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#184 + def check_whitespace_only_hash(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#202 + def enforce_no_space_style_for_empty_braces?; end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:99 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#104 def expect_space?(token1, token2); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:112 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#117 def incorrect_style_detected(token1, token2, expect_space, is_empty_braces); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:145 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#150 def message(brace, is_empty_braces, expect_space); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:140 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#145 def offense?(token1, expect_space); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:171 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#196 + def range_inside_hash(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#176 def range_of_space_to_the_left(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:163 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#168 def range_of_space_to_the_right(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:155 + # source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#160 def space_range(token_range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb:72 +# source://rubocop//lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb#76 RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), String) # Checks for spaces inside ordinary round parentheses. @@ -14990,61 +15591,61 @@ RuboCop::Cop::Layout::SpaceInsideHashLiteralBraces::MSG = T.let(T.unsafe(nil), S # g( f( x( 3 )), 5 ) # g((( 3 + 5 ) * f ) ** x, 5 ) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:57 +# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#57 class RuboCop::Cop::Layout::SpaceInsideParens < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:66 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#66 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:161 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#161 def can_be_ignored?(token1, token2); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:115 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#115 def correct_extaneus_space_between_consecutive_parens(token1, token2); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:99 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#99 def correct_extraneous_space(tokens); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:124 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#124 def correct_extraneous_space_in_empty_parens(token1, token2); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:135 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#135 def correct_missing_space(token1, token2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:153 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#153 def left_parens?(token1, token2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:149 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#149 def parens?(token1, token2); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:88 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#88 def process_with_compact_style(tokens); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:81 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#81 def process_with_space_style(tokens); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:157 + # source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#157 def right_parens?(token1, token2); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:63 +# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#63 RuboCop::Cop::Layout::SpaceInsideParens::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_parens.rb:64 +# source://rubocop//lib/rubocop/cop/layout/space_inside_parens.rb#64 RuboCop::Cop::Layout::SpaceInsideParens::MSG_SPACE = T.let(T.unsafe(nil), String) # Checks for unnecessary additional spaces inside the delimiters of @@ -15052,47 +15653,70 @@ RuboCop::Cop::Layout::SpaceInsideParens::MSG_SPACE = T.let(T.unsafe(nil), String # # @example # +# # bad +# %i( foo bar baz ) +# # # good # %i(foo bar baz) # # # bad # %w( foo bar baz ) # +# # good +# %w(foo bar baz) +# # # bad # %x( ls -l ) # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:19 +# # good +# %x(ls -l) +# +# # bad +# %w( ) +# %w( +# ) +# +# # good +# %w() +# +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#36 class RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MatchRange include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:28 + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#45 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:36 + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#53 def on_percent_literal(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:32 + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#49 def on_xstr(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:42 + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#60 + def add_offenses_for_blank_spaces(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#69 def add_offenses_for_unnecessary_spaces(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:52 + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#85 + def body_range(node); end + + # source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#79 def regex_matches(node, &blk); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:25 +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#42 RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::BEGIN_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:26 +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#43 RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::END_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb:24 +# source://rubocop//lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb#41 RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::MSG = T.let(T.unsafe(nil), String) # Checks for spaces inside range literals. @@ -15110,23 +15734,23 @@ RuboCop::Cop::Layout::SpaceInsidePercentLiteralDelimiters::MSG = T.let(T.unsafe( # # good # 'a'..'z' # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_range_literal.rb:20 +# source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#20 class RuboCop::Cop::Layout::SpaceInsideRangeLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_range_literal.rb:29 + # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#29 def on_erange(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_range_literal.rb:25 + # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#25 def on_irange(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_range_literal.rb:35 + # source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#35 def check(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_range_literal.rb:23 +# source://rubocop//lib/rubocop/cop/layout/space_inside_range_literal.rb#23 RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String) # Checks that reference brackets have or don't have @@ -15161,6 +15785,8 @@ RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String # # bad # foo[ ] # foo[ ] +# foo[ +# ] # # # good # foo[] @@ -15171,48 +15797,50 @@ RuboCop::Cop::Layout::SpaceInsideRangeLiteral::MSG = T.let(T.unsafe(nil), String # # bad # foo[] # foo[ ] +# foo[ +# ] # # # good # foo[ ] # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:56 +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#60 class RuboCop::Cop::Layout::SpaceInsideReferenceBrackets < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:66 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#70 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:88 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#92 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:117 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#121 def closing_bracket(tokens, opening_bracket); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:133 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#137 def empty_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:106 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#110 def left_ref_bracket(node, tokens); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:128 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#132 def previous_token(current_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:100 + # source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#104 def reference_brackets(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:62 +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#66 RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::EMPTY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:61 +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#65 RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_reference_brackets.rb:64 +# source://rubocop//lib/rubocop/cop/layout/space_inside_reference_brackets.rb#68 RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for whitespace within string interpolations. @@ -15230,7 +15858,7 @@ RuboCop::Cop::Layout::SpaceInsideReferenceBrackets::RESTRICT_ON_SEND = T.let(T.u # # good # var = "This is the #{ space } example" # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb:21 +# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#21 class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation include ::RuboCop::Cop::RangeHelp @@ -15238,22 +15866,22 @@ class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Bas include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb:31 + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#31 def on_interpolation(begin_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb:46 + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#46 def autocorrect(corrector, begin_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb:56 + # source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#56 def delimiters(begin_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb:28 +# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#28 RuboCop::Cop::Layout::SpaceInsideStringInterpolation::NO_SPACE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/layout/space_inside_string_interpolation.rb:29 +# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#29 RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe(nil), String) # Looks for trailing blank lines and a final newline in the @@ -15289,26 +15917,26 @@ RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe # # # EOF # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_empty_lines.rb:40 +# source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#40 class RuboCop::Cop::Layout::TrailingEmptyLines < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_empty_lines.rb:45 + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#45 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_empty_lines.rb:79 + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#79 def ends_in_end?(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_empty_lines.rb:89 + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#89 def message(wanted_blank_lines, blank_lines); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_empty_lines.rb:66 + # source://rubocop//lib/rubocop/cop/layout/trailing_empty_lines.rb#66 def offense_detected(buffer, wanted_blank_lines, blank_lines, whitespace_at_end); end end @@ -15346,100 +15974,103 @@ end # x = 0 # RUBY # -# source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:42 +# source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#42 class RuboCop::Cop::Layout::TrailingWhitespace < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::Heredoc extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:58 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#57 def on_heredoc(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:49 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#49 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:109 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#112 def extract_heredocs(ast); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:104 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#103 def find_heredoc(line_number); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:118 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#108 + def heredocs; end + + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#125 def offense_range(lineno, line); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:62 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#61 def process_line(line, lineno); end - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:76 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#75 def process_line_in_heredoc(corrector, range, heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:100 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#99 def skip_heredoc?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:96 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#95 def static?(heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:87 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#86 def whitespace_is_indentation?(range, level); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:91 + # source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#90 def whitespace_only?(range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/layout/trailing_whitespace.rb:47 +# source://rubocop//lib/rubocop/cop/layout/trailing_whitespace.rb#47 RuboCop::Cop::Layout::TrailingWhitespace::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:5 +# source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#5 module RuboCop::Cop::Legacy; end # Legacy support for Corrector#corrections # See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html # -# source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:8 +# source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#8 class RuboCop::Cop::Legacy::CorrectionsProxy # @return [CorrectionsProxy] a new instance of CorrectionsProxy # - # source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:9 + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#9 def initialize(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:13 + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#13 def <<(callable); end - # source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:21 + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#21 def concat(corrections); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:17 + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#17 def empty?; end protected # Returns the value of attribute corrector. # - # source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:31 + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#31 def corrector; end private - # source://rubocop-1.35.1/lib/rubocop/cop/legacy/corrections_proxy.rb:35 + # source://rubocop//lib/rubocop/cop/legacy/corrections_proxy.rb#35 def suppress_clobbering; end end # This class handles autocorrection for code that needs to be moved # to new lines. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:7 +# source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#7 class RuboCop::Cop::LineBreakCorrector extend ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::TrailingBody @@ -15447,92 +16078,92 @@ class RuboCop::Cop::LineBreakCorrector extend ::RuboCop::Cop::Util class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:27 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#27 def break_line_before(range:, node:, corrector:, configured_width:, indent_steps: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:15 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#15 def correct_trailing_body(configured_width:, corrector:, node:, processed_source:); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:35 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#35 def move_comment(eol_comment:, node:, corrector:); end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:13 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#13 def processed_source; end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:45 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#45 def remove_semicolon(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:51 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#51 def semicolon(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/line_break_corrector.rb:58 + # source://rubocop//lib/rubocop/cop/correctors/line_break_corrector.rb#58 def trailing_class_definition?(token, body); end end end # Help methods for determining if a line is too long. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#6 module RuboCop::Cop::LineLengthHelp private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#22 def allow_uri?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#26 def allowed_uri_position?(line, uri_range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#13 def directive_on_source_line?(line_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:63 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#70 def extend_uri_end_position(line, end_position); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#34 def find_excessive_uri_range(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#9 def ignore_cop_directives?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:57 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#57 def indentation_difference(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:30 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#30 def line_length(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:96 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#103 def line_length_without_directive(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:49 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#49 def match_uris(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:79 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#86 def tab_indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:84 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#91 def uri_regexp; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/line_length_help.rb:89 + # source://rubocop//lib/rubocop/cop/mixin/line_length_help.rb#96 def valid_uri?(uri_ish_string); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/unused_argument.rb:5 +# source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#5 module RuboCop::Cop::Lint; end # Checks for mistyped shorthand assignments. @@ -15550,41 +16181,41 @@ module RuboCop::Cop::Lint; end # x *= y # or x = *y # x != y # or x = !y # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:21 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#21 class RuboCop::Cop::Lint::AmbiguousAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:30 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#30 def on_lvasgn(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:44 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#44 def rhs(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:28 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#28 RuboCop::Cop::Lint::AmbiguousAssignment::MISTAKES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:24 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#24 RuboCop::Cop::Lint::AmbiguousAssignment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_assignment.rb:26 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_assignment.rb#26 RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # Checks for ambiguous block association with method @@ -15624,40 +16255,40 @@ RuboCop::Cop::Lint::AmbiguousAssignment::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsaf # # # bad # expect { do_something }.to change { object.attribute } -# @example AllowedPatterns: [/change/] +# @example AllowedPatterns: ['change'] # # # good # expect { do_something }.to change { object.attribute } # expect { do_something }.to not_change { object.attribute } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:54 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#54 class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:62 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:62 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#62 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:81 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#81 def allowed_method_pattern?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:77 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#77 def ambiguous_block_association?(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:87 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#87 def message(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_block_association.rb:58 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_block_association.rb#58 RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String) # Checks for ambiguous operators in the first argument of a @@ -15677,39 +16308,39 @@ RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String # # With parentheses, there's no ambiguity. # do_something(*some_array) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:23 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#23 class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:41 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#41 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:60 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#60 def find_offense_node_by(diagnostic); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:78 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#78 def message(diagnostic); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:88 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#88 def offense_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:84 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#84 def offense_position?(node, diagnostic); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:97 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#97 def unary_operator?(node, diagnostic); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:26 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#26 RuboCop::Cop::Lint::AmbiguousOperator::AMBIGUITIES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator.rb:36 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator.rb#36 RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) # Looks for expressions containing multiple binary operators @@ -15737,50 +16368,50 @@ RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) # a + b + c # a * b / c % d # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:30 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#30 class RuboCop::Cop::Lint::AmbiguousOperatorPrecedence < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:54 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#54 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:47 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#47 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:65 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#65 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:105 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#105 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:89 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#89 def greater_precedence?(node1, node2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:85 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#85 def operator?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:97 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#97 def operator_name(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:79 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#79 def precedence(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:45 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#45 RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::MSG = T.let(T.unsafe(nil), String) # See https://ruby-doc.org/core-3.0.2/doc/syntax/precedence_rdoc.html # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:34 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#34 RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::PRECEDENCE = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb:44 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_operator_precedence.rb#44 RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for ambiguous ranges. @@ -15828,40 +16459,40 @@ RuboCop::Cop::Lint::AmbiguousOperatorPrecedence::RESTRICT_ON_SEND = T.let(T.unsa # # good # (a.foo)..(b.bar) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:59 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#59 class RuboCop::Cop::Lint::AmbiguousRange < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:64 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#64 def on_erange(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:64 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#64 def on_irange(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:82 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#82 def acceptable?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:89 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#89 def acceptable_call?(node); end # @yield [range.begin] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:77 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#77 def each_boundary(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:99 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#99 def require_parentheses_for_method_chain?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_range.rb:62 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_range.rb#62 RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) # Checks for ambiguous regexp literals in the first argument of @@ -15882,33 +16513,33 @@ RuboCop::Cop::Lint::AmbiguousRange::MSG = T.let(T.unsafe(nil), String) # # With parentheses, there's no ambiguity. # do_something(/pattern/i) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:24 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#24 class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:31 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#31 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:56 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#56 def find_offense_node(node, regexp_receiver); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:49 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#49 def find_offense_node_by(diagnostic); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:67 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#67 def first_argument_is_regexp?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:71 + # source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#71 def method_chain_to_regexp_receiver?(node, regexp_receiver); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb:27 +# source://rubocop//lib/rubocop/cop/lint/ambiguous_regexp_literal.rb#27 RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) # Checks for assignments in the conditions of @@ -15940,50 +16571,51 @@ RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:37 +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#41 class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment + extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:49 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:49 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:49 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55 def on_while(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:72 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#82 def allowed_construct?(asgn_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:76 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#86 def conditional_assignment?(asgn_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:64 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#74 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:80 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#90 def skip_children?(asgn_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:86 + # source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#96 def traverse_node(node, &block); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:47 +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#53 RuboCop::Cop::Lint::AssignmentInCondition::ASGN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:44 +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#50 RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITHOUT_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/assignment_in_condition.rb:40 +# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#46 RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) # `BigDecimal.new()` is deprecated since BigDecimal 1.3.3. @@ -15997,21 +16629,21 @@ RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T. # # good # BigDecimal(123.456, 3) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/big_decimal_new.rb:17 +# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#17 class RuboCop::Cop::Lint::BigDecimalNew < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/big_decimal_new.rb:25 + # source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#25 def big_decimal_new(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/big_decimal_new.rb:30 + # source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#30 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/big_decimal_new.rb:20 +# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#20 RuboCop::Cop::Lint::BigDecimalNew::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/big_decimal_new.rb:22 +# source://rubocop//lib/rubocop/cop/lint/big_decimal_new.rb#22 RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where binary operator has identical operands. @@ -16045,22 +16677,22 @@ RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # x + x # 1 << 1 # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb:48 +# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#48 class RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb:61 + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#61 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb:61 + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#61 def on_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb:52 + # source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#52 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb:50 +# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#50 RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::ALLOWED_MATH_OPERATORS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb:49 +# source://rubocop//lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb#49 RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(nil), String) # Checks for `:true` and `:false` symbols. @@ -16081,23 +16713,23 @@ RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(ni # # good # false # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/boolean_symbol.rb:29 +# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#29 class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/boolean_symbol.rb:35 + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#35 def boolean_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/boolean_symbol.rb:37 + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#37 def on_sym(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/boolean_symbol.rb:50 + # source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#50 def autocorrect(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/boolean_symbol.rb:32 +# source://rubocop//lib/rubocop/cop/lint/boolean_symbol.rb#32 RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # Checks for circular argument references in optional keyword @@ -16141,21 +16773,21 @@ RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) # dry_ingredients.combine # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/circular_argument_reference.rb:50 +# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#50 class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/circular_argument_reference.rb:53 + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#53 def on_kwoptarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/circular_argument_reference.rb:57 + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#57 def on_optarg(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/circular_argument_reference.rb:63 + # source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#63 def check_for_circular_argument_references(arg_name, arg_value); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/circular_argument_reference.rb:51 +# source://rubocop//lib/rubocop/cop/lint/circular_argument_reference.rb#51 RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String) # Do not define constants within a block, since the block's scope does not @@ -16215,32 +16847,32 @@ RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:64 +# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#64 class RuboCop::Cop::Lint::ConstantDefinitionInBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:70 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#70 def constant_assigned_in_block?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:75 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#75 def module_defined_in_block?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:79 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#79 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:85 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:85 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#85 def on_module(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:94 + # source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#94 def method_name(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_definition_in_block.rb:67 +# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#67 RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String) # Checks for overwriting an exception with an exception result by use `rescue =>`. @@ -16263,24 +16895,24 @@ RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String # rescue StandardError # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb:26 +# source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#26 class RuboCop::Cop::Lint::ConstantOverwrittenInRescue < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb:41 + # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#41 def on_resbody(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb:33 + # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#33 def overwritten_constant(param0 = T.unsafe(nil)); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb:37 + # source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#37 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb:30 +# source://rubocop//lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb#30 RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), String) # Check that certain constants are fully qualified. @@ -16296,6 +16928,10 @@ RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), Stri # using the same name a namespace and a class. To avoid too many unnecessary # offenses, Enable this cop with `Only: [The, Constant, Names, Causing, Issues]` # +# NOTE: `Style/RedundantConstantBase` cop is disabled if this cop is enabled to prevent +# conflicting rules. Because it respects user configurations that want to enable +# this cop which is disabled by default. +# # @example # # By default checks every constant # @@ -16333,29 +16969,29 @@ RuboCop::Cop::Lint::ConstantOverwrittenInRescue::MSG = T.let(T.unsafe(nil), Stri # # good # Login # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:58 +# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#62 class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:66 + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#70 def on_const(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:62 + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#66 def unqualified_const?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:79 + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#83 def allowed_names; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:74 + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#78 def const_name?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:83 + # source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#87 def ignored_names; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/constant_resolution.rb:59 +# source://rubocop//lib/rubocop/cop/lint/constant_resolution.rb#63 RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # Checks for debug calls (such as `debugger` or `binding.pry`) that should @@ -16417,29 +17053,29 @@ RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) # my_debugger # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:67 +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#67 class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:70 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#70 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:98 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#98 def debugger_method?(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:82 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#82 def debugger_methods; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:78 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#78 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:110 + # source://rubocop//lib/rubocop/cop/lint/debugger.rb#112 def receiver_chain(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/debugger.rb:68 +# source://rubocop//lib/rubocop/cop/lint/debugger.rb#68 RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the deprecated class method usages. @@ -16466,109 +17102,109 @@ RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) # Addrinfo.getaddrinfo(nodename, service) # Addrinfo.tcp(host, port).getnameinfo # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:29 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#29 class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:132 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#132 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:153 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#153 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:162 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#162 def replacement(deprecated); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:129 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#129 RuboCop::Cop::Lint::DeprecatedClassMethods::CLASS_METHOD_DELIMITER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:102 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#102 RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Hash) # Inner class to DeprecatedClassMethods. # This class exists to add abstraction and clean naming # to the deprecated objects # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:35 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#35 class RuboCop::Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod include ::RuboCop::AST::Sexp # @return [DeprecatedClassMethod] a new instance of DeprecatedClassMethod # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:40 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#40 def initialize(method, class_constant: T.unsafe(nil), correctable: T.unsafe(nil)); end # Returns the value of attribute class_constant. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:38 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#38 def class_constant; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:46 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#46 def class_nodes; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:58 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#58 def correctable?; end # Returns the value of attribute method. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:38 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#38 def method; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:62 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#62 def to_s; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:68 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#68 def delimiter; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:130 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#130 RuboCop::Cop::Lint::DeprecatedClassMethods::INSTANCE_METHOD_DELIMITER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:100 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#100 RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:127 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#127 RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Inner class to DeprecatedClassMethods. # This class exists to add abstraction and clean naming # to the replacements for deprecated objects # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:76 +# source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#76 class RuboCop::Cop::Lint::DeprecatedClassMethods::Replacement # @return [Replacement] a new instance of Replacement # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:79 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#79 def initialize(method, class_constant: T.unsafe(nil), instance_method: T.unsafe(nil)); end # Returns the value of attribute class_constant. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:77 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#77 def class_constant; end # Returns the value of attribute method. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:77 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#77 def method; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:85 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#85 def to_s; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:91 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#91 def delimiter; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_class_methods.rb:95 + # source://rubocop//lib/rubocop/cop/lint/deprecated_class_methods.rb#95 def instance_method?; end end @@ -16583,7 +17219,8 @@ end # Alternative: 'alternative_value' # DeprecatedVersion: 'deprecated_version' # -# By default, `NIL`, `TRUE`, `FALSE` and `Random::DEFAULT` are configured. +# By default, `NIL`, `TRUE`, `FALSE`, `Net::HTTPServerException, `Random::DEFAULT`, +# `Struct::Group`, and `Struct::Passwd` are configured. # # @example # @@ -16591,37 +17228,43 @@ end # NIL # TRUE # FALSE +# Net::HTTPServerException # Random::DEFAULT # Return value of Ruby 2 is `Random` instance, Ruby 3.0 is `Random` class. +# Struct::Group +# Struct::Passwd # # # good # nil # true # false +# Net::HTTPClientException # Random.new # `::DEFAULT` has been deprecated in Ruby 3, `.new` is compatible with Ruby 2. +# Etc::Group +# Etc::Passwd # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:33 +# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#40 class RuboCop::Cop::Lint::DeprecatedConstants < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:39 + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#46 def on_const(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:59 + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#66 def constant_name(node, nested_constant_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:75 + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#82 def deprecated_constants; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:65 + # source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#72 def message(good, bad, deprecated_version); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:37 +# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#44 RuboCop::Cop::Lint::DeprecatedConstants::DO_NOT_USE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_constants.rb:36 +# source://rubocop//lib/rubocop/cop/lint/deprecated_constants.rb#43 RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), String) # Algorithmic constants for `OpenSSL::Cipher` and `OpenSSL::Digest` @@ -16656,51 +17299,51 @@ RuboCop::Cop::Lint::DeprecatedConstants::SUGGEST_GOOD_MSG = T.let(T.unsafe(nil), # # good # OpenSSL::Digest.digest('SHA256', 'foo') # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:40 +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#40 class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:49 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#49 def algorithm_const(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:59 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#59 def digest_const?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:63 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#63 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:110 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#110 def algorithm_name(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:75 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#75 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:139 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#139 def build_cipher_arguments(node, algorithm_name, no_arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:102 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#102 def correction_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:87 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#87 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:106 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#106 def openssl_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:128 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#128 def replacement_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:120 + # source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#120 def sanitize_arguments(arguments); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:44 +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#44 RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb:46 +# source://rubocop//lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb#46 RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::NO_ARG_ALGORITHM = T.let(T.unsafe(nil), Array) # Checks constructors for disjunctive assignments (`||=`) that should @@ -16723,26 +17366,26 @@ RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::NO_ARG_ALGORITHM = T.let(T.unsafe # @x = 1 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:48 +# source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#48 class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:53 + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#53 def on_def(node); end private # @param node [DefNode] a constructor definition # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:60 + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#60 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:66 + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#66 def check_body(body); end # @param lines [Array] the logical lines of the constructor # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:78 + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#78 def check_body_lines(lines); end # Add an offense if the LHS of the given disjunctive assignment is @@ -16752,11 +17395,11 @@ class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::B # # @param node [Node] a disjunctive assignment # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:99 + # source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#99 def check_disjunctive_assignment(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb:51 +# source://rubocop//lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb#51 RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated bodies @@ -16837,60 +17480,58 @@ RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil # else MEDIUM_SIZE # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:86 +# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#86 class RuboCop::Cop::Lint::DuplicateBranch < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RescueNode - - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:91 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 def on_branching_statement(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:91 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:91 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 def on_case_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:91 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:91 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#89 def on_rescue(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:119 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#117 def branches(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:123 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#121 def consider_branch?(branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:149 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#147 def const_branch?(branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:134 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#132 def ignore_constant_branches?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:130 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#128 def ignore_literal_branches?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:138 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#136 def literal_branch?(branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:105 + # source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#103 def offense_range(duplicate_branch); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_branch.rb:89 +# source://rubocop//lib/rubocop/cop/lint/duplicate_branch.rb#87 RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated conditions @@ -16917,13 +17558,13 @@ RuboCop::Cop::Lint::DuplicateBranch::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_case_condition.rb:30 +# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#30 class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_case_condition.rb:33 + # source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#33 def on_case(case_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_case_condition.rb:31 +# source://rubocop//lib/rubocop/cop/lint/duplicate_case_condition.rb#31 RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String) # Checks that there are no repeated conditions used in if 'elsif'. @@ -16943,13 +17584,13 @@ RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_elsif_condition.rb:23 +# source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#23 class RuboCop::Cop::Lint::DuplicateElsifCondition < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_elsif_condition.rb:26 + # source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#26 def on_if(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_elsif_condition.rb:24 +# source://rubocop//lib/rubocop/cop/lint/duplicate_elsif_condition.rb#24 RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String) # Checks for duplicated keys in hash literals. @@ -16967,17 +17608,60 @@ RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String) # # hash = { food: 'apple', other_food: 'orange' } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_hash_key.rb:21 +# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#21 class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Base include ::RuboCop::Cop::Duplication - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_hash_key.rb:26 + # source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#26 def on_hash(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_hash_key.rb:24 +# source://rubocop//lib/rubocop/cop/lint/duplicate_hash_key.rb#24 RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) +# Checks for duplicated magic comments. +# +# @example +# +# # bad +# +# # encoding: ascii +# # encoding: ascii +# +# # good +# +# # encoding: ascii +# +# # bad +# +# # frozen_string_literal: true +# # frozen_string_literal: true +# +# # good +# +# # frozen_string_literal: true +# +# source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#28 +class RuboCop::Cop::Lint::DuplicateMagicComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::FrozenStringLiteral + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#35 + def on_new_investigation; end + + private + + # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#51 + def magic_comment_lines; end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#65 + def register_offense(range); end +end + +# source://rubocop//lib/rubocop/cop/lint/duplicate_magic_comment.rb#33 +RuboCop::Cop::Lint::DuplicateMagicComment::MSG = T.let(T.unsafe(nil), String) + # Checks for duplicated instance (or singleton) method # definitions. # @@ -17022,76 +17706,88 @@ RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) # # alias bar foo # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:52 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#52 class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base # @return [DuplicateMethods] a new instance of DuplicateMethods # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:57 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#57 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:97 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#98 def alias_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:84 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#85 def method_alias?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:88 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#89 def on_alias(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:62 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#63 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:71 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#72 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:103 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#104 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:102 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#103 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:116 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#117 def check_const_receiver(node, name, const_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:123 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#124 def check_self_receiver(node, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:178 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#208 def found_attr(node, args, readable: T.unsafe(nil), writable: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:135 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#136 def found_instance_method(node, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:148 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#159 def found_method(node, method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:188 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#149 + def found_sclass_method(node, name); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#186 + def location(node); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#218 def lookup_constant(node, const_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:130 - def message_for_dup(node, method_name); end + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#131 + def message_for_dup(node, method_name, key); end + + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#178 + def method_key(node, method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:164 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#194 def on_attr(node, attr_name, args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:220 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#250 def possible_dsl?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:206 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#236 def qualified_name(enclosing, namespace, mod_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:230 + # source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#260 def source_location(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:53 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#55 +RuboCop::Cop::Lint::DuplicateMethods::DEF_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#53 RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_methods.rb:55 +# source://rubocop//lib/rubocop/cop/lint/duplicate_methods.rb#54 RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for duplicate elements in Regexp character classes. @@ -17110,36 +17806,46 @@ RuboCop::Cop::Lint::DuplicateMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # good # r = /[0-9x]/ # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb:21 +# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#21 class RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb:35 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#36 def each_repeated_character_class_element_loc(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb:27 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#27 def on_regexp(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb:64 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#83 def interpolation_locs(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#65 + def skip_expression?(expr); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#78 + def start_with_escaped_zero_number?(current_child, next_child); end + # Since we blank interpolations with a space for every char of the interpolation, we would # mark every space (except the first) as duplicate if we do not skip regexp_parser nodes # that are within an interpolation. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb:58 + # source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#72 def within_interpolation?(node, child); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb:25 +# source://rubocop//lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb#25 RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::MSG_REPEATED_ELEMENT = T.let(T.unsafe(nil), String) -# Checks for duplicate `require`s and `require_relative`s. +# Checks for duplicate ``require``s and ``require_relative``s. # # @example # # bad @@ -17155,28 +17861,28 @@ RuboCop::Cop::Lint::DuplicateRegexpCharacterClassElement::MSG_REPEATED_ELEMENT = # require 'foo' # require_relative 'foo' # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:26 +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#26 class RuboCop::Cop::Lint::DuplicateRequire < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:39 + # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#39 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:45 + # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#45 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:35 + # source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#35 def require_call?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:30 +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#30 RuboCop::Cop::Lint::DuplicateRequire::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:31 +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#31 RuboCop::Cop::Lint::DuplicateRequire::REQUIRE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_require.rb:32 +# source://rubocop//lib/rubocop/cop/lint/duplicate_require.rb#32 RuboCop::Cop::Lint::DuplicateRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Checks that there are no repeated exceptions @@ -17201,15 +17907,15 @@ RuboCop::Cop::Lint::DuplicateRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Se # handle_other_exception # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_rescue_exception.rb:28 +# source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#28 class RuboCop::Cop::Lint::DuplicateRescueException < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode - # source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_rescue_exception.rb:33 + # source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#33 def on_rescue(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/duplicate_rescue_exception.rb:31 +# source://rubocop//lib/rubocop/cop/lint/duplicate_rescue_exception.rb#31 RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) # Checks if each_with_object is called with an immutable @@ -17230,22 +17936,22 @@ RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) # num = 0 # sum = numbers.each_with_object(num) { |e, a| a += e } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/each_with_object_argument.rb:24 +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#24 class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/each_with_object_argument.rb:29 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#29 def each_with_object?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/each_with_object_argument.rb:33 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#33 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/each_with_object_argument.rb:33 + # source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#33 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/each_with_object_argument.rb:25 +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#25 RuboCop::Cop::Lint::EachWithObjectArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/each_with_object_argument.rb:26 +# source://rubocop//lib/rubocop/cop/lint/each_with_object_argument.rb#26 RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for odd `else` block layout - like @@ -17285,30 +17991,30 @@ RuboCop::Cop::Lint::EachWithObjectArgument::RESTRICT_ON_SEND = T.let(T.unsafe(ni # do_that # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:43 +# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#43 class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:49 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#49 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:80 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#80 def autocorrect(corrector, node, first_else); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:60 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#60 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:70 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#70 def check_else(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:88 + # source://rubocop//lib/rubocop/cop/lint/else_layout.rb#88 def indentation_width; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/else_layout.rb:47 +# source://rubocop//lib/rubocop/cop/lint/else_layout.rb#47 RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) # Checks for blocks without a body. @@ -17364,35 +18070,30 @@ RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) # # Proc.new { } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:63 +# source://rubocop//lib/rubocop/cop/lint/empty_block.rb#63 class RuboCop::Cop::Lint::EmptyBlock < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:66 + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#66 def on_block(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:76 + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#76 def allow_comment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:83 + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#83 def allow_empty_lambdas?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:87 + # source://rubocop//lib/rubocop/cop/lint/empty_block.rb#87 def comment_disables_cop?(comment); end - - # @return [Boolean] - # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:92 - def lambda_or_proc?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_block.rb:64 +# source://rubocop//lib/rubocop/cop/lint/empty_block.rb#64 RuboCop::Cop::Lint::EmptyBlock::MSG = T.let(T.unsafe(nil), String) # Checks for classes and metaclasses without a body. @@ -17459,26 +18160,26 @@ RuboCop::Cop::Lint::EmptyBlock::MSG = T.let(T.unsafe(nil), String) # # TODO: implement later # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_class.rb:72 +# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#72 class RuboCop::Cop::Lint::EmptyClass < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_class.rb:76 + # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#76 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_class.rb:81 + # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#81 def on_sclass(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_class.rb:87 + # source://rubocop//lib/rubocop/cop/lint/empty_class.rb#87 def body_or_allowed_comment_lines?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_class.rb:73 +# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#73 RuboCop::Cop::Lint::EmptyClass::CLASS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_class.rb:74 +# source://rubocop//lib/rubocop/cop/lint/empty_class.rb#74 RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `if`, `elsif` and `unless` branches without a body. @@ -17531,37 +18232,62 @@ RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) # # noop # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:63 +# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#63 class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:70 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#70 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:81 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#154 + def all_branches_body_missing?(node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#81 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:110 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#140 def branch_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:98 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#102 def correct_other_branches(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:118 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#160 def deletion_range(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:87 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#135 + def else_branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#129 + def empty_elsif_branch?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#121 + def empty_if_branch?(node); end + + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#87 def remove_comments(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:94 + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#94 def remove_empty_branch(corrector, node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#114 + def require_other_branches_correction?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_conditional_body.rb:68 +# source://rubocop//lib/rubocop/cop/lint/empty_conditional_body.rb#68 RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) # Checks for empty `ensure` blocks @@ -17601,15 +18327,15 @@ RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_ensure.rb:45 +# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#45 class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_ensure.rb:50 + # source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#50 def on_ensure(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_ensure.rb:48 +# source://rubocop//lib/rubocop/cop/lint/empty_ensure.rb#48 RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of empty expressions. @@ -17631,20 +18357,20 @@ RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) # bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_expression.rb:25 +# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#25 class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_expression.rb:28 + # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#28 def on_begin(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_expression.rb:36 + # source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#36 def empty_expression?(begin_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_expression.rb:26 +# source://rubocop//lib/rubocop/cop/lint/empty_expression.rb#26 RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) # Enforces that Ruby source files are not empty. @@ -17662,32 +18388,32 @@ RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) # # bad # # File consisting only of comments # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_file.rb:23 +# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#23 class RuboCop::Cop::Lint::EmptyFile < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_file.rb:28 + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#28 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_file.rb:42 + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#42 def contains_only_comments?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_file.rb:38 + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#38 def empty_file?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_file.rb:34 + # source://rubocop//lib/rubocop/cop/lint/empty_file.rb#34 def offending?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_file.rb:26 +# source://rubocop//lib/rubocop/cop/lint/empty_file.rb#26 RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `in` pattern branches without a body. @@ -17727,16 +18453,16 @@ RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) # # noop # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_in_pattern.rb:45 +# source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#45 class RuboCop::Cop::Lint::EmptyInPattern < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_in_pattern.rb:53 + # source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#53 def on_case_match(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_in_pattern.rb:49 +# source://rubocop//lib/rubocop/cop/lint/empty_in_pattern.rb#49 RuboCop::Cop::Lint::EmptyInPattern::MSG = T.let(T.unsafe(nil), String) # Checks for empty interpolation. @@ -17752,16 +18478,16 @@ RuboCop::Cop::Lint::EmptyInPattern::MSG = T.let(T.unsafe(nil), String) # # "result is #{some_result}" # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_interpolation.rb:19 +# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#19 class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_interpolation.rb:25 + # source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#25 def on_interpolation(begin_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_interpolation.rb:23 +# source://rubocop//lib/rubocop/cop/lint/empty_interpolation.rb#23 RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of `when` branches without a body. @@ -17802,15 +18528,15 @@ RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) # # do nothing # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_when.rb:47 +# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#47 class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_when.rb:52 + # source://rubocop//lib/rubocop/cop/lint/empty_when.rb#52 def on_case(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/empty_when.rb:50 +# source://rubocop//lib/rubocop/cop/lint/empty_when.rb#50 RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # Checks for `return` from an `ensure` block. @@ -17854,16 +18580,16 @@ RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) # cleanup # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ensure_return.rb:47 +# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#47 class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ensure_return.rb:53 + # source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#53 def on_ensure(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ensure_return.rb:51 +# source://rubocop//lib/rubocop/cop/lint/ensure_return.rb#51 RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) # This cop emulates the following Ruby warnings in Ruby 2.6. @@ -17921,42 +18647,42 @@ RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) # ERB.new(str, nil, '-', '@output_buffer') # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:62 +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#62 class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:84 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#84 def erb_new_with_non_keyword_arguments(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:89 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#89 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:154 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#154 def arguments_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:109 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#109 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:124 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#124 def build_kwargs(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:120 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#120 def correct_arguments?(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:141 + # source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#141 def override_by_legacy_args(kwargs, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:69 +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#69 RuboCop::Cop::Lint::ErbNewArguments::MESSAGES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/erb_new_arguments.rb:81 +# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#81 RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for uses of flip-flop operator @@ -17979,16 +18705,16 @@ RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # puts x if (x >= 5) && (x <= 10) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/flip_flop.rb:25 +# source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#25 class RuboCop::Cop::Lint::FlipFlop < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/flip_flop.rb:32 + # source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#32 def on_eflipflop(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/flip_flop.rb:28 + # source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#28 def on_iflipflop(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/flip_flop.rb:26 +# source://rubocop//lib/rubocop/cop/lint/flip_flop.rb#26 RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of precise comparison of floating point numbers. @@ -18016,38 +18742,38 @@ RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) # # Or some other epsilon based type of comparison: # # https://www.embeddeduse.com/2019/08/26/qt-compare-two-floats/ # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:31 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#31 class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:40 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#40 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:79 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#79 def check_numeric_returning_method(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:63 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#63 def check_send(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:47 + # source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#47 def float?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:34 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#34 RuboCop::Cop::Lint::FloatComparison::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:36 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#36 RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:35 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#35 RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:32 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#32 RuboCop::Cop::Lint::FloatComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_comparison.rb:38 +# source://rubocop//lib/rubocop/cop/lint/float_comparison.rb#38 RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies Float literals which are, like, really really really @@ -18065,13 +18791,13 @@ RuboCop::Cop::Lint::FloatComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # float = 42.9 # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_out_of_range.rb:21 +# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#21 class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/float_out_of_range.rb:24 + # source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#24 def on_float(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/float_out_of_range.rb:22 +# source://rubocop//lib/rubocop/cop/lint/float_out_of_range.rb#22 RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # This lint sees if there is a mismatch between the number of @@ -18103,115 +18829,115 @@ RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) # # format('Numbered format: %1$s and numbered %2$s', a_value, another) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:38 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#38 class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:96 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#96 def called_on_string?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:49 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#49 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:133 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#133 def count_format_matches(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:115 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#115 def count_matches(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:137 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#137 def count_percent_matches(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:125 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#125 def countable_format?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:129 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#129 def countable_percent?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:149 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#149 def expected_fields_count(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:164 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#164 def format?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:142 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#142 def format_method?(name, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:64 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#64 def format_string?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:111 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#111 def heredoc?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:68 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#68 def invalid_format_string?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:87 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#87 def matched_arguments_count?(expected, passed); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:183 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#183 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:101 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#101 def method_with_format_args?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:77 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#77 def offending_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:172 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#172 def percent?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:105 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#105 def splat_args?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:168 + # source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#168 def sprintf?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:44 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#44 RuboCop::Cop::Lint::FormatParameterMismatch::KERNEL = T.let(T.unsafe(nil), String) # http://rubular.com/r/CvpbxkcTzy # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:39 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#39 RuboCop::Cop::Lint::FormatParameterMismatch::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:41 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#41 RuboCop::Cop::Lint::FormatParameterMismatch::MSG_INVALID = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:47 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#47 RuboCop::Cop::Lint::FormatParameterMismatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:45 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#45 RuboCop::Cop::Lint::FormatParameterMismatch::SHOVEL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/format_parameter_mismatch.rb:46 +# source://rubocop//lib/rubocop/cop/lint/format_parameter_mismatch.rb#46 RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), Array) # Prefer using `Hash#compare_by_identity` rather than using `object_id` @@ -18231,19 +18957,19 @@ RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), # hash[foo] = :bar # hash.key?(baz) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/hash_compare_by_identity.rb:31 +# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#31 class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/hash_compare_by_identity.rb:37 + # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37 def id_as_hash_key?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/hash_compare_by_identity.rb:41 + # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/hash_compare_by_identity.rb:34 +# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#34 RuboCop::Cop::Lint::HashCompareByIdentity::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/hash_compare_by_identity.rb:32 +# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#32 RuboCop::Cop::Lint::HashCompareByIdentity::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the ordering of a method call where @@ -18273,77 +18999,77 @@ RuboCop::Cop::Lint::HashCompareByIdentity::RESTRICT_ON_SEND = T.let(T.unsafe(nil # bar # SQL # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:33 +# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#33 class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:39 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#39 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:39 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#39 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:99 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#99 def all_on_same_line?(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:52 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#52 def autocorrect(corrector, node, heredoc); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:79 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#79 def call_after_heredoc_range(heredoc); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:109 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#109 def call_end_pos(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:118 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#118 def call_line_range(node); end # Returns nil if no range can be safely repositioned. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:124 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#124 def call_range_to_safely_reposition(node, heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:88 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#88 def calls_on_multiple_lines?(node, _heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:84 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#84 def correctly_positioned?(node, heredoc); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:113 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#113 def heredoc_begin_line_range(heredoc); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:105 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#105 def heredoc_end_pos(heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:75 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#75 def heredoc_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:61 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#61 def heredoc_node_descendent_receiver(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:69 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#69 def send_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:148 + # source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#148 def trailing_comma?(call_source, call_line_source); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/heredoc_method_call_position.rb:37 +# source://rubocop//lib/rubocop/cop/lint/heredoc_method_call_position.rb#37 RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String) # Prefer `equal?` over `==` when comparing `object_id`. @@ -18358,30 +19084,30 @@ RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String # # good # foo.equal?(bar) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/identity_comparison.rb:19 +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#19 class RuboCop::Cop::Lint::IdentityComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/identity_comparison.rb:25 + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#25 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/identity_comparison.rb:41 + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#41 def compare_between_object_id_by_double_equal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/identity_comparison.rb:45 + # source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#45 def object_id_method?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/identity_comparison.rb:22 +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#22 RuboCop::Cop::Lint::IdentityComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/identity_comparison.rb:23 +# source://rubocop//lib/rubocop/cop/lint/identity_comparison.rb#23 RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for implicit string concatenation of string literals @@ -18403,43 +19129,43 @@ RuboCop::Cop::Lint::IdentityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # 'Item 2' # ] # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:25 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#25 class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:33 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#33 def on_dstr(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:83 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#83 def display_str(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:50 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#50 def each_bad_cons(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:65 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#65 def ending_delimiter(str); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:91 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#91 def str_content(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:75 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#75 def string_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:79 + # source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#79 def string_literals?(node1, node2); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:28 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#28 RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_ARRAY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:30 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#30 RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/implicit_string_concatenation.rb:26 +# source://rubocop//lib/rubocop/cop/lint/implicit_string_concatenation.rb#26 RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), String) # This cop checks for `IO.select` that is incompatible with Fiber Scheduler since Ruby 3.0. @@ -18463,31 +19189,31 @@ RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), Stri # # good # io.wait_writable(timeout) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:32 +# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#32 class RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:39 + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#39 def io_select(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:44 + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#44 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:67 + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#67 def preferred_method(read, write, timeout); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:61 + # source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#61 def scheduler_compatible?(io1, io2); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:35 +# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#35 RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb:36 +# source://rubocop//lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb#36 RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `private` or `protected` access modifiers which are @@ -18531,49 +19257,49 @@ RuboCop::Cop::Lint::IncompatibleIoSelectWithFiberScheduler::RESTRICT_ON_SEND = T # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:48 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#48 class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:59 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:59 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#59 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:55 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#55 def private_class_methods(param0); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:109 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#109 def access_modifier?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:66 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#66 def check_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:113 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#113 def correct_visibility?(node, modifier, ignored_methods); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:78 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#78 def format_message(modifier); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:91 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#91 def ineffective_modifier(node, ignored_methods = T.unsafe(nil), modifier = T.unsafe(nil), &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:74 + # source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#74 def private_class_method_names(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:51 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#51 RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PRIVATE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:52 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#52 RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PROTECTED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ineffective_access_modifier.rb:49 +# source://rubocop//lib/rubocop/cop/lint/ineffective_access_modifier.rb#49 RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String) # Looks for error classes inheriting from `Exception`. @@ -18605,41 +19331,41 @@ RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String # # C = Class.new(RuntimeError) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:40 +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#40 class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:53 + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#53 def class_new_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:59 + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#59 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:69 + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#69 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:86 + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#86 def exception_class?(class_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:82 + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#82 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:90 + # source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#90 def preferred_base_class; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:44 +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#44 RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:45 +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#45 RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/inherit_exception.rb:50 +# source://rubocop//lib/rubocop/cop/lint/inherit_exception.rb#50 RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for interpolation in a single quoted string. @@ -18655,25 +19381,25 @@ RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # foo = "something with #{interpolation} inside" # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/interpolation_check.rb:24 +# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#25 class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/interpolation_check.rb:30 + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#31 def on_str(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/interpolation_check.rb:41 + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#42 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/interpolation_check.rb:52 + # source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#53 def heredoc?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/interpolation_check.rb:27 +# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#28 RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String) # Checks uses of lambda without a literal block. @@ -18698,21 +19424,21 @@ RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String) # Proc.new { do_something } # lambda { do_something } # If you use lambda. # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/lambda_without_literal_block.rb:28 +# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#28 class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/lambda_without_literal_block.rb:35 + # source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#35 def lambda_with_symbol_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/lambda_without_literal_block.rb:39 + # source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#39 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/lambda_without_literal_block.rb:31 +# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#31 RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/lambda_without_literal_block.rb:32 +# source://rubocop//lib/rubocop/cop/lint/lambda_without_literal_block.rb#32 RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for literals used as the conditions or as @@ -18745,69 +19471,69 @@ RuboCop::Cop::Lint::LambdaWithoutLiteralBlock::RESTRICT_ON_SEND = T.let(T.unsafe # break if condition # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:35 +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#35 class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:93 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#93 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:58 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#58 def on_case(case_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:73 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#73 def on_case_match(case_match_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:40 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#40 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:87 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#87 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:51 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#51 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:51 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#51 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:44 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#44 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:44 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#44 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:108 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#108 def basic_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:138 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#138 def check_case(case_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:99 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#99 def check_for_literal(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:120 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#120 def check_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:147 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#147 def condition(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:130 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#130 def handle_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:116 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#116 def primitive_array?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:155 + # source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#155 def when_conditions_range(when_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_as_condition.rb:38 +# source://rubocop//lib/rubocop/cop/lint/literal_as_condition.rb#38 RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) # Checks for interpolated literals. @@ -18823,67 +19549,67 @@ RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) # # "result is 10" # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:19 +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#19 class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:28 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#28 def on_interpolation(begin_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:62 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#62 def autocorrected_value(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:97 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#97 def autocorrected_value_for_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:82 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#82 def autocorrected_value_for_string(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:90 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#90 def autocorrected_value_for_symbol(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:113 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#113 def ends_heredoc_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:121 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#121 def in_array_percent_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:48 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#48 def offending?(node); end # Does node print its own source when converted to a string? # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:104 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#104 def prints_as_self?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:109 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#109 def space_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:56 + # source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#56 def special_keyword?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:26 +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#26 RuboCop::Cop::Lint::LiteralInInterpolation::COMPOSITE = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/literal_in_interpolation.rb:25 +# source://rubocop//lib/rubocop/cop/lint/literal_in_interpolation.rb#25 RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for uses of `begin...end while/until something`. @@ -18923,29 +19649,29 @@ RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) # break if some_condition # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:50 +# source://rubocop//lib/rubocop/cop/lint/loop.rb#50 class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:59 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#59 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:55 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#55 def on_while_post(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:79 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#79 def build_break_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:75 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#75 def keyword_and_condition_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:65 + # source://rubocop//lib/rubocop/cop/lint/loop.rb#65 def register_offense(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/loop.rb:53 +# source://rubocop//lib/rubocop/cop/lint/loop.rb#53 RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) # cop disables on wide ranges of code, that latter contributors to @@ -18983,34 +19709,39 @@ RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) # # Including this, that's 3 lines on which the cop is disabled. # # rubocop:enable Layout/SpaceAroundOperators # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:45 +# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#45 class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:51 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#51 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:89 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#70 + def acceptable_range?(cop, line_range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#104 def department_enabled?(cop, comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:66 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#64 def each_missing_enable; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:72 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#87 def max_range; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:76 + # source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#91 def message(cop, comment, type = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:48 +# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#48 RuboCop::Cop::Lint::MissingCopEnableDirective::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_cop_enable_directive.rb:49 +# source://rubocop//lib/rubocop/cop/lint/missing_cop_enable_directive.rb#49 RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), String) # Checks for the presence of constructors and lifecycle callbacks @@ -19052,58 +19783,58 @@ RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:45 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#45 class RuboCop::Cop::Lint::MissingSuper < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:58 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#58 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:68 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#68 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:80 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#80 def callback_method_def?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:86 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#86 def contains_super?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:90 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#90 def inside_class_with_stateful_parent?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:76 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#76 def offender?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:95 + # source://rubocop//lib/rubocop/cop/lint/missing_super.rb#95 def stateless_class?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:56 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#56 RuboCop::Cop::Lint::MissingSuper::CALLBACKS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:47 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#47 RuboCop::Cop::Lint::MissingSuper::CALLBACK_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:51 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#51 RuboCop::Cop::Lint::MissingSuper::CLASS_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:46 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#46 RuboCop::Cop::Lint::MissingSuper::CONSTRUCTOR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:52 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#52 RuboCop::Cop::Lint::MissingSuper::METHOD_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/missing_super.rb:49 +# source://rubocop//lib/rubocop/cop/lint/missing_super.rb#49 RuboCop::Cop::Lint::MissingSuper::STATELESS_CLASSES = T.let(T.unsafe(nil), Array) # Do not mix named captures and numbered captures in a Regexp literal @@ -19123,13 +19854,13 @@ RuboCop::Cop::Lint::MissingSuper::STATELESS_CLASSES = T.let(T.unsafe(nil), Array # # good # /(FOO)(BAR)/ # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb:23 +# source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#23 class RuboCop::Cop::Lint::MixedRegexpCaptureTypes < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb:26 + # source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#26 def on_regexp(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb:24 +# source://rubocop//lib/rubocop/cop/lint/mixed_regexp_capture_types.rb#24 RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String) # In math and Python, we can use `x < y < z` style comparison to compare @@ -19147,42 +19878,39 @@ RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String) # x < y && y < z # 10 <= x && x <= 20 # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:20 +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#20 class RuboCop::Cop::Lint::MultipleComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:29 + # source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#29 def multiple_compare?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:33 + # source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#33 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:24 +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#24 RuboCop::Cop::Lint::MultipleComparison::COMPARISON_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:23 +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#23 RuboCop::Cop::Lint::MultipleComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:26 +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#26 RuboCop::Cop::Lint::MultipleComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/multiple_comparison.rb:25 +# source://rubocop//lib/rubocop/cop/lint/multiple_comparison.rb#25 RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe(nil), Array) # Checks for nested method definitions. # -# @example -# -# # bad -# -# # `bar` definition actually produces methods in the same scope -# # as the outer `foo` method. Furthermore, the `bar` method -# # will be redefined every time `foo` is invoked. -# def foo +# @example AllowedPatterns: ['baz'] +# # good +# def foo(obj) +# obj.do_baz do # def bar # end # end +# end # @example # # # good @@ -19195,6 +19923,9 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # # # good # +# # `class_eval`, `instance_eval`, `module_eval`, `class_exec`, `instance_exec`, and +# # `module_exec` blocks are allowed by default. +# # def foo # self.class.class_eval do # def bar @@ -19218,33 +19949,76 @@ RuboCop::Cop::Lint::MultipleComparison::SET_OPERATION_OPERATORS = T.let(T.unsafe # end # end # end +# @example AllowedMethods: [] (default) +# # bad +# def do_something +# has_many :articles do +# def find_or_create_by_name(name) +# end +# end +# end +# @example AllowedMethods: ['has_many'] +# # bad +# def do_something +# has_many :articles do +# def find_or_create_by_name(name) +# end +# end +# end +# @example AllowedPatterns: [] (default) +# # bad +# def foo(obj) +# obj.do_baz do +# def bar +# end +# end +# end +# @example # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:57 +# # bad +# +# # `bar` definition actually produces methods in the same scope +# # as the outer `foo` method. Furthermore, the `bar` method +# # will be redefined every time `foo` is invoked. +# def foo +# def bar +# end +# end +# +# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#97 class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:94 + include ::RuboCop::Cop::AllowedMethods + include ::RuboCop::Cop::AllowedPattern + + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#143 def class_or_module_or_struct_new_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:84 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#133 def eval_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:89 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#138 def exec_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:60 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#103 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:60 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#103 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:78 + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#126 + def allowed_method_name?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#121 def scoping_method_call?(child); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_method_definition.rb:58 +# source://rubocop//lib/rubocop/cop/lint/nested_method_definition.rb#101 RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Checks for nested percent literals. @@ -19273,36 +20047,36 @@ RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) # nested_attributes: [:name, :content, [:incorrectly, :nested]] # } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:32 +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#32 class RuboCop::Cop::Lint::NestedPercentLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:44 + # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#44 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:48 + # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#48 def on_percent_literal(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:54 + # source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#54 def contains_percent_literals?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:35 +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#35 RuboCop::Cop::Lint::NestedPercentLiteral::MSG = T.let(T.unsafe(nil), String) # The array of regular expressions representing percent literals that, # if found within a percent literal expression, will cause a # NestedPercentLiteral violation to be emitted. # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:41 +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#41 RuboCop::Cop::Lint::NestedPercentLiteral::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/nested_percent_literal.rb:42 +# source://rubocop//lib/rubocop/cop/lint/nested_percent_literal.rb#42 RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) # Don't omit the accumulator when calling `next` in a `reduce` block. @@ -19324,30 +20098,30 @@ RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) # acc + i # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:25 +# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#25 class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:28 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:51 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#51 def on_block_body_of_reduce(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:38 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:56 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#56 def on_numblock_body_of_reduce(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:60 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#60 def parent_block_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:64 + # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#64 def parent_numblock_node(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/next_without_accumulator.rb:26 +# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#26 RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of a `return` inside a `begin..end` block @@ -19386,19 +20160,19 @@ RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb:43 +# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#43 class RuboCop::Cop::Lint::NoReturnInBeginEndBlocks < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb:46 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb:46 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 def on_op_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb:46 + # source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#46 def on_or_asgn(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb:44 +# source://rubocop//lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb#44 RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String) # Checks for non-atomic file operation. @@ -19434,92 +20208,91 @@ RuboCop::Cop::Lint::NoReturnInBeginEndBlocks::MSG = T.let(T.unsafe(nil), String) # # good - atomic and idempotent removal # FileUtils.rm_f(path) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:44 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#44 class RuboCop::Cop::Lint::NonAtomicFileOperation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:76 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#75 def explicit_not_force?(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:71 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#70 def force?(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:80 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#79 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:66 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#65 def receiver_and_method_name(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:61 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#60 def send_exist_node(param0); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:97 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#96 def allowable_use_with_if?(if_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:120 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#120 def autocorrect(corrector, node, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:126 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#131 def autocorrect_replace_method(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:143 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#148 def force_method?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:151 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#156 def force_method_name?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:147 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#152 def force_option?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:91 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#90 def if_node_child?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:111 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#111 def message_change_force_method(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:115 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#115 def message_remove_file_exist_check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:101 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#100 def register_offense(node, exist_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:133 + # source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#138 def replacement_method(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:52 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#51 RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_FORCE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:53 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#52 RuboCop::Cop::Lint::NonAtomicFileOperation::MAKE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:51 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#50 RuboCop::Cop::Lint::NonAtomicFileOperation::MSG_CHANGE_FORCE_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:49 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#48 RuboCop::Cop::Lint::NonAtomicFileOperation::MSG_REMOVE_FILE_EXIST_CHECK = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:54 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#53 RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_FORCE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:55 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#54 RuboCop::Cop::Lint::NonAtomicFileOperation::REMOVE_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_atomic_file_operation.rb:57 +# source://rubocop//lib/rubocop/cop/lint/non_atomic_file_operation.rb#56 RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # `Dir[...]` and `Dir.glob(...)` do not make any guarantees about @@ -19572,67 +20345,67 @@ RuboCop::Cop::Lint::NonAtomicFileOperation::RESTRICT_ON_SEND = T.let(T.unsafe(ni # # good - Respect intent if `sort` keyword option is specified in Ruby 3.0 or higher. # Dir.glob(Rails.root.join(__dir__, 'test', '*.rb'), sort: false).each(&method(:require)) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:60 +# source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#60 class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:174 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#174 def loop_variable(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:157 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#157 def method_require?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:65 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#65 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:89 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#89 def on_block_pass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:77 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#77 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:147 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#147 def unsorted_dir_block?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:152 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#152 def unsorted_dir_each?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:168 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#168 def unsorted_dir_each_pass?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:162 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#162 def unsorted_dir_glob_pass?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:179 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#179 def var_is_required?(param0, param1); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:107 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#107 def correct_block(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:117 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#117 def correct_block_pass(corrector, node); end # Returns range of last argument including comma and whitespace. # # @return [Parser::Source::Range] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:132 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#132 def last_arg_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:138 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#138 def unsorted_dir_loop?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:142 + # source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#142 def unsorted_dir_pass?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_deterministic_require_order.rb:63 +# source://rubocop//lib/rubocop/cop/lint/non_deterministic_require_order.rb#63 RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String) # Checks for non-local exits from iterators without a return @@ -19670,31 +20443,31 @@ RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), Str # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:41 +# source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#41 class RuboCop::Cop::Lint::NonLocalExitFromIterator < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:77 + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#77 def chained_send?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:80 + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#80 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:46 + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#46 def on_return(return_node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:72 + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#72 def return_value?(return_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:68 + # source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#68 def scoped_node?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb:42 +# source://rubocop//lib/rubocop/cop/lint/non_local_exit_from_iterator.rb#42 RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) # Warns the usage of unsafe number conversions. Unsafe @@ -19746,7 +20519,7 @@ RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) # # # bad # 10.minutes.to_i -# @example AllowedPatterns: [/min*/] +# @example AllowedPatterns: ['min*'] # # # good # 10.minutes.to_i @@ -19755,75 +20528,75 @@ RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) # # good # Time.now.to_datetime.to_i # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:73 +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#73 class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:102 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#102 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:92 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#92 def to_method(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:97 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#97 def to_method_symbol(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:155 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155 def allow_receiver?(receiver); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:167 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#167 def allowed_method_name?(name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:177 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#177 def conversion_method?(method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:141 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#141 def correct_method(node, receiver); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:145 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#145 def correct_sym_method(to_method); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:124 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#124 def handle_as_symbol(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:109 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#109 def handle_conversion_method(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:185 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#185 def ignored_class?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:181 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#181 def ignored_classes; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:150 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#150 def remove_parentheses(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:171 + # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#171 def top_receiver(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:88 +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#88 RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:78 +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#78 RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHOD_CLASS_MAPPING = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:89 +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#89 RuboCop::Cop::Lint::NumberConversion::METHODS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/number_conversion.rb:84 +# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#84 RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String) # Checks for uses of numbered parameter assignment. @@ -19850,19 +20623,19 @@ RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String) # # good # non_numbered_parameter_name = :value # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/numbered_parameter_assignment.rb:30 +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#30 class RuboCop::Cop::Lint::NumberedParameterAssignment < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/numbered_parameter_assignment.rb:35 + # source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#35 def on_lvasgn(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/numbered_parameter_assignment.rb:32 +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#32 RuboCop::Cop::Lint::NumberedParameterAssignment::LVAR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/numbered_parameter_assignment.rb:33 +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#33 RuboCop::Cop::Lint::NumberedParameterAssignment::NUMBERED_PARAMETER_RANGE = T.let(T.unsafe(nil), Range) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/numbered_parameter_assignment.rb:31 +# source://rubocop//lib/rubocop/cop/lint/numbered_parameter_assignment.rb#31 RuboCop::Cop::Lint::NumberedParameterAssignment::NUM_PARAM_MSG = T.let(T.unsafe(nil), String) # Checks for unintended or-assignment to a constant. @@ -19879,15 +20652,15 @@ RuboCop::Cop::Lint::NumberedParameterAssignment::NUM_PARAM_MSG = T.let(T.unsafe( # # good # CONST = 1 # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/or_assignment_to_constant.rb:24 +# source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#24 class RuboCop::Cop::Lint::OrAssignmentToConstant < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/or_assignment_to_constant.rb:29 + # source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#29 def on_or_asgn(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/or_assignment_to_constant.rb:27 +# source://rubocop//lib/rubocop/cop/lint/or_assignment_to_constant.rb#27 RuboCop::Cop::Lint::OrAssignmentToConstant::MSG = T.let(T.unsafe(nil), String) # Checks the proper ordering of magic comments and whether @@ -19913,30 +20686,27 @@ RuboCop::Cop::Lint::OrAssignmentToConstant::MSG = T.let(T.unsafe(nil), String) # # frozen_string_literal: true # p [''.frozen?, ''.encoding] #=> [true, #] # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ordered_magic_comments.rb:30 +# source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#33 class RuboCop::Cop::Lint::OrderedMagicComments < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ordered_magic_comments.rb:36 + # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#39 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ordered_magic_comments.rb:53 + # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#56 def autocorrect(corrector, encoding_line, frozen_string_literal_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ordered_magic_comments.rb:61 + # source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#64 def magic_comment_lines; end - - # source://rubocop-1.35.1/lib/rubocop/cop/lint/ordered_magic_comments.rb:77 - def magic_comments; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/ordered_magic_comments.rb:34 +# source://rubocop//lib/rubocop/cop/lint/ordered_magic_comments.rb#37 RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) -# This cops looks for references of Regexp captures that are out of range +# Looks for references of Regexp captures that are out of range # and thus always returns nil. # # @example @@ -19951,57 +20721,63 @@ RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) # # puts $1 # => foo # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:38 +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#38 class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:55 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#55 def after_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:51 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#71 + def on_in_pattern(node); end + + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#51 def on_match_with_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:47 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#47 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:71 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#77 def on_nth_ref(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:65 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#65 def on_when(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:87 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#106 def check_regexp(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:107 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#126 def nth_ref_receiver?(send_node); end + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#93 + def patterns(pattern_node); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:98 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#117 def regexp_first_argument?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:103 + # source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#122 def regexp_receiver?(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:39 +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#39 RuboCop::Cop::Lint::OutOfRangeRegexpRef::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:42 +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#42 RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_ARGUMENT_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:44 +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#44 RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_CAPTURE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:41 +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#41 RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_RECEIVER_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb:45 +# source://rubocop//lib/rubocop/cop/lint/out_of_range_regexp_ref.rb#45 RuboCop::Cop::Lint::OutOfRangeRegexpRef::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) # Checks for space between the name of a called method and a left @@ -20017,52 +20793,57 @@ RuboCop::Cop::Lint::OutOfRangeRegexpRef::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # do_something (2 + 3) * 4 # do_something (foo * bar).baz # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:18 +# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#18 class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:24 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:24 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#24 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:56 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#61 def chained_calls?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:52 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#49 + def first_argument_block_type?(first_arg); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#57 def first_argument_starts_with_left_parenthesis?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:81 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#86 def space_range(expr, space_length); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:65 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#70 def spaces_before_left_parenthesis(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:61 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#66 def ternary_expression?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:39 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#39 def valid_context?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:48 + # source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#53 def valid_first_argument?(first_arg); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb:22 +# source://rubocop//lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb#22 RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), String) # Checks for quotes and commas in %w, e.g. `%w('foo', "bar")` @@ -20082,36 +20863,36 @@ RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), S # # %w(foo bar) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:33 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#33 class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:44 + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#44 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:48 + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#48 def on_percent_literal(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:65 + # source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#65 def contains_quotes_or_commas?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:38 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#38 RuboCop::Cop::Lint::PercentStringArray::LEADING_QUOTE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:41 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#41 RuboCop::Cop::Lint::PercentStringArray::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:37 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#37 RuboCop::Cop::Lint::PercentStringArray::QUOTES_AND_COMMAS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_string_array.rb:39 +# source://rubocop//lib/rubocop/cop/lint/percent_string_array.rb#39 RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Regexp) # Checks for colons and commas in %i, e.g. `%i(:foo, :bar)` @@ -20131,35 +20912,35 @@ RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Re # # %i(foo bar) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:23 +# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#23 class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:30 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#30 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:34 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#34 def on_percent_literal(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:42 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#42 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:52 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#52 def contains_colons_or_commas?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:62 + # source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#62 def non_alphanumeric_literal?(literal); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/percent_symbol_array.rb:27 +# source://rubocop//lib/rubocop/cop/lint/percent_symbol_array.rb#27 RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) # Checks for `raise` or `fail` statements which are @@ -20186,37 +20967,37 @@ RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:34 +# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#34 class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:41 + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#41 def exception?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:46 + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#46 def exception_new_with_message?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:51 + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#51 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:85 + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#85 def allow_implicit_namespaces; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:57 + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#57 def check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:73 + # source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#73 def implicit_namespace?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:37 +# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#37 RuboCop::Cop::Lint::RaiseException::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/raise_exception.rb:38 +# source://rubocop//lib/rubocop/cop/lint/raise_exception.rb#38 RuboCop::Cop::Lint::RaiseException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `rand(1)` calls. @@ -20236,24 +21017,24 @@ RuboCop::Cop::Lint::RaiseException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # 0 # just use 0 instead # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rand_one.rb:23 +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#23 class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rand_one.rb:32 + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#32 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rand_one.rb:28 + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#28 def rand_one?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rand_one.rb:40 + # source://rubocop//lib/rubocop/cop/lint/rand_one.rb#40 def message(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rand_one.rb:24 +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#24 RuboCop::Cop::Lint::RandOne::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rand_one.rb:25 +# source://rubocop//lib/rubocop/cop/lint/rand_one.rb#25 RuboCop::Cop::Lint::RandOne::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # removed without causing any offenses to be reported. It's implemented @@ -20274,146 +21055,156 @@ RuboCop::Cop::Lint::RandOne::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # x += 1 # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:28 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#28 class RuboCop::Cop::Lint::RedundantCopDisableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector # @return [RedundantCopDisableDirective] a new instance of RedundantCopDisableDirective # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:37 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#37 def initialize(config = T.unsafe(nil), options = T.unsafe(nil), offenses = T.unsafe(nil)); end # Returns the value of attribute offenses_to_check. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:35 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 def offenses_to_check; end # Sets the attribute offenses_to_check # # @param value the value to set the attribute offenses_to_check to. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:35 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#35 def offenses_to_check=(_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:42 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#42 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:283 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#317 def add_department_marker(department); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:206 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#229 def add_offense_for_entire_comment(comment, cops); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:216 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#244 def add_offense_for_some_cops(comment, cops); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:196 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#219 def add_offenses(redundant_cops); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:266 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#300 def all_cop_names; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:177 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#190 def all_disabled?(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:69 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#69 def comment_range_with_surrounding_space(directive_comment_range, line_comment_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:57 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#57 def cop_disabled_line_ranges; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:230 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#264 def cop_range(comment, cop); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:187 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#210 def department_disabled?(cop, comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:275 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#309 def department_marker?(department); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:253 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#287 def describe(cop); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:192 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#215 def directive_count(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:92 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#92 def directive_range_in_list(range, ranges); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:61 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#61 def disabled_ranges; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:130 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#132 def each_already_disabled(cop, line_ranges); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:113 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#113 def each_line_range(cop, line_ranges); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:106 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#106 def each_redundant_disable(&block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:270 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#304 def ends_its_line?(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:153 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#202 + def expected_final_disable?(cop, line_range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#166 def find_redundant_all(range, next_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:148 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#161 def find_redundant_cop(cop, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:163 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#176 def find_redundant_department(cop, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:169 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#182 def followed_ranges?(range, next_range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:181 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#194 def ignore_offense?(line_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:237 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#258 + def leave_free_comment?(comment, range); end + + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#271 def matching_range(haystack, needle); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:262 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#296 def message(cop_names); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:65 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#65 def previous_line_blank?(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:173 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#186 def range_with_offense?(range, offenses = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:279 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#313 def remove_department_marker(department); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:245 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#279 def trailing_range?(ranges, range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:32 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#32 RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb:33 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_disable_directive.rb#33 RuboCop::Cop::Lint::RedundantCopDisableDirective::DEPARTMENT_MARKER = T.let(T.unsafe(nil), String) # removed. @@ -20441,54 +21232,54 @@ RuboCop::Cop::Lint::RedundantCopDisableDirective::DEPARTMENT_MARKER = T.let(T.un # # rubocop:enable all # baz # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:37 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#37 class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:44 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#44 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:120 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#120 def all_or_name(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:76 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#76 def comment_start(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:80 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#80 def cop_name_indention(comment, name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:124 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#124 def department?(directive, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:71 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#71 def range_of_offense(comment, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:95 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#95 def range_to_remove(begin_pos, end_pos, comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:84 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#84 def range_with_comma(comment, name); end # If the list of cops is comma-separated, but without a empty space after the comma, # we should **not** remove the prepending empty space, thus begin_pos += 1 # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:114 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#114 def range_with_comma_after(comment, start, begin_pos, end_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:108 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#108 def range_with_comma_before(start, begin_pos, end_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:53 + # source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#53 def register_offense(comment, cop_names); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb:42 +# source://rubocop//lib/rubocop/cop/lint/redundant_cop_enable_directive.rb#42 RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), String) # Sort globbed results by default in Ruby 3.0. @@ -20510,34 +21301,51 @@ RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), Stri # Dir['./lib/**/*.rb'].each do |file| # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb:30 +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#30 class RuboCop::Cop::Lint::RedundantDirGlobSort < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb:40 + # source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#40 def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#56 + def multiple_argument?(glob_method); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb:38 +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#38 RuboCop::Cop::Lint::RedundantDirGlobSort::GLOB_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb:36 +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#36 RuboCop::Cop::Lint::RedundantDirGlobSort::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb:37 +# source://rubocop//lib/rubocop/cop/lint/redundant_dir_glob_sort.rb#37 RuboCop::Cop::Lint::RedundantDirGlobSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for unnecessary `require` statement. # # The following features are unnecessary `require` statement because -# they are already loaded. +# they are already loaded. e.g. Ruby 2.2: # # ruby -ve 'p $LOADED_FEATURES.reject { |feature| %r|/| =~ feature }' # ruby 2.2.8p477 (2017-09-14 revision 59906) [x86_64-darwin13] # ["enumerator.so", "rational.so", "complex.so", "thread.rb"] # -# This cop targets Ruby 2.2 or higher containing these 4 features. +# Below are the features that each `TargetRubyVersion` targets. +# +# * 2.0+ ... `enumerator` +# * 2.1+ ... `thread` +# * 2.2+ ... Add `rational` and `complex` above +# * 2.5+ ... Add `pp` above +# * 2.7+ ... Add `ruby2_keywords` above +# * 3.1+ ... Add `fiber` above +# * 3.2+ ... `set` +# +# This cop target those features. # # @example # # bad @@ -20547,25 +21355,34 @@ RuboCop::Cop::Lint::RedundantDirGlobSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # # good # require 'unloaded_feature' # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_require_statement.rb:24 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#34 class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_require_statement.rb:40 + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#48 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_require_statement.rb:35 - def unnecessary_require_statement?(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#43 + def redundant_require_statement?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#67 + def redundant_feature?(feature_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_require_statement.rb:31 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#38 RuboCop::Cop::Lint::RedundantRequireStatement::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_require_statement.rb:32 +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#39 RuboCop::Cop::Lint::RedundantRequireStatement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/lint/redundant_require_statement.rb#40 +RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T.unsafe(nil), Array) + # Checks for redundant safe navigation calls. # `instance_of?`, `kind_of?`, `is_a?`, `eql?`, `respond_to?`, and `equal?` methods # are checked by default. These are customizable with `AllowedMethods` option. @@ -20605,35 +21422,35 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RESTRICT_ON_SEND = T.let(T.unsafe # do_something if attrs.nil_safe_method(:[]) # do_something if attrs&.not_nil_safe_method(:[]) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:51 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#51 class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:65 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#65 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:61 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#61 def respond_to_nil_specific_method?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:75 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#75 def check?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:85 + # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#85 def condition?(parent, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:56 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#56 RuboCop::Cop::Lint::RedundantSafeNavigation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_safe_navigation.rb:58 +# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#58 RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsafe(nil), Set) # Checks for unneeded usages of splat expansion @@ -20699,88 +21516,88 @@ RuboCop::Cop::Lint::RedundantSafeNavigation::NIL_SPECIFIC_METHODS = T.let(T.unsa # # bad # do_something(*%w[foo bar baz]) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:71 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#71 class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:83 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#83 def array_new?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:91 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#91 def literal_expansion(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:95 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#95 def on_splat(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:203 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#203 def allow_percent_literal_array_argument?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:131 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#131 def array_new_inside_array_literal?(array_new_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:155 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#155 def array_splat?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:112 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#112 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:159 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#159 def method_argument?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:163 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#163 def part_of_an_array?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:170 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#170 def redundant_brackets?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:118 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#118 def redundant_splat_expansion(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:178 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#178 def remove_brackets(array); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:138 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#138 def replacement_range_and_content(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:196 + # source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#196 def use_percent_literal_array_argument?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:75 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#75 RuboCop::Cop::Lint::RedundantSplatExpansion::ARRAY_PARAM_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:80 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#80 RuboCop::Cop::Lint::RedundantSplatExpansion::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:74 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#74 RuboCop::Cop::Lint::RedundantSplatExpansion::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:79 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#79 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_I = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:77 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#77 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_CAPITAL_W = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:78 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#78 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_I = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_splat_expansion.rb:76 +# source://rubocop//lib/rubocop/cop/lint/redundant_splat_expansion.rb#76 RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), String) # Checks for string conversion in string interpolation, @@ -20797,22 +21614,22 @@ RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), St # # "result is #{something}" # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_string_coercion.rb:20 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#20 class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_string_coercion.rb:30 + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#30 def on_interpolation(begin_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_string_coercion.rb:28 + # source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#28 def to_s_without_args?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_string_coercion.rb:24 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#24 RuboCop::Cop::Lint::RedundantStringCoercion::MSG_DEFAULT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_string_coercion.rb:25 +# source://rubocop//lib/rubocop/cop/lint/redundant_string_coercion.rb#25 RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), String) # Checks for redundant `with_index`. @@ -20838,33 +21655,33 @@ RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), Str # v # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:29 +# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#29 class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:36 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:36 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:56 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#56 def redundant_with_index?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:66 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#66 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:74 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#74 def with_index_range(send); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:33 +# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#33 RuboCop::Cop::Lint::RedundantWithIndex::MSG_EACH_WITH_INDEX = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_index.rb:34 +# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#34 RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) # Checks for redundant `with_object`. @@ -20890,33 +21707,33 @@ RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), St # v # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:29 +# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#29 class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:36 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:36 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#36 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:56 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#56 def redundant_with_object?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:65 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#65 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:73 + # source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#73 def with_object_range(send); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:33 +# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#33 RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/redundant_with_object.rb:34 +# source://rubocop//lib/rubocop/cop/lint/redundant_with_object.rb#34 RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) # Checks if `include` or `prepend` is called in `refine` block. @@ -20941,18 +21758,18 @@ RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), # import_methods Bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/refinement_import_methods.rb:34 +# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#34 class RuboCop::Cop::Lint::RefinementImportMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/lint/refinement_import_methods.rb:42 + # source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#42 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/refinement_import_methods.rb:37 +# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#37 RuboCop::Cop::Lint::RefinementImportMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/refinement_import_methods.rb:38 +# source://rubocop//lib/rubocop/cop/lint/refinement_import_methods.rb#38 RuboCop::Cop::Lint::RefinementImportMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for regexp literals used as `match-current-line`. @@ -20969,15 +21786,15 @@ RuboCop::Cop::Lint::RefinementImportMethods::RESTRICT_ON_SEND = T.let(T.unsafe(n # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/regexp_as_condition.rb:19 +# source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#19 class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/regexp_as_condition.rb:25 + # source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#26 def on_match_current_line(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/regexp_as_condition.rb:22 +# source://rubocop//lib/rubocop/cop/lint/regexp_as_condition.rb#23 RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) # Checks for expressions where there is a call to a predicate @@ -21004,26 +21821,26 @@ RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_parentheses.rb:30 +# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#30 class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_parentheses.rb:35 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#35 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_parentheses.rb:35 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#35 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_parentheses.rb:56 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#58 def check_predicate(predicate, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_parentheses.rb:48 + # source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#48 def check_ternary(ternary, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_parentheses.rb:33 +# source://rubocop//lib/rubocop/cop/lint/require_parentheses.rb#33 RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) # Checks that a range literal is enclosed in parentheses when the end of the range is @@ -21060,16 +21877,16 @@ RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) # (1.. # 42) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_range_parentheses.rb:40 +# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#40 class RuboCop::Cop::Lint::RequireRangeParentheses < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_range_parentheses.rb:43 + # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 def on_erange(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_range_parentheses.rb:43 + # source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#43 def on_irange(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_range_parentheses.rb:41 +# source://rubocop//lib/rubocop/cop/lint/require_range_parentheses.rb#41 RuboCop::Cop::Lint::RequireRangeParentheses::MSG = T.let(T.unsafe(nil), String) # Checks for uses a file requiring itself with `require_relative`. @@ -21087,29 +21904,29 @@ RuboCop::Cop::Lint::RequireRangeParentheses::MSG = T.let(T.unsafe(nil), String) # # foo.rb # require_relative 'bar' # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_relative_self_path.rb:21 +# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#21 class RuboCop::Cop::Lint::RequireRelativeSelfPath < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_relative_self_path.rb:28 + # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#28 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_relative_self_path.rb:44 + # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#44 def remove_ext(file_path); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/require_relative_self_path.rb:40 + # source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#40 def same_file?(file_path, required_feature); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_relative_self_path.rb:25 +# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#25 RuboCop::Cop::Lint::RequireRelativeSelfPath::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/require_relative_self_path.rb:26 +# source://rubocop//lib/rubocop/cop/lint/require_relative_self_path.rb#26 RuboCop::Cop::Lint::RequireRelativeSelfPath::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `rescue` blocks targeting the Exception class. @@ -21133,18 +21950,18 @@ RuboCop::Cop::Lint::RequireRelativeSelfPath::RESTRICT_ON_SEND = T.let(T.unsafe(n # handle_exception # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_exception.rb:27 +# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#27 class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_exception.rb:30 + # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#30 def on_resbody(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_exception.rb:39 + # source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#39 def targets_exception?(rescue_arg_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_exception.rb:28 +# source://rubocop//lib/rubocop/cop/lint/rescue_exception.rb#28 RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) # Check for arguments to `rescue` that will result in a `TypeError` @@ -21179,32 +21996,32 @@ RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) # baz # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:37 +# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#37 class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:60 + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#60 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:44 + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#44 def on_resbody(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:71 + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#71 def correction(*exceptions); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:82 + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#82 def invalid_exceptions(exceptions); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:78 + # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#78 def valid_exceptions(exceptions); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:42 +# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#42 RuboCop::Cop::Lint::RescueType::INVALID_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/rescue_type.rb:40 +# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#40 RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) # Checks for the use of a return with a value in a context @@ -21235,18 +22052,18 @@ RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) # return # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/return_in_void_context.rb:34 +# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#34 class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/return_in_void_context.rb:37 + # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#37 def on_return(return_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/return_in_void_context.rb:53 + # source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#53 def non_void_context(return_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/return_in_void_context.rb:35 +# source://rubocop//lib/rubocop/cop/lint/return_in_void_context.rb#35 RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) # The safe navigation operator returns nil if the receiver is @@ -21269,17 +22086,17 @@ RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) # x&.foo&.bar # x&.foo || bar # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:26 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#26 class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:36 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#37 def bad_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:43 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#44 def on_send(node); end private @@ -21288,23 +22105,28 @@ class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base # @param send_node [RuboCop::AST::SendNode] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:63 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#63 def add_safe_navigation_operator(offense_range:, send_node:); end # @param corrector [RuboCop::Cop::Corrector] # @param offense_range [Parser::Source::Range] # @param send_node [RuboCop::AST::SendNode] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:81 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#82 def autocorrect(corrector, offense_range:, send_node:); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:91 - def method_chain(node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#92 + def brackets?(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_chain.rb:33 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#33 RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_chain.rb#34 +RuboCop::Cop::Lint::SafeNavigationChain::PLUS_MINUS_METHODS = T.let(T.unsafe(nil), Array) + # Check to make sure that if safe navigation is used for a method # call in an `&&` or `||` condition that safe navigation is used for all # method calls on that same object. @@ -21328,34 +22150,34 @@ RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String) # # good # foo&.bar && (foobar.baz || foo&.baz) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:29 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#29 class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:42 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#42 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:36 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#36 def on_csend(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:61 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#61 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:67 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#67 def location(node, unsafe_method_call); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:71 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#71 def top_conditional_ancestor(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:82 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#82 def unsafe_method_calls(method_calls, safe_nav_receiver); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_consistency.rb:34 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_consistency.rb#34 RuboCop::Cop::Lint::SafeNavigationConsistency::MSG = T.let(T.unsafe(nil), String) # Checks to make sure safe navigation isn't used with `empty?` in @@ -21374,18 +22196,18 @@ RuboCop::Cop::Lint::SafeNavigationConsistency::MSG = T.let(T.unsafe(nil), String # return if foo && foo.empty? # return unless foo && foo.empty? # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_with_empty.rb:22 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#22 class RuboCop::Cop::Lint::SafeNavigationWithEmpty < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_with_empty.rb:32 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#32 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_with_empty.rb:28 + # source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#28 def safe_navigation_empty_in_conditional?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/safe_navigation_with_empty.rb:25 +# source://rubocop//lib/rubocop/cop/lint/safe_navigation_with_empty.rb#25 RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String) # Checks if a file which has a shebang line as @@ -21415,31 +22237,31 @@ RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String) # # puts 'hello, world' # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:33 +# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#33 class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:39 + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#39 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:55 + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#55 def autocorrect(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:59 + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#59 def executable?(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:66 + # source://rubocop//lib/rubocop/cop/lint/script_permission.rb#66 def format_message_from(processed_source); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:36 +# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#36 RuboCop::Cop::Lint::ScriptPermission::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/script_permission.rb:37 +# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#37 RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) # Checks for self-assignments. @@ -21455,49 +22277,49 @@ RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) # foo, bar = bar, foo # Foo = Bar # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:19 +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#19 class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:53 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53 def on_and_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:41 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#41 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#29 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:49 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#49 def on_masgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:53 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#53 def on_or_asgn(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:61 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#61 def multiple_self_assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:71 + # source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#71 def rhs_matches_lhs?(rhs, lhs); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:22 +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#22 RuboCop::Cop::Lint::SelfAssignment::ASSIGNMENT_TYPE_TO_RHS_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/self_assignment.rb:20 +# source://rubocop//lib/rubocop/cop/lint/self_assignment.rb#20 RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) # This cop checks for `send`, `public_send`, and `__send__` methods @@ -21530,41 +22352,41 @@ RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) # Foo.prepend Bar # Foo.extend Bar # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:37 +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#37 class RuboCop::Cop::Lint::SendWithMixinArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:54 + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#54 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:47 + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#47 def send_with_mixin_argument?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:67 + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#68 def bad_location(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:73 + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#74 def message(method, module_name, bad_method); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:77 + # source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#78 def mixin_method?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:42 +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#42 RuboCop::Cop::Lint::SendWithMixinArgument::MIXIN_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:41 +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#41 RuboCop::Cop::Lint::SendWithMixinArgument::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:44 +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#44 RuboCop::Cop::Lint::SendWithMixinArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/send_with_mixin_argument.rb:43 +# source://rubocop//lib/rubocop/cop/lint/send_with_mixin_argument.rb#43 RuboCop::Cop::Lint::SendWithMixinArgument::SEND_METHODS = T.let(T.unsafe(nil), Array) # Checks for shadowed arguments. @@ -21625,19 +22447,19 @@ RuboCop::Cop::Lint::SendWithMixinArgument::SEND_METHODS = T.let(T.unsafe(nil), A # bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:66 +# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#66 class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:76 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#76 def after_leaving_scope(scope, _variable_table); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:70 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#70 def uses_var?(param0, param1); end private # Get argument references without assignments' references # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:160 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#160 def argument_references(argument); end # Find the first argument assignment, which doesn't reference the @@ -21645,37 +22467,37 @@ class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base # block, it is impossible to tell whether it's executed, so precise # shadowing location is not known. # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:120 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#120 def assignment_without_argument_usage(argument); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:82 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#82 def check_argument(argument); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:170 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#170 def ignore_implicit_references?; end # Check whether the given node is nested into block or conditional. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:151 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#151 def node_within_block_or_conditional?(node, stop_search_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:143 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#143 def reference_pos(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:95 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#95 def shadowing_assignment(argument); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:72 + # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#72 def joining_forces; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_argument.rb:67 +# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#67 RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) # Checks for a rescued exception that get shadowed by a @@ -21687,7 +22509,7 @@ RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) # same `rescue` statement. In both cases, the more specific rescue is # unnecessary because it is covered by rescuing the less specific # exception. (ie. `rescue Exception, StandardError` has the same behavior -# whether `StandardError` is included or not, because all `StandardError`s +# whether `StandardError` is included or not, because all ``StandardError``s # are rescued by `rescue Exception`). # # @example @@ -21733,53 +22555,48 @@ RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) # handle_standard_error # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:61 +# source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#61 class RuboCop::Cop::Lint::ShadowedException < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:67 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#67 def on_rescue(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:101 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#101 def compare_exceptions(exception, other_exception); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:94 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#94 def contains_multiple_levels_of_exceptions?(group); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:119 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#119 def evaluate_exceptions(group); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:168 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#158 def find_shadowing_rescue(rescues); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:84 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#84 def offense_range(rescues); end - # @param rescue_group [RuboCop::AST::Node] is a node of array_type - # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:159 - def rescued_exceptions(rescue_group); end - - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:90 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#90 def rescued_groups_for(rescues); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:143 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#143 def sorted?(rescued_groups); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:115 + # source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#115 def system_call_err?(error); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowed_exception.rb:65 +# source://rubocop//lib/rubocop/cop/lint/shadowed_exception.rb#65 RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # Checks for the use of local variable names from an outer scope @@ -21791,9 +22608,12 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # because `Ractor` should not access outer variables. # eg. following style is encouraged: # +# [source,ruby] +# ---- # worker_id, pipe = env # Ractor.new(worker_id, pipe) do |worker_id, pipe| # end +# ---- # # @example # @@ -21818,29 +22638,32 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:42 +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#45 class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:54 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#57 def before_declaring_variable(variable, variable_table); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:77 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#93 def find_conditional_node_from_ascendant(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:46 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#49 def ractor_block?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:66 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#69 def same_conditions_node_different_branch?(variable, outer_local_variable); end + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#83 + def variable_node(variable); end + class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:50 + # source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#53 def joining_forces; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb:43 +# source://rubocop//lib/rubocop/cop/lint/shadowing_outer_local_variable.rb#46 RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String) # Checks unexpected overrides of the `Struct` built-in methods @@ -21861,25 +22684,25 @@ RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), Stri # g.clone #=> # # g.count #=> 2 # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:24 +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#24 class RuboCop::Cop::Lint::StructNewOverride < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:38 + # source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#38 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:33 + # source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#33 def struct_new(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:25 +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#25 RuboCop::Cop::Lint::StructNewOverride::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:27 +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#27 RuboCop::Cop::Lint::StructNewOverride::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:30 +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#30 RuboCop::Cop::Lint::StructNewOverride::STRUCT_MEMBER_NAME_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/struct_new_override.rb:29 +# source://rubocop//lib/rubocop/cop/lint/struct_new_override.rb#29 RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil), Array) # Checks for `rescue` blocks with no body. @@ -21978,25 +22801,25 @@ RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil) # # bad # do_something rescue nil # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/suppressed_exception.rb:105 +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#105 class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/suppressed_exception.rb:108 + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#108 def on_resbody(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/suppressed_exception.rb:118 + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#118 def comment_between_rescue_and_end?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/suppressed_exception.rb:126 + # source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#126 def nil_body?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/suppressed_exception.rb:106 +# source://rubocop//lib/rubocop/cop/lint/suppressed_exception.rb#106 RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String) # Checks for uses of literal strings converted to @@ -22057,79 +22880,79 @@ RuboCop::Cop::Lint::SuppressedException::MSG = T.let(T.unsafe(nil), String) # b: 2 # } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:66 +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#66 class RuboCop::Cop::Lint::SymbolConversion < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::SymbolHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:100 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#100 def on_hash(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:76 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#76 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:83 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#83 def on_sym(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:142 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#142 def correct_hash_key(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:161 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#161 def correct_inconsistent_hash_keys(keys); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:134 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#134 def in_alias?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:138 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#138 def in_percent_literal_array?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:121 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#121 def properly_quoted?(source, value); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:117 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#117 def register_offense(node, correction:, message: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:130 + # source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#130 def requires_quotes?(sym_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:71 +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#71 RuboCop::Cop::Lint::SymbolConversion::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:72 +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#72 RuboCop::Cop::Lint::SymbolConversion::MSG_CONSISTENCY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/symbol_conversion.rb:74 +# source://rubocop//lib/rubocop/cop/lint/symbol_conversion.rb#74 RuboCop::Cop::Lint::SymbolConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Repacks Parser's diagnostics/errors # into RuboCop's offenses. # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/syntax.rb:8 +# source://rubocop//lib/rubocop/cop/lint/syntax.rb#8 class RuboCop::Cop::Lint::Syntax < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/syntax.rb:9 + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#9 def on_other_file; end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/syntax.rb:19 + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#19 def add_offense_from_diagnostic(diagnostic, ruby_version); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/syntax.rb:26 + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#26 def add_offense_from_error(error); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/syntax.rb:31 + # source://rubocop//lib/rubocop/cop/lint/syntax.rb#31 def beautify_message(message); end end @@ -22148,37 +22971,37 @@ end # # alternatives to `__callee__` are `__method__` and `:foo` # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:21 +# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#21 class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:27 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#27 def enum_conversion_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:32 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#32 def method_name?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:41 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#41 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:37 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#37 def passing_keyword_arg?(param0 = T.unsafe(nil), param1); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:68 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#68 def argument_match?(send_arg, def_arg); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:53 + # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#53 def arguments_match?(arguments, def_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:22 +# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#22 RuboCop::Cop::Lint::ToEnumArguments::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/to_enum_arguments.rb:24 +# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#24 RuboCop::Cop::Lint::ToEnumArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks to make sure `#to_json` includes an optional argument. @@ -22206,15 +23029,15 @@ RuboCop::Cop::Lint::ToEnumArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/to_json.rb:31 +# source://rubocop//lib/rubocop/cop/lint/to_json.rb#31 class RuboCop::Cop::Lint::ToJSON < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/to_json.rb:36 + # source://rubocop//lib/rubocop/cop/lint/to_json.rb#36 def on_def(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/to_json.rb:34 +# source://rubocop//lib/rubocop/cop/lint/to_json.rb#34 RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String) # Checks for top level return with arguments. If there is a @@ -22226,16 +23049,16 @@ RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String) # # Detected since Ruby 2.7 # return 1 # 1 is always ignored. # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/top_level_return_with_argument.rb:17 +# source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#17 class RuboCop::Cop::Lint::TopLevelReturnWithArgument < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/top_level_return_with_argument.rb:21 + # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#21 def on_return(return_node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/top_level_return_with_argument.rb:27 + # source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#27 def ancestors_valid?(return_node); end end @@ -22243,7 +23066,7 @@ end # top-level return node's ancestors should not be of block, def, or # defs type. # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/top_level_return_with_argument.rb:19 +# source://rubocop//lib/rubocop/cop/lint/top_level_return_with_argument.rb#19 RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), String) # Checks for trailing commas in attribute declarations, such as @@ -22270,21 +23093,21 @@ RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), Strin # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb:30 +# source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#30 class RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb:36 + # source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#36 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb:46 + # source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#46 def trailing_comma_range(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb:34 +# source://rubocop//lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb#34 RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration::MSG = T.let(T.unsafe(nil), String) # Checks for "triple quotes" (strings delimited by any odd number @@ -22324,20 +23147,20 @@ RuboCop::Cop::Lint::TrailingCommaInAttributeDeclaration::MSG = T.let(T.unsafe(ni # # good (but not the same spacing as the bad case) # 'A string' # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/triple_quotes.rb:42 +# source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#42 class RuboCop::Cop::Lint::TripleQuotes < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/triple_quotes.rb:47 + # source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#47 def on_dstr(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/triple_quotes.rb:65 + # source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#65 def empty_str_nodes(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/triple_quotes.rb:45 +# source://rubocop//lib/rubocop/cop/lint/triple_quotes.rb#45 RuboCop::Cop::Lint::TripleQuotes::MSG = T.let(T.unsafe(nil), String) # Checks for underscore-prefixed variables that are actually @@ -22376,28 +23199,28 @@ RuboCop::Cop::Lint::TripleQuotes::MSG = T.let(T.unsafe(nil), String) # {_id: _id, profit: revenue - cost} # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb:43 +# source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#43 class RuboCop::Cop::Lint::UnderscorePrefixedVariableName < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb:50 + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#50 def after_leaving_scope(scope, _variable_table); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb:54 + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#54 def check_variable(variable); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb:72 + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#72 def allowed_keyword_block_argument?(variable); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb:46 + # source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#46 def joining_forces; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb:44 +# source://rubocop//lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb#44 RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), String) # Checks for a block that is known to need more positional @@ -22430,37 +23253,37 @@ RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), S # values.min { |a, b| a <=> b } # values.sort { |*x| x[0] <=> x[1] } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:41 +# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#41 class RuboCop::Cop::Lint::UnexpectedBlockArity < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:44 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:44 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#44 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:63 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#63 def acceptable?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:75 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#75 def arg_count(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:71 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#71 def expected_arity(method); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:67 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#67 def included_method?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:59 + # source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#59 def methods; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unexpected_block_arity.rb:42 +# source://rubocop//lib/rubocop/cop/lint/unexpected_block_arity.rb#42 RuboCop::Cop::Lint::UnexpectedBlockArity::MSG = T.let(T.unsafe(nil), String) # Checks for using Fixnum or Bignum constant. @@ -22477,18 +23300,18 @@ RuboCop::Cop::Lint::UnexpectedBlockArity::MSG = T.let(T.unsafe(nil), String) # # 1.is_a?(Integer) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unified_integer.rb:20 +# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#20 class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unified_integer.rb:26 + # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#26 def fixnum_or_bignum_const(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unified_integer.rb:30 + # source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#30 def on_const(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unified_integer.rb:23 +# source://rubocop//lib/rubocop/cop/lint/unified_integer.rb#23 RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) # Looks for `reduce` or `inject` blocks where the value returned (implicitly or @@ -22551,27 +23374,27 @@ RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) # bar(x) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:65 +# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#65 class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:78 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#78 def accumulator_index?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:83 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#83 def element_modified?(param0, param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:104 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#104 def expression_values(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:93 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#93 def lvar_used?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:115 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:115 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#115 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:70 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#70 def reduce_with_block?(param0 = T.unsafe(nil)); end private @@ -22583,31 +23406,31 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:190 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#190 def acceptable_return?(return_val, element_name); end # Exclude `begin` nodes inside a `dstr` from being collected by `return_values` # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:198 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#198 def allowed_type?(parent_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:158 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#158 def block_arg_name(node, index); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:141 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#141 def check_return_values(block_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:175 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#175 def potential_offense?(return_values, block_body, element_name, accumulator_name); end # Return values in a block are either the value given to next, # the last line of a multiline block, or the only line of the block # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:127 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#127 def return_values(block_body_node); end # Look for an index of the accumulator being returned, except where the index @@ -22615,7 +23438,7 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # This is always an offense, in order to try to catch potential exceptions # due to type mismatches # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:166 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#166 def returned_accumulator_index(return_values, accumulator_name, element_name); end # If the accumulator is used in any return value, the node is acceptable since @@ -22623,14 +23446,14 @@ class RuboCop::Cop::Lint::UnmodifiedReduceAccumulator < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:182 + # source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#182 def returns_accumulator_anywhere?(return_values, accumulator_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:66 +# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#66 RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb:67 +# source://rubocop//lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb#67 RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil), String) # Checks for unreachable code. @@ -22664,32 +23487,32 @@ RuboCop::Cop::Lint::UnmodifiedReduceAccumulator::MSG_INDEX = T.let(T.unsafe(nil) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:37 +# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#37 class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:55 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#55 def flow_command?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:40 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#40 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:40 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#40 def on_kwbegin(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:87 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#87 def check_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:81 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#81 def check_if(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:65 + # source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#65 def flow_expression?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_code.rb:38 +# source://rubocop//lib/rubocop/cop/lint/unreachable_code.rb#38 RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) # Checks for loops that will have at most one iteration. @@ -22698,7 +23521,7 @@ RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) # In rare cases where only one iteration (or at most one iteration) is intended behavior, # the code should be refactored to use `if` conditionals. # -# NOTE: Block methods that are used with `Enumerable`s are considered to be loops. +# NOTE: Block methods that are used with ``Enumerable``s are considered to be loops. # # `AllowedPatterns` can be used to match against the block receiver in order to allow # code that would otherwise be registered as an offense (eg. `times` used not in an @@ -22767,92 +23590,92 @@ RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) # # # bad # 2.times { raise ArgumentError } -# @example AllowedPatterns: [/(exactly|at_least|at_most)\(\d+\)\.times/] (default) +# @example AllowedPatterns: ['(exactly|at_least|at_most)\(\d+\)\.times'] (default) # # # good # exactly(2).times { raise StandardError } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:86 +# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#86 class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:143 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#143 def break_command?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:100 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#100 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:104 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#104 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:92 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#92 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:153 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#153 def break_statement?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:119 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#119 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:176 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#176 def check_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:170 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#170 def check_if(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:194 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#194 def conditional_continue_keyword?(break_statement); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:110 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#110 def loop_method?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:184 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#184 def preceded_by_continue_statement?(break_statement); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:130 + # source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#130 def statements(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:90 +# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#90 RuboCop::Cop::Lint::UnreachableLoop::CONTINUE_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unreachable_loop.rb:89 +# source://rubocop//lib/rubocop/cop/lint/unreachable_loop.rb#89 RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String) # Common functionality for cops handling unused arguments. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/unused_argument.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#7 module RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/unused_argument.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#10 def after_leaving_scope(scope, _variable_table); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/unused_argument.rb:16 + # source://rubocop//lib/rubocop/cop/mixin/unused_argument.rb#16 def check_argument(variable); end end @@ -22901,7 +23724,7 @@ end # foo # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:55 +# source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#55 class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::Cop::AutoCorrector @@ -22910,65 +23733,65 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:162 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#162 def allow_unused_keyword_arguments?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:81 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#81 def allowed_block?(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:85 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#85 def allowed_keyword_argument?(variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:99 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#99 def augment_message(message, variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:65 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#65 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:69 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#69 def check_argument(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:149 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#149 def define_method_call?(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:156 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#156 def empty_block?(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:166 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#166 def ignore_empty_blocks?; end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:89 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#89 def message(variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:132 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#132 def message_for_lambda(variable, all_arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:120 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#120 def message_for_normal_block(variable, all_arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:144 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#144 def message_for_underscore_prefix(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:77 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#77 def used_block_local?(variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:112 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#112 def variable_type(variable); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_block_argument.rb:59 + # source://rubocop//lib/rubocop/cop/lint/unused_block_argument.rb#59 def joining_forces; end end end @@ -23022,32 +23845,35 @@ end # fail "TODO" # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:61 +# source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#61 class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:66 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#66 def not_implemented?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:77 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#81 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:81 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#85 def check_argument(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:89 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#93 def ignored_method?(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:94 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#98 def message(variable); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/unused_method_argument.rb:71 + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#71 + def autocorrect_incompatible_with; end + + # source://rubocop//lib/rubocop/cop/lint/unused_method_argument.rb#75 def joining_forces; end end end @@ -23079,28 +23905,28 @@ end # URI.decode_www_form(enc_uri) # URI.decode_www_form_component(enc_uri) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:32 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#32 class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:57 + # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#57 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:51 + # source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#51 def uri_escape_unescape?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:33 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#33 RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_ESCAPE = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:38 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#38 RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_UNESCAPE = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:47 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#47 RuboCop::Cop::Lint::UriEscapeUnescape::METHOD_NAMES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:44 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#44 RuboCop::Cop::Lint::UriEscapeUnescape::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_escape_unescape.rb:48 +# source://rubocop//lib/rubocop/cop/lint/uri_escape_unescape.rb#48 RuboCop::Cop::Lint::UriEscapeUnescape::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `URI.regexp` is obsolete and should @@ -23113,21 +23939,21 @@ RuboCop::Cop::Lint::UriEscapeUnescape::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # good # URI::DEFAULT_PARSER.make_regexp('http://example.com') # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_regexp.rb:16 +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#16 class RuboCop::Cop::Lint::UriRegexp < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_regexp.rb:23 + # source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#23 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_regexp.rb:19 +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#19 RuboCop::Cop::Lint::UriRegexp::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_regexp.rb:21 +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#21 RuboCop::Cop::Lint::UriRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/uri_regexp.rb:20 +# source://rubocop//lib/rubocop/cop/lint/uri_regexp.rb#20 RuboCop::Cop::Lint::UriRegexp::URI_CONSTANTS = T.let(T.unsafe(nil), Array) # Checks for redundant access modifiers, including those with no @@ -23158,8 +23984,8 @@ RuboCop::Cop::Lint::UriRegexp::URI_CONSTANTS = T.let(T.unsafe(nil), Array) # # bad # class Foo # # The following is redundant (methods defined on the class' -# # singleton class are not affected by the public modifier) -# public +# # singleton class are not affected by the private modifier) +# private # # def self.method3 # end @@ -23250,90 +24076,90 @@ RuboCop::Cop::Lint::UriRegexp::URI_CONSTANTS = T.let(T.unsafe(nil), Array) # delegate :method_a, to: :method_b # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:127 +# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#127 class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:166 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#166 def class_or_instance_eval?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:171 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#171 def class_or_module_or_struct_new_call?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:161 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#161 def dynamic_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:139 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:133 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:133 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:139 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#139 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:133 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#133 def on_sclass(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:156 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#156 def static_method_definition?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:187 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#187 def access_modifier?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:277 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#277 def any_context_creating_methods?(child); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:254 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#254 def any_method_definition?(child); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:149 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#149 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:200 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#200 def check_child_nodes(node, unused, cur_vis); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:227 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#227 def check_new_visibility(node, unused, new_vis, cur_vis); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:175 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#175 def check_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:191 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#191 def check_scope(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:216 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#216 def check_send_node(node, cur_vis, unused); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:271 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#271 def eval_call?(child); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:248 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#248 def method_definition?(child); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:267 + # source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#267 def start_of_new_scope?(child); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_access_modifier.rb:131 +# source://rubocop//lib/rubocop/cop/lint/useless_access_modifier.rb#131 RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) # Checks for every useless assignment to local variable in every @@ -23363,49 +24189,49 @@ RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) # do_something(some_var) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:33 +# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#33 class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:40 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#40 def after_leaving_scope(scope, _variable_table); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:44 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#44 def check_for_unused_assignments(variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:108 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#108 def collect_variable_like_names(scope); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:62 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#62 def message_for_useless_assignment(assignment); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:68 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#68 def message_specification(assignment, variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:78 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#78 def multiple_assignment_message(variable_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:83 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#83 def operator_assignment_message(scope, assignment); end # TODO: More precise handling (rescue, ensure, nested begin, etc.) # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:98 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#98 def return_value_node_of_scope(scope); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:91 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#91 def similar_name_message(variable); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:117 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#117 def variable_like_method_invocation?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:36 + # source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#36 def joining_forces; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_assignment.rb:34 +# source://rubocop//lib/rubocop/cop/lint/useless_assignment.rb#34 RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for useless `else` in `begin..end` without `rescue`. @@ -23433,13 +24259,13 @@ RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) # do_something_else # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_else_without_rescue.rb:31 +# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#31 class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_else_without_rescue.rb:34 + # source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#34 def on_new_investigation; end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_else_without_rescue.rb:32 +# source://rubocop//lib/rubocop/cop/lint/useless_else_without_rescue.rb#32 RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) # Checks for useless method definitions, specifically: empty constructors @@ -23470,36 +24296,36 @@ RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) # super(:extra_arg, *args) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_method_definition.rb:38 +# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#38 class RuboCop::Cop::Lint::UselessMethodDefinition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_method_definition.rb:43 + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_method_definition.rb:43 + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#43 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_method_definition.rb:57 + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#57 def delegating?(node, def_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_method_definition.rb:53 + # source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#53 def optional_args?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_method_definition.rb:41 +# source://rubocop//lib/rubocop/cop/lint/useless_method_definition.rb#41 RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Looks for `ruby2_keywords` calls for methods that do not need it. # # `ruby2_keywords` should only be called on methods that accept an argument splat -# (`*args`) but do not explicit keyword arguments (`k:` or `k: true`) or +# (`\*args`) but do not explicit keyword arguments (`k:` or `k: true`) or # a keyword splat (`**kwargs`). # # @example @@ -23556,34 +24382,34 @@ RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) # # good # define_method(:foo) { |arg| } # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:66 +# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#66 class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base # Looks for statically or dynamically defined methods with a given name # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:72 + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#72 def method_definition(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:79 + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#79 def on_send(node); end private # `ruby2_keywords` is only allowed if there's a `restarg` and no keyword arguments # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:108 + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#110 def allowed_arguments(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:89 + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#91 def inspect_def(node, def_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:95 + # source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#97 def inspect_sym(node, sym_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:67 +# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#67 RuboCop::Cop::Lint::UselessRuby2Keywords::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_ruby2_keywords.rb:68 +# source://rubocop//lib/rubocop/cop/lint/useless_ruby2_keywords.rb#68 RuboCop::Cop::Lint::UselessRuby2Keywords::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for setter call to local variable as the final @@ -23607,68 +24433,68 @@ RuboCop::Cop::Lint::UselessRuby2Keywords::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # x # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:35 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#35 class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:41 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#41 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:41 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#41 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:63 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#63 def setter_call_to_local_variable?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:67 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#67 def last_expression(body); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:39 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#39 RuboCop::Cop::Lint::UselessSetterCall::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:38 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#38 RuboCop::Cop::Lint::UselessSetterCall::MSG = T.let(T.unsafe(nil), String) # This class tracks variable assignments in a method body # and if a variable contains object passed as argument at the end of # the method. # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:76 +# source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#76 class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker # @return [MethodVariableTracker] a new instance of MethodVariableTracker # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:77 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#77 def initialize(body_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:163 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#163 def constructor?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:82 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#82 def contain_local_object?(variable_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:152 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#152 def process_assignment(asgn_node, rhs_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:100 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#100 def process_assignment_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:142 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#142 def process_binary_operator_assignment(op_asgn_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:133 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#133 def process_logical_operator_assignment(asgn_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:114 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#114 def process_multiple_assignment(masgn_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_setter_call.rb:92 + # source://rubocop//lib/rubocop/cop/lint/useless_setter_call.rb#92 def scan(node, &block); end end @@ -23687,58 +24513,58 @@ end # do_something # do_something(1) # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:24 +# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#24 class RuboCop::Cop::Lint::UselessTimes < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:37 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#37 def block_arg(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:42 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#42 def block_reassigns_arg?(param0, param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:46 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#46 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:32 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#32 def times_call?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:62 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#62 def autocorrect(corrector, count, node, proc_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:84 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#84 def autocorrect_block(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:80 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#80 def autocorrect_block_pass(corrector, node, proc_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:94 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#94 def fix_indentation(source, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:72 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#72 def never_process?(count, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:106 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#106 def own_line?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:76 + # source://rubocop//lib/rubocop/cop/lint/useless_times.rb#76 def remove_node(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:28 +# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#28 RuboCop::Cop::Lint::UselessTimes::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/useless_times.rb:29 +# source://rubocop//lib/rubocop/cop/lint/useless_times.rb#29 RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Checks for operators, variables, literals, and nonmutating +# Checks for operators, variables, literals, lambda, proc and nonmutating # methods used in void context. # # @example CheckForMethodsWithNoSideEffects: false (default) @@ -23775,88 +24601,88 @@ RuboCop::Cop::Lint::UselessTimes::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # do_something(some_array) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:43 +# source://rubocop//lib/rubocop/cop/lint/void.rb#43 class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:72 + # source://rubocop//lib/rubocop/cop/lint/void.rb#72 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:63 + # source://rubocop//lib/rubocop/cop/lint/void.rb#63 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:72 + # source://rubocop//lib/rubocop/cop/lint/void.rb#72 def on_kwbegin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:63 + # source://rubocop//lib/rubocop/cop/lint/void.rb#63 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:79 + # source://rubocop//lib/rubocop/cop/lint/void.rb#79 def check_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:120 - def check_defined(node); end - - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:85 + # source://rubocop//lib/rubocop/cop/lint/void.rb#85 def check_expression(expr); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:108 + # source://rubocop//lib/rubocop/cop/lint/void.rb#108 def check_literal(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:126 + # source://rubocop//lib/rubocop/cop/lint/void.rb#126 def check_nonmutating(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:114 + # source://rubocop//lib/rubocop/cop/lint/void.rb#114 def check_self(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:102 + # source://rubocop//lib/rubocop/cop/lint/void.rb#102 def check_var(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:96 + # source://rubocop//lib/rubocop/cop/lint/void.rb#120 + def check_void_expression(node); end + + # source://rubocop//lib/rubocop/cop/lint/void.rb#96 def check_void_op(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:132 + # source://rubocop//lib/rubocop/cop/lint/void.rb#132 def in_void_context?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:51 +# source://rubocop//lib/rubocop/cop/lint/void.rb#51 RuboCop::Cop::Lint::Void::BINARY_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:48 -RuboCop::Cop::Lint::Void::DEFINED_MSG = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/lint/void.rb#48 +RuboCop::Cop::Lint::Void::EXPRESSION_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:46 +# source://rubocop//lib/rubocop/cop/lint/void.rb#46 RuboCop::Cop::Lint::Void::LIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:55 +# source://rubocop//lib/rubocop/cop/lint/void.rb#55 RuboCop::Cop::Lint::Void::NONMUTATING_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:49 +# source://rubocop//lib/rubocop/cop/lint/void.rb#49 RuboCop::Cop::Lint::Void::NONMUTATING_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:53 +# source://rubocop//lib/rubocop/cop/lint/void.rb#53 RuboCop::Cop::Lint::Void::OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:44 +# source://rubocop//lib/rubocop/cop/lint/void.rb#44 RuboCop::Cop::Lint::Void::OP_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:47 +# source://rubocop//lib/rubocop/cop/lint/void.rb#47 RuboCop::Cop::Lint::Void::SELF_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:52 +# source://rubocop//lib/rubocop/cop/lint/void.rb#52 RuboCop::Cop::Lint::Void::UNARY_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:45 +# source://rubocop//lib/rubocop/cop/lint/void.rb#45 RuboCop::Cop::Lint::Void::VAR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/lint/void.rb:54 +# source://rubocop//lib/rubocop/cop/lint/void.rb#54 RuboCop::Cop::Lint::Void::VOID_CONTEXT_TYPES = T.let(T.unsafe(nil), Array) # Common functionality for obtaining source ranges from regexp matches # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/match_range.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/match_range.rb#6 module RuboCop::Cop::MatchRange include ::RuboCop::Cop::RangeHelp @@ -23865,12 +24691,12 @@ module RuboCop::Cop::MatchRange # Return a new `Range` covering the first matching group number for each # match of `regex` inside `range` # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/match_range.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/match_range.rb#13 def each_match_range(range, regex); end # For a `match` inside `range`, return a new `Range` covering the match # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/match_range.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/match_range.rb#18 def match_range(range, match); end end @@ -23885,7 +24711,7 @@ end # ).annotate('message') # @see #initialize # -# source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:15 +# source://rubocop//lib/rubocop/cop/message_annotator.rb#15 class RuboCop::Cop::MessageAnnotator # @option cop_config # @option cop_config @@ -23906,7 +24732,7 @@ class RuboCop::Cop::MessageAnnotator # @param options [Hash, nil] optional # @return [MessageAnnotator] a new instance of MessageAnnotator # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:47 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#47 def initialize(config, cop_name, cop_config, options); end # Returns the annotated message, @@ -23914,74 +24740,74 @@ class RuboCop::Cop::MessageAnnotator # # @return [String] annotated message # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:58 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#58 def annotate(message); end # Returns the value of attribute config. # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:16 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 def config; end # Returns the value of attribute cop_config. # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:16 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 def cop_config; end # Returns the value of attribute cop_name. # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:16 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 def cop_name; end # Returns the value of attribute options. # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:16 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#16 def options; end - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:68 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#68 def urls; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:111 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#111 def debug?; end - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:124 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#124 def details; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:115 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#115 def display_cop_names?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:98 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#98 def display_style_guide?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:107 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#107 def extra_details?; end - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:102 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#102 def reference_urls; end # Returns the base style guide URL from AllCops or the specific department # # @return [String] style guide URL # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:91 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#91 def style_guide_base_url; end - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:74 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#74 def style_guide_url; end class << self # Returns the value of attribute style_guide_urls. # - # source://rubocop-1.35.1/lib/rubocop/cop/message_annotator.rb:21 + # source://rubocop//lib/rubocop/cop/message_annotator.rb#21 def style_guide_urls; end end end @@ -23990,7 +24816,7 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#8 module RuboCop::Cop::MethodComplexity include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern @@ -23998,62 +24824,62 @@ module RuboCop::Cop::MethodComplexity extend ::RuboCop::AST::NodePattern::Macros extend ::RuboCop::ExcludeLimit - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:37 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#37 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:24 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 def on_block(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 def on_def(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#17 def on_defs(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:24 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#24 def on_numblock(node); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#42 def check_complexity(node, method_name); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_complexity.rb:61 + # source://rubocop//lib/rubocop/cop/mixin/method_complexity.rb#61 def complexity(body); end end # Common code for cops that deal with preferred methods. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_preference.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#6 module RuboCop::Cop::MethodPreference private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_preference.rb:25 + # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#25 def default_cop_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_preference.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#9 def preferred_method(method); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/method_preference.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/method_preference.rb#13 def preferred_methods; end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb:5 +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#5 module RuboCop::Cop::Metrics; end # Checks that the ABC size of methods is not higher than the @@ -24076,7 +24902,7 @@ module RuboCop::Cop::Metrics; end # # @example CountRepeatedAttributes: false (default is true) # -# # `model` and `current_user`, refenced 3 times each, +# # `model` and `current_user`, referenced 3 times each, # # are each counted as only 1 branch each if # # `CountRepeatedAttributes` is set to 'false' # @@ -24089,7 +24915,7 @@ module RuboCop::Cop::Metrics; end # render 'pages/search/page' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/abc_size.rb:39 +# source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#39 class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern @@ -24098,11 +24924,11 @@ class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Base private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/abc_size.rb:47 + # source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#47 def complexity(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/abc_size.rb:42 +# source://rubocop//lib/rubocop/cop/metrics/abc_size.rb#42 RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) # Checks if the length of a block exceeds some maximum value. @@ -24110,8 +24936,8 @@ RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) # The maximum allowed length is configurable. # The cop can be configured to ignore blocks passed to certain methods. # -# You can set literals you want to fold with `CountAsOne`. -# Available are: 'array', 'hash', and 'heredoc'. Each literal +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct # will be counted as one line regardless of its actual size. # # @@ -24121,7 +24947,7 @@ RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) # # NOTE: This cop does not apply for `Struct` definitions. # -# @example CountAsOne: ['array', 'heredoc'] +# @example CountAsOne: ['array', 'heredoc', 'method_call'] # # something do # array = [ # +1 @@ -24137,32 +24963,37 @@ RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) # Heredoc # content. # HEREDOC -# end # 5 points # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_length.rb:39 +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#44 class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_length.rb:46 + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#51 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_length.rb:46 + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#51 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_length.rb:75 + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#80 def cop_label; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_length.rb:57 + # source://rubocop//lib/rubocop/cop/metrics/block_length.rb#62 def method_receiver_excluded?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_length.rb:44 +# source://rubocop//lib/rubocop/cop/metrics/block_length.rb#49 RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) # Checks for excessive nesting of conditional and looping @@ -24174,47 +25005,47 @@ RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) # # The maximum level of nesting allowed is configurable. # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:14 +# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#14 class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:19 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#19 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:28 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#28 def check_nesting_level(node, max, current_level); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:44 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#44 def consider_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:54 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#54 def count_blocks?; end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:50 + # source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#50 def message(max); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/block_nesting.rb:15 +# source://rubocop//lib/rubocop/cop/metrics/block_nesting.rb#15 RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array) -# Checks if the length a class exceeds some maximum value. +# Checks if the length of a class exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. # -# You can set literals you want to fold with `CountAsOne`. -# Available are: 'array', 'hash', and 'heredoc'. Each literal +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct # will be counted as one line regardless of its actual size. # # NOTE: This cop also applies for `Struct` definitions. # -# @example CountAsOne: ['array', 'heredoc'] +# @example CountAsOne: ['array', 'heredoc', 'method_call'] # # class Foo # ARRAY = [ # +1 @@ -24230,21 +25061,26 @@ RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array # Heredoc # content. # HEREDOC -# end # 5 points # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/class_length.rb:34 +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/class_length.rb#39 class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/class_length.rb:41 + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#46 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/class_length.rb:37 + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#42 def on_class(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/class_length.rb:59 + # source://rubocop//lib/rubocop/cop/metrics/class_length.rb#64 def message(length, max_length); end end @@ -24275,7 +25111,7 @@ end # self # end # total: 6 # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb:32 +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#32 class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern @@ -24285,27 +25121,27 @@ class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb:42 + # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#42 def complexity_score_for(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb:49 + # source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#49 def count_block?(block); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb:37 +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#37 RuboCop::Cop::Metrics::CyclomaticComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/cyclomatic_complexity.rb:36 +# source://rubocop//lib/rubocop/cop/metrics/cyclomatic_complexity.rb#36 RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) # Checks if the length of a method exceeds some maximum value. # Comment lines can optionally be allowed. # The maximum allowed length is configurable. # -# You can set literals you want to fold with `CountAsOne`. -# Available are: 'array', 'hash', and 'heredoc'. Each literal +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct # will be counted as one line regardless of its actual size. # # NOTE: The `ExcludedMethods` and `IgnoredMethods` configuration is @@ -24313,7 +25149,7 @@ RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) # Please use `AllowedMethods` and `AllowedPatterns` instead. # By default, there are no methods to allowed. # -# @example CountAsOne: ['array', 'heredoc'] +# @example CountAsOne: ['array', 'heredoc', 'method_call'] # # def m # array = [ # +1 @@ -24329,44 +25165,49 @@ RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) # Heredoc # content. # HEREDOC -# end # 5 points # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:37 +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#42 class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:51 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#56 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:44 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#49 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:44 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#49 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:51 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#56 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:60 + # source://rubocop//lib/rubocop/cop/metrics/method_length.rb#65 def cop_label; end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/method_length.rb:42 +# source://rubocop//lib/rubocop/cop/metrics/method_length.rb#47 RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String) -# Checks if the length a module exceeds some maximum value. +# Checks if the length of a module exceeds some maximum value. # Comment lines can optionally be ignored. # The maximum allowed length is configurable. # -# You can set literals you want to fold with `CountAsOne`. -# Available are: 'array', 'hash', and 'heredoc'. Each literal +# You can set constructs you want to fold with `CountAsOne`. +# Available are: 'array', 'hash', 'heredoc', and 'method_call'. Each construct # will be counted as one line regardless of its actual size. # -# @example CountAsOne: ['array', 'heredoc'] +# @example CountAsOne: ['array', 'heredoc', 'method_call'] # # module M # ARRAY = [ # +1 @@ -24382,24 +25223,29 @@ RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String) # Heredoc # content. # HEREDOC -# end # 5 points # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/module_length.rb:32 +# foo( # +1 +# 1, +# 2 +# ) +# end # 6 points +# +# source://rubocop//lib/rubocop/cop/metrics/module_length.rb#37 class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Base include ::RuboCop::Cop::CodeLength - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/module_length.rb:46 + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#51 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/module_length.rb:39 + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#44 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/module_length.rb:35 + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#40 def on_module(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/module_length.rb:50 + # source://rubocop//lib/rubocop/cop/metrics/module_length.rb#55 def message(length, max_length); end end @@ -24448,50 +25294,50 @@ end # def foo(a = 1, b = 2, c = 3) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:56 +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#56 class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:94 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#94 def argument_to_lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max_optional_parameters=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:80 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#80 def on_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:66 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#66 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:66 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#66 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:98 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#98 def args_count(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:114 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#114 def count_keyword_args?; end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:110 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#110 def max_optional_parameters; end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:106 + # source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#106 def max_params; end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:60 +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#60 RuboCop::Cop::Metrics::ParameterLists::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:63 +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#63 RuboCop::Cop::Metrics::ParameterLists::NAMED_KEYWORD_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/parameter_lists.rb:61 +# source://rubocop//lib/rubocop/cop/metrics/parameter_lists.rb#61 RuboCop::Cop::Metrics::ParameterLists::OPTIONAL_PARAMETERS_MSG = T.let(T.unsafe(nil), String) # Tries to produce a complexity score that's a measure of the @@ -24518,21 +25364,21 @@ RuboCop::Cop::Metrics::ParameterLists::OPTIONAL_PARAMETERS_MSG = T.let(T.unsafe( # end # === # end # 7 complexity points # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/perceived_complexity.rb:29 +# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#29 class RuboCop::Cop::Metrics::PerceivedComplexity < ::RuboCop::Cop::Metrics::CyclomaticComplexity private - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/perceived_complexity.rb:36 + # source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#36 def complexity_score_for(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/perceived_complexity.rb:32 +# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#32 RuboCop::Cop::Metrics::PerceivedComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/perceived_complexity.rb:30 +# source://rubocop//lib/rubocop/cop/metrics/perceived_complexity.rb#30 RuboCop::Cop::Metrics::PerceivedComplexity::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb:6 +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#6 module RuboCop::Cop::Metrics::Utils; end # > ABC is .. a software size metric .. computed by counting the number @@ -24542,7 +25388,7 @@ module RuboCop::Cop::Metrics::Utils; end # We separate the *calculator* from the *cop* so that the calculation, # the formula itself, is easier to test. # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:13 +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#13 class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator include ::RuboCop::AST::Sexp include ::RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount @@ -24551,94 +25397,94 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator # @return [AbcSizeCalculator] a new instance of AbcSizeCalculator # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:30 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:45 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#45 def calculate; end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:53 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 def calculate_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:68 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#68 def else_branch?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:47 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 def evaluate_branch_nodes(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:63 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#63 def evaluate_condition_node(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:131 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#131 def argument?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:89 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#89 def assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:127 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#127 def branch?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:122 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#122 def capturing_variable?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:98 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#98 def compound_assignment(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:135 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#135 def condition?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:111 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#111 def simple_assignment?(node); end # @yield [node] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:74 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#74 def visit_depth_last(node, &block); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:28 + # source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#33 def calculate(node, discount_repeated_attributes: T.unsafe(nil)); end end end # TODO: move to rubocop-ast # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:33 +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#29 RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) # > Branch -- an explicit forward program branch out of scope -- a # > function call, class method call .. # > http://c2.com/cgi/wiki?AbcMetric # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:21 +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#21 RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::BRANCH_NODES = T.let(T.unsafe(nil), Array) # > Condition -- a logical/Boolean test, == != <= >= < > else case # > default try catch ? and unary conditionals. # > http://c2.com/cgi/wiki?AbcMetric # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb:26 +# source://rubocop//lib/rubocop/cop/metrics/utils/abc_size_calculator.rb#26 RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::CONDITION_NODES = T.let(T.unsafe(nil), Array) # Helps to calculate code length for the provided node. # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:8 +# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#8 class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator include ::RuboCop::PathUtil include ::RuboCop::Cop::Util @@ -24646,98 +25492,98 @@ class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator # @return [CodeLengthCalculator] a new instance of CodeLengthCalculator # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:16 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#16 def initialize(node, processed_source, count_comments: T.unsafe(nil), foldable_types: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:24 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#24 def calculate; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:172 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#175 def another_args?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:42 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#42 def build_foldable_checks(types); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:80 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#83 def classlike_code_length(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:128 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#131 def classlike_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:63 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#66 def code_length(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:153 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#156 def count_comments?; end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:116 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#119 def each_top_level_descendant(node, types, &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:136 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#139 def extract_body(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:132 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#135 def foldable_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:111 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#114 def heredoc_length(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:76 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#79 def heredoc_node?(node); end # Returns true for lines that shall not be included in the count. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:149 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#152 def irrelevant_line?(source_line); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:100 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#103 def line_numbers_of_inner_nodes(node, *types); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:96 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#99 def namespace_module?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:58 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#60 def normalize_foldable_types(types); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:157 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#160 def omit_length(descendant); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:168 + # source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#171 def parenthesized?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:13 +# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#13 RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::CLASSLIKE_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/code_length_calculator.rb:12 +# source://rubocop//lib/rubocop/cop/metrics/utils/code_length_calculator.rb#12 RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::FOLDABLE_TYPES = T.let(T.unsafe(nil), Array) # Used to identify iterating blocks like `.map{}` and `.map(&:...)` # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/iterating_block.rb:8 +# source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#8 module RuboCop::Cop::Metrics::Utils::IteratingBlock # Returns the name of the method called with a block # if node is a block node, or a block-pass node. # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/iterating_block.rb:37 + # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#37 def block_method_name(node); end # Returns nil if node is neither a block node or a block-pass node. @@ -24745,18 +25591,18 @@ module RuboCop::Cop::Metrics::Utils::IteratingBlock # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/iterating_block.rb:53 + # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#53 def iterating_block?(node); end # Returns true iff name is a known iterating type (e.g. :each, :transform_values) # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/iterating_block.rb:47 + # source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#47 def iterating_method?(name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/iterating_block.rb:33 +# source://rubocop//lib/rubocop/cop/metrics/utils/iterating_block.rb#33 RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T.unsafe(nil), Set) # Identifies repetitions `{c}send` calls with no arguments: @@ -24777,7 +25623,7 @@ RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:25 +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#25 module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount include ::RuboCop::AST::Sexp extend ::RuboCop::AST::NodePattern::Macros @@ -24786,29 +25632,29 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:30 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#30 def initialize(node, discount_repeated_attributes: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:61 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#61 def attribute_call?(param0 = T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:53 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#53 def calculate_node(node); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:43 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#43 def discount_repeated_attributes?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:47 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#47 def evaluate_branch_nodes(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:92 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#92 def root_node?(param0 = T.unsafe(nil)); end private @@ -24816,7 +25662,7 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:66 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#66 def discount_repeated_attribute?(send_node); end # Returns the "known_attributes" for the `node` by walking the receiver tree @@ -24827,25 +25673,25 @@ module RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:103 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#103 def find_attributes(node, &block); end # or `nil` if it is not a setter. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:126 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#126 def setter_to_getter(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:80 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#80 def update_repeated_attribute(node); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb:117 +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb#117 RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount::VAR_SETTER_TO_GETTER = T.let(T.unsafe(nil), Hash) # Identifies repetitions `&.` on the same variable: @@ -24857,162 +25703,162 @@ RuboCop::Cop::Metrics::Utils::RepeatedAttributeDiscount::VAR_SETTER_TO_GETTER = # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb:15 +# source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#15 module RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb:20 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#20 def discount_for_repeated_csend?(csend_node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb:34 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#34 def reset_on_lvasgn(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb:16 + # source://rubocop//lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb#16 def reset_repeated_csend; end end -# source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:5 +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#5 module RuboCop::Cop::Migration; end # department name. # -# source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:8 +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#8 class RuboCop::Cop::Migration::DepartmentName < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:21 + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#21 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:47 + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#47 def check_cop_name(name, comment, offset); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:69 + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#69 def contain_unexpected_character_for_department_name?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:43 + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#43 def disable_comment_offset; end - # source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:73 + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#73 def qualified_legacy_cop_name(cop_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:63 + # source://rubocop//lib/rubocop/cop/migration/department_name.rb#63 def valid_content_token?(content_token); end end -# source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:14 +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#14 RuboCop::Cop::Migration::DepartmentName::DISABLE_COMMENT_FORMAT = T.let(T.unsafe(nil), Regexp) # The token that makes up a disable comment. # `DepartmentName/CopName` or` all`. # -# source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:19 +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#19 RuboCop::Cop::Migration::DepartmentName::DISABLING_COPS_CONTENT_TOKEN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/migration/department_name.rb:12 +# source://rubocop//lib/rubocop/cop/migration/department_name.rb#12 RuboCop::Cop::Migration::DepartmentName::MSG = T.let(T.unsafe(nil), String) # Common functionality for checking minimum body length. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/min_body_length.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#6 module RuboCop::Cop::MinBodyLength private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/min_body_length.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#13 def min_body_length; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/min_body_length.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/min_body_length.rb#9 def min_body_length?(node); end end # Common code for indenting the first elements in multiline # array literals, hash literals, and method definitions. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#7 module RuboCop::Cop::MultilineElementIndentation private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#42 def check_expected_style(styles); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#26 def check_first(first, left_brace, left_parenthesis, offset); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:80 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#80 def detected_styles(actual_column, offset, left_parenthesis, left_brace); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:85 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#85 def detected_styles_for_column(column, left_parenthesis, left_brace); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#10 def each_argument_node(node, type); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:66 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#66 def hash_pair_where_value_beginning_with(left_brace, first); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:98 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#98 def incorrect_style_detected(styles, first, base_column_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:50 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#50 def indent_base(left_brace, first, left_parenthesis); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:72 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#72 def key_and_value_begin_on_same_line?(pair); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_indentation.rb:76 + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_indentation.rb#76 def right_sibling_begins_on_subsequent_line?(pair); end end # Common functionality for checking for a line break before each # element in a multi-line collection. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#10 module RuboCop::Cop::MultilineElementLineBreaks private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb:26 - def all_on_same_line?(nodes); end + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#26 + def all_on_same_line?(nodes, ignore_last: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb:13 - def check_line_breaks(_node, children); end + # source://rubocop//lib/rubocop/cop/mixin/multiline_element_line_breaks.rb#13 + def check_line_breaks(_node, children, ignore_last: T.unsafe(nil)); end end # Common functionality for checking multiline method calls and binary # operations. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#7 module RuboCop::Cop::MultilineExpressionIndentation - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#14 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:131 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#131 def argument_in_method_call(node, kind); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:187 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#187 def assignment_rhs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:64 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#64 def check(range, node, lhs, rhs); end # The correct indentation of `node` is usually `IndentationWidth`, with @@ -25032,37 +25878,37 @@ module RuboCop::Cop::MultilineExpressionIndentation # bar # normal indentation, not special # ``` # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:54 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#54 def correct_indentation(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:159 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#159 def disqualified_rhs?(candidate, ancestor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:203 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#203 def grouped_expression?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:72 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#72 def incorrect_style_detected(range, node, lhs, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:84 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#84 def indentation(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:121 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#121 def indented_keyword_expression(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:207 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#207 def inside_arg_list_parentheses?(node, ancestor); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:98 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#98 def keyword_message_tail(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:106 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#106 def kw_node_with_special_indentation(node); end # In a chain of method calls, we regard the top send node as the base @@ -25071,23 +25917,23 @@ module RuboCop::Cop::MultilineExpressionIndentation # b c { block }. <-- b is indented relative to a # d <-- d is indented relative to a # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#31 def left_hand_side(lhs); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:197 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#197 def not_for_this_cop?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:88 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#88 def operation_description(node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:145 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#145 def part_of_assignment_rhs(node, candidate); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:183 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#183 def part_of_block_body?(candidate, block_node); end # Returns true if `node` is a conditional whose `body` and `condition` @@ -25095,51 +25941,51 @@ module RuboCop::Cop::MultilineExpressionIndentation # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:216 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#216 def postfix_conditional?(node); end # The []= operator and setters (a.b = c) are parsed as :send nodes. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:175 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#175 def valid_method_rhs_candidate?(candidate, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:164 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#164 def valid_rhs?(candidate, ancestor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:179 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#179 def valid_rhs_candidate?(candidate, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:220 + # source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#220 def within_node?(inner, outer); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:11 +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#11 RuboCop::Cop::MultilineExpressionIndentation::ASSIGNMENT_MESSAGE_TAIL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#10 RuboCop::Cop::MultilineExpressionIndentation::DEFAULT_MESSAGE_TAIL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#8 RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:12 +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#12 RuboCop::Cop::MultilineExpressionIndentation::KEYWORD_MESSAGE_TAIL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_expression_indentation.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/multiline_expression_indentation.rb#9 RuboCop::Cop::MultilineExpressionIndentation::UNALIGNED_RHS_TYPES = T.let(T.unsafe(nil), Array) # Autocorrection logic for the closing brace of a literal either # on the same line as the last contained elements, or a new line. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:7 +# source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#7 class RuboCop::Cop::MultilineLiteralBraceCorrector include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MultilineLiteralBraceLayout @@ -25147,52 +25993,60 @@ class RuboCop::Cop::MultilineLiteralBraceCorrector # @return [MultilineLiteralBraceCorrector] a new instance of MultilineLiteralBraceCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:15 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#15 def initialize(corrector, node, processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:21 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#21 def call; end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:52 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#61 def content_if_comment_present(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:43 - def correct_next_line_brace(corrector); end + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#51 + def correct_heredoc_argument_method_chain(corrector, end_range); end + + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#46 + def correct_next_line_brace(corrector, end_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:39 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#42 def correct_same_line_brace(corrector); end # Returns the value of attribute corrector. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:37 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 def corrector; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:78 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#94 def last_element_range_with_trailing_comma(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:87 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#103 def last_element_trailing_comma_range(node); end # Returns the value of attribute node. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:37 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 def node; end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:37 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#40 def processed_source; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:74 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#90 def remove_trailing_content_of_comment(corrector, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:64 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#80 def select_content_to_be_inserted_after_last_element(corrector, node); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#73 + def use_heredoc_argument_method_chain?(parent); end + class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb:11 + # source://rubocop//lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb#11 def correct(corrector, node, processed_source); end end end @@ -25200,28 +26054,28 @@ end # Common functionality for checking the closing brace of a literal is # either on the same line as the last contained elements or a new line. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#7 module RuboCop::Cop::MultilineLiteralBraceLayout include ::RuboCop::Cop::ConfigurableEnforcedStyle private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#34 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#12 def check_brace_layout(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#42 def check_new_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:50 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#50 def check_same_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:58 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#58 def check_symmetrical(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:86 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#86 def children(node); end # This method depends on the fact that we have guarded @@ -25229,22 +26083,22 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:98 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#98 def closing_brace_on_same_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:74 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#74 def empty_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:82 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#82 def ignored_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:78 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#78 def implicit_literal?(node); end # Starting with the parent node and recursively for the parent node's @@ -25274,7 +26128,7 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:126 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#126 def last_line_heredoc?(node, parent = T.unsafe(nil)); end # Returns true for the case @@ -25284,7 +26138,7 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#26 def new_line_needed_before_closing_brace?(node); end # This method depends on the fact that we have guarded @@ -25292,11 +26146,11 @@ module RuboCop::Cop::MultilineLiteralBraceLayout # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb:92 + # source://rubocop//lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb#92 def opening_brace_on_same_line?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:5 +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#5 module RuboCop::Cop::Naming; end # Makes sure that accessor methods are named properly. Applies @@ -25332,34 +26186,34 @@ module RuboCop::Cop::Naming; end # def set_value # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:38 +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#38 class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:42 + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:42 + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#42 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:61 + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#61 def bad_reader_name?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:65 + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#65 def bad_writer_name?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:53 + # source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#53 def message(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:39 +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#39 RuboCop::Cop::Naming::AccessorMethodName::MSG_READER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/accessor_method_name.rb:40 +# source://rubocop//lib/rubocop/cop/naming/accessor_method_name.rb#40 RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), String) # Checks for non-ascii characters in identifier and constant names. @@ -25407,31 +26261,31 @@ RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), Stri # # FOÖ = "foo" # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:53 +# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#53 class RuboCop::Cop::Naming::AsciiIdentifiers < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:59 + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#59 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:84 + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#84 def first_non_ascii_chars(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:74 + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#74 def first_offense_range(identifier); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:70 + # source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#70 def should_check?(token); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:57 +# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#57 RuboCop::Cop::Naming::AsciiIdentifiers::CONSTANT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/ascii_identifiers.rb:56 +# source://rubocop//lib/rubocop/cop/naming/ascii_identifiers.rb#56 RuboCop::Cop::Naming::AsciiIdentifiers::IDENTIFIER_MSG = T.let(T.unsafe(nil), String) # Makes sure that certain binary operator methods have their @@ -25445,31 +26299,31 @@ RuboCop::Cop::Naming::AsciiIdentifiers::IDENTIFIER_MSG = T.let(T.unsafe(nil), St # # good # def +(other); end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:16 +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#16 class RuboCop::Cop::Naming::BinaryOperatorParameterName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:29 + # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#29 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:25 + # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#25 def op_method_candidate?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:45 + # source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#45 def op_method?(name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:22 +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#22 RuboCop::Cop::Naming::BinaryOperatorParameterName::EXCLUDED = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:19 +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#19 RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/binary_operator_parameter_name.rb:21 +# source://rubocop//lib/rubocop/cop/naming/binary_operator_parameter_name.rb#21 RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array) # In Ruby 3.1, anonymous block forwarding has been added. @@ -25505,54 +26359,54 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.uns # bar(&block) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:40 +# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#40 class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:50 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#50 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:50 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#50 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:83 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#83 def anonymous_block_argument?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:115 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#115 def block_forwarding_name; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:69 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#69 def expected_block_forwarding_style?(node, last_argument); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:87 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87 def explicit_block_argument?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:91 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#91 def register_offense(block_argument, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:107 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#107 def use_block_argument_as_local_variable?(node, last_argument); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:79 + # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#79 def use_kwarg_in_method_definition?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/block_forwarding.rb:48 +# source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#48 RuboCop::Cop::Naming::BlockForwarding::MSG = T.let(T.unsafe(nil), String) # Checks block parameter names for how descriptive they @@ -25588,11 +26442,11 @@ RuboCop::Cop::Naming::BlockForwarding::MSG = T.let(T.unsafe(nil), String) # # baz { |age, height, gender| do_stuff(age, height, gender) } # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/block_parameter_name.rb:38 +# source://rubocop//lib/rubocop/cop/naming/block_parameter_name.rb#38 class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Base include ::RuboCop::Cop::UncommunicativeName - # source://rubocop-1.35.1/lib/rubocop/cop/naming/block_parameter_name.rb:41 + # source://rubocop//lib/rubocop/cop/naming/block_parameter_name.rb#41 def on_block(node); end end @@ -25620,16 +26474,16 @@ end # class module_parent::MyModule # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/class_and_module_camel_case.rb:29 +# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#29 class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/naming/class_and_module_camel_case.rb:32 + # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/class_and_module_camel_case.rb:32 + # source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#32 def on_module(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/class_and_module_camel_case.rb:30 +# source://rubocop//lib/rubocop/cop/naming/class_and_module_camel_case.rb#30 RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String) # Checks whether constant names are written using @@ -25647,47 +26501,47 @@ RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String # # good # INCH_IN_CM = 2.54 # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:20 +# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#20 class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:27 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#27 def class_or_struct_return_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:69 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#69 def literal_receiver?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:33 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#33 def on_casgn(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:56 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#56 def allowed_assignment?(value); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:74 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#74 def allowed_conditional_expression_on_rhs?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:63 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#63 def allowed_method_call_on_rhs?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:78 + # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#78 def contains_constant?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:21 +# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#21 RuboCop::Cop::Naming::ConstantName::MSG = T.let(T.unsafe(nil), String) # Use POSIX character classes, so we allow accented characters rather # than just standard ASCII characters # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/constant_name.rb:24 +# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#24 RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # Makes sure that Ruby source files have snake_case @@ -25722,118 +26576,118 @@ RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # # anything/using_snake_case.rake # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:39 +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#39 class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:56 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#56 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:49 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#49 def struct_definition(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:134 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#134 def allowed_acronyms; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:96 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#96 def bad_filename_allowed?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:122 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#122 def check_definition_path_hierarchy?; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:169 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#169 def defined_struct(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:126 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#126 def definition_path_hierarchy_roots; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:118 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#118 def expect_matching_definition?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:138 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#138 def filename_good?(basename); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:147 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#147 def find_class_or_module(node, namespace); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:165 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#165 def find_definition(node); end # @yield [source_range(processed_source.buffer, 1, 0), msg] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:65 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#65 def for_bad_filename(file_path); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:114 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#114 def ignore_executable_scripts?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:202 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#202 def match?(expected); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:206 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#206 def match_acronym?(expected, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:174 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#174 def match_namespace(node, namespace, expected); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:92 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#92 def matching_class?(file_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:88 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#88 def matching_definition?(file_path); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:100 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#100 def no_definition_message(basename, file_path); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:106 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#106 def other_message(basename); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:188 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#188 def partial_matcher!(expected); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:77 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#77 def perform_class_and_module_naming_checks(file_path, basename); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:130 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#130 def regex; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:240 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#240 def to_module_name(basename); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:213 + # source://rubocop//lib/rubocop/cop/naming/file_name.rb#213 def to_namespace(path); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:43 +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#43 RuboCop::Cop::Naming::FileName::MSG_NO_DEFINITION = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:44 +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#44 RuboCop::Cop::Naming::FileName::MSG_REGEX = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:42 +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#42 RuboCop::Cop::Naming::FileName::MSG_SNAKE_CASE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/file_name.rb:46 +# source://rubocop//lib/rubocop/cop/naming/file_name.rb#46 RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # Checks that your heredocs are using the configured case. @@ -25860,30 +26714,30 @@ RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) # SELECT * FROM foo # sql # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_case.rb:30 +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#30 class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_case.rb:37 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#37 def on_heredoc(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_case.rb:54 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#54 def correct_case_delimiters?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_case.rb:58 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#58 def correct_delimiters(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_case.rb:50 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#50 def message(_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_case.rb:35 +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_case.rb#35 RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String) # Checks that your heredocs are using meaningful delimiters. @@ -25907,28 +26761,28 @@ RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String) # SELECT * FROM foo # EOS # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb:26 +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#26 class RuboCop::Cop::Naming::HeredocDelimiterNaming < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb:31 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#31 def on_heredoc(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb:49 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#49 def forbidden_delimiters; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb:39 + # source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#39 def meaningful_delimiters?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb:29 +# source://rubocop//lib/rubocop/cop/naming/heredoc_delimiter_naming.rb#29 RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String) -# This cops recommends the use of inclusive language instead of problematic terms. +# Recommends the use of inclusive language instead of problematic terms. # The cop can check the following locations for offenses: # - identifiers # - constants @@ -25988,93 +26842,93 @@ RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String) # # good (won't be flagged despite containing `slave`) # TeslaVehicle # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:69 +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#69 class RuboCop::Cop::Naming::InclusiveLanguage < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp # @return [InclusiveLanguage] a new instance of InclusiveLanguage # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:78 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#78 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:87 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#87 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:105 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#105 def add_offenses_for_token(token, word_locations); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:154 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#154 def add_to_flagged_term_hash(regex_string, term, term_definition); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:180 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#180 def array_to_ignorecase_regex(strings); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:113 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#113 def check_token?(type); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:228 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#231 def create_message(word, message = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:205 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#205 def create_multiple_word_message_for_file(words); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:201 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#201 def create_single_word_message_for_file(word); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:176 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#176 def ensure_regex_string(regex); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:147 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#147 def extract_regexp(term, term_definition); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:236 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#239 def find_flagged_term(word); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:250 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#253 def format_suggestions(suggestions); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:184 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#184 def investigate_filepath; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:94 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#94 def investigate_tokens; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:216 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#219 def mask_input(str); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:117 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#117 def preprocess_check_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:131 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#131 def preprocess_flagged_terms; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:243 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#246 def preprocess_suggestions(suggestions); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:166 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#166 def process_allowed_regex(allowed); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:209 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#209 def scan_for_words(input); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:161 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#161 def set_regexes(flagged_term_strings, allowed_strings); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:72 +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#72 RuboCop::Cop::Naming::InclusiveLanguage::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:73 +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#73 RuboCop::Cop::Naming::InclusiveLanguage::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:74 +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#74 RuboCop::Cop::Naming::InclusiveLanguage::MSG_FOR_FILE_PATH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:76 +# source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#76 class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # Returns the value of attribute position # @@ -26086,7 +26940,7 @@ class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # @param value [Object] the value to set the attribute position to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:76 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#76 def position=(_); end # Returns the value of attribute word @@ -26099,7 +26953,7 @@ class RuboCop::Cop::Naming::InclusiveLanguage::WordLocation < ::Struct # @param value [Object] the value to set the attribute word to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/inclusive_language.rb:76 + # source://rubocop//lib/rubocop/cop/naming/inclusive_language.rb#76 def word=(_); end class << self @@ -26245,54 +27099,54 @@ end # @_foo ||= calculate_expensive_thing # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:147 +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#147 class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:189 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#189 def defined_memoized?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:157 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#157 def method_definition?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:197 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#197 def on_defined?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:166 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#166 def on_or_asgn(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:227 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#227 def find_definition(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:238 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#238 def matches?(method_name, ivar_assign); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:248 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#248 def message(variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:223 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#223 def style_parameter_name; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:256 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#256 def suggested_var(method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:262 + # source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#262 def variable_name_candidates(method_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:154 +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#154 RuboCop::Cop::Naming::MemoizedInstanceVariableName::DYNAMIC_DEFINE_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:150 +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#150 RuboCop::Cop::Naming::MemoizedInstanceVariableName::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/naming/memoized_instance_variable_name.rb:152 +# source://rubocop//lib/rubocop/cop/naming/memoized_instance_variable_name.rb#152 RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let(T.unsafe(nil), String) # Makes sure that all methods use the configured style, @@ -26320,7 +27174,7 @@ RuboCop::Cop::Naming::MemoizedInstanceVariableName::UNDERSCORE_REQUIRED = T.let( # # good # def fooBar; end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:31 +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#31 class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableFormatting @@ -26328,34 +27182,34 @@ class RuboCop::Cop::Naming::MethodName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedPattern include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:55 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#55 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:55 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#55 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:44 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#44 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:42 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#42 def str_name(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:39 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#39 def sym_name(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:64 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#64 def attr_name(name_item); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:75 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#75 def message(style); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:68 + # source://rubocop//lib/rubocop/cop/naming/method_name.rb#68 def range_position(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/method_name.rb:36 +# source://rubocop//lib/rubocop/cop/naming/method_name.rb#36 RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) # Checks method parameter names for how descriptive they @@ -26399,14 +27253,14 @@ RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) # do_stuff(age_a, height_b, gender_c) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/method_parameter_name.rb:46 +# source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#46 class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base include ::RuboCop::Cop::UncommunicativeName - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_parameter_name.rb:49 + # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/method_parameter_name.rb:49 + # source://rubocop//lib/rubocop/cop/naming/method_parameter_name.rb#49 def on_defs(node); end end @@ -26462,42 +27316,42 @@ end # def is_a?(value) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:59 +# source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#59 class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:63 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#63 def dynamic_method_define(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:82 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#82 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:82 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#82 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:69 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#69 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:98 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#98 def allowed_method_name?(method_name, prefix); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:106 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#106 def expected_name(method_name, prefix); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:120 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#120 def forbidden_prefixes; end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:116 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#116 def message(method_name, new_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:128 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#128 def method_definition_macros(macro_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/predicate_name.rb:124 + # source://rubocop//lib/rubocop/cop/naming/predicate_name.rb#124 def predicate_prefixes; end end @@ -26555,49 +27409,49 @@ end # # do something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:61 +# source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#61 class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:66 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#66 def on_resbody(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:108 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#108 def correct_node(corrector, node, offending_name, preferred_name); end # If the exception variable is reassigned, that assignment needs to be corrected. # Further `lvar` nodes will not be corrected though since they now refer to a # different variable. # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:126 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#126 def correct_reassignment(corrector, node, offending_name, preferred_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:151 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#151 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:93 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#93 def offense_range(resbody); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:135 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#135 def preferred_name(variable_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:157 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#157 def shadowed_variable_name?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:144 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#144 def variable_name(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:98 + # source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#98 def variable_name_matches?(node, name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb:64 +# source://rubocop//lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb#64 RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), String) # Makes sure that all variables use the configured style, @@ -26619,7 +27473,7 @@ RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), # # good # :release_v1 # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:26 +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#26 class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedIdentifiers include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -26627,51 +27481,51 @@ class RuboCop::Cop::Naming::VariableName < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableNaming include ::RuboCop::Cop::AllowedPattern - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_arg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_blockarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_kwarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_kwoptarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_kwrestarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_lvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_optarg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:37 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#37 def on_restarg(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:33 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#33 def valid_name?(node, name, given_style = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:57 + # source://rubocop//lib/rubocop/cop/naming/variable_name.rb#57 def message(style); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_name.rb:31 +# source://rubocop//lib/rubocop/cop/naming/variable_name.rb#31 RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) # Makes sure that all numbered variables use the @@ -26763,7 +27617,7 @@ RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) # # def some_method1(arg1); end # -# source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:103 +# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#103 class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedIdentifiers include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -26771,64 +27625,64 @@ class RuboCop::Cop::Naming::VariableNumber < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableNumbering include ::RuboCop::Cop::AllowedPattern - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 def on_arg(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:126 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#126 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:126 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#126 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:114 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#114 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:134 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#134 def on_sym(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:110 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#110 def valid_name?(node, name, given_style = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:143 + # source://rubocop//lib/rubocop/cop/naming/variable_number.rb#143 def message(style); end end -# source://rubocop-1.35.1/lib/rubocop/cop/naming/variable_number.rb:108 +# source://rubocop//lib/rubocop/cop/naming/variable_number.rb#108 RuboCop::Cop::Naming::VariableNumber::MSG = T.let(T.unsafe(nil), String) # Some common code shared between `NegatedIf` and # `NegatedWhile` cops. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/negative_conditional.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#7 module RuboCop::Cop::NegativeConditional extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/negative_conditional.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#18 def empty_condition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/negative_conditional.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#15 def single_negative?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/negative_conditional.rb:20 + # source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#20 def check_negative_conditional(node, message:, &block); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/negative_conditional.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/negative_conditional.rb#10 RuboCop::Cop::NegativeConditional::MSG = T.let(T.unsafe(nil), String) # This module provides a list of methods that are: @@ -26836,29 +27690,29 @@ RuboCop::Cop::NegativeConditional::MSG = T.let(T.unsafe(nil), String) # 2. Added to NilClass by explicitly requiring any standard libraries # 3. Cop's configuration parameter AllowedMethods. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/nil_methods.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#9 module RuboCop::Cop::NilMethods include ::RuboCop::Cop::AllowedMethods private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/nil_methods.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#14 def nil_methods; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/nil_methods.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/nil_methods.rb#18 def other_stdlib_methods; end end # An offense represents a style violation detected by RuboCop. # -# source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:6 +# source://rubocop//lib/rubocop/cop/offense.rb#6 class RuboCop::Cop::Offense include ::Comparable # @api private # @return [Offense] a new instance of Offense # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:84 + # source://rubocop//lib/rubocop/cop/offense.rb#84 def initialize(severity, location, message, cop_name, status = T.unsafe(nil), corrector = T.unsafe(nil)); end # Returns `-1`, `0`, or `+1` @@ -26867,28 +27721,28 @@ class RuboCop::Cop::Offense # @api public # @return [Integer] comparison result # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:230 + # source://rubocop//lib/rubocop/cop/offense.rb#230 def <=>(other); end # @api public # @return [Boolean] returns `true` if two offenses contain same attributes # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:211 + # source://rubocop//lib/rubocop/cop/offense.rb#211 def ==(other); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:160 + # source://rubocop//lib/rubocop/cop/offense.rb#160 def column; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:170 + # source://rubocop//lib/rubocop/cop/offense.rb#170 def column_length; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:194 + # source://rubocop//lib/rubocop/cop/offense.rb#194 def column_range; end # @api public @@ -26897,82 +27751,82 @@ class RuboCop::Cop::Offense # @return [String] a cop class name without department. # i.e. type of the violation. # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:51 + # source://rubocop//lib/rubocop/cop/offense.rb#51 def cop_name; end # @api public # @return [Boolean] whether this offense can be automatically corrected via # autocorrect or a todo. # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:102 + # source://rubocop//lib/rubocop/cop/offense.rb#102 def correctable?; end # @api public # @return [Boolean] whether this offense is automatically corrected via # autocorrect or a todo. # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:113 + # source://rubocop//lib/rubocop/cop/offense.rb#113 def corrected?; end # @api public # @return [Boolean] whether this offense is automatically disabled via a todo. # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:123 + # source://rubocop//lib/rubocop/cop/offense.rb#123 def corrected_with_todo?; end # @api public # @return [Corrector | nil] the autocorrection for this offense, or `nil` when not available # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:62 + # source://rubocop//lib/rubocop/cop/offense.rb#62 def corrector; end # @api public # @return [Boolean] whether this offense was locally disabled with a # disable or todo where it occurred. # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:134 + # source://rubocop//lib/rubocop/cop/offense.rb#134 def disabled?; end # @api public # @return [Boolean] returns `true` if two offenses contain same attributes # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:211 + # source://rubocop//lib/rubocop/cop/offense.rb#211 def eql?(other); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:179 + # source://rubocop//lib/rubocop/cop/offense.rb#179 def first_line; end - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:219 + # source://rubocop//lib/rubocop/cop/offense.rb#219 def hash; end # @api public # @return [Parser::Source::Range] the range of the code that is highlighted # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:142 + # source://rubocop//lib/rubocop/cop/offense.rb#142 def highlighted_area; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:189 + # source://rubocop//lib/rubocop/cop/offense.rb#189 def last_column; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:184 + # source://rubocop//lib/rubocop/cop/offense.rb#184 def last_line; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:155 + # source://rubocop//lib/rubocop/cop/offense.rb#155 def line; end # @api public # @return [Parser::Source::Range] the location where the violation is detected. # @see https://www.rubydoc.info/gems/parser/Parser/Source/Range Parser::Source::Range # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:28 + # source://rubocop//lib/rubocop/cop/offense.rb#28 def location; end # @api public @@ -26980,7 +27834,7 @@ class RuboCop::Cop::Offense # 'Line is too long. [90/80]' # @return [String] human-readable message # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:39 + # source://rubocop//lib/rubocop/cop/offense.rb#39 def message; end # Internally we use column number that start at 0, but when @@ -26989,42 +27843,42 @@ class RuboCop::Cop::Offense # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:203 + # source://rubocop//lib/rubocop/cop/offense.rb#203 def real_column; end # @api public # @return [RuboCop::Cop::Severity] # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:17 + # source://rubocop//lib/rubocop/cop/offense.rb#17 def severity; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:165 + # source://rubocop//lib/rubocop/cop/offense.rb#165 def source_line; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:54 + # source://rubocop//lib/rubocop/cop/offense.rb#54 def status; end # This is just for debugging purpose. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:148 + # source://rubocop//lib/rubocop/cop/offense.rb#148 def to_s; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:10 +# source://rubocop//lib/rubocop/cop/offense.rb#10 RuboCop::Cop::Offense::COMPARISON_ATTRIBUTES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:81 +# source://rubocop//lib/rubocop/cop/offense.rb#81 RuboCop::Cop::Offense::NO_LOCATION = T.let(T.unsafe(nil), RuboCop::Cop::Offense::PseudoSourceRange) -# source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:64 +# source://rubocop//lib/rubocop/cop/offense.rb#64 class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute begin_pos # @@ -27036,7 +27890,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @param value [Object] the value to set the attribute begin_pos to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:64 + # source://rubocop//lib/rubocop/cop/offense.rb#64 def begin_pos=(_); end # Returns the value of attribute column @@ -27049,10 +27903,10 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @param value [Object] the value to set the attribute column to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:64 + # source://rubocop//lib/rubocop/cop/offense.rb#64 def column=(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:70 + # source://rubocop//lib/rubocop/cop/offense.rb#70 def column_range; end # Returns the value of attribute end_pos @@ -27065,7 +27919,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @param value [Object] the value to set the attribute end_pos to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:64 + # source://rubocop//lib/rubocop/cop/offense.rb#64 def end_pos=(_); end # Returns the value of attribute line @@ -27083,7 +27937,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @return [Object] the current value of line def last_line; end - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:74 + # source://rubocop//lib/rubocop/cop/offense.rb#74 def length; end # Returns the value of attribute line @@ -27096,10 +27950,10 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:64 + # source://rubocop//lib/rubocop/cop/offense.rb#64 def line=(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:74 + # source://rubocop//lib/rubocop/cop/offense.rb#74 def size; end # Returns the value of attribute source_line @@ -27112,7 +27966,7 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # @param value [Object] the value to set the attribute source_line to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/offense.rb:64 + # source://rubocop//lib/rubocop/cop/offense.rb#64 def source_line=(_); end class << self @@ -27125,15 +27979,15 @@ end # Common functionality for cops checking if and unless expressions. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/on_normal_if_unless.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/on_normal_if_unless.rb#6 module RuboCop::Cop::OnNormalIfUnless - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/on_normal_if_unless.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/on_normal_if_unless.rb#7 def on_if(node); end end # This autocorrects gem dependency order # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#6 class RuboCop::Cop::OrderedGemCorrector extend ::RuboCop::Cop::OrderedGemNode extend ::RuboCop::Cop::RangeHelp @@ -27141,23 +27995,23 @@ class RuboCop::Cop::OrderedGemCorrector class << self # Returns the value of attribute comments_as_separators. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb:11 + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 def comments_as_separators; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb:13 + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#13 def correct(processed_source, node, previous_declaration, comments_as_separators); end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb:11 + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#11 def processed_source; end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb:26 + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#26 def declaration_with_comment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/ordered_gem_corrector.rb:36 + # source://rubocop//lib/rubocop/cop/correctors/ordered_gem_corrector.rb#36 def swap_range(corrector, range1, range2); end end end @@ -27165,145 +28019,145 @@ end # Common functionality for Bundler/OrderedGems and # Gemspec/OrderedDependencies. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#7 module RuboCop::Cop::OrderedGemNode private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#23 def case_insensitive_out_of_order?(string_a, string_b); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:27 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#27 def consecutive_lines(previous, current); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:55 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#55 def find_gem_name(gem_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#18 def gem_canonical_name(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:49 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#49 def gem_name(declaration_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#10 def get_source_range(node, comments_as_separators); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:32 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#32 def register_offense(previous, current); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/ordered_gem_node.rb:61 + # source://rubocop//lib/rubocop/cop/mixin/ordered_gem_node.rb#61 def treat_comments_as_separators; end end # Common functionality for handling parentheses. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/parentheses.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/parentheses.rb#6 module RuboCop::Cop::Parentheses private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/parentheses.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/parentheses.rb#9 def parens_required?(node); end end # This autocorrects parentheses # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#6 class RuboCop::Cop::ParenthesesCorrector extend ::RuboCop::Cop::RangeHelp class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:12 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#12 def correct(corrector, node); end private # Add a comma back after the heredoc identifier # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:74 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#74 def add_heredoc_comma(corrector, node); end # If the node contains a heredoc, remove the comma too # It'll be added back in the right place later # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:64 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#64 def extend_range_for_heredoc(node, range); end # If removing parentheses leaves a comma on its own line, remove all the whitespace # preceding it to prevent a syntax error. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:41 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#41 def handle_orphaned_comma(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:80 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#80 def heredoc?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:28 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#28 def next_char_is_question_mark?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:32 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#32 def only_closing_paren_before_comma?(node); end # Get a range for the closing parenthesis and all whitespace to the left of it # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:51 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#51 def parens_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/parentheses_corrector.rb:24 + # source://rubocop//lib/rubocop/cop/correctors/parentheses_corrector.rb#24 def ternary_condition?(node); end end end # Common functionality for handling percent arrays. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#6 module RuboCop::Cop::PercentArray private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#26 def allowed_bracket_array?(node); end # @param node [RuboCop::AST::ArrayNode] # @param elements [Array] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:83 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#83 def build_bracketed_array_with_appropriate_whitespace(elements:, node:); end # @param preferred_array_code [String] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:56 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#56 def build_message_for_bracketed_array(preferred_array_code); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:67 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#67 def check_bracketed_array(node, literal_prefix); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:36 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#36 def check_percent_array(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#31 def comments_in_array?(node); end # Override to determine values that are invalid in a percent array # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#22 def invalid_percent_array_contents?(_node); end # Ruby does not allow percent arrays in an ambiguous block context. @@ -27313,7 +28167,7 @@ module RuboCop::Cop::PercentArray # foo %i[bar baz] { qux } # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#14 def invalid_percent_array_context?(node); end # Provides whitespace between elements for building a bracketed array. @@ -27323,7 +28177,7 @@ module RuboCop::Cop::PercentArray # @param node [RuboCop::AST::ArrayNode] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:98 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#98 def whitespace_between(node); end # Provides leading whitespace for building a bracketed array. @@ -27333,7 +28187,7 @@ module RuboCop::Cop::PercentArray # @param node [RuboCop::AST::ArrayNode] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:113 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#111 def whitespace_leading(node); end # Provides trailing whitespace for building a bracketed array. @@ -27343,277 +28197,280 @@ module RuboCop::Cop::PercentArray # @param node [RuboCop::AST::ArrayNode] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_array.rb:122 + # source://rubocop//lib/rubocop/cop/mixin/percent_array.rb#120 def whitespace_trailing(node); end end # Common functionality for handling percent literals. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_literal.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#6 module RuboCop::Cop::PercentLiteral include ::RuboCop::Cop::RangeHelp private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_literal.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#23 def begin_source(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_literal.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#11 def percent_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_literal.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#17 def process(node, *types); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/percent_literal.rb:27 + # source://rubocop//lib/rubocop/cop/mixin/percent_literal.rb#27 def type(node); end end # This autocorrects percent literals # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#6 class RuboCop::Cop::PercentLiteralCorrector include ::RuboCop::PathUtil include ::RuboCop::Cop::Util # @return [PercentLiteralCorrector] a new instance of PercentLiteralCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:11 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#11 def initialize(config, preferred_delimiters); end # Returns the value of attribute config. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:9 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 def config; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:16 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#16 def correct(corrector, node, char); end # Returns the value of attribute preferred_delimiters. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:9 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#9 def preferred_delimiters; end private - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:46 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#46 def autocorrect_multiline_words(node, escape, delimiters); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:52 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#52 def autocorrect_words(node, escape, delimiters); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:34 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#34 def delimiters_for(type); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:100 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#100 def end_content(source); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:30 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#30 def escape_words?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:78 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#78 def first_line?(node, previous_line_num); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:89 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#89 def fix_escaped_content(word_node, escape, delimiters); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:69 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#69 def line_breaks(node, source, previous_line_num, base_line_num, node_indx); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:38 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#38 def new_contents(node, escape, delimiters); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:82 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#82 def process_lines(node, previous_line_num, base_line_num, source_in_lines); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:58 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#58 def process_multiline_words(node, escape, delimiters); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:96 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#96 def substitute_escaped_delimiters(content, delimiters); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/percent_literal_corrector.rb:26 + # source://rubocop//lib/rubocop/cop/correctors/percent_literal_corrector.rb#26 def wrap_contents(corrector, node, contents, char, delimiters); end end # Common functionality for checking whether an AST node/token is aligned # with something on a preceding or following line # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#7 module RuboCop::Cop::PrecedingFollowingAlignment private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:95 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#95 def aligned_assignment?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:91 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#91 def aligned_char?(range, line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:70 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#70 def aligned_comment_lines; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:107 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#107 def aligned_identical?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:83 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#83 def aligned_operator?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:77 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#77 def aligned_token?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#34 def aligned_with_adjacent_line?(range, predicate); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:52 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#52 def aligned_with_any_line?(line_ranges, range, indent = T.unsafe(nil), &predicate); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#42 def aligned_with_any_line_range?(line_ranges, range, &predicate); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:100 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#100 def aligned_with_append_operator?(range, line); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:111 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#111 def aligned_with_assignment(token, line_range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:56 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#56 def aligned_with_line?(line_nos, range, indent = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#18 def aligned_with_operator?(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#22 def aligned_with_preceding_assignment(token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#14 def aligned_with_something?(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:28 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#28 def aligned_with_subsequent_assignment(token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:87 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#87 def aligned_words?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#10 def allow_for_alignment?; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:129 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#129 def assignment_lines; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:133 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#133 def assignment_tokens; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:149 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#149 def relevant_assignment_lines(line_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preceding_following_alignment.rb:176 + # source://rubocop//lib/rubocop/cop/mixin/preceding_following_alignment.rb#176 def remove_optarg_equals(asgn_tokens, processed_source); end end # Common functionality for handling percent literal delimiters. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#6 class RuboCop::Cop::PreferredDelimiters # @return [PreferredDelimiters] a new instance of PreferredDelimiters # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#11 def initialize(type, config, preferred_delimiters); end # Returns the value of attribute config. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#7 def config; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#17 def delimiters; end # Returns the value of attribute type. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#7 def type; end private # @raise [ArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#23 def ensure_valid_preferred_delimiters; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:30 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#30 def preferred_delimiters; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:45 + # source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#45 def preferred_delimiters_config; end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/preferred_delimiters.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/preferred_delimiters.rb#9 RuboCop::Cop::PreferredDelimiters::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Array) # This autocorrects punctuation # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/punctuation_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#6 class RuboCop::Cop::PunctuationCorrector class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/punctuation_corrector.rb:12 + # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#12 def add_space(corrector, token); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/punctuation_corrector.rb:8 + # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#8 def remove_space(corrector, space_before); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/punctuation_corrector.rb:16 + # source://rubocop//lib/rubocop/cop/correctors/punctuation_corrector.rb#16 def swap_comma(corrector, range); end end end # Methods that calculate and return Parser::Source::Ranges # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#6 module RuboCop::Cop::RangeHelp private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:82 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#146 + def add_range(range1, range2); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#82 def column_offset_between(base_range, range); end # A range containing only the contents of a literal with delimiters (e.g. in # `%i{1 2 3}` this will be the range covering `1 2 3` only). # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:32 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#32 def contents_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:100 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#100 def directions(side); end # Returns the column attribute of the range, except if the range is on @@ -27621,230 +28478,249 @@ module RuboCop::Cop::RangeHelp # line, in which case 1 is subtracted from the column value. This gives # the column as it appears when viewing the file in an editor. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:92 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#92 def effective_column(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:109 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#109 def final_pos(src, pos, increment, continuations, newlines, whitespace); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:117 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#117 def move_pos(src, pos, step, condition, regexp); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:123 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#123 def move_pos_str(src, pos, step, condition, needle); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:36 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#36 def range_between(start_pos, end_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:73 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#73 def range_by_whole_lines(range, include_final_newline: T.unsafe(nil), buffer: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:40 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#134 + def range_with_comments(node); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#130 + def range_with_comments_and_lines(node); end + + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#40 def range_with_surrounding_comma(range, side = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:55 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#55 def range_with_surrounding_space(range_positional = T.unsafe(nil), range: T.unsafe(nil), side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil), buffer: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/range_help.rb#11 def source_range(source_buffer, line_number, column, length = T.unsafe(nil)); end end # The Unicode codepoint # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#9 RuboCop::Cop::RangeHelp::BYTE_ORDER_MARK = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/range_help.rb:54 +# source://rubocop//lib/rubocop/cop/mixin/range_help.rb#54 module RuboCop::Cop::RangeHelp::NOT_GIVEN; end # Common functionality for handling Rational literals. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/rational_literal.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/rational_literal.rb#6 module RuboCop::Cop::RationalLiteral extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/rational_literal.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/rational_literal.rb#12 def rational_literal?(param0 = T.unsafe(nil)); end end # Registry that tracks all cops by their badge and department. # -# source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:19 +# source://rubocop//lib/rubocop/cop/registry.rb#19 class RuboCop::Cop::Registry include ::Enumerable # @return [Registry] a new instance of Registry # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:24 + # source://rubocop//lib/rubocop/cop/registry.rb#46 def initialize(cops = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:183 + # source://rubocop//lib/rubocop/cop/registry.rb#218 def ==(other); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:67 + # source://rubocop//lib/rubocop/cop/registry.rb#92 def contains_cop_matching?(names); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:142 + # source://rubocop//lib/rubocop/cop/registry.rb#167 def cops; end + # source://rubocop//lib/rubocop/cop/registry.rb#210 + def cops_for_department(department); end + # @return [Boolean] Checks if given name is department # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:63 + # source://rubocop//lib/rubocop/cop/registry.rb#88 def department?(name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:117 + # source://rubocop//lib/rubocop/cop/registry.rb#142 def department_missing?(badge, name); end # @return [Array] list of departments for current cops. # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:42 + # source://rubocop//lib/rubocop/cop/registry.rb#67 def departments; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:37 + # source://rubocop//lib/rubocop/cop/registry.rb#181 + def disabled(config); end + + # source://rubocop//lib/rubocop/cop/registry.rb#62 def dismiss(cop); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:198 + # source://rubocop//lib/rubocop/cop/registry.rb#233 def each(&block); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:152 - def enabled(config, only = T.unsafe(nil), only_safe: T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/registry.rb#177 + def enabled(config); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:156 - def enabled?(cop, config, only_safe); end + # source://rubocop//lib/rubocop/cop/registry.rb#185 + def enabled?(cop, config); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:168 + # source://rubocop//lib/rubocop/cop/registry.rb#199 def enabled_pending_cop?(cop_cfg, config); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:33 + # source://rubocop//lib/rubocop/cop/registry.rb#58 def enlist(cop); end # @param cop_name [String] # @return [Class, nil] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:204 + # source://rubocop//lib/rubocop/cop/registry.rb#239 def find_by_cop_name(cop_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:208 + # When a cop name is given returns a single-element array with the cop class. + # When a department name is given returns an array with all the cop classes + # for that department. + # + # source://rubocop//lib/rubocop/cop/registry.rb#246 + def find_cops_by_directive(directive); end + + # source://rubocop//lib/rubocop/cop/registry.rb#251 def freeze; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:147 + # source://rubocop//lib/rubocop/cop/registry.rb#172 def length; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:175 + # source://rubocop//lib/rubocop/cop/registry.rb#206 def names; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:179 + # source://rubocop//lib/rubocop/cop/registry.rb#214 def names_for_department(department); end # Returns the value of attribute options. # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:22 + # source://rubocop//lib/rubocop/cop/registry.rb#44 def options; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:121 + # source://rubocop//lib/rubocop/cop/registry.rb#146 def print_warning(name, path); end # Convert a user provided cop name into a properly namespaced name # # @example gives back a correctly qualified cop name # - # cops = RuboCop::Cop::Cop.all - # cops. - # qualified_cop_name('Layout/EndOfLine') # => 'Layout/EndOfLine' + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('Layout/EndOfLine', '') # => 'Layout/EndOfLine' # @example fixes incorrect namespaces # - # cops = RuboCop::Cop::Cop.all - # cops.qualified_cop_name('Lint/EndOfLine') # => 'Layout/EndOfLine' + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('Lint/EndOfLine', '') # => 'Layout/EndOfLine' # @example namespaces bare cop identifiers # - # cops = RuboCop::Cop::Cop.all - # cops.qualified_cop_name('EndOfLine') # => 'Layout/EndOfLine' + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('EndOfLine', '') # => 'Layout/EndOfLine' # @example passes back unrecognized cop names # - # cops = RuboCop::Cop::Cop.all - # cops.qualified_cop_name('NotACop') # => 'NotACop' + # registry = RuboCop::Cop::Registry + # registry.qualified_cop_name('NotACop', '') # => 'NotACop' # @note Emits a warning if the provided name has an incorrect namespace # @param name [String] Cop name extracted from config # @param path [String, nil] Path of file that `name` was extracted from + # @param warn [Boolean] Print a warning if no department given for `name` # @raise [AmbiguousCopName] if a bare identifier with two possible namespaces is provided # @return [String] Qualified cop name # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:103 + # source://rubocop//lib/rubocop/cop/registry.rb#128 def qualified_cop_name(name, path, warn: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:194 + # source://rubocop//lib/rubocop/cop/registry.rb#229 def select(&block); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:187 + # source://rubocop//lib/rubocop/cop/registry.rb#222 def sort!; end # @return [Hash{String => Array}] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:137 + # source://rubocop//lib/rubocop/cop/registry.rb#162 def to_h; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:129 + # source://rubocop//lib/rubocop/cop/registry.rb#154 def unqualified_cop_names; end # @return [Registry] Cops for that specific department. # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:48 + # source://rubocop//lib/rubocop/cop/registry.rb#73 def with_department(department); end # @return [Registry] Cops not for a specific department. # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:54 + # source://rubocop//lib/rubocop/cop/registry.rb#79 def without_department(department); end private - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:248 + # source://rubocop//lib/rubocop/cop/registry.rb#269 def clear_enrollment_queue; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:244 + # source://rubocop//lib/rubocop/cop/registry.rb#265 def initialize_copy(reg); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:264 + # source://rubocop//lib/rubocop/cop/registry.rb#285 def qualify_badge(badge); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:281 + # source://rubocop//lib/rubocop/cop/registry.rb#302 def registered?(badge); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:271 + # source://rubocop//lib/rubocop/cop/registry.rb#292 def resolve_badge(given_badge, real_badge, source_path); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:260 + # source://rubocop//lib/rubocop/cop/registry.rb#281 def with(cops); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:220 + # source://rubocop//lib/rubocop/cop/registry.rb#22 def all; end # Returns the value of attribute global. # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:217 + # source://rubocop//lib/rubocop/cop/registry.rb#260 def global; end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:224 + # source://rubocop//lib/rubocop/cop/registry.rb#26 def qualified_cop_name(name, origin); end - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:238 + # source://rubocop//lib/rubocop/cop/registry.rb#40 def reset!; end # Changes momentarily the global registry # Intended for testing purposes # - # source://rubocop-1.35.1/lib/rubocop/cop/registry.rb:230 + # source://rubocop//lib/rubocop/cop/registry.rb#32 def with_temporary_global(temp_global = T.unsafe(nil)); end end end @@ -27852,64 +28728,67 @@ end # Ensure a require statement is present for a standard library determined # by variable library_name # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/require_library.rb#7 module RuboCop::Cop::RequireLibrary extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#12 def ensure_required(corrector, node, library_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:31 + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#33 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#24 def remove_subsequent_requires(corrector, node, library_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:49 + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#51 def require_any_library?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:54 + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#56 def require_library_name?(param0 = T.unsafe(nil), param1); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/require_library.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/require_library.rb#44 def on_new_investigation; end end +# source://rubocop//lib/rubocop/cop/mixin/require_library.rb#10 +RuboCop::Cop::RequireLibrary::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # This class ensures a require statement is present for a standard library # determined by the variable library_name # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/require_library_corrector.rb:7 +# source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#7 class RuboCop::Cop::RequireLibraryCorrector extend ::RuboCop::Cop::RangeHelp class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/require_library_corrector.rb:11 + # source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#11 def correct(corrector, node, library_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/require_library_corrector.rb:17 + # source://rubocop//lib/rubocop/cop/correctors/require_library_corrector.rb#17 def require_statement(library_name); end end end # Common functionality for checking `rescue` nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/rescue_node.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#6 module RuboCop::Cop::RescueNode - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/rescue_node.rb:7 - def on_new_investigation; end + # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#7 + def modifier_locations; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/rescue_node.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#13 def rescue_modifier?(node); end # @deprecated Use ResbodyNode#exceptions instead # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/rescue_node.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/rescue_node.rb#20 def rescued_exceptions(resbody); end end @@ -27917,28 +28796,28 @@ end # putting parentheses around an assignment to indicate "I know I'm using an # assignment as a condition. It's not a mistake." # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/safe_assignment.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#8 module RuboCop::Cop::SafeAssignment extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/safe_assignment.rb:14 + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#14 def empty_condition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/safe_assignment.rb:20 + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#20 def safe_assignment?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/safe_assignment.rb:17 + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#17 def setter_method?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/safe_assignment.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/safe_assignment.rb#22 def safe_assignment_allowed?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:5 +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#5 module RuboCop::Cop::Security; end # Checks for implementations of the `hash` method which combine @@ -27947,7 +28826,8 @@ module RuboCop::Cop::Security; end # Manually combining hashes is error prone and hard to follow, especially # when there are many values. Poor implementations may also introduce # performance or security concerns if they are prone to collisions. -# Delegating to `Array#hash` is clearer, faster, and safer. +# Delegating to `Array#hash` is clearer and safer, although it might be slower +# depending on the use case. # # @example # @@ -27961,50 +28841,50 @@ module RuboCop::Cop::Security; end # [@foo, @bar].hash # end # -# source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:29 +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#30 class RuboCop::Cop::Security::CompoundHash < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:57 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#58 def bad_hash_combinator?(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:74 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#75 def contained_in_hash_method?(node, &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:41 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#42 def dynamic_hash_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:36 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#37 def hash_method_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:62 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#63 def monuple_hash?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:86 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#87 def on_op_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:86 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#87 def on_send(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:80 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#81 def outer_bad_hash_combinator?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:67 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#68 def redundant_hash?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:50 + # source://rubocop//lib/rubocop/cop/security/compound_hash.rb#51 def static_hash_method_definition?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:30 +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#31 RuboCop::Cop::Security::CompoundHash::COMBINATOR_IN_HASH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:31 +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#32 RuboCop::Cop::Security::CompoundHash::MONUPLE_HASH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/compound_hash.rb:33 +# source://rubocop//lib/rubocop/cop/security/compound_hash.rb#34 RuboCop::Cop::Security::CompoundHash::REDUNDANT_HASH_MSG = T.let(T.unsafe(nil), String) # Checks for the use of `Kernel#eval` and `Binding#eval`. @@ -28016,19 +28896,19 @@ RuboCop::Cop::Security::CompoundHash::REDUNDANT_HASH_MSG = T.let(T.unsafe(nil), # eval(something) # binding.eval(something) # -# source://rubocop-1.35.1/lib/rubocop/cop/security/eval.rb:14 +# source://rubocop//lib/rubocop/cop/security/eval.rb#14 class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/security/eval.rb:19 + # source://rubocop//lib/rubocop/cop/security/eval.rb#19 def eval?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/eval.rb:23 + # source://rubocop//lib/rubocop/cop/security/eval.rb#23 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/eval.rb:15 +# source://rubocop//lib/rubocop/cop/security/eval.rb#15 RuboCop::Cop::Security::Eval::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/eval.rb:16 +# source://rubocop//lib/rubocop/cop/security/eval.rb#16 RuboCop::Cop::Security::Eval::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the first argument to `IO.read`, `IO.binread`, `IO.write`, `IO.binwrite`, @@ -28051,18 +28931,18 @@ RuboCop::Cop::Security::Eval::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # File.read('path') # IO.read('| command') # Allow intentional command invocation. # -# source://rubocop-1.35.1/lib/rubocop/cop/security/io_methods.rb:30 +# source://rubocop//lib/rubocop/cop/security/io_methods.rb#30 class RuboCop::Cop::Security::IoMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/security/io_methods.rb:36 + # source://rubocop//lib/rubocop/cop/security/io_methods.rb#36 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/io_methods.rb:33 +# source://rubocop//lib/rubocop/cop/security/io_methods.rb#33 RuboCop::Cop::Security::IoMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/io_methods.rb:34 +# source://rubocop//lib/rubocop/cop/security/io_methods.rb#34 RuboCop::Cop::Security::IoMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of JSON class methods which have potential @@ -28076,21 +28956,21 @@ RuboCop::Cop::Security::IoMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # JSON.parse("{}") # -# source://rubocop-1.35.1/lib/rubocop/cop/security/json_load.rb:26 +# source://rubocop//lib/rubocop/cop/security/json_load.rb#26 class RuboCop::Cop::Security::JSONLoad < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/security/json_load.rb:33 + # source://rubocop//lib/rubocop/cop/security/json_load.rb#33 def json_load(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/json_load.rb:37 + # source://rubocop//lib/rubocop/cop/security/json_load.rb#37 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/json_load.rb:29 +# source://rubocop//lib/rubocop/cop/security/json_load.rb#29 RuboCop::Cop::Security::JSONLoad::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/json_load.rb:30 +# source://rubocop//lib/rubocop/cop/security/json_load.rb#30 RuboCop::Cop::Security::JSONLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of Marshal class methods which have @@ -28108,19 +28988,19 @@ RuboCop::Cop::Security::JSONLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # okish - deep copy hack # Marshal.load(Marshal.dump({})) # -# source://rubocop-1.35.1/lib/rubocop/cop/security/marshal_load.rb:21 +# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#21 class RuboCop::Cop::Security::MarshalLoad < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/security/marshal_load.rb:26 + # source://rubocop//lib/rubocop/cop/security/marshal_load.rb#26 def marshal_load(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/marshal_load.rb:31 + # source://rubocop//lib/rubocop/cop/security/marshal_load.rb#31 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/marshal_load.rb:22 +# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#22 RuboCop::Cop::Security::MarshalLoad::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/marshal_load.rb:23 +# source://rubocop//lib/rubocop/cop/security/marshal_load.rb#23 RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of `Kernel#open` and `URI.open` with dynamic @@ -28151,51 +29031,51 @@ RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # open("| foo") # URI.open("http://example.com") # -# source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:37 +# source://rubocop//lib/rubocop/cop/security/open.rb#37 class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:46 + # source://rubocop//lib/rubocop/cop/security/open.rb#46 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:42 + # source://rubocop//lib/rubocop/cop/security/open.rb#42 def open?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:75 + # source://rubocop//lib/rubocop/cop/security/open.rb#75 def composite_string?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:83 + # source://rubocop//lib/rubocop/cop/security/open.rb#83 def concatenated_string?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:79 + # source://rubocop//lib/rubocop/cop/security/open.rb#79 def interpolated_string?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:57 + # source://rubocop//lib/rubocop/cop/security/open.rb#57 def safe?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:67 + # source://rubocop//lib/rubocop/cop/security/open.rb#67 def safe_argument?(argument); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:71 + # source://rubocop//lib/rubocop/cop/security/open.rb#71 def simple_string?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:38 +# source://rubocop//lib/rubocop/cop/security/open.rb#38 RuboCop::Cop::Security::Open::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/open.rb:39 +# source://rubocop//lib/rubocop/cop/security/open.rb#39 RuboCop::Cop::Security::Open::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of YAML class methods which have @@ -28214,26 +29094,26 @@ RuboCop::Cop::Security::Open::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # YAML.load("--- !ruby/object:Foo {}", permitted_classes: [Foo]) # Ruby 3.1+ (Psych 4) # YAML.dump(foo) # -# source://rubocop-1.35.1/lib/rubocop/cop/security/yaml_load.rb:26 +# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#26 class RuboCop::Cop::Security::YAMLLoad < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/security/yaml_load.rb:37 + # source://rubocop//lib/rubocop/cop/security/yaml_load.rb#37 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/security/yaml_load.rb:33 + # source://rubocop//lib/rubocop/cop/security/yaml_load.rb#33 def yaml_load(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/security/yaml_load.rb:29 +# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#29 RuboCop::Cop::Security::YAMLLoad::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/security/yaml_load.rb:30 +# source://rubocop//lib/rubocop/cop/security/yaml_load.rb#30 RuboCop::Cop::Security::YAMLLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Severity class is simple value object about severity # -# source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:6 +# source://rubocop//lib/rubocop/cop/severity.rb#6 class RuboCop::Cop::Severity include ::Comparable @@ -28241,205 +29121,211 @@ class RuboCop::Cop::Severity # @raise [ArgumentError] # @return [Severity] a new instance of Severity # - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:30 + # source://rubocop//lib/rubocop/cop/severity.rb#30 def initialize(name_or_code); end - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:62 + # source://rubocop//lib/rubocop/cop/severity.rb#62 def <=>(other); end - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:50 + # source://rubocop//lib/rubocop/cop/severity.rb#50 def ==(other); end - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:42 + # source://rubocop//lib/rubocop/cop/severity.rb#42 def code; end - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:58 + # source://rubocop//lib/rubocop/cop/severity.rb#58 def hash; end - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:46 + # source://rubocop//lib/rubocop/cop/severity.rb#46 def level; end # @api public # @return [Symbol] severity. # any of `:info`, `:refactor`, `:convention`, `:warning`, `:error` or `:fatal`. # - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:22 + # source://rubocop//lib/rubocop/cop/severity.rb#22 def name; end - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:38 + # source://rubocop//lib/rubocop/cop/severity.rb#38 def to_s; end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:24 + # source://rubocop//lib/rubocop/cop/severity.rb#24 def name_from_code(code); end end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:12 +# source://rubocop//lib/rubocop/cop/severity.rb#12 RuboCop::Cop::Severity::CODE_TABLE = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/severity.rb:9 +# source://rubocop//lib/rubocop/cop/severity.rb#9 RuboCop::Cop::Severity::NAMES = T.let(T.unsafe(nil), Array) # Common functionality for cops checking for missing space after # punctuation. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#7 module RuboCop::Cop::SpaceAfterPunctuation - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#10 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:38 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#38 def allowed_type?(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:20 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#20 def each_missing_space(tokens); end # The normal offset, i.e., the distance from the punctuation # token where a space should be, is 1. # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:49 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#49 def offset; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#42 def space_forbidden_before_rcurly?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:30 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#30 def space_missing?(token1, token2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#34 def space_required_before?(token); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_after_punctuation.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/space_after_punctuation.rb#8 RuboCop::Cop::SpaceAfterPunctuation::MSG = T.let(T.unsafe(nil), String) # Common functionality for cops checking for space before # punctuation. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#7 module RuboCop::Cop::SpaceBeforePunctuation include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#12 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:22 + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#22 def each_missing_space(tokens); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:34 + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#34 def space_missing?(token1, token2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:38 + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#38 def space_required_after?(token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:42 + # source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#42 def space_required_after_lcurly?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/space_before_punctuation.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/space_before_punctuation.rb#10 RuboCop::Cop::SpaceBeforePunctuation::MSG = T.let(T.unsafe(nil), String) # This autocorrects whitespace # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/space_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#6 class RuboCop::Cop::SpaceCorrector extend ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::SurroundingSpace class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/space_corrector.rb:36 + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#36 def add_space(processed_source, corrector, left_token, right_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/space_corrector.rb:12 + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#12 def empty_corrections(processed_source, corrector, empty_config, left_token, right_token); end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/space_corrector.rb:10 + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#10 def processed_source; end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/space_corrector.rb:24 + # source://rubocop//lib/rubocop/cop/correctors/space_corrector.rb#24 def remove_space(processed_source, corrector, left_token, right_token); end end end # Common functionality for modifier cops. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#6 module RuboCop::Cop::StatementModifier include ::RuboCop::Cop::LineLengthHelp private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:64 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#78 def code_after(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:88 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#102 def comment_disables_cop?(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:56 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#70 def first_line_comment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:43 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#57 + def if_body_source(if_body); end + + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#43 def length_in_modifier_form(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:82 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#96 def max_line_length; end + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#66 + def method_source(if_body); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:37 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#37 def modifier_fits_on_single_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#26 def non_eligible_body?(body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:33 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#33 def non_eligible_condition?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#19 def non_eligible_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:70 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#84 def parenthesize?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#11 def single_line_as_modifier?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/statement_modifier.rb:50 + # source://rubocop//lib/rubocop/cop/mixin/statement_modifier.rb#50 def to_modifier_form(node); end end @@ -28448,48 +29334,48 @@ end # adding offenses for the faulty string nodes, and with filtering out # nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/string_help.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/string_help.rb#9 module RuboCop::Cop::StringHelp - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/string_help.rb:26 + # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#26 def on_regexp(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/string_help.rb:10 + # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#10 def on_str(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/string_help.rb:32 + # source://rubocop//lib/rubocop/cop/mixin/string_help.rb#32 def inside_interpolation?(node); end end # This autocorrects string literals # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/string_literal_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/string_literal_corrector.rb#6 class RuboCop::Cop::StringLiteralCorrector extend ::RuboCop::PathUtil extend ::RuboCop::Cop::Util class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/string_literal_corrector.rb:10 + # source://rubocop//lib/rubocop/cop/correctors/string_literal_corrector.rb#10 def correct(corrector, node, style); end end end # Common functionality for cops checking single/double quotes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/string_literals_help.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#6 module RuboCop::Cop::StringLiteralsHelp private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/string_literals_help.rb:9 + # source://rubocop//lib/rubocop/cop/mixin/string_literals_help.rb#9 def wrong_quotes?(src_or_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:5 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#5 module RuboCop::Cop::Style; end # Access modifiers should be declared to apply to a group of methods @@ -28549,59 +29435,85 @@ module RuboCop::Cop::Style; end # # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:65 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#70 class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:81 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#91 def access_modifier_with_symbol?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:85 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#95 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:116 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#146 def access_modifier_is_inlined?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:120 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#150 def access_modifier_is_not_inlined?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:99 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#129 def allow_modifiers_on_symbols?(node); end + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#112 + def autocorrect(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#175 + def find_argument_less_modifier_node(node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#164 + def find_corresponding_def_node(node); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:108 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#138 def group_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:112 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#142 def inline_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:124 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#187 + def insert_def(corrector, node, source); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#200 + def insert_inline_modifier(corrector, node, modifier_name); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#154 def message(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:103 + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#133 def offense?(node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#204 + def remove_node(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#181 + def select_grouped_def_nodes(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:68 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#88 +RuboCop::Cop::Style::AccessModifierDeclarations::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#76 RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:73 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#81 RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/access_modifier_declarations.rb:78 +# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#86 RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for grouping of accessors in `class` and `module` bodies. @@ -28634,82 +29546,87 @@ RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsa # attr_reader :baz # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:37 +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#37 class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::VisibilityHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:48 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#48 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:48 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#48 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:48 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#48 def on_sclass(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:96 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#96 def accessor?(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:71 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#71 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:60 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#60 def check(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:84 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#84 def class_send_elements(class_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:131 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#131 def group_accessors(node, accessors); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:100 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#100 def grouped_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:117 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#117 def message(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:122 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#122 def preferred_accessors(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:80 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#80 def previous_line_comment?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:137 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#137 def separate_accessors(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:104 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#104 def separated_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:108 + # source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#108 def sibling_accessors(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:46 +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#46 RuboCop::Cop::Style::AccessorGrouping::ACCESSOR_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:43 +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#43 RuboCop::Cop::Style::AccessorGrouping::GROUPED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/accessor_grouping.rb:44 +# source://rubocop//lib/rubocop/cop/style/accessor_grouping.rb#44 RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), String) # Enforces the use of either `#alias` or `#alias_method` # depending on configuration. # It also flags uses of `alias :symbol` rather than `alias bareword`. # +# However, it will always enforce `method_alias` when used `alias` +# in an instance method definition and in a singleton method definition. +# If used in a block, always enforce `alias_method` +# unless it is an `instance_eval` block. +# # @example EnforcedStyle: prefer_alias (default) # # bad # alias_method :bar, :foo @@ -28725,73 +29642,73 @@ RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), Stri # # good # alias_method :bar, :foo # -# source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:25 +# source://rubocop//lib/rubocop/cop/style/alias.rb#31 class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:142 + # source://rubocop//lib/rubocop/cop/style/alias.rb#150 def identifier(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:45 + # source://rubocop//lib/rubocop/cop/style/alias.rb#51 def on_alias(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:35 + # source://rubocop//lib/rubocop/cop/style/alias.rb#41 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:77 + # source://rubocop//lib/rubocop/cop/style/alias.rb#85 def add_offense_for_args(node, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:69 + # source://rubocop//lib/rubocop/cop/style/alias.rb#75 def alias_keyword_possible?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:73 + # source://rubocop//lib/rubocop/cop/style/alias.rb#79 def alias_method_possible?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:59 + # source://rubocop//lib/rubocop/cop/style/alias.rb#65 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:116 + # source://rubocop//lib/rubocop/cop/style/alias.rb#124 def bareword?(sym_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:120 + # source://rubocop//lib/rubocop/cop/style/alias.rb#128 def correct_alias_method_to_alias(corrector, send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:127 + # source://rubocop//lib/rubocop/cop/style/alias.rb#135 def correct_alias_to_alias_method(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:136 + # source://rubocop//lib/rubocop/cop/style/alias.rb#144 def correct_alias_with_symbol_args(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:105 + # source://rubocop//lib/rubocop/cop/style/alias.rb#113 def lexical_scope_type(node); end # In this expression, will `self` be the same as the innermost enclosing # class or module block (:lexical)? Or will it be something else # (:dynamic)? If we're in an instance_eval block, return that. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:88 + # source://rubocop//lib/rubocop/cop/style/alias.rb#96 def scope_type(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:29 +# source://rubocop//lib/rubocop/cop/style/alias.rb#35 RuboCop::Cop::Style::Alias::MSG_ALIAS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:30 +# source://rubocop//lib/rubocop/cop/style/alias.rb#36 RuboCop::Cop::Style::Alias::MSG_ALIAS_METHOD = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:31 +# source://rubocop//lib/rubocop/cop/style/alias.rb#37 RuboCop::Cop::Style::Alias::MSG_SYMBOL_ARGS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/alias.rb:33 +# source://rubocop//lib/rubocop/cop/style/alias.rb#39 RuboCop::Cop::Style::Alias::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `and` and `or`, and suggests using `&&` and @@ -28827,31 +29744,31 @@ RuboCop::Cop::Style::Alias::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # if foo && bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:44 +# source://rubocop//lib/rubocop/cop/style/and_or.rb#44 class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:51 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:51 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#51 def on_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:56 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#56 def on_while_post(node); end private @@ -28861,40 +29778,40 @@ class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base # recurse down a level and add parens to 'obj.method arg' # however, 'not x' also parses as (send x :!) # - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:117 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#117 def correct_not(node, receiver, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:129 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#129 def correct_other(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:95 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#95 def correct_send(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:108 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#108 def correct_setter(node, corrector); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:143 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#143 def correctable_send?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:135 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#135 def keep_operator_precedence(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:91 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#91 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:85 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#85 def on_conditionals(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:66 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#66 def process_logical_operator(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:147 + # source://rubocop//lib/rubocop/cop/style/and_or.rb#147 def whitespace_before_arg(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/and_or.rb:49 +# source://rubocop//lib/rubocop/cop/style/and_or.rb#49 RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # In Ruby 2.7, arguments forwarding has been added. @@ -28938,58 +29855,58 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String) # bar(**kwargs) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:49 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#49 class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:72 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#72 def forwarding_method_arguments?(param0 = T.unsafe(nil), param1, param2, param3); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:84 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#84 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:84 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#84 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:64 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#64 def only_rest_arguments?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:59 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#59 def use_rest_arguments?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:115 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#115 def all_lvars_as_forwarding_method_arguments?(def_node, forwarding_method); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:148 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#148 def allow_only_rest_arguments?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:142 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#142 def arguments_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:102 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#102 def extract_argument_names_from(args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:109 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#109 def forwarding_method?(node, rest_arg, kwargs, block_arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:124 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#124 def register_offense_to_forwarding_method_arguments(forwarding_method); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:133 + # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#133 def register_offense_to_method_definition_arguments(method_definition); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/arguments_forwarding.rb:56 +# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#56 RuboCop::Cop::Style::ArgumentsForwarding::MSG = T.let(T.unsafe(nil), String) # Enforces the use of `Array()` instead of explicit `Array` check or `[*var]`. @@ -29007,29 +29924,100 @@ RuboCop::Cop::Style::ArgumentsForwarding::MSG = T.let(T.unsafe(nil), String) # # good (and a bit more readable) # Array(paths).each { |path| do_something(path) } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:41 +# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#41 class RuboCop::Cop::Style::ArrayCoercion < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:48 + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#48 def array_splat?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:63 + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#63 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:74 + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#74 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:53 + # source://rubocop//lib/rubocop/cop/style/array_coercion.rb#53 def unless_array?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:45 +# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#45 RuboCop::Cop::Style::ArrayCoercion::CHECK_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/array_coercion.rb:44 +# source://rubocop//lib/rubocop/cop/style/array_coercion.rb#44 RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String) +# In Ruby 3.1, `Array#intersect?` has been added. +# +# This cop identifies places where `(array1 & array2).any?` +# can be replaced by `array1.intersect?(array2)`. +# +# The `array1.intersect?(array2)` method is faster than +# `(array1 & array2).any?` and is more readable. +# +# @example +# # bad +# (array1 & array2).any? +# (array1 & array2).empty? +# +# # good +# array1.intersect?(array2) +# !array1.intersect?(array2) +# @example AllCops:ActiveSupportExtensionsEnabled: false (default) +# # good +# (array1 & array2).present? +# (array1 & array2).blank? +# @example AllCops:ActiveSupportExtensionsEnabled: true +# # bad +# (array1 & array2).present? +# (array1 & array2).blank? +# +# # good +# array1.intersect?(array2) +# !array1.intersect?(array2) +# +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#40 +class RuboCop::Cop::Style::ArrayIntersect < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#56 + def active_support_bad_intersection_check?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#70 + def on_send(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#47 + def regular_bad_intersection_check?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#86 + def bad_intersection_check?(node); end + + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#98 + def message(receiver, argument, method_name); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/array_intersect.rb#94 + def straight?(method_name); end +end + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#64 +RuboCop::Cop::Style::ArrayIntersect::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#67 +RuboCop::Cop::Style::ArrayIntersect::NEGATED_METHODS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#68 +RuboCop::Cop::Style::ArrayIntersect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/array_intersect.rb#66 +RuboCop::Cop::Style::ArrayIntersect::STRAIGHT_METHODS = T.let(T.unsafe(nil), Array) + # Checks for uses of "*" as a substitute for _join_. # # Not all cases can reliably checked, due to Ruby's dynamic @@ -29044,48 +30032,48 @@ RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String) # # good # %w(foo bar baz).join(",") # -# source://rubocop-1.35.1/lib/rubocop/cop/style/array_join.rb:20 +# source://rubocop//lib/rubocop/cop/style/array_join.rb#20 class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/array_join.rb:27 + # source://rubocop//lib/rubocop/cop/style/array_join.rb#27 def join_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/array_join.rb:29 + # source://rubocop//lib/rubocop/cop/style/array_join.rb#29 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/array_join.rb:23 +# source://rubocop//lib/rubocop/cop/style/array_join.rb#23 RuboCop::Cop::Style::ArrayJoin::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/array_join.rb:24 +# source://rubocop//lib/rubocop/cop/style/array_join.rb#24 RuboCop::Cop::Style::ArrayJoin::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:16 +# source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#16 class RuboCop::Cop::Style::AsciiComments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:21 + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#21 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:51 + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#51 def allowed_non_ascii_chars; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:42 + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#42 def first_non_ascii_chars(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:32 + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#32 def first_offense_range(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:46 + # source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#46 def only_allowed_non_ascii_chars?(string); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/ascii_comments.rb:19 +# source://rubocop//lib/rubocop/cop/style/ascii_comments.rb#19 RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String) # Checks for uses of Module#attr. @@ -29099,33 +30087,33 @@ RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String) # attr_accessor :something # attr_reader :one, :two, :three # -# source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:17 +# source://rubocop//lib/rubocop/cop/style/attr.rb#17 class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:64 + # source://rubocop//lib/rubocop/cop/style/attr.rb#64 def class_eval?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:24 + # source://rubocop//lib/rubocop/cop/style/attr.rb#24 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:37 + # source://rubocop//lib/rubocop/cop/style/attr.rb#37 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:49 + # source://rubocop//lib/rubocop/cop/style/attr.rb#49 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:53 + # source://rubocop//lib/rubocop/cop/style/attr.rb#53 def replacement_method(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:21 +# source://rubocop//lib/rubocop/cop/style/attr.rb#21 RuboCop::Cop::Style::Attr::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/attr.rb:22 +# source://rubocop//lib/rubocop/cop/style/attr.rb#22 RuboCop::Cop::Style::Attr::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for cases when you could use a block @@ -29142,26 +30130,26 @@ RuboCop::Cop::Style::Attr::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/auto_resource_cleanup.rb:19 +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#19 class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/auto_resource_cleanup.rb:26 + # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#26 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/auto_resource_cleanup.rb:41 + # source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#41 def cleanup?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/auto_resource_cleanup.rb:20 +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#20 RuboCop::Cop::Style::AutoResourceCleanup::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/auto_resource_cleanup.rb:24 +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#24 RuboCop::Cop::Style::AutoResourceCleanup::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/auto_resource_cleanup.rb:22 +# source://rubocop//lib/rubocop/cop/style/auto_resource_cleanup.rb#22 RuboCop::Cop::Style::AutoResourceCleanup::TARGET_METHODS = T.let(T.unsafe(nil), Hash) # Checks if usage of %() or %Q() matches configuration. @@ -29183,37 +30171,37 @@ RuboCop::Cop::Style::AutoResourceCleanup::TARGET_METHODS = T.let(T.unsafe(nil), # %Q|He said: "#{greeting}"| # %q/She said: 'Hi'/ # -# source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:26 +# source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#26 class RuboCop::Cop::Style::BarePercentLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:32 + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#32 def on_dstr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:36 + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#36 def on_str(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:63 + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#63 def add_offense_for_wrong_style(node, good, bad); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:42 + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#42 def check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:59 + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#59 def requires_bare_percent?(source); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:55 + # source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#55 def requires_percent_q?(source); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/bare_percent_literals.rb:30 +# source://rubocop//lib/rubocop/cop/style/bare_percent_literals.rb#30 RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String) # This cop checks for BEGIN blocks. @@ -29222,13 +30210,13 @@ RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String) # # bad # BEGIN { test } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/begin_block.rb:13 +# source://rubocop//lib/rubocop/cop/style/begin_block.rb#13 class RuboCop::Cop::Style::BeginBlock < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/begin_block.rb:16 + # source://rubocop//lib/rubocop/cop/style/begin_block.rb#16 def on_preexe(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/begin_block.rb:14 +# source://rubocop//lib/rubocop/cop/style/begin_block.rb#14 RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String) # Checks for places where `attr_reader` and `attr_writer` @@ -29246,7 +30234,7 @@ RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String) # attr_accessor :bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:21 +# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#21 class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -29255,54 +30243,54 @@ class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Base # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:55 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 def after_class(class_node); end # Each offending macro is captured and registered in `on_class` but correction # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:55 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 def after_module(class_node); end # Each offending macro is captured and registered in `on_class` but correction # happens in `after_class` because a macro might have multiple attributes # rewritten from it # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:55 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#55 def after_sclass(class_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:33 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_class(class_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:33 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_module(class_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:29 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#29 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:33 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#33 def on_sclass(class_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:102 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#102 def correct_reader(corrector, macro, node, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:114 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#114 def correct_writer(corrector, macro, node, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:91 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#91 def find_bisection(macros); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:74 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#74 def find_macros(class_def); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:98 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#98 def register_offense(attr); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor.rb:27 +# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor.rb#27 RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String) # Representation of an `attr_reader`, `attr_writer` or `attr` macro @@ -29310,79 +30298,79 @@ RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String) # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:10 +# source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#10 class RuboCop::Cop::Style::BisectedAttrAccessor::Macro include ::RuboCop::Cop::VisibilityHelp # @api private # @return [Macro] a new instance of Macro # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:19 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#19 def initialize(node); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:49 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#49 def all_bisected?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:29 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#29 def attr_names; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:13 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 def attrs; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:25 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#25 def bisect(*names); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:33 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#33 def bisected_names; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:13 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 def bisection; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:13 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#13 def node; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:41 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#41 def reader?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:53 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#53 def rest; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:37 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#37 def visibility; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:45 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#45 def writer?; end class << self # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb:15 + # source://rubocop//lib/rubocop/cop/style/bisected_attr_accessor/macro.rb#15 def macro?(node); end end end @@ -29400,30 +30388,30 @@ end # # Multiple lines # # of comments... # -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:19 +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#19 class RuboCop::Cop::Style::BlockComments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:27 + # source://rubocop//lib/rubocop/cop/style/block_comments.rb#27 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:56 + # source://rubocop//lib/rubocop/cop/style/block_comments.rb#56 def eq_end_part(comment, expr); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:48 + # source://rubocop//lib/rubocop/cop/style/block_comments.rb#48 def parts(comment); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:24 +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#24 RuboCop::Cop::Style::BlockComments::BEGIN_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:25 +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#25 RuboCop::Cop::Style::BlockComments::END_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_comments.rb:23 +# source://rubocop//lib/rubocop/cop/style/block_comments.rb#23 RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) # Check for uses of braces or do/end around single line or @@ -29434,7 +30422,7 @@ RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) # `lambda`, `proc`, and `it` are their defaults. # Additional methods can be added to the `AllowedMethods`. # -# @example AllowedPatterns: [/map/] +# @example AllowedPatterns: ['map'] # # # good # things.map { |thing| @@ -29580,7 +30568,7 @@ RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) # process(something) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:168 +# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#168 class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods @@ -29588,196 +30576,194 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:194 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#194 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:194 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#194 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:179 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#179 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:443 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#443 def array_or_range?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:208 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#208 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:447 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#447 def begin_required?(block_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:236 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#236 def braces_for_chaining_message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:384 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#384 def braces_for_chaining_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:248 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#248 def braces_required_message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:361 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#361 def braces_required_method?(method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:365 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#365 def braces_required_methods; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:394 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#394 def braces_style?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:439 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#439 def conditional?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:398 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#398 def correction_would_break_code?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:309 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#309 def end_of_chain(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:408 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#408 def functional_block?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:404 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#404 def functional_method?(method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:320 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#320 def get_blocks(node, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:369 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#369 def line_count_based_block_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:218 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#218 def line_count_based_message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:252 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#252 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:300 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#300 def move_comment_before_block(corrector, comment, block_node, closing_brace); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:416 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#416 def procedural_method?(method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:412 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#412 def procedural_oneliners_may_have_braces?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:338 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#338 def proper_block_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:263 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#263 def replace_braces_with_do_end(corrector, loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:279 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#279 def replace_do_end_with_braces(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:432 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#432 def return_value_of_scope?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:420 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#420 def return_value_used?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:373 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#373 def semantic_block_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:226 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#226 def semantic_message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:349 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#349 def special_method?(method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:355 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#355 def special_method_proper_block_style?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:296 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#296 def whitespace_after?(range, length = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:292 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#292 def whitespace_before?(range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:316 + # source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#316 def with_block?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:175 +# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#175 RuboCop::Cop::Style::BlockDelimiters::ALWAYS_BRACES_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/block_delimiters.rb:177 +# source://rubocop//lib/rubocop/cop/style/block_delimiters.rb#177 RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(nil), String) # Corrector to correct conditional assignment in `case` statements. # -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:609 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#609 class RuboCop::Cop::Style::CaseCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:614 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#614 def correct(corrector, cop, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:624 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#624 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:644 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#644 def extract_branches(case_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:638 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#638 def extract_tail_branches(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:654 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#654 def move_branch_inside_condition(corrector, branch, condition, assignment, column); end end end -# Checks for uses of the case equality operator(===). -# -# If `AllowOnConstant` option is enabled, the cop will ignore violations when the receiver of -# the case equality operator is a constant. +# If `AllowOnSelfClass` option is enabled, the cop will ignore violations when the receiver of +# the case equality operator is `self.class`. Note intermediate variables are not accepted. # # @example # # bad @@ -29794,32 +30780,50 @@ end # @example AllowOnConstant: true # # good # Array === something +# @example AllowOnSelfClass: false (default) +# # bad +# self.class === something +# @example AllowOnSelfClass: true +# # good +# self.class === something # -# source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:29 +# source://rubocop//lib/rubocop/cop/style/case_equality.rb#40 class RuboCop::Cop::Style::CaseEquality < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:36 + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#47 def case_equality?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:38 + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#52 def on_send(node); end + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#50 + def self_class?(param0 = T.unsafe(nil)); end + private + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#90 + def begin_replacement(lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#96 + def const_replacement(lhs, rhs); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:51 - def const?(node); end + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#65 + def offending_receiver?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:59 + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#72 def replacement(lhs, rhs); end + + # source://rubocop//lib/rubocop/cop/style/case_equality.rb#100 + def send_replacement(lhs, rhs); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:32 +# source://rubocop//lib/rubocop/cop/style/case_equality.rb#43 RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/case_equality.rb:33 +# source://rubocop//lib/rubocop/cop/style/case_equality.rb#44 RuboCop::Cop::Style::CaseEquality::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `if-elsif` constructions @@ -29845,90 +30849,90 @@ RuboCop::Cop::Style::CaseEquality::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # final_action # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:34 +# source://rubocop//lib/rubocop/cop/style/case_like_if.rb#34 class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:40 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#40 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:64 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#64 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:214 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#214 def branch_conditions(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:232 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#232 def class_reference?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:149 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#149 def collect_conditions(node, target, conditions); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:203 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#203 def condition_from_binary_op(lhs, rhs, target); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:185 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#185 def condition_from_equality_node(node, target); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:196 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#196 def condition_from_include_or_cover_node(node, target); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:191 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#191 def condition_from_match_node(node, target); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:168 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#168 def condition_from_send_node(node, target); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:223 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#223 def const_reference?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:241 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#241 def correction_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:236 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#236 def deparenthesize(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:85 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#85 def find_target(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:119 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#119 def find_target_in_equality_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:131 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#131 def find_target_in_include_or_cover_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:137 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#137 def find_target_in_match_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:104 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#104 def find_target_in_send_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:257 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#257 def regexp_with_named_captures?(node); end # Named captures work with `=~` (if regexp is on lhs) and with `match` (both sides) # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:246 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#246 def regexp_with_working_captures?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:79 + # source://rubocop//lib/rubocop/cop/style/case_like_if.rb#79 def should_check?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/case_like_if.rb:38 +# source://rubocop//lib/rubocop/cop/style/case_like_if.rb#38 RuboCop::Cop::Style::CaseLikeIf::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the character literal ?x. @@ -29950,33 +30954,33 @@ RuboCop::Cop::Style::CaseLikeIf::MSG = T.let(T.unsafe(nil), String) # ?\C-\M-d # "\C-\M-d" # same as above # -# source://rubocop-1.35.1/lib/rubocop/cop/style/character_literal.rb:24 +# source://rubocop//lib/rubocop/cop/style/character_literal.rb#24 class RuboCop::Cop::Style::CharacterLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::StringHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/character_literal.rb:35 + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#35 def autocorrect(corrector, node); end # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/character_literal.rb:53 + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#53 def correct_style_detected; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/character_literal.rb:30 + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#30 def offense?(node); end # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/character_literal.rb:49 + # source://rubocop//lib/rubocop/cop/style/character_literal.rb#49 def opposite_style_detected; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/character_literal.rb:28 +# source://rubocop//lib/rubocop/cop/style/character_literal.rb#28 RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String) # Checks the style of children definitions at classes and @@ -29997,89 +31001,89 @@ RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String) # class Foo::Bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:33 +# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#33 class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:41 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#41 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:47 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#47 def on_module(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:88 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#88 def add_trailing_end(corrector, node, padding); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:177 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#177 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:166 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#166 def check_compact_style(node, body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:158 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#158 def check_nested_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:148 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#148 def check_style(node, body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:93 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#93 def compact_definition(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:114 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#114 def compact_identifier_name(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:99 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#99 def compact_node(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:187 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#187 def compact_node_name?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:104 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#104 def compact_replacement(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:127 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#127 def configured_indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:144 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#144 def indent_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:140 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#140 def leading_spaces(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:183 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#183 def needs_compacting?(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:61 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#61 def nest_definition(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:53 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#53 def nest_or_compact(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:119 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#119 def remove_end(corrector, body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:70 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#70 def replace_namespace_keyword(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:79 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#79 def split_on_double_colon(corrector, node, padding); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:131 + # source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#131 def unindent(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:39 +# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#39 RuboCop::Cop::Style::ClassAndModuleChildren::COMPACT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_and_module_children.rb:38 +# source://rubocop//lib/rubocop/cop/style/class_and_module_children.rb#38 RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), String) # Enforces consistent use of `Object#is_a?` or `Object#kind_of?`. @@ -30101,22 +31105,22 @@ RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), S # var.kind_of?(Time) # var.kind_of?(String) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_check.rb:26 +# source://rubocop//lib/rubocop/cop/style/class_check.rb#26 class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_check.rb:44 + # source://rubocop//lib/rubocop/cop/style/class_check.rb#44 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_check.rb:33 + # source://rubocop//lib/rubocop/cop/style/class_check.rb#33 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_check.rb:30 +# source://rubocop//lib/rubocop/cop/style/class_check.rb#30 RuboCop::Cop::Style::ClassCheck::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_check.rb:31 +# source://rubocop//lib/rubocop/cop/style/class_check.rb#31 RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of `Object#instance_of?` instead of class comparison @@ -30160,7 +31164,7 @@ RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # var.class.equal?(Date) # var.class.eql?(Date) # var.class.name == 'Date' -# @example AllowedPatterns: [`/eq/`] +# @example AllowedPatterns: ['eq'] # # good # var.instance_of?(Date) # var.class.equal?(Date) @@ -30170,32 +31174,32 @@ RuboCop::Cop::Style::ClassCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # var.class == Date # var.class.name == 'Date' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:61 +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#61 class RuboCop::Cop::Style::ClassEqualityComparison < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:72 + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#72 def class_comparison_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:78 + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#78 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:96 + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#96 def class_name(class_node, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:108 + # source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#110 def offense_range(receiver_node, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:67 +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#67 RuboCop::Cop::Style::ClassEqualityComparison::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_equality_comparison.rb:69 +# source://rubocop//lib/rubocop/cop/style/class_equality_comparison.rb#69 RuboCop::Cop::Style::ClassEqualityComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of the class/module name instead of @@ -30216,23 +31220,23 @@ RuboCop::Cop::Style::ClassEqualityComparison::RESTRICT_ON_SEND = T.let(T.unsafe( # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods.rb:23 +# source://rubocop//lib/rubocop/cop/style/class_methods.rb#23 class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods.rb:28 + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods.rb:28 + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#28 def on_module(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods.rb:41 + # source://rubocop//lib/rubocop/cop/style/class_methods.rb#41 def check_defs(name, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods.rb:26 +# source://rubocop//lib/rubocop/cop/style/class_methods.rb#26 RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String) # Enforces using `def self.method_name` or `class << self` to define class methods. @@ -30289,7 +31293,7 @@ RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:61 +# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#61 class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::CommentsHelp @@ -30297,46 +31301,46 @@ class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:81 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#81 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:71 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#71 def on_sclass(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:95 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#95 def all_methods_public?(sclass_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:115 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#115 def autocorrect_sclass(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:102 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#102 def def_nodes(sclass_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:91 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#91 def def_self_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:141 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#141 def extract_def_from_sclass(def_node, sclass_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:152 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#152 def indentation_diff(node1, node2); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:137 + # source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#137 def sclass_only_has_methods?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:68 +# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#68 RuboCop::Cop::Style::ClassMethodsDefinitions::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_methods_definitions.rb:69 +# source://rubocop//lib/rubocop/cop/style/class_methods_definitions.rb#69 RuboCop::Cop::Style::ClassMethodsDefinitions::MSG_SCLASS = T.let(T.unsafe(nil), String) # Checks for uses of class variables. Offenses @@ -30381,19 +31385,19 @@ RuboCop::Cop::Style::ClassMethodsDefinitions::MSG_SCLASS = T.let(T.unsafe(nil), # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_vars.rb:48 +# source://rubocop//lib/rubocop/cop/style/class_vars.rb#48 class RuboCop::Cop::Style::ClassVars < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_vars.rb:52 + # source://rubocop//lib/rubocop/cop/style/class_vars.rb#52 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/class_vars.rb:56 + # source://rubocop//lib/rubocop/cop/style/class_vars.rb#56 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_vars.rb:49 +# source://rubocop//lib/rubocop/cop/style/class_vars.rb#49 RuboCop::Cop::Style::ClassVars::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/class_vars.rb:50 +# source://rubocop//lib/rubocop/cop/style/class_vars.rb#50 RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where custom logic on rejection nils from arrays @@ -30416,41 +31420,49 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # hash.compact! # -# source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:34 +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#36 class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:70 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#72 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:50 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#52 def reject_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:43 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#45 def reject_method_with_block_pass?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:60 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#62 def select_method?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:97 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#106 def good_method_name(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:81 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#84 def offense_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:105 + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#114 def range(begin_pos_node, end_pos_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#100 + def to_enum_method?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:38 +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#40 RuboCop::Cop::Style::CollectionCompact::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/collection_compact.rb:40 +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#41 RuboCop::Cop::Style::CollectionCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#42 +RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), Array) + # Enforces the use of consistent method names # from the Enumerable module. # @@ -30481,41 +31493,41 @@ RuboCop::Cop::Style::CollectionCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # items.select # items.include? # -# source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:41 +# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#41 class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:47 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#47 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:47 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#47 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:53 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#53 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:61 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#61 def check_method_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:70 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#70 def implicit_block?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:78 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#78 def message(node); end # Some enumerable methods accept a bare symbol (ie. _not_ Symbol#to_proc) instead # of a block. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:84 + # source://rubocop//lib/rubocop/cop/style/collection_methods.rb#84 def methods_accepting_symbol; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/collection_methods.rb:45 +# source://rubocop//lib/rubocop/cop/style/collection_methods.rb#45 RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) # Checks for methods invoked via the :: operator instead @@ -30532,23 +31544,23 @@ RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) # FileUtils.rmdir(dir) # Marshal.dump(obj) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_call.rb:20 +# source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#20 class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_call.rb:26 + # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#26 def java_type_node?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_call.rb:35 + # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#35 def on_send(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_call.rb:31 + # source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#31 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_call.rb:23 +# source://rubocop//lib/rubocop/cop/style/colon_method_call.rb#23 RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) # Checks for class methods that are defined using the `::` @@ -30567,15 +31579,15 @@ RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_definition.rb:22 +# source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#22 class RuboCop::Cop::Style::ColonMethodDefinition < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_definition.rb:27 + # source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#27 def on_defs(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/colon_method_definition.rb:25 +# source://rubocop//lib/rubocop/cop/style/colon_method_definition.rb#25 RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Checks for places where multiple consecutive loops over the same data @@ -30627,31 +31639,31 @@ RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) # each_slice(3) { |slice| do_something(slice) } # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:59 +# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#59 class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:62 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#62 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:71 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#71 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:62 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#62 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:80 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#80 def collection_looping_method?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:86 + # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#86 def same_collection_looping?(node, sibling); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/combinable_loops.rb:60 +# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#60 RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String) # Enforces using `` or %x around command literals. @@ -30723,75 +31735,75 @@ RuboCop::Cop::Style::CombinableLoops::MSG = T.let(T.unsafe(nil), String) # # good # `echo \`ls\`` # -# source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:78 +# source://rubocop//lib/rubocop/cop/style/command_literal.rb#78 class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:85 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#85 def on_xstr(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:146 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#146 def allow_inner_backticks?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:122 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#122 def allowed_backtick_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:131 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#131 def allowed_percent_x_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:109 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#109 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:159 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#159 def backtick_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:97 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#97 def check_backtick_literal(node, message); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:103 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#103 def check_percent_x_literal(node, message); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:167 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#167 def command_delimiter; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:150 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#150 def contains_backtick?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:142 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#142 def contains_disallowed_backtick?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:171 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#171 def default_delimiter; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:154 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#154 def node_body(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:163 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#163 def preferred_delimiter; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:175 + # source://rubocop//lib/rubocop/cop/style/command_literal.rb#175 def preferred_delimiters_config; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:82 +# source://rubocop//lib/rubocop/cop/style/command_literal.rb#82 RuboCop::Cop::Style::CommandLiteral::MSG_USE_BACKTICKS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/command_literal.rb:83 +# source://rubocop//lib/rubocop/cop/style/command_literal.rb#83 RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), String) # Checks that comment annotation keywords are written according @@ -30849,51 +31861,51 @@ RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), St # # good # # OPTIMIZE does not work # -# source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:61 +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#61 class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:73 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#73 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:110 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#110 def annotation_range(annotation); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:114 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#114 def correct_offense(corrector, range, keyword); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:102 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#102 def first_comment_line?(comments, index); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:106 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#106 def inline_comment?(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:124 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#124 def keywords; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:87 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#87 def register_offense(annotation); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:120 + # source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#120 def requires_colon?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:71 +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#71 RuboCop::Cop::Style::CommentAnnotation::MISSING_NOTE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:65 +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#65 RuboCop::Cop::Style::CommentAnnotation::MSG_COLON_STYLE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/comment_annotation.rb:68 +# source://rubocop//lib/rubocop/cop/style/comment_annotation.rb#68 RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), String) # Checks for comments put on the same line as some keywords. @@ -30929,46 +31941,91 @@ RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), S # y # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:43 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#43 class RuboCop::Cop::Style::CommentedKeyword < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:57 + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#57 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:80 + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#80 def offensive?(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:67 + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#67 def register_offense(comment, matched_keyword); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:86 + # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#86 def source_line(comment); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:52 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#52 RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:53 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#53 RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENT_REGEXES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:49 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#49 RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:50 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#50 RuboCop::Cop::Style::CommentedKeyword::KEYWORD_REGEXES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:47 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#47 RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/commented_keyword.rb:55 +# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#55 RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp) +# Enforces the use of `Array#push(item)` instead of `Array#concat([item])` +# to avoid redundant array literals. +# +# @example +# +# # bad +# list.concat([foo]) +# list.concat([bar, baz]) +# list.concat([qux, quux], [corge]) +# +# # good +# list.push(foo) +# list.push(bar, baz) +# list.push(qux, quux, corge) +# +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#25 +class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#61 + def offense_range(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#78 + def percent_literals_includes_only_basic_literals?(node); end + + # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#65 + def preferred_method(node); end +end + +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#28 +RuboCop::Cop::Style::ConcatArrayLiterals::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#29 +RuboCop::Cop::Style::ConcatArrayLiterals::MSG_FOR_PERCENT_LITERALS = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#31 +RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Check for `if` and `case` statements where each branch is used for # assignment to the same variable when using the return of the # condition can be used instead. @@ -31062,7 +32119,7 @@ RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp) # bar = 2 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:210 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#210 class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::ConditionalAssignmentHelper include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -31071,88 +32128,88 @@ class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base # The shovel operator `<<` does not have its own type. It is a `send` # type. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:230 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#230 def assignment_type?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:311 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#311 def candidate_condition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_and_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:266 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#266 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:276 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#276 def on_case_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:252 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#252 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_masgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_op_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:238 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#238 def on_or_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:246 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#246 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:317 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#317 def allowed_single_line?(branches); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:388 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#388 def allowed_statements?(branches); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:313 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#313 def allowed_ternary?(assignment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:321 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#321 def assignment_node(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:365 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#365 def assignment_types_match?(*nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:380 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#380 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:306 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#306 def candidate_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:288 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#288 def check_assignment_to_condition(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:371 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#371 def check_node(node, branches); end # If `Layout/LineLength` is enabled, we do not want to introduce an @@ -31165,95 +32222,95 @@ class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:404 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#404 def correction_exceeds_line_limit?(node, branches); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:439 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#439 def include_ternary?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:431 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#431 def indentation_width; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:358 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#358 def lhs_all_match?(branches); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:423 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#423 def line_length_cop_enabled?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:416 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#416 def longest_line(node, assignment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:412 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#412 def longest_line_exceeds_line_limit?(node, assignment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:427 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#427 def max_line_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:342 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#342 def move_assignment_inside_condition(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:332 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#332 def move_assignment_outside_condition(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:435 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#435 def single_line_conditions_only?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:354 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#354 def ternary_condition?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:219 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#219 RuboCop::Cop::Style::ConditionalAssignment::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:217 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#217 RuboCop::Cop::Style::ConditionalAssignment::ASSIGN_TO_CONDITION_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:222 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#222 RuboCop::Cop::Style::ConditionalAssignment::ENABLED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:221 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#221 RuboCop::Cop::Style::ConditionalAssignment::INDENTATION_WIDTH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:220 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#220 RuboCop::Cop::Style::ConditionalAssignment::LINE_LENGTH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:223 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#223 RuboCop::Cop::Style::ConditionalAssignment::MAX = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:216 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#216 RuboCop::Cop::Style::ConditionalAssignment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:224 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#224 RuboCop::Cop::Style::ConditionalAssignment::SINGLE_LINE_CONDITIONS_ONLY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:218 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#218 RuboCop::Cop::Style::ConditionalAssignment::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:225 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#225 RuboCop::Cop::Style::ConditionalAssignment::WIDTH = T.let(T.unsafe(nil), String) # Helper module to provide common methods to classes needed for the # ConditionalAssignment Cop. # -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:8 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#8 module RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::AST::NodePattern::Macros # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:64 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#64 def end_with_eq?(sym); end # `elsif` branches show up in the `node` as an `else`. We need @@ -31261,79 +32318,79 @@ module RuboCop::Cop::Style::ConditionalAssignmentHelper # but the last `node` an `elsif` branch and consider the last `node` # the actual `else` branch. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:20 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#20 def expand_elses(branch); end # `when` nodes contain the entire branch including the condition. # We only need the contents of the branch, not the condition. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:28 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#28 def expand_when_branches(when_branches); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:55 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#55 def indent(cop, source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:37 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#37 def lhs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:32 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#32 def tail(branch); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:109 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#109 def assignment_rhs_exist?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:70 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#70 def expand_elsif(node, elsif_branches = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:96 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#96 def lhs_for_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:83 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#83 def lhs_for_send(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:105 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#105 def setter_method?(method_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:13 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#13 RuboCop::Cop::Style::ConditionalAssignmentHelper::ALIGN_WITH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:12 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#12 RuboCop::Cop::Style::ConditionalAssignmentHelper::END_ALIGNMENT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:11 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#11 RuboCop::Cop::Style::ConditionalAssignmentHelper::EQUAL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:14 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#14 RuboCop::Cop::Style::ConditionalAssignmentHelper::KEYWORD = T.let(T.unsafe(nil), String) # Helper module to provide common methods to ConditionalAssignment # correctors # -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:446 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#446 module RuboCop::Cop::Style::ConditionalCorrectorHelper - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:465 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#465 def assignment(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:495 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#495 def correct_branches(corrector, branches); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:472 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#472 def correct_if_branches(corrector, cop, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:447 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#447 def remove_whitespace_in_branches(corrector, branch, condition, column); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:482 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#482 def replace_branch_assignment(corrector, branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:458 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#458 def white_space_range(node, column); end end @@ -31376,95 +32433,95 @@ end # MyClass = Struct.new() # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:47 +# source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#47 class RuboCop::Cop::Style::ConstantVisibility < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:51 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#51 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:96 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#96 def visibility_declaration_for?(param0 = T.unsafe(nil), param1); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:76 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#76 def class_or_module_scope?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:62 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#62 def ignore_modules?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:100 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#100 def match_name?(name, constant_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:70 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#70 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:66 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#66 def module?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:87 + # source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#87 def visibility_declaration?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/constant_visibility.rb:48 +# source://rubocop//lib/rubocop/cop/style/constant_visibility.rb#48 RuboCop::Cop::Style::ConstantVisibility::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:18 +# source://rubocop//lib/rubocop/cop/style/copyright.rb#18 class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:25 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#25 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:44 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#44 def autocorrect_notice; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:75 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#75 def encoding_token?(processed_source, token_index); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:61 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#61 def insert_notice_before(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:40 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#40 def notice; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:82 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#82 def notice_found?(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:48 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#48 def offense_range; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:68 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#68 def shebang_token?(processed_source, token_index); end # @raise [Warning] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:52 + # source://rubocop//lib/rubocop/cop/style/copyright.rb#52 def verify_autocorrect_notice!; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:23 +# source://rubocop//lib/rubocop/cop/style/copyright.rb#23 RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/copyright.rb:22 +# source://rubocop//lib/rubocop/cop/style/copyright.rb#22 RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # Checks for consistent usage of the `DateTime` class over the @@ -31504,37 +32561,37 @@ RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) # # good # something.to_time # -# source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:49 +# source://rubocop//lib/rubocop/cop/style/date_time.rb#49 class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:56 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#56 def date_time?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:61 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#61 def historic_date?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:70 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#70 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:66 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#66 def to_datetime?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:85 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#85 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:81 + # source://rubocop//lib/rubocop/cop/style/date_time.rb#81 def disallow_coercion?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:52 +# source://rubocop//lib/rubocop/cop/style/date_time.rb#52 RuboCop::Cop::Style::DateTime::CLASS_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/date_time.rb:53 +# source://rubocop//lib/rubocop/cop/style/date_time.rb#53 RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # Checks for parentheses in the definition of a method, @@ -31573,18 +32630,18 @@ RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/def_with_parentheses.rb:42 +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#42 class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/def_with_parentheses.rb:47 + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/def_with_parentheses.rb:47 + # source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#47 def on_defs(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/def_with_parentheses.rb:45 +# source://rubocop//lib/rubocop/cop/style/def_with_parentheses.rb#45 RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) # Checks for places where the `#__dir__` method can replace more @@ -31601,29 +32658,29 @@ RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) # # good # path = __dir__ # -# source://rubocop-1.35.1/lib/rubocop/cop/style/dir.rb:19 +# source://rubocop//lib/rubocop/cop/style/dir.rb#19 class RuboCop::Cop::Style::Dir < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/dir.rb:29 + # source://rubocop//lib/rubocop/cop/style/dir.rb#29 def dir_replacement?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/dir.rb:34 + # source://rubocop//lib/rubocop/cop/style/dir.rb#34 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/dir.rb:44 + # source://rubocop//lib/rubocop/cop/style/dir.rb#44 def file_keyword?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/dir.rb:25 +# source://rubocop//lib/rubocop/cop/style/dir.rb#25 RuboCop::Cop::Style::Dir::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/dir.rb:26 +# source://rubocop//lib/rubocop/cop/style/dir.rb#26 RuboCop::Cop::Style::Dir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Detects comments to enable/disable RuboCop. @@ -31649,34 +32706,34 @@ RuboCop::Cop::Style::Dir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # # rubocop:enable Metrics/AbcSize # -# source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:33 +# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#33 class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:40 + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#40 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:77 + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#77 def allowed_cops; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:81 + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#81 def any_cops_allowed?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:72 + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#72 def directive_cops(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:53 + # source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#53 def register_offense(comment, directive_cops, disallowed_cops); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:37 +# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#37 RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb:38 +# source://rubocop//lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb#38 RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG_FOR_COPS = T.let(T.unsafe(nil), String) # When using `class_eval` (or other `eval`) with string interpolation, @@ -31751,54 +32808,54 @@ RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG_FOR_COPS = T.let( # # good - with inline comment or replace it with block comment using heredoc # class_eval("def #{unsafe_method}!(*params); end # def capitalize!(*params); end") # -# source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:77 +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#77 class RuboCop::Cop::Style::DocumentDynamicEvalDefinition < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:84 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#84 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:107 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#107 def comment_block_docs?(arg_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:147 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#147 def comment_regexp(arg_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:126 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#126 def heredoc_comment_blocks(heredoc_body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:100 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#100 def inline_comment_docs?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:96 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#96 def interpolated?(arg_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:136 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#136 def merge_adjacent_comments(line, index, hash); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:117 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#117 def preceding_comment_blocks(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:156 + # source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#156 def source_to_regexp(source); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:78 +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#78 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::BLOCK_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:79 +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#79 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:80 +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#80 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/document_dynamic_eval_definition.rb:82 +# source://rubocop//lib/rubocop/cop/style/document_dynamic_eval_definition.rb#82 RuboCop::Cop::Style::DocumentDynamicEvalDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for missing top-level documentation of classes and @@ -31865,68 +32922,71 @@ RuboCop::Cop::Style::DocumentDynamicEvalDefinition::RESTRICT_ON_SEND = T.let(T.u # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:72 +# source://rubocop//lib/rubocop/cop/style/documentation.rb#72 class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Base include ::RuboCop::Cop::DocumentationComment include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:79 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#79 def constant_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:85 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#85 def constant_visibility_declaration?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:89 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#90 + def include_statement?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/documentation.rb#94 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:95 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#100 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:82 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#82 def outer_module(param0); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:168 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#174 def allowed_constants; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:101 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#106 def check(node, body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:141 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#147 def compact_namespace?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:137 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#143 def constant_allowed?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:133 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#139 def constant_declaration?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:172 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#178 def identifier(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:118 - def macro_only?(body); end + # source://rubocop//lib/rubocop/cop/style/documentation.rb#123 + def include_statement_only?(body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:123 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#129 def namespace?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:164 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#170 def nodoc(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:160 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#166 def nodoc?(comment, require_all: T.unsafe(nil)); end # Note: How end-of-line comments are associated with code changed in @@ -31934,19 +32994,19 @@ class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:150 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#156 def nodoc_comment?(node, require_all: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:113 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#118 def nodoc_self_or_outer_module?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:178 + # source://rubocop//lib/rubocop/cop/style/documentation.rb#184 def qualify_const(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/documentation.rb:76 +# source://rubocop//lib/rubocop/cop/style/documentation.rb#76 RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) # Checks for missing documentation comment for public methods. @@ -32035,33 +33095,33 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:94 +# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#94 class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::DocumentationComment include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::DefNode - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:101 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#101 def module_function_node?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:105 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#105 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:105 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#105 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:113 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#113 def check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:120 + # source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120 def require_for_non_public_methods?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/documentation_method.rb:98 +# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#98 RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) # Detects double disable comments on one line. This is mostly to catch @@ -32082,15 +33142,15 @@ RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) # def f # rubocop:disable Style/For, Metrics/AbcSize # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/double_cop_disable_directive.rb:27 +# source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#27 class RuboCop::Cop::Style::DoubleCopDisableDirective < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_cop_disable_directive.rb:34 + # source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#34 def on_new_investigation; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/double_cop_disable_directive.rb:32 +# source://rubocop//lib/rubocop/cop/style/double_cop_disable_directive.rb#32 RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), String) # Checks for uses of double negation (`!!`) to convert something to a boolean value. @@ -32137,56 +33197,56 @@ RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), Strin # !!return_value # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:61 +# source://rubocop//lib/rubocop/cop/style/double_negation.rb#61 class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:69 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#69 def double_negative?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:71 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#71 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:84 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#84 def allowed_in_returns?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:111 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#111 def define_mehod?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:138 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#138 def double_negative_condition_return_value?(node, last_child, conditional_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:88 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#88 def end_of_method_definition?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:120 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#120 def find_conditional_node_from_ascendant(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:103 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#103 def find_def_node_from_ascendant(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:127 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#127 def find_last_child(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:147 + # source://rubocop//lib/rubocop/cop/style/double_negation.rb#147 def find_parent_not_enumerable(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:65 +# source://rubocop//lib/rubocop/cop/style/double_negation.rb#65 RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/double_negation.rb:66 +# source://rubocop//lib/rubocop/cop/style/double_negation.rb#66 RuboCop::Cop::Style::DoubleNegation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for loops which iterate a constant number of times, @@ -32208,18 +33268,31 @@ RuboCop::Cop::Style::DoubleNegation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # 10.times {} # -# source://rubocop-1.35.1/lib/rubocop/cop/style/each_for_simple_loop.rb:25 +# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#25 class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_for_simple_loop.rb:49 - def offending_each_range(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#53 + def each_range(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#65 + def each_range_with_zero_origin?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_for_simple_loop.rb:30 + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#77 + def each_range_without_block_argument?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#30 def on_block(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#48 + def offending?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/each_for_simple_loop.rb:28 +# source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#28 RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) # Looks for inject / reduce calls where the passed in object is @@ -32236,21 +33309,21 @@ RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) # # good # [1, 2].each_with_object({}) { |e, a| a[e] = e } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:19 +# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#19 class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:60 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#60 def each_with_object_block_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:65 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#65 def each_with_object_numblock_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:26 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#26 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:43 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#43 def on_numblock(node); end private @@ -32260,41 +33333,41 @@ class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:102 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#102 def accumulator_param_assigned_to?(body, args); end - # source://rubocop-1.35.1/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 - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:84 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#84 def autocorrect_numblock(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:121 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#121 def first_argument_returned?(args, return_value); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:114 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#114 def return_value(body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:129 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#129 def return_value_occupies_whole_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:96 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#96 def simple_method_arg?(method_arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:133 + # source://rubocop//lib/rubocop/cop/style/each_with_object.rb#133 def whole_line_expression(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:24 +# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#24 RuboCop::Cop::Style::EachWithObject::METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/each_with_object.rb:23 +# source://rubocop//lib/rubocop/cop/style/each_with_object.rb#23 RuboCop::Cop::Style::EachWithObject::MSG = T.let(T.unsafe(nil), String) # Checks for pipes for empty block parameters. Pipes for empty @@ -32316,22 +33389,22 @@ RuboCop::Cop::Style::EachWithObject::MSG = T.let(T.unsafe(nil), String) # # good # a { do_something } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_block_parameter.rb:24 +# source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#24 class RuboCop::Cop::Style::EmptyBlockParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::EmptyParameter include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_block_parameter.rb:31 + # source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#31 def on_block(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_block_parameter.rb:38 + # source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#38 def autocorrect(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_block_parameter.rb:29 +# source://rubocop//lib/rubocop/cop/style/empty_block_parameter.rb#29 RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String) # Checks for case statements with an empty condition. @@ -32367,33 +33440,33 @@ RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String) # puts 'more' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:38 +# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#38 class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:44 + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#44 def on_case(case_node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:58 + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#58 def autocorrect(corrector, case_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:65 + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#65 def correct_case_when(corrector, case_node, when_nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:77 + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#77 def correct_when_conditions(corrector, when_nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:92 + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#92 def keep_first_when_comment(case_range, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:102 + # source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#102 def replace_then_with_line_break(corrector, conditions, when_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_case_condition.rb:42 +# source://rubocop//lib/rubocop/cop/style/empty_case_condition.rb#42 RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String) # Checks for empty else-clauses, possibly including comments and/or an @@ -32513,61 +33586,61 @@ RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String) # # something comment # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:127 +# source://rubocop//lib/rubocop/cop/style/empty_else.rb#127 class RuboCop::Cop::Style::EmptyElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:139 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#139 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:135 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#135 def on_normal_if_unless(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:172 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#172 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:193 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#193 def autocorrect_forbidden?(type); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:186 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#186 def base_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:145 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#145 def check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:180 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#180 def comment_in_else?(loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:160 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#160 def empty_check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:156 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#156 def empty_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:197 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#197 def missing_else_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:166 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#166 def nil_check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:152 + # source://rubocop//lib/rubocop/cop/style/empty_else.rb#152 def nil_style?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_else.rb:133 +# source://rubocop//lib/rubocop/cop/style/empty_else.rb#133 RuboCop::Cop::Style::EmptyElse::MSG = T.let(T.unsafe(nil), String) # Checks for using empty heredoc to reduce redundancy. @@ -32600,30 +33673,30 @@ RuboCop::Cop::Style::EmptyElse::MSG = T.let(T.unsafe(nil), String) # # good # do_something('') # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_heredoc.rb:36 +# source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#36 class RuboCop::Cop::Style::EmptyHeredoc < ::RuboCop::Cop::Base include ::RuboCop::Cop::Heredoc include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_heredoc.rb:43 + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#43 def on_heredoc(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_heredoc.rb:63 + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#63 def enforce_double_quotes?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_heredoc.rb:59 + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#59 def preferred_string_literal; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_heredoc.rb:67 + # source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#67 def string_literals_config; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_heredoc.rb:41 +# source://rubocop//lib/rubocop/cop/style/empty_heredoc.rb#41 RuboCop::Cop::Style::EmptyHeredoc::MSG = T.let(T.unsafe(nil), String) # Checks for parentheses for empty lambda parameters. Parentheses @@ -32640,22 +33713,22 @@ RuboCop::Cop::Style::EmptyHeredoc::MSG = T.let(T.unsafe(nil), String) # # good # -> (arg) { do_something(arg) } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_lambda_parameter.rb:19 +# source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#19 class RuboCop::Cop::Style::EmptyLambdaParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::EmptyParameter include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_lambda_parameter.rb:26 + # source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#26 def on_block(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_lambda_parameter.rb:35 + # source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#35 def autocorrect(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_lambda_parameter.rb:24 +# source://rubocop//lib/rubocop/cop/style/empty_lambda_parameter.rb#24 RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String) # Checks for the use of a method, the result of which @@ -32672,83 +33745,83 @@ RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String) # h = {} # s = '' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:19 +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#19 class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:31 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#31 def array_node(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:40 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#40 def array_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:34 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#34 def hash_node(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:43 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#43 def hash_with_block(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:50 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#50 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:37 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#37 def str_node(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:111 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#111 def correction(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:74 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#74 def enforce_double_quotes?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:82 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#82 def first_argument_unparenthesized?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:129 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#129 def frozen_strings?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:102 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#102 def offense_array_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:106 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#106 def offense_hash_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:60 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#60 def offense_message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:70 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#70 def preferred_string_literal; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:89 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#89 def replacement_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:78 + # source://rubocop//lib/rubocop/cop/style/empty_literal.rb#78 def string_literals_config; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:24 +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#24 RuboCop::Cop::Style::EmptyLiteral::ARR_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:25 +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#25 RuboCop::Cop::Style::EmptyLiteral::HASH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:28 +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#28 RuboCop::Cop::Style::EmptyLiteral::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_literal.rb:26 +# source://rubocop//lib/rubocop/cop/style/empty_literal.rb#26 RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String) # Checks for the formatting of empty method definitions. @@ -32792,61 +33865,61 @@ RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String) # def self.foo(bar) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:47 +# source://rubocop//lib/rubocop/cop/style/empty_method.rb#47 class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:54 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:54 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#54 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:95 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#95 def compact?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:103 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#103 def compact_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:73 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#73 def correct_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:77 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#77 def corrected(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:99 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#99 def expanded?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:107 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#107 def expanded_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:89 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#89 def joint(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:111 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#111 def max_line_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:69 + # source://rubocop//lib/rubocop/cop/style/empty_method.rb#69 def message(_range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:51 +# source://rubocop//lib/rubocop/cop/style/empty_method.rb#51 RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/empty_method.rb:52 +# source://rubocop//lib/rubocop/cop/style/empty_method.rb#52 RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) # Checks ensures source files have no utf-8 encoding comments. @@ -32857,35 +33930,35 @@ RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) # # coding: UTF-8 # # -*- coding: UTF-8 -*- # -# source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:12 +# source://rubocop//lib/rubocop/cop/style/encoding.rb#12 class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:20 + # source://rubocop//lib/rubocop/cop/style/encoding.rb#20 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:32 + # source://rubocop//lib/rubocop/cop/style/encoding.rb#32 def comments; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:43 + # source://rubocop//lib/rubocop/cop/style/encoding.rb#43 def offense?(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:47 + # source://rubocop//lib/rubocop/cop/style/encoding.rb#47 def register_offense(line_number, comment); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:17 +# source://rubocop//lib/rubocop/cop/style/encoding.rb#17 RuboCop::Cop::Style::Encoding::ENCODING_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:16 +# source://rubocop//lib/rubocop/cop/style/encoding.rb#16 RuboCop::Cop::Style::Encoding::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/encoding.rb:18 +# source://rubocop//lib/rubocop/cop/style/encoding.rb#18 RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String) # Checks for END blocks. @@ -32897,15 +33970,15 @@ RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String) # # good # at_exit { puts 'Goodbye!' } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/end_block.rb:15 +# source://rubocop//lib/rubocop/cop/style/end_block.rb#15 class RuboCop::Cop::Style::EndBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/end_block.rb:20 + # source://rubocop//lib/rubocop/cop/style/end_block.rb#20 def on_postexe(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/end_block.rb:18 +# source://rubocop//lib/rubocop/cop/style/end_block.rb#18 RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # Checks for endless methods. @@ -32942,44 +34015,44 @@ RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) # .baz # @example EnforcedStyle: disallow # # bad -# def my_method; x end +# def my_method() = x # # # bad # def my_method() = x.foo # .bar # .baz # -# source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:49 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#49 class RuboCop::Cop::Style::EndlessMethod < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:60 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#60 def on_def(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:95 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#95 def arguments(node, missing = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:85 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#85 def correct_to_multiline(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:70 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#70 def handle_allow_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:79 + # source://rubocop//lib/rubocop/cop/style/endless_method.rb#79 def handle_disallow_style(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:56 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#56 RuboCop::Cop::Style::EndlessMethod::CORRECTION_STYLES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:57 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#57 RuboCop::Cop::Style::EndlessMethod::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/endless_method.rb:58 +# source://rubocop//lib/rubocop/cop/style/endless_method.rb#58 RuboCop::Cop::Style::EndlessMethod::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) # Checks for consistent usage of `ENV['HOME']`. If `nil` is used as @@ -32997,21 +34070,21 @@ RuboCop::Cop::Style::EndlessMethod::MSG_MULTI_LINE = T.let(T.unsafe(nil), String # # good # ENV.fetch('HOME', default) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/env_home.rb:31 +# source://rubocop//lib/rubocop/cop/style/env_home.rb#31 class RuboCop::Cop::Style::EnvHome < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/env_home.rb:38 + # source://rubocop//lib/rubocop/cop/style/env_home.rb#38 def env_home?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/env_home.rb:45 + # source://rubocop//lib/rubocop/cop/style/env_home.rb#45 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/env_home.rb:34 +# source://rubocop//lib/rubocop/cop/style/env_home.rb#34 RuboCop::Cop::Style::EnvHome::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/env_home.rb:35 +# source://rubocop//lib/rubocop/cop/style/env_home.rb#35 RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Ensures that eval methods (`eval`, `instance_eval`, `class_eval` @@ -33063,99 +34136,99 @@ RuboCop::Cop::Style::EnvHome::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # RUBY # eval code # -# source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:56 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#56 class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:74 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#74 def line_with_offset?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:81 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#81 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:69 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#69 def valid_eval_receiver?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:195 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#195 def add_offense_for_different_line(node, line_node, line_diff); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:142 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#142 def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:210 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#210 def add_offense_for_missing_line(node, code); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:217 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#217 def add_offense_for_missing_location(node, code); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:189 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#189 def add_offense_for_same_line(node, line_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:154 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#154 def check_file(node, file_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:167 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#167 def check_line(node, code); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:95 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#95 def check_location(node, code); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:202 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#202 def expected_line(sign, line_diff); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:122 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#122 def file_and_line(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:177 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#177 def line_difference(line_node, code); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:229 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#229 def missing_line(node, code); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:109 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#109 def register_offense(node, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:114 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#114 def special_file_keyword?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:118 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#118 def special_line_keyword?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:181 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#181 def string_first_line(str_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:127 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#127 def with_binding?(node); end # FIXME: It's a Style/ConditionalAssignment's false positive. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:133 + # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#133 def with_lineno?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:59 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#59 RuboCop::Cop::Style::EvalWithLocation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:60 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#60 RuboCop::Cop::Style::EvalWithLocation::MSG_EVAL = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:61 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#61 RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_FILE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:63 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#63 RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_LINE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/eval_with_location.rb:66 +# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#66 RuboCop::Cop::Style::EvalWithLocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where `Integer#even?` or `Integer#odd?` @@ -33171,26 +34244,26 @@ RuboCop::Cop::Style::EvalWithLocation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # if x.even? # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/even_odd.rb:18 +# source://rubocop//lib/rubocop/cop/style/even_odd.rb#18 class RuboCop::Cop::Style::EvenOdd < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/even_odd.rb:25 + # source://rubocop//lib/rubocop/cop/style/even_odd.rb#25 def even_odd_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/even_odd.rb:33 + # source://rubocop//lib/rubocop/cop/style/even_odd.rb#33 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/even_odd.rb:45 + # source://rubocop//lib/rubocop/cop/style/even_odd.rb#45 def replacement_method(arg, method); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/even_odd.rb:21 +# source://rubocop//lib/rubocop/cop/style/even_odd.rb#21 RuboCop::Cop::Style::EvenOdd::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/even_odd.rb:22 +# source://rubocop//lib/rubocop/cop/style/even_odd.rb#22 RuboCop::Cop::Style::EvenOdd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for use of the `File.expand_path` arguments. @@ -33230,65 +34303,65 @@ RuboCop::Cop::Style::EvenOdd::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # Pathname.new(__dir__).expand_path # -# source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:43 +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#43 class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:58 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#58 def file_expand_path(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:82 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#82 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:74 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#74 def pathname_new_parent_expand_path(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:66 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#66 def pathname_parent_expand_path(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:189 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#189 def arguments_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:100 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#100 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:135 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#135 def autocorrect_expand_path(corrector, current_path, default_dir); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:162 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#162 def depth(current_path); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:113 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#113 def inspect_offense_for_expand_path(node, current_path, default_dir); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:168 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#168 def parent_path(current_path); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:182 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#182 def remove_parent_method(corrector, default_dir); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:155 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#155 def strip_surrounded_quotes!(path_string); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:109 + # source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#109 def unrecommended_argument?(default_dir); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:47 +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#47 RuboCop::Cop::Style::ExpandPathArguments::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:49 +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#49 RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:51 +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#51 RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_NEW_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/expand_path_arguments.rb:55 +# source://rubocop//lib/rubocop/cop/style/expand_path_arguments.rb#55 RuboCop::Cop::Style::ExpandPathArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of explicit block argument to avoid writing @@ -33326,56 +34399,61 @@ RuboCop::Cop::Style::ExpandPathArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # 9.times(&block) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:41 +# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#41 class RuboCop::Cop::Style::ExplicitBlockArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector # @return [ExplicitBlockArgument] a new instance of ExplicitBlockArgument # - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:53 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#57 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:58 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#62 def on_yield(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:49 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#49 def yielding_block?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:104 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#108 def add_block_argument(node, corrector, block_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:143 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#147 def block_body_range(block_node, send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:121 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#125 def call_like?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:133 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#137 def correct_call_node(node, corrector, block_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:116 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#120 def empty_arguments?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:83 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#87 def extract_block_name(def_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:125 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#129 def insert_argument(node, corrector, block_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:91 + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#95 def yielding_arguments?(block_args, yield_args); end + + class << self + # source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#53 + def autocorrect_incompatible_with; end + end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/explicit_block_argument.rb:45 +# source://rubocop//lib/rubocop/cop/style/explicit_block_argument.rb#45 RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) # Enforces consistency when using exponential notation @@ -33430,38 +34508,38 @@ RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) # 1e4 # 12e5 # -# source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:60 +# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#60 class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:68 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#68 def on_float(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:79 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#79 def engineering?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:90 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#90 def integral(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:110 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#110 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:95 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#95 def offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:74 + # source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#74 def scientific?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/exponential_notation.rb:62 +# source://rubocop//lib/rubocop/cop/style/exponential_notation.rb#62 RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # Suggests `ENV.fetch` for the replacement of `ENV[]`. @@ -33483,14 +34561,14 @@ RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) # !ENV['X'] # ENV['X'].some_method # (e.g. `.nil?`) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:25 +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#25 class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:31 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#31 def env_with_bracket?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:35 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#35 def on_send(node); end private @@ -33505,12 +34583,12 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:105 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#105 def allowable_use?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:48 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#48 def allowed_var?(node); end # The following are allowed cases: @@ -33520,27 +34598,27 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:113 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#113 def assigned?(node); end # Check if the node is a receiver and receives a message with dot syntax. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:89 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#89 def message_chained_with_dot?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:126 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#126 def new_code(name_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:84 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#84 def offensive?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:120 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#120 def or_lhs?(node); end # Avoid offending in the following cases: @@ -33548,24 +34626,24 @@ class RuboCop::Cop::Style::FetchEnvVar < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:80 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#80 def partial_matched?(node, condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:53 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#53 def used_as_flag?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:60 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#60 def used_if_condition_in_body(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:69 + # source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#69 def used_in_condition?(node, condition); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/fetch_env_var.rb:28 +# source://rubocop//lib/rubocop/cop/style/fetch_env_var.rb#28 RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) # Favor `File.(bin)read` convenience methods. @@ -33599,49 +34677,49 @@ RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) # # good # File.binread(filename) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:38 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#38 class RuboCop::Cop::Style::FileRead < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:65 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#65 def block_read?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:49 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#49 def file_open?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:69 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#69 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:60 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#60 def send_read?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:84 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#84 def evidence(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:100 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#100 def file_open_read?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:106 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#106 def read_method(mode); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:92 + # source://rubocop//lib/rubocop/cop/style/file_read.rb#92 def read_node?(node, block_pass); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:42 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#42 RuboCop::Cop::Style::FileRead::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:46 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#46 RuboCop::Cop::Style::FileRead::READ_FILE_START_TO_FINISH_MODES = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_read.rb:44 +# source://rubocop//lib/rubocop/cop/style/file_read.rb#44 RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Favor `File.(bin)write` convenience methods. @@ -33678,24 +34756,24 @@ RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # File.binwrite(filename, content) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:41 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#41 class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:68 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#68 def block_write?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:85 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#85 def evidence(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:52 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#52 def file_open?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:72 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#72 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:63 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#63 def send_write?(param0 = T.unsafe(nil)); end private @@ -33703,31 +34781,31 @@ class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base # @return [Boolean] # @yield [content] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:95 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#95 def file_open_write?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:123 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#123 def heredoc?(write_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:128 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#128 def heredoc_range(first_argument); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:108 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#108 def replacement(mode, filename, content, write_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:104 + # source://rubocop//lib/rubocop/cop/style/file_write.rb#104 def write_method(mode); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:45 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#45 RuboCop::Cop::Style::FileWrite::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:47 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#47 RuboCop::Cop::Style::FileWrite::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/style/file_write.rb:49 +# source://rubocop//lib/rubocop/cop/style/file_write.rb#49 RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Set) # Checks for division with integers coerced to floats. @@ -33764,53 +34842,53 @@ RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Se # # good # a.fdiv(b) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:53 +# source://rubocop//lib/rubocop/cop/style/float_division.rb#53 class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:79 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#79 def any_coerce?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:75 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#75 def both_coerce?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:71 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#71 def left_coerce?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:83 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#83 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:67 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#67 def right_coerce?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:121 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#121 def add_to_f_method(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:130 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#130 def correct_from_slash_to_fdiv(corrector, node, receiver, argument); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:141 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#141 def extract_receiver_source(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:117 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#117 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:102 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#102 def offense_condition?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:125 + # source://rubocop//lib/rubocop/cop/style/float_division.rb#125 def remove_to_f_method(corrector, send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:57 +# source://rubocop//lib/rubocop/cop/style/float_division.rb#57 RuboCop::Cop::Style::FloatDivision::MESSAGES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/float_division.rb:64 +# source://rubocop//lib/rubocop/cop/style/float_division.rb#64 RuboCop::Cop::Style::FloatDivision::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for uses of the `for` keyword or `each` method. The @@ -33847,36 +34925,36 @@ RuboCop::Cop::Style::FloatDivision::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:45 +# source://rubocop//lib/rubocop/cop/style/for.rb#45 class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:65 + # source://rubocop//lib/rubocop/cop/style/for.rb#65 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:54 + # source://rubocop//lib/rubocop/cop/style/for.rb#54 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:65 + # source://rubocop//lib/rubocop/cop/style/for.rb#65 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:82 + # source://rubocop//lib/rubocop/cop/style/for.rb#82 def suspect_enumerable?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:50 +# source://rubocop//lib/rubocop/cop/style/for.rb#50 RuboCop::Cop::Style::For::EACH_LENGTH = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:51 +# source://rubocop//lib/rubocop/cop/style/for.rb#51 RuboCop::Cop::Style::For::PREFER_EACH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/for.rb:52 +# source://rubocop//lib/rubocop/cop/style/for.rb#52 RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String) # Enforces the use of a single string formatting utility. @@ -33909,45 +34987,45 @@ RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String) # # good # puts '%10s' % 'hoge' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:38 +# source://rubocop//lib/rubocop/cop/style/format_string.rb#38 class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:46 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#46 def formatter(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:59 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#59 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:55 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#55 def variable_argument?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:81 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#81 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:97 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#97 def autocorrect_from_percent(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:111 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#111 def autocorrect_to_percent(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:124 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#124 def format_single_parameter(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:73 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#73 def message(detected_style); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:77 + # source://rubocop//lib/rubocop/cop/style/format_string.rb#77 def method_name(style_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:42 +# source://rubocop//lib/rubocop/cop/style/format_string.rb#42 RuboCop::Cop::Style::FormatString::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/format_string.rb:43 +# source://rubocop//lib/rubocop/cop/style/format_string.rb#43 RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Use a consistent style for named format string tokens. @@ -33965,7 +35043,7 @@ RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # if the number of them is less than or equals to # `MaxUnannotatedPlaceholdersAllowed`. # -# @example AllowedPatterns: [/redirect/] +# @example AllowedPatterns: ['redirect'] # # # good # redirect('foo/%{bar_id}') @@ -34021,71 +35099,71 @@ RuboCop::Cop::Style::FormatString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array # # good # format('%s', greeting: 'Hello') # -# source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:85 +# source://rubocop//lib/rubocop/cop/style/format_string_token.rb#85 class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:106 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#106 def format_string_in_typical_context?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:91 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#91 def on_str(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:213 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#213 def allowed_unannotated?(detections); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:139 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#139 def autocorrect_sequence(corrector, detected_sequence, token_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:124 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#124 def check_sequence(detected_sequence, token_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:203 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#203 def collect_detections(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:135 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#135 def correctable_sequence?(detected_type); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:113 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#113 def format_string_token?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:222 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#222 def max_unannotated_placeholders_allowed; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:160 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#160 def message(detected_style); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:165 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#165 def message_text(style); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:180 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#180 def str_contents(source_map); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:190 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#190 def token_ranges(contents); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:174 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#174 def tokens(str_node, &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:156 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#156 def unannotated_format?(node, detected_style); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/format_string_token.rb:117 + # source://rubocop//lib/rubocop/cop/style/format_string_token.rb#117 def use_allowed_method?(node); end end @@ -34160,7 +35238,7 @@ end # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:84 +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#84 class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::FrozenStringLiteral @@ -34168,70 +35246,70 @@ class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:99 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#99 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:176 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#176 def disabled_offense(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:188 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#188 def enable_comment(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:120 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#120 def ensure_comment(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:126 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#126 def ensure_enabled_comment(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:114 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#114 def ensure_no_comment(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:212 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#212 def following_comment; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:150 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#150 def frozen_string_literal_comment(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:194 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#194 def insert_comment(corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:137 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#137 def last_special_comment(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:204 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#204 def line_range(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:156 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#156 def missing_offense(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:162 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#162 def missing_true_offense(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:208 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#208 def preceding_comment; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:184 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#184 def remove_comment(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:168 + # source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#168 def unnecessary_comment_offense(processed_source); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:96 +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#96 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_DISABLED = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:94 +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#94 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:93 +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#93 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_MISSING_TRUE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:95 +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#95 RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/frozen_string_literal_comment.rb:97 +# source://rubocop//lib/rubocop/cop/style/frozen_string_literal_comment.rb#97 RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), String) # Enforces the use of `$stdout/$stderr/$stdin` instead of `STDOUT/STDERR/STDIN`. @@ -34258,29 +35336,29 @@ RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), # out.puts('hello') # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:34 +# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#34 class RuboCop::Cop::Style::GlobalStdStream < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:42 + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#42 def const_to_gvar_assignment?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:46 + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#46 def on_const(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:64 + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#64 def gvar_name(const_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:60 + # source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#60 def message(const_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:37 +# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#37 RuboCop::Cop::Style::GlobalStdStream::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/global_std_stream.rb:39 +# source://rubocop//lib/rubocop/cop/style/global_std_stream.rb#39 RuboCop::Cop::Style::GlobalStdStream::STD_STREAMS = T.let(T.unsafe(nil), Set) # Looks for uses of global variables. @@ -34300,33 +35378,33 @@ RuboCop::Cop::Style::GlobalStdStream::STD_STREAMS = T.let(T.unsafe(nil), Set) # foo = 2 # $stdin.read # -# source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:22 +# source://rubocop//lib/rubocop/cop/style/global_vars.rb#22 class RuboCop::Cop::Style::GlobalVars < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:60 + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#60 def allowed_var?(global_var); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:72 + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#72 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:64 + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#64 def on_gvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:68 + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#68 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:56 + # source://rubocop//lib/rubocop/cop/style/global_vars.rb#56 def user_vars; end end # built-in global variables and their English aliases # https://www.zenspider.com/ruby/quickref.html # -# source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:27 +# source://rubocop//lib/rubocop/cop/style/global_vars.rb#27 RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/global_vars.rb:23 +# source://rubocop//lib/rubocop/cop/style/global_vars.rb#23 RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) # Use a guard clause instead of wrapping the code inside a conditional @@ -34336,6 +35414,9 @@ RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) # one of `return`, `break`, `next`, `raise`, or `fail` is used # in the body of the conditional expression. # +# NOTE: Autocorrect works in most cases except with if-else statements +# that contain logical operators such as `foo || raise('exception')` +# # @example # # bad # def test @@ -34413,64 +35494,91 @@ RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:92 +# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#95 class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MinBodyLength include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier + extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:99 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#104 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:99 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#104 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:113 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#113 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:175 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#247 def accepted_form?(node, ending: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:183 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#255 def accepted_if?(node, ending); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:193 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#269 def allowed_consecutive_conditionals?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:132 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#237 + def and_or_guard_clause?(guard_clause); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#184 + def autocorrect(corrector, node, condition, replacement, guard); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#208 + def autocorrect_heredoc_argument(corrector, node, heredoc_branch, leave_branch, guard); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#133 + def check_ending_body(body); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#144 def check_ending_if(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:140 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#154 def consecutive_conditionals?(parent, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:160 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#229 def guard_clause_source(guard_clause); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:148 - def register_offense(node, scope_exiting_keyword, conditional_keyword); end + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#204 + def heredoc?(argument); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#220 + def range_of_branch_to_remove(node, guard); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#162 + def register_offense(node, scope_exiting_keyword, conditional_keyword, guard = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#265 + def remove_whole_lines(corrector, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:170 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#242 def too_long_for_single_line?(node, example); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:179 + # source://rubocop//lib/rubocop/cop/style/guard_clause.rb#251 def trivial?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/guard_clause.rb:96 +# source://rubocop//lib/rubocop/cop/style/guard_clause.rb#101 RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String) # Checks for presence or absence of braces around hash literal as a last @@ -34498,42 +35606,42 @@ RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String) # # good # [{ one: 1 }, { two: 2 }] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:31 +# source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#31 class RuboCop::Cop::Style::HashAsLastArrayItem < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:36 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#36 def on_hash(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:84 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#85 def braces_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:65 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#66 def check_braces(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:73 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#74 def check_no_braces(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:49 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#50 def containing_array(hash_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:60 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#61 def explicit_array?(array); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:54 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#55 def last_array_item?(array, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_as_last_array_item.rb:88 + # source://rubocop//lib/rubocop/cop/style/hash_as_last_array_item.rb#89 def remove_last_element_trailing_comma(corrector, node); end end @@ -34563,62 +35671,62 @@ end # # bad # Hash[*ary] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:34 +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#34 class RuboCop::Cop::Style::HashConversion < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:44 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#44 def hash_from_array?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:46 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#46 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:128 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#128 def allowed_splat_argument?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:121 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#121 def args_to_hash(args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:108 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#108 def multi_argument(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:84 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#84 def register_offense_for_hash(node, hash_argument); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:93 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#93 def register_offense_for_zip_method(node, zip_method); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:103 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#103 def requires_parens?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:61 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#61 def single_argument(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:78 + # source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#78 def use_zip_method_without_argument?(first_argument); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:39 +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#39 RuboCop::Cop::Style::HashConversion::MSG_LITERAL_HASH_ARG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:38 +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#38 RuboCop::Cop::Style::HashConversion::MSG_LITERAL_MULTI_ARG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:40 +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#40 RuboCop::Cop::Style::HashConversion::MSG_SPLAT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:37 +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#37 RuboCop::Cop::Style::HashConversion::MSG_TO_H = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_conversion.rb:41 +# source://rubocop//lib/rubocop/cop/style/hash_conversion.rb#41 RuboCop::Cop::Style::HashConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `each_key` and `each_value` Hash methods. @@ -34640,55 +35748,67 @@ RuboCop::Cop::Style::HashConversion::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # execute(sql).keys.each { |v| p v } # execute(sql).values.each { |v| p v } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:30 +# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#30 class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::Lint::UnusedArgument extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:37 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#37 def kv_each(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:41 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#42 + def kv_each_with_block_pass(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#46 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:41 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#54 + def on_block_pass(node); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#46 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:98 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#120 def allowed_receiver?(receiver); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:104 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#126 def allowed_receivers; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:63 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#85 def check_argument(variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:87 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#109 def correct_args(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:73 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#95 def correct_implicit(node, corrector, method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:78 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#100 def correct_key_value_each(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:94 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#81 + def format_message(method_name); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#116 def kv_range(outer_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:49 - def register_kv_offense(node); end + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#62 + def register_kv_offense(target, method); end + + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#71 + def register_kv_with_block_pass_offense(node, target, method); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:69 + # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#91 def used?(arg); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_each_methods.rb:34 +# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#34 RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String) # Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods @@ -34714,68 +35834,68 @@ RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String) # # good # {foo: 1, bar: 2, baz: 3}.except(:bar) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:29 +# source://rubocop//lib/rubocop/cop/style/hash_except.rb#33 class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:56 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#60 def bad_method_with_active_support?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:40 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#44 def bad_method_with_poro?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:71 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:88 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#92 def bad_method?(block); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:150 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#154 def decorate_source(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:158 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#162 def except_key(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:137 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#141 def except_key_source(key); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:131 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135 def extract_body_if_nagated(body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:112 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#116 def included?(negated, body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:116 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#120 def not_included?(negated, body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:167 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#171 def offense_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:120 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#124 def safe_to_register_offense?(block, except_key); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:96 + # source://rubocop//lib/rubocop/cop/style/hash_except.rb#100 def semantically_except_method?(send, block); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:36 +# source://rubocop//lib/rubocop/cop/style/hash_except.rb#40 RuboCop::Cop::Style::HashExcept::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_except.rb:37 +# source://rubocop//lib/rubocop/cop/style/hash_except.rb#41 RuboCop::Cop::Style::HashExcept::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where `case-when` represents a simple 1:1 @@ -34810,26 +35930,26 @@ RuboCop::Cop::Style::HashExcept::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # 'http://au.example.com' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_like_case.rb:39 +# source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#39 class RuboCop::Cop::Style::HashLikeCase < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_like_case.rb:43 + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#43 def hash_like_case?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_like_case.rb:51 + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#51 def on_case(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_like_case.rb:67 + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#67 def min_branches_count; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_like_case.rb:63 + # source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#63 def nodes_of_same_type?(nodes); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_like_case.rb:40 +# source://rubocop//lib/rubocop/cop/style/hash_like_case.rb#40 RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # Checks hash literal syntax. @@ -34857,20 +35977,23 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # * always - forces use of the 3.1 syntax (e.g. {foo:}) # * never - forces use of explicit hash literal value # * either - accepts both shorthand and explicit use of hash literal value -# * consistent - like "always", but will avoid mixing styles in a single hash +# * consistent - forces use of the 3.1 syntax only if all values can be omitted in the hash # # @example EnforcedShorthandSyntax: consistent # -# # bad -# {foo: , bar: bar} +# # bad - `foo` and `bar` values can be omitted +# {foo: foo, bar: bar} # -# # good -# {foo:, bar:} +# # bad - `bar` value can be omitted +# {foo:, bar: bar} # -# # bad -# {foo: , bar: baz} +# # bad - mixed syntaxes +# {foo:, bar: baz} # # # good +# {foo:, bar:} +# +# # good - can't omit `baz` # {foo: foo, bar: baz} # @example EnforcedStyle: hash_rockets # # bad @@ -34926,84 +36049,84 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String) # {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol # {d: 1, 'e' => 2} # technically not forbidden # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:107 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#110 class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::HashShorthandSyntax include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:161 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#164 def alternative_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:139 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#142 def hash_rockets_check(pairs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:153 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#156 def no_mixed_keys_check(pairs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:117 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#120 def on_hash(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:135 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#138 def ruby19_check(pairs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:143 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#146 def ruby19_no_mixed_keys_check(pairs); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:192 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#195 def acceptable_19_syntax_symbol?(sym_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:246 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#249 def argument_without_space?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:172 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#175 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:250 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#253 def autocorrect_hash_rockets(corrector, pair_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:258 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#261 def autocorrect_no_mixed_keys(corrector, pair_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:225 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#228 def autocorrect_ruby19(corrector, pair_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:210 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#213 def check(pairs, delim, msg); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:266 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#269 def force_hash_rockets?(pairs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:238 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#241 def range_for_autocorrect_ruby19(pair_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:182 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#185 def sym_indices?(pairs); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:186 + # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#189 def word_symbol_pair?(pair); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:113 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#116 RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:115 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#118 RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_syntax.rb:114 +# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#117 RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String) # Looks for uses of `_.each_with_object({}) {...}`, @@ -35024,30 +36147,30 @@ RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String # {a: 1, b: 2}.transform_keys { |k| foo(k) } # {a: 1, b: 2}.transform_keys { |k| k.to_s } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:28 +# source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#28 class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Base include ::RuboCop::Cop::HashTransformMethod extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:36 + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#36 def on_bad_each_with_object(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:48 + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#48 def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:61 + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#61 def on_bad_map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:73 + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#73 def on_bad_to_h(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:84 + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#84 def extract_captures(match); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_keys.rb:89 + # source://rubocop//lib/rubocop/cop/style/hash_transform_keys.rb#89 def new_method_name; end end @@ -35067,30 +36190,30 @@ end # {a: 1, b: 2}.transform_values { |v| foo(v) } # {a: 1, b: 2}.transform_values { |v| v * v } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:26 +# source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#26 class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Base include ::RuboCop::Cop::HashTransformMethod extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:34 + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#34 def on_bad_each_with_object(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:46 + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#46 def on_bad_hash_brackets_map(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:59 + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#59 def on_bad_map_to_h(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:71 + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#71 def on_bad_to_h(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:82 + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#82 def extract_captures(match); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/hash_transform_values.rb:87 + # source://rubocop//lib/rubocop/cop/style/hash_transform_values.rb#87 def new_method_name; end end @@ -35181,72 +36304,82 @@ end # do_z # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:110 +# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#110 class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:123 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#123 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:130 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#130 def on_case_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:116 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#116 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:139 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#140 def check_branches(node, branches); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:162 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#167 def check_expressions(node, expressions, insert_position); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:151 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#156 def duplicated_expressions?(node, expressions); end # `elsif` branches show up in the if node as nested `else` branches. We # need to recursively iterate over all `else` branches. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:189 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#204 def expand_elses(branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:204 + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#219 def head(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:183 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#188 + def last_child_of_parent?(node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#198 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:200 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#194 + def single_child_branch?(branch_node); end + + # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#215 def tail(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/identical_conditional_branches.rb:114 +# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#114 RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), String) # Corrector to correct conditional assignment in `if` statements. # -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:564 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#564 class RuboCop::Cop::Style::IfCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:569 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#569 def correct(corrector, cop, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:573 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#573 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:587 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#587 def extract_tail_branches(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:594 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#594 def move_branch_inside_condition(corrector, branch, condition, assignment, column); end end end @@ -35304,48 +36437,48 @@ end # action_b # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:61 +# source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#61 class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:67 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#67 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:144 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#144 def allow_if_modifier?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:140 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#140 def allow_if_modifier_in_else_branch?(else_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:82 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#82 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:111 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#111 def correct_to_elsif_from_if_inside_else_form(corrector, node, condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:103 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#103 def correct_to_elsif_from_modifier_form(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:129 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#129 def find_end_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:136 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#136 def if_condition_range(node, condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:125 + # source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#125 def then?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_inside_else.rb:65 +# source://rubocop//lib/rubocop/cop/style/if_inside_else.rb#65 RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) # Checks for `if` and `unless` statements that would fit on one line if @@ -35380,7 +36513,7 @@ RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:37 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#37 class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier @@ -35388,89 +36521,89 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:53 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#53 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:90 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#90 def allowed_patterns; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:150 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#150 def another_statement_on_same_line?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:68 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#68 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:184 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#184 def extract_heredoc_from(last_argument); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:134 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#134 def line_length_enabled_at_line?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:138 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#138 def named_capture_in_condition?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:142 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#142 def non_eligible_node?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:146 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#146 def non_simple_if_unless?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:191 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#191 def remove_heredoc(corrector, heredoc); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:164 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#164 def to_normal_form(node, indentation); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:172 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#172 def to_normal_form_with_heredoc(node, indentation, heredoc); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:85 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#85 def too_long_due_to_modifier?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:125 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#125 def too_long_line_based_on_allow_uri?(line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:108 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#108 def too_long_line_based_on_config?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:117 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#117 def too_long_line_based_on_ignore_cop_directives?(range, line); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:95 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#95 def too_long_single_line?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:49 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#49 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:44 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#44 RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier.rb:47 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier.rb#47 RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String) # Checks for if and unless statements used as modifiers of other if or @@ -35493,25 +36626,42 @@ RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), Str # tired? ? 'stop' : 'go faster' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb:25 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#25 class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb:31 + # source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#31 def on_if(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb:29 +# source://rubocop//lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb#29 RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), String) # Checks for redundant `if` with boolean literal branches. # It checks only conditions to return boolean value (`true` or `false`) for safe detection. -# The conditions to be checked are comparison methods, predicate methods, and double negative. +# The conditions to be checked are comparison methods, predicate methods, and +# double negation (!!). # `nonzero?` method is allowed by default. # These are customizable with `AllowedMethods` option. # +# This cop targets only `if`s with a single `elsif` or `else` branch. The following +# code will be allowed, because it has two `elsif` branches: +# +# [source,ruby] +# ---- +# if foo +# true +# elsif bar > baz +# true +# elsif qux > quux # Single `elsif` is warned, but two or more `elsif`s are not. +# true +# else +# false +# end +# ---- +# # @example # # bad # if foo == bar @@ -35539,56 +36689,61 @@ RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), Stri # # good # num.nonzero? ? true : false # -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:45 +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#62 class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:57 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#74 def double_negative?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:53 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#70 def if_with_boolean_literal_branches?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:59 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#76 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:109 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#132 def assume_boolean_value?(condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:91 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#114 def message(node, keyword); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:79 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#96 + def multiple_elsif?(node); end + + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#102 def offense_range_with_keyword(node, condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:126 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#149 def opposite_condition?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:116 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#139 def replacement_condition(node, condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:131 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#154 def require_parentheses?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:97 + # source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#120 def return_boolean_value?(condition); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:49 +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#66 RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb:50 +# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#67 RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG_FOR_ELSIF = T.let(T.unsafe(nil), String) # Checks for uses of semicolon in if statements. @@ -35601,30 +36756,30 @@ RuboCop::Cop::Style::IfWithBooleanLiteralBranches::MSG_FOR_ELSIF = T.let(T.unsaf # # good # result = some_condition ? something : another_thing # -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:16 +# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#16 class RuboCop::Cop::Style::IfWithSemicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:23 + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#23 def on_normal_if_unless(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:39 + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#38 def autocorrect(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:56 + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#56 def build_else_branch(second_condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:47 + # source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#47 def correct_elsif(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:20 +# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#20 RuboCop::Cop::Style::IfWithSemicolon::MSG_IF_ELSE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/if_with_semicolon.rb:21 +# source://rubocop//lib/rubocop/cop/style/if_with_semicolon.rb#21 RuboCop::Cop::Style::IfWithSemicolon::MSG_TERNARY = T.let(T.unsafe(nil), String) # Checks for `raise` or `fail` statements which do not specify an @@ -35639,19 +36794,19 @@ RuboCop::Cop::Style::IfWithSemicolon::MSG_TERNARY = T.let(T.unsafe(nil), String) # # good # raise ArgumentError, 'Error message here' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/implicit_runtime_error.rb:17 +# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#17 class RuboCop::Cop::Style::ImplicitRuntimeError < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/implicit_runtime_error.rb:23 + # source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#23 def implicit_runtime_error_raise_or_fail(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/implicit_runtime_error.rb:26 + # source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#26 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/implicit_runtime_error.rb:18 +# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#18 RuboCop::Cop::Style::ImplicitRuntimeError::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/implicit_runtime_error.rb:20 +# source://rubocop//lib/rubocop/cop/style/implicit_runtime_error.rb#20 RuboCop::Cop::Style::ImplicitRuntimeError::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `in;` uses in `case` expressions. @@ -35669,21 +36824,21 @@ RuboCop::Cop::Style::ImplicitRuntimeError::RESTRICT_ON_SEND = T.let(T.unsafe(nil # in pattern_b then bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/in_pattern_then.rb:21 +# source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#21 class RuboCop::Cop::Style::InPatternThen < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/in_pattern_then.rb:29 + # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#29 def on_in_pattern(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/in_pattern_then.rb:46 + # source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#46 def alternative_pattern_source(pattern); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/in_pattern_then.rb:27 +# source://rubocop//lib/rubocop/cop/style/in_pattern_then.rb#27 RuboCop::Cop::Style::InPatternThen::MSG = T.let(T.unsafe(nil), String) # Use `Kernel#loop` for infinite loops. @@ -35699,73 +36854,73 @@ RuboCop::Cop::Style::InPatternThen::MSG = T.let(T.unsafe(nil), String) # work # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:23 +# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#23 class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:34 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#34 def after_leaving_scope(scope, _variable_table); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:43 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#43 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:43 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#43 def on_until_post(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:39 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#39 def on_while(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:39 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#39 def on_while_post(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:83 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#83 def assigned_before_loop?(var, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:79 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#79 def assigned_inside_loop?(var, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:69 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#69 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:124 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#124 def configured_indent; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:102 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#102 def modifier_replacement(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:113 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#113 def non_modifier_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:88 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#88 def referenced_after_loop?(var, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:93 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#93 def replace_begin_end_with_modifier(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:98 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#98 def replace_source(corrector, range, replacement); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:52 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#52 def while_or_until(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:30 + # source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#30 def joining_forces; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:26 +# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#26 RuboCop::Cop::Style::InfiniteLoop::LEADING_SPACE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/infinite_loop.rb:28 +# source://rubocop//lib/rubocop/cop/style/infinite_loop.rb#28 RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String) # Checks for trailing inline comments. @@ -35783,13 +36938,13 @@ RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String) # f.bar # Trailing inline comment # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/inline_comment.rb:20 +# source://rubocop//lib/rubocop/cop/style/inline_comment.rb#20 class RuboCop::Cop::Style::InlineComment < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/inline_comment.rb:23 + # source://rubocop//lib/rubocop/cop/style/inline_comment.rb#23 def on_new_investigation; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/inline_comment.rb:21 +# source://rubocop//lib/rubocop/cop/style/inline_comment.rb#21 RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) # Check for usages of not (`not` or `!`) called on a method @@ -35825,63 +36980,63 @@ RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) # f != 1 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:43 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#43 class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:68 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#70 def inverse_block?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:59 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#61 def inverse_candidate?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:89 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:89 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#91 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:76 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#78 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:174 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#176 def camel_case_constant?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:118 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#120 def correct_inverse_block(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:109 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#111 def correct_inverse_method(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:125 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#127 def correct_inverse_selector(block, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:178 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#180 def dot_range(loc); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:161 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#163 def end_parentheses(node, method_call); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:147 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#149 def inverse_blocks; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:142 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#144 def inverse_methods; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:188 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#190 def message(method, inverse); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:151 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#153 def negated?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:155 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#157 def not_to_receiver(node, method_call); end # When comparing classes, `!(Integer < Numeric)` is not the same as @@ -35889,33 +37044,36 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:169 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#171 def possible_class_hierarchy_check?(lhs, rhs, method); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:182 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#184 def remove_end_parenthesis(corrector, node, method, method_call); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:54 + # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#56 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:52 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#52 RuboCop::Cop::Style::InverseMethods::CAMEL_CASE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:49 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#49 RuboCop::Cop::Style::InverseMethods::CLASS_COMPARISON_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:50 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#50 RuboCop::Cop::Style::InverseMethods::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:48 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#48 RuboCop::Cop::Style::InverseMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/inverse_methods.rb:51 +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#51 RuboCop::Cop::Style::InverseMethods::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#54 +RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for hardcoded IP addresses, which can make code # brittle. IP addresses are likely to need to be changed when code # is deployed to a different server or environment, which may break @@ -35930,54 +37088,54 @@ RuboCop::Cop::Style::InverseMethods::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(n # # good # ip_address = ENV['DEPLOYMENT_IP_ADDRESS'] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:21 +# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#21 class RuboCop::Cop::Style::IpAddresses < ::RuboCop::Cop::Base include ::RuboCop::Cop::StringHelp # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:46 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#46 def correct_style_detected; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:27 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#27 def offense?(node); end # Dummy implementation of method in ConfigurableEnforcedStyle that is # called from StringHelp. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:42 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#42 def opposite_style_detected; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:50 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#50 def allowed_addresses; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:55 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#55 def could_be_ip?(str); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:68 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#68 def starts_with_hex_or_colon?(str); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:64 + # source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#64 def too_long?(str); end end # IPv4-mapped IPv6 is the longest # -# source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:24 +# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#24 RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/style/ip_addresses.rb:25 +# source://rubocop//lib/rubocop/cop/style/ip_addresses.rb#25 RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) # Enforces that optional keyword parameters are placed at the @@ -36008,24 +37166,24 @@ RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) # # body omitted # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/keyword_parameters_order.rb:34 +# source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#34 class RuboCop::Cop::Style::KeywordParametersOrder < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/keyword_parameters_order.rb:40 + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#40 def on_kwoptarg(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/keyword_parameters_order.rb:58 + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#58 def append_newline_to_last_kwoptarg(arguments, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/keyword_parameters_order.rb:66 + # source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#66 def remove_kwargs(kwarg_nodes, corrector); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/keyword_parameters_order.rb:38 +# source://rubocop//lib/rubocop/cop/style/keyword_parameters_order.rb#38 RuboCop::Cop::Style::KeywordParametersOrder::MSG = T.let(T.unsafe(nil), String) # (by default) checks for uses of the lambda literal syntax for @@ -36070,47 +37228,47 @@ RuboCop::Cop::Style::KeywordParametersOrder::MSG = T.let(T.unsafe(nil), String) # x # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:49 +# source://rubocop//lib/rubocop/cop/style/lambda.rb#49 class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:64 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:64 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#64 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:115 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#115 def arguments_with_whitespace(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:104 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#104 def autocorrect_method_to_literal(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:119 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#119 def lambda_arg_string(args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:89 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#89 def message(node, selector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:95 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#95 def message_line_modifier(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:83 + # source://rubocop//lib/rubocop/cop/style/lambda.rb#83 def offending_selector?(node, selector); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:53 +# source://rubocop//lib/rubocop/cop/style/lambda.rb#53 RuboCop::Cop::Style::Lambda::LITERAL_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:54 +# source://rubocop//lib/rubocop/cop/style/lambda.rb#54 RuboCop::Cop::Style::Lambda::METHOD_MESSAGE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda.rb:56 +# source://rubocop//lib/rubocop/cop/style/lambda.rb#56 RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) # Checks for use of the lambda.(args) syntax. @@ -36128,39 +37286,39 @@ RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) # # good # lambda.(x, y) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:21 +# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#21 class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:28 + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#28 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:62 + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#62 def explicit_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:58 + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#58 def implicit_style?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:46 + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#46 def offense?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:50 + # source://rubocop//lib/rubocop/cop/style/lambda_call.rb#50 def prefer(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:25 +# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#25 RuboCop::Cop::Style::LambdaCall::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/lambda_call.rb:26 +# source://rubocop//lib/rubocop/cop/style/lambda_call.rb#26 RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for string literal concatenation at @@ -36179,80 +37337,80 @@ RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # some_str = 'ala' \ # 'bala' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:35 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#35 class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:51 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#51 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:71 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#74 def autocorrect(corrector, operator_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:57 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#57 def check_token_set(index); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:98 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#101 def eligible_next_successor?(next_successor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:94 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#97 def eligible_operator?(operator); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:102 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#105 def eligible_predecessor?(predecessor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:90 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#93 def eligible_successor?(successor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:84 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#87 def eligible_token_set?(predecessor, operator, successor); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:121 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#124 def standard_string_literal?(token); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:106 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#109 def token_after_last_string(successor, base_index); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:47 + # source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#47 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:42 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#42 RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_BEGIN_TOKEN = T.let(T.unsafe(nil), Symbol) -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:43 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#43 RuboCop::Cop::Style::LineEndConcatenation::COMPLEX_STRING_END_TOKEN = T.let(T.unsafe(nil), Symbol) -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:40 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#40 RuboCop::Cop::Style::LineEndConcatenation::CONCAT_TOKEN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:44 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#44 RuboCop::Cop::Style::LineEndConcatenation::HIGH_PRECEDENCE_OP_TOKEN_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:39 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#39 RuboCop::Cop::Style::LineEndConcatenation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:45 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#45 RuboCop::Cop::Style::LineEndConcatenation::QUOTE_DELIMITERS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/line_end_concatenation.rb:41 +# source://rubocop//lib/rubocop/cop/style/line_end_concatenation.rb#41 RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.unsafe(nil), Symbol) # Ensures magic comments are written consistently throughout your code base. @@ -36339,133 +37497,133 @@ RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.un # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:97 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#97 class RuboCop::Cop::Style::MagicCommentFormat < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:156 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#156 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:241 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#241 def correct_separator; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:279 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#279 def directive_capitalization; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:197 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#197 def directive_offends?(directive); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:233 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#233 def expected_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:183 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#183 def find_issues(comment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:207 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#207 def fix_directives(issues); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:221 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#221 def fix_values(issues); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:245 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#245 def incorrect_separator?(text); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:173 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#173 def leading_comment_lines; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:275 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#275 def line_range(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:167 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#167 def magic_comments; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:202 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#202 def register_offenses(issues); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:264 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#264 def replace_capitalization(text, style); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:260 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#260 def replace_separator(text); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:301 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#301 def supported_capitalizations; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:295 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#295 def valid_capitalization?(style); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:287 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#287 def value_capitalization; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:249 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#249 def wrong_capitalization?(text, expected_case); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:237 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#237 def wrong_separator; end end # Value object to extract source ranges for the different parts of a magic comment # -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:107 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#107 class RuboCop::Cop::Style::MagicCommentFormat::CommentRange extend ::Forwardable # @return [CommentRange] a new instance of CommentRange # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:119 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#119 def initialize(comment); end # Returns the value of attribute comment. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:117 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#117 def comment; end # A magic comment can contain one directive (normal style) or # multiple directives (emacs style) # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:125 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#125 def directives; end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def loc(*args, &block); end - # source://RUBY_ROOT/forwardable.rb:226 + # source://forwardable/1.3.2/forwardable.rb#229 def text(*args, &block); end # A magic comment can contain one value (normal style) or # multiple directives (emacs style) # - # source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:141 + # source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#141 def values; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:110 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#110 RuboCop::Cop::Style::MagicCommentFormat::CommentRange::DIRECTIVE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:114 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#114 RuboCop::Cop::Style::MagicCommentFormat::CommentRange::VALUE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:102 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#102 RuboCop::Cop::Style::MagicCommentFormat::KEBAB_SEPARATOR = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:103 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#103 RuboCop::Cop::Style::MagicCommentFormat::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:104 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#104 RuboCop::Cop::Style::MagicCommentFormat::MSG_VALUE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/magic_comment_format.rb:101 +# source://rubocop//lib/rubocop/cop/style/magic_comment_format.rb#101 RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), String) # Prefer `select` or `reject` over `map { ... }.compact`. @@ -36502,43 +37660,43 @@ RuboCop::Cop::Style::MagicCommentFormat::SNAKE_SEPARATOR = T.let(T.unsafe(nil), # # good # array.reject { |e| some_condition? } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:40 +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#40 class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:46 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#46 def map_and_compact?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:72 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:125 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#125 def range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:91 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#91 def returns_block_argument?(block_argument_node, return_value_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:95 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#95 def truthy_branch?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:115 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#115 def truthy_branch_for_guard?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:105 + # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#105 def truthy_branch_for_if?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/map_compact_with_conditional_block.rb:43 +# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#43 RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), String) # Looks for uses of `map.to_h` or `collect.to_h` that could be @@ -36561,30 +37719,69 @@ RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), # # good # {foo: bar}.to_h { |k, v| [k.to_s, v.do_something] } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/map_to_hash.rb:30 +# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#30 class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_to_hash.rb:41 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41 def map_to_h?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_to_hash.rb:45 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#45 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/map_to_hash.rb:59 + # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#59 def autocorrect(corrector, to_h, map); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/map_to_hash.rb:37 +# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#37 RuboCop::Cop::Style::MapToHash::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/map_to_hash.rb:38 +# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#38 RuboCop::Cop::Style::MapToHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# Looks for uses of `map.to_set` or `collect.to_set` that could be +# written with just `to_set`. +# +# @example +# # bad +# something.map { |i| i * 2 }.to_set +# +# # good +# something.to_set { |i| i * 2 } +# +# # bad +# [1, 2, 3].collect { |i| i.to_s }.to_set +# +# # good +# [1, 2, 3].to_set { |i| i.to_s } +# +# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#26 +class RuboCop::Cop::Style::MapToSet < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#34 + def map_to_set?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#38 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/map_to_set.rb#52 + def autocorrect(corrector, to_set, map); end +end + +# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#30 +RuboCop::Cop::Style::MapToSet::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/map_to_set.rb#31 +RuboCop::Cop::Style::MapToSet::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Enforces the presence (default) or absence of parentheses in # method calls containing parameters. # @@ -36764,7 +37961,7 @@ RuboCop::Cop::Style::MapToHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # okay with `^assert` listed in `AllowedPatterns` # assert_equal 'test', x # -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:195 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#195 class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods @@ -36773,109 +37970,114 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:210 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#210 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:210 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#210 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:210 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#210 def on_super(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:210 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#210 def on_yield(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:219 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#219 def args_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:228 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#228 def args_end(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:232 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#232 def args_parenthesized?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses.rb:206 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#206 def autocorrect_incompatible_with; end end end # Style omit_parentheses # -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:9 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#9 module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:76 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#76 def allowed_camel_case_method_call?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:160 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#161 def allowed_chained_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:156 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#157 def allowed_multiline_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:81 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#81 def allowed_string_interpolation_method_call?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:169 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#170 def ambiguous_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:198 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#199 def assigned_before?(node, target); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:33 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#207 + def assignment_in_condition?(node); end + + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#33 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:143 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#144 def call_as_argument_or_chain?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:103 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#104 def call_in_literals?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:112 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#113 def call_in_logical_operators?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:120 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#121 def call_in_optional_arguments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:124 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#125 def call_in_single_line_inheritance?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:128 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#129 def call_with_ambiguous_arguments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:138 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#139 def call_with_braced_block?(node); end # Require hash value omission be enclosed in parentheses to prevent the following issue: @@ -36883,126 +38085,126 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:64 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#64 def exist_next_line_expression?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:185 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#186 def hash_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:149 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#150 def hash_literal_in_arguments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:46 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#46 def inside_endless_method_def?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:202 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#203 def inside_string_interpolation?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:93 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#93 def legitimate_call_with_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:181 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#182 def logical_operator?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:58 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#58 def modifier_form?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:42 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#42 def offense_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:17 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#17 def omit_parentheses(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:86 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#86 def parentheses_at_the_end_of_multiline_call?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:189 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#190 def regexp_slash_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:51 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#51 def require_parentheses_for_hash_value_omission?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:173 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#174 def splat?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:72 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#72 def super_call_without_arguments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:68 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#68 def syntax_like_method_call?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:177 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#178 def ternary_if?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:193 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#194 def unary_literal?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:11 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#11 RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::OMIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb:10 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#10 RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::TRAILING_WHITESPACE_REGEX = T.let(T.unsafe(nil), Regexp) # Style require_parentheses # -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:8 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#8 module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:27 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#27 def allowed_method_name?(name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:31 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#31 def eligible_for_parentheses_omission?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:39 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#39 def ignored_macro?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:35 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#35 def included_macros_list; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:14 + # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#14 def require_parentheses(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb:9 +# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb#9 RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_MSG = T.let(T.unsafe(nil), String) # Checks for unwanted parentheses in parameterless method calls. @@ -37023,55 +38225,55 @@ RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_ # # good # object.foo() # -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:26 +# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#26 class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:33 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#33 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:60 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#60 def allowed_method_name?(name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:72 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#72 def any_assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:56 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#56 def default_argument?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:52 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#52 def ineligible_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:95 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#95 def offense_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:45 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#45 def register_offense(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:64 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#64 def same_name_assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:88 + # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#88 def variable_in_mass_assignment?(variable_name, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_call_without_args_parentheses.rb:31 +# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#31 RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String) # Checks for methods called on a do...end block. The point of @@ -37093,24 +38295,24 @@ RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil) # end # foo.c # -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb:24 +# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#24 class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb:29 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb:40 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb:29 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#29 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb:40 + # source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#40 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_called_on_do_end_block.rb:27 +# source://rubocop//lib/rubocop/cop/style/method_called_on_do_end_block.rb#27 RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String) # Checks for parentheses around the arguments in method @@ -37120,7 +38322,9 @@ RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String # # 1. Endless methods # 2. Argument lists containing a `forward-arg` (`...`) -# 3. Argument lists containing an anonymous block forwarding (`&`) +# 3. Argument lists containing an anonymous rest arguments forwarding (`*`) +# 4. Argument lists containing an anonymous keyword rest arguments forwarding (`**`) +# 5. Argument lists containing an anonymous block forwarding (`&`) # # Removing the parens would be a syntax error here. # @@ -37201,54 +38405,54 @@ RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String # do_something # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:95 +# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#97 class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:103 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:103 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#105 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:165 - def anonymous_block_arg?(node); end + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#169 + def anonymous_arguments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:143 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#147 def arguments_without_parentheses?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:124 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#126 def correct_arguments(arg_node, corrector); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:129 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#131 def forced_parentheses?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:147 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#151 def missing_parentheses(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:138 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#142 def require_parentheses?(args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:157 + # source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#161 def unwanted_parentheses(args); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:101 +# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#103 RuboCop::Cop::Style::MethodDefParentheses::MSG_MISSING = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/method_def_parentheses.rb:100 +# source://rubocop//lib/rubocop/cop/style/method_def_parentheses.rb#102 RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), String) # Checks for potential uses of `Enumerable#minmax`. @@ -37263,34 +38467,86 @@ RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), St # bar = foo.minmax # return foo.minmax # -# source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:17 +# source://rubocop//lib/rubocop/cop/style/min_max.rb#17 class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:38 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#38 def min_max_candidate(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:22 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:22 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#22 def on_return(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:55 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#55 def argument_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:42 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#42 def message(offender, receiver); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:46 + # source://rubocop//lib/rubocop/cop/style/min_max.rb#46 def offending_range(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/min_max.rb:20 +# source://rubocop//lib/rubocop/cop/style/min_max.rb#20 RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) +# Enforces the use of `max` or `min` instead of comparison for greater or less. +# +# NOTE: It can be used if you want to present limit or threshold in Ruby 2.7+. +# That it is slow though. So autocorrection will apply generic `max` or `min`: +# +# [source,ruby] +# ---- +# a.clamp(b..) # Same as `[a, b].max` +# a.clamp(..b) # Same as `[a, b].min` +# ---- +# +# @example +# +# # bad +# a > b ? a : b +# a >= b ? a : b +# +# # good +# [a, b].max +# +# # bad +# a < b ? a : b +# a <= b ? a : b +# +# # good +# [a, b].min +# +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#37 +class RuboCop::Cop::Style::MinMaxComparison < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#45 + def on_if(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#63 + def preferred_method(operator, lhs, rhs, if_branch, else_branch); end +end + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#43 +RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#41 +RuboCop::Cop::Style::MinMaxComparison::GRATER_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#42 +RuboCop::Cop::Style::MinMaxComparison::LESS_OPERATORS = T.let(T.unsafe(nil), Array) + +# source://rubocop//lib/rubocop/cop/style/min_max_comparison.rb#40 +RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String) + # Checks for `if` expressions that do not have an `else` branch. # # NOTE: Pattern matching is allowed to have no `else` branch because unlike `if` and `case`, @@ -37383,65 +38639,65 @@ RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) # # the content of `else` branch will be determined by Style/EmptyElse # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:99 +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#99 class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:114 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#114 def on_case(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:120 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#120 def on_case_match(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:107 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#107 def on_normal_if_unless(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:147 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#147 def case_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:126 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#126 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:169 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#169 def empty_else_config; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:159 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#159 def empty_else_cop_enabled?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:163 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#163 def empty_else_style; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:143 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#143 def if_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:132 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#132 def message_template; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:155 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#155 def unless_else_config; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:151 + # source://rubocop//lib/rubocop/cop/style/missing_else.rb#151 def unless_else_cop_enabled?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:103 +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#103 RuboCop::Cop::Style::MissingElse::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:105 +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#105 RuboCop::Cop::Style::MissingElse::MSG_EMPTY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/missing_else.rb:104 +# source://rubocop//lib/rubocop/cop/style/missing_else.rb#104 RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String) # Checks for the presence of `method_missing` without also @@ -37462,23 +38718,23 @@ RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String) # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/missing_respond_to_missing.rb:24 +# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#24 class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_respond_to_missing.rb:27 + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#27 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_respond_to_missing.rb:27 + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#27 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/missing_respond_to_missing.rb:37 + # source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#37 def implements_respond_to_missing?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/missing_respond_to_missing.rb:25 +# source://rubocop//lib/rubocop/cop/style/missing_respond_to_missing.rb#25 RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String) # Checks for grouping of mixins in `class` and `module` bodies. @@ -37508,55 +38764,55 @@ RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String) # extend Qox, Bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:33 +# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#33 class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:40 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:40 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#40 def on_module(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:64 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#64 def check(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:72 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#72 def check_grouped_style(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:91 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#91 def check_separated_style(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:127 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#127 def group_mixins(node, mixins); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:110 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#110 def grouped_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:53 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#53 def range_to_remove_for_subsequent_mixin(mixins, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:118 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#118 def separate_mixins(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:114 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#114 def separated_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:104 + # source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#104 def sibling_mixins(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:37 +# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#37 RuboCop::Cop::Style::MixinGrouping::MIXIN_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_grouping.rb:38 +# source://rubocop//lib/rubocop/cop/style/mixin_grouping.rb#38 RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String) # Checks that `include`, `extend` and `prepend` statements appear @@ -37597,31 +38853,33 @@ RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String) # prepend M # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_usage.rb:43 +# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#43 class RuboCop::Cop::Style::MixinUsage < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_usage.rb:54 + # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#54 def in_top_level_scope?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_usage.rb:48 + # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#48 def include_statement(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_usage.rb:62 + # source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#62 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_usage.rb:44 +# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#44 RuboCop::Cop::Style::MixinUsage::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/mixin_usage.rb:45 +# source://rubocop//lib/rubocop/cop/style/mixin_usage.rb#45 RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# Checks for use of `extend self` or `module_function` in a -# module. +# Checks for use of `extend self` or `module_function` in a module. # -# Supported styles are: module_function, extend_self, forbidden. `forbidden` -# style prohibits the usage of both styles. +# Supported styles are: `module_function` (default), `extend_self` and `forbidden`. # -# NOTE: the cop won't be activated when the module contains any private methods. +# A couple of things to keep in mind: +# +# - `forbidden` style prohibits the usage of both styles +# - in default mode (`module_function`), the cop won't be activated when the module +# contains any private methods # # @example EnforcedStyle: module_function (default) # # bad @@ -37635,7 +38893,7 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # module_function # # ... # end -# @example EnforcedStyle: module_function (default) +# # # good # module Test # extend self @@ -37643,6 +38901,13 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # private # # ... # end +# +# # good +# module Test +# class << self +# # ... +# end +# end # @example EnforcedStyle: extend_self # # bad # module Test @@ -37655,6 +38920,13 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # extend self # # ... # end +# +# # good +# module Test +# class << self +# # ... +# end +# end # @example EnforcedStyle: forbidden # # bad # module Test @@ -37676,48 +38948,55 @@ RuboCop::Cop::Style::MixinUsage::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:73 +# # good +# module Test +# class << self +# # ... +# end +# end +# +# source://rubocop//lib/rubocop/cop/style/module_function.rb#95 class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:85 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#107 def extend_self_node?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:82 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#104 def module_function_node?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:90 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#112 def on_module(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:88 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#110 def private_directive?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:127 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#149 def check_extend_self(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:133 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#155 def check_forbidden(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:119 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#141 def check_module_function(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:108 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#130 def each_wrong_style(nodes, &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:140 + # source://rubocop//lib/rubocop/cop/style/module_function.rb#162 def message(_range); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:78 +# source://rubocop//lib/rubocop/cop/style/module_function.rb#100 RuboCop::Cop::Style::ModuleFunction::EXTEND_SELF_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:79 +# source://rubocop//lib/rubocop/cop/style/module_function.rb#101 RuboCop::Cop::Style::ModuleFunction::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/module_function.rb:77 +# source://rubocop//lib/rubocop/cop/style/module_function.rb#99 RuboCop::Cop::Style::ModuleFunction::MODULE_FUNCTION_MSG = T.let(T.unsafe(nil), String) # Checks for chaining of a block after another block that spans @@ -37740,18 +39019,18 @@ RuboCop::Cop::Style::ModuleFunction::MODULE_FUNCTION_MSG = T.let(T.unsafe(nil), # t.object_id # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_block_chain.rb:25 +# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#25 class RuboCop::Cop::Style::MultilineBlockChain < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_block_chain.rb:30 + # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_block_chain.rb:30 + # source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#30 def on_numblock(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_block_chain.rb:28 +# source://rubocop//lib/rubocop/cop/style/multiline_block_chain.rb#28 RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) # Checks for uses of if/unless modifiers with multiple-lines bodies. @@ -37766,29 +39045,29 @@ RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) # # good # { result: 'ok' } if cond # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_modifier.rb:17 +# source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#17 class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_modifier.rb:25 + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#25 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_modifier.rb:43 + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#43 def configured_indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_modifier.rb:47 + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#47 def indented_body(body, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_modifier.rb:35 + # source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#35 def to_normal_if(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_modifier.rb:22 +# source://rubocop//lib/rubocop/cop/style/multiline_if_modifier.rb#22 RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String) # Checks for uses of the `then` keyword in multi-line if statements. @@ -37805,27 +39084,27 @@ RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String) # elsif cond then b # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_then.rb:19 +# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#19 class RuboCop::Cop::Style::MultilineIfThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_then.rb:28 + # source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#28 def on_normal_if_unless(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_then.rb:38 + # source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#38 def non_modifier_then?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_then.rb:26 +# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#26 RuboCop::Cop::Style::MultilineIfThen::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_if_then.rb:24 +# source://rubocop//lib/rubocop/cop/style/multiline_if_then.rb#24 RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), Regexp) # Checks uses of the `then` keyword in multi-line `in` statement. @@ -37852,13 +39131,13 @@ RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), R # arg2) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_in_pattern_then.rb:30 +# source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#30 class RuboCop::Cop::Style::MultilineInPatternThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_in_pattern_then.rb:39 + # source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#39 def on_in_pattern(node); end private @@ -37867,11 +39146,11 @@ class RuboCop::Cop::Style::MultilineInPatternThen < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_in_pattern_then.rb:51 + # source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#51 def require_then?(in_pattern_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_in_pattern_then.rb:37 +# source://rubocop//lib/rubocop/cop/style/multiline_in_pattern_then.rb#37 RuboCop::Cop::Style::MultilineInPatternThen::MSG = T.let(T.unsafe(nil), String) # Checks expressions wrapping styles for multiline memoization. @@ -37901,38 +39180,38 @@ RuboCop::Cop::Style::MultilineInPatternThen::MSG = T.let(T.unsafe(nil), String) # baz # ) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:33 +# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#33 class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:55 + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#55 def message(_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:40 + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#40 def on_or_asgn(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:61 + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#61 def bad_rhs?(rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:71 + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#71 def keyword_autocorrect(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:77 + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#77 def keyword_begin_str(node, node_buf); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:86 + # source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#86 def keyword_end_str(node, node_buf); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:38 +# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#38 RuboCop::Cop::Style::MultilineMemoization::BRACES_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_memoization.rb:37 +# source://rubocop//lib/rubocop/cop/style/multiline_memoization.rb#37 RuboCop::Cop::Style::MultilineMemoization::KEYWORD_MSG = T.let(T.unsafe(nil), String) # Checks for method signatures that span multiple lines. @@ -37950,50 +39229,50 @@ RuboCop::Cop::Style::MultilineMemoization::KEYWORD_MSG = T.let(T.unsafe(nil), St # baz) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:21 +# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#21 class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:27 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:27 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#27 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:57 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#57 def arguments_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:38 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#38 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:69 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69 def closing_line(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:73 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#73 def correction_exceeds_max_line_length?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:81 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81 def definition_width(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:77 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77 def indentation_width(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:53 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#53 def last_line_source_of_arguments(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:85 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85 def max_line_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:65 + # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#65 def opening_line(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_method_signature.rb:25 +# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#25 RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String) # Checks for multi-line ternary op expressions. @@ -38026,41 +39305,41 @@ RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String # # return cond ? b : c # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:36 +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#36 class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:43 + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#43 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:75 + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#75 def enforce_single_line_ternary_operator?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:57 + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#57 def offense?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:61 + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#61 def replacement(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:79 + # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#79 def use_assignment_method?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:39 +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#39 RuboCop::Cop::Style::MultilineTernaryOperator::MSG_IF = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:40 +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#40 RuboCop::Cop::Style::MultilineTernaryOperator::MSG_SINGLE_LINE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_ternary_operator.rb:41 +# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#41 RuboCop::Cop::Style::MultilineTernaryOperator::SINGLE_LINE_TYPES = T.let(T.unsafe(nil), Array) # Checks uses of the `then` keyword @@ -38088,30 +39367,30 @@ RuboCop::Cop::Style::MultilineTernaryOperator::SINGLE_LINE_TYPES = T.let(T.unsaf # arg2) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_when_then.rb:31 +# source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#31 class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_when_then.rb:37 + # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#37 def on_when(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_when_then.rb:58 + # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#58 def accept_node_type?(node); end # Requires `then` for write `when` and its body on the same line. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_when_then.rb:49 + # source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#49 def require_then?(when_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiline_when_then.rb:35 +# source://rubocop//lib/rubocop/cop/style/multiline_when_then.rb#35 RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String) # Checks against comparing a variable with multiple items, where @@ -38150,69 +39429,69 @@ RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String) # # good # foo if [b.lightweight, b.heavyweight].include?(a) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:43 +# source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#43 class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:49 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#49 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:53 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#53 def on_or(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:78 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#78 def simple_comparison_lhs?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:83 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#83 def simple_comparison_rhs?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:75 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#75 def simple_double_comparison?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:151 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#151 def allow_method_comparison?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:126 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#126 def comparison?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:118 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#118 def nested_comparison?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:87 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#87 def nested_variable_comparison?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:146 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#146 def reset_comparison; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:130 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#130 def root_of_or_node(or_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:140 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#140 def switch_comparison?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:114 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#114 def variable_name(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:93 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#93 def variables_in_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:101 + # source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#101 def variables_in_simple_node(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/multiple_comparison.rb:46 +# source://rubocop//lib/rubocop/cop/style/multiple_comparison.rb#46 RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) # Checks whether some constant value isn't a @@ -38284,75 +39563,75 @@ RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) # # shareable_constant_value: literal # CONST = [1, 2, 3] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:87 +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#87 class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::Style::MutableConstant::ShareableConstantValue include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-sorbet-0.6.11/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb:15 + # source://rubocop-sorbet/0.6.11/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#15 def on_assignment(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:127 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#127 def on_casgn(node); end # Some of these patterns may not actually return an immutable object, # but we want to consider them immutable for this cop. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:224 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#224 def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:241 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#241 def range_enclosed_in_parentheses?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:217 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#217 def splat_value(param0 = T.unsafe(nil)); end - # source://rubocop-sorbet-0.6.11/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb:10 + # source://rubocop-sorbet/0.6.11/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#10 def t_let(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:169 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#169 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:158 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#158 def check(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:208 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#208 def correct_splat_expansion(corrector, expr, splat_value); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:200 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#200 def frozen_regexp_or_range_literals?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:190 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#190 def immutable_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:184 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#184 def mutable_literal?(value); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:204 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#204 def requires_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:194 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#194 def shareable_constant_value?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:149 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#149 def strict_check(value); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:125 +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#125 RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String) # Handles magic comment shareable_constant_value with O(n ^ 2) complexity @@ -38360,35 +39639,35 @@ RuboCop::Cop::Style::MutableConstant::MSG = T.let(T.unsafe(nil), String) # Iterates over all lines before a CONSTANT # until it reaches shareable_constant_value # -# source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:88 +# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#88 module RuboCop::Cop::Style::MutableConstant::ShareableConstantValue private # Identifies the most recent magic comment with valid shareable constant values # that's in scope for this node # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:102 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#102 def magic_comment_in_scope(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:110 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#110 def processed_source_till_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:91 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#91 def recent_shareable_value?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:114 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#114 def shareable_constant_value_enabled?(value); end class << self # Identifies the most recent magic comment with valid shareable constant values # that's in scope for this node # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:102 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#102 def magic_comment_in_scope(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/mutable_constant.rb:91 + # source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#91 def recent_shareable_value?(node); end end end @@ -38457,23 +39736,23 @@ end # bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if.rb:71 +# source://rubocop//lib/rubocop/cop/style/negated_if.rb#71 class RuboCop::Cop::Style::NegatedIf < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if.rb:76 + # source://rubocop//lib/rubocop/cop/style/negated_if.rb#76 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if.rb:92 + # source://rubocop//lib/rubocop/cop/style/negated_if.rb#92 def correct_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if.rb:88 + # source://rubocop//lib/rubocop/cop/style/negated_if.rb#88 def message(node); end end @@ -38501,63 +39780,66 @@ end # # good # x ? do_something_else : do_something # -# source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:30 +# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#30 class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:39 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#39 def double_negation?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:49 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#49 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:45 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#45 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:83 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#89 def correct_negated_condition(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:79 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#85 def corrected_ancestor?(node); end # Collect the entire else branch, including whitespace and comments # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:118 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#124 def else_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:69 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#70 def if_else?(node); end # Collect the entire if branch, including whitespace and comments # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:109 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#115 def if_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:74 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#80 def negated_condition?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:96 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#102 def swap_branches(corrector, node); end + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#75 + def unwrap_begin_nodes(node); end + class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:41 + # source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#41 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:34 +# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#34 RuboCop::Cop::Style::NegatedIfElseCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/negated_if_else_condition.rb:36 +# source://rubocop//lib/rubocop/cop/style/negated_if_else_condition.rb#36 RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T.unsafe(nil), Array) # Checks for uses of unless with a negated condition. Only unless @@ -38614,23 +39896,23 @@ RuboCop::Cop::Style::NegatedIfElseCondition::NEGATED_EQUALITY_METHODS = T.let(T. # bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/negated_unless.rb:61 +# source://rubocop//lib/rubocop/cop/style/negated_unless.rb#61 class RuboCop::Cop::Style::NegatedUnless < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_unless.rb:66 + # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#66 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_unless.rb:82 + # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#82 def correct_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_unless.rb:78 + # source://rubocop//lib/rubocop/cop/style/negated_unless.rb#78 def message(node); end end @@ -38654,15 +39936,15 @@ end # bar while foo # bar while !foo && baz # -# source://rubocop-1.35.1/lib/rubocop/cop/style/negated_while.rb:25 +# source://rubocop//lib/rubocop/cop/style/negated_while.rb#25 class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base include ::RuboCop::Cop::NegativeConditional extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_while.rb:29 + # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/negated_while.rb:29 + # source://rubocop//lib/rubocop/cop/style/negated_while.rb#29 def on_while(node); end end @@ -38677,31 +39959,31 @@ end # # good # File.dirname(path, 2) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:17 +# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#17 class RuboCop::Cop::Style::NestedFileDirname < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:28 + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#28 def file_dirname?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:33 + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#33 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:60 + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#60 def offense_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:49 + # source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#49 def path_with_dir_level(node, level); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:22 +# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#22 RuboCop::Cop::Style::NestedFileDirname::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_file_dirname.rb:23 +# source://rubocop//lib/rubocop/cop/style/nested_file_dirname.rb#23 RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for nested use of if, unless, while and until in their @@ -38715,55 +39997,55 @@ RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # good # something if b && a # -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:16 +# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#16 class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:22 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:22 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:22 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#22 def on_while(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:85 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#85 def add_parentheses_to_method_arguments(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:42 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#42 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:30 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#30 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:65 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#65 def left_hand_operand(node, operator); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:38 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#38 def modifier?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:51 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#51 def new_expression(inner_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:61 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#61 def replacement_operator(keyword); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:94 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#94 def requires_parens?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:71 + # source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#71 def right_hand_operand(node, left_hand_keyword); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_modifier.rb:20 +# source://rubocop//lib/rubocop/cop/style/nested_modifier.rb#20 RuboCop::Cop::Style::NestedModifier::MSG = T.let(T.unsafe(nil), String) # Checks for unparenthesized method calls in the argument list @@ -38783,40 +40065,40 @@ RuboCop::Cop::Style::NestedModifier::MSG = T.let(T.unsafe(nil), String) # # good # method1(foo arg) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:24 +# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#24 class RuboCop::Cop::Style::NestedParenthesizedCalls < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:35 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:35 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#35 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:71 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#71 def allowed?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:65 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#65 def allowed_omission?(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:51 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#51 def autocorrect(corrector, nested); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:31 + # source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#31 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_parenthesized_calls.rb:29 +# source://rubocop//lib/rubocop/cop/style/nested_parenthesized_calls.rb#29 RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String) # Checks for nested ternary op expressions. @@ -38832,30 +40114,30 @@ RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String # a2 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:18 +# source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#18 class RuboCop::Cop::Style::NestedTernaryOperator < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:25 + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#25 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:48 + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#48 def autocorrect(corrector, if_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:41 + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#41 def if_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:55 + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#55 def remove_parentheses(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:61 + # source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#61 def replace_loc_and_whitespace(corrector, range, replacement); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/nested_ternary_operator.rb:23 +# source://rubocop//lib/rubocop/cop/style/nested_ternary_operator.rb#23 RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String) # Use `next` to skip iteration instead of a condition at the end. @@ -38901,116 +40183,116 @@ RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String) # puts a # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:49 +# source://rubocop//lib/rubocop/cop/style/next.rb#49 class RuboCop::Cop::Style::Next < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::MinBodyLength include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:68 + # source://rubocop//lib/rubocop/cop/style/next.rb#68 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:76 + # source://rubocop//lib/rubocop/cop/style/next.rb#76 def on_for(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:62 + # source://rubocop//lib/rubocop/cop/style/next.rb#62 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:68 + # source://rubocop//lib/rubocop/cop/style/next.rb#68 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:76 + # source://rubocop//lib/rubocop/cop/style/next.rb#76 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:76 + # source://rubocop//lib/rubocop/cop/style/next.rb#76 def on_while(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:213 + # source://rubocop//lib/rubocop/cop/style/next.rb#213 def actual_indent(lines, buffer); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:112 + # source://rubocop//lib/rubocop/cop/style/next.rb#112 def allowed_modifier_if?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:155 + # source://rubocop//lib/rubocop/cop/style/next.rb#155 def autocorrect_block(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:145 + # source://rubocop//lib/rubocop/cop/style/next.rb#145 def autocorrect_modifier(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:84 + # source://rubocop//lib/rubocop/cop/style/next.rb#84 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:170 + # source://rubocop//lib/rubocop/cop/style/next.rb#170 def cond_range(node, cond); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:189 + # source://rubocop//lib/rubocop/cop/style/next.rb#189 def end_followed_by_whitespace_only?(source_buffer, end_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:180 + # source://rubocop//lib/rubocop/cop/style/next.rb#180 def end_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:98 + # source://rubocop//lib/rubocop/cop/style/next.rb#98 def ends_with_condition?(body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:128 + # source://rubocop//lib/rubocop/cop/style/next.rb#128 def exit_body_type?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:217 + # source://rubocop//lib/rubocop/cop/style/next.rb#217 def heredoc_lines(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:120 + # source://rubocop//lib/rubocop/cop/style/next.rb#120 def if_else_children?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:124 + # source://rubocop//lib/rubocop/cop/style/next.rb#124 def if_without_else?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:140 + # source://rubocop//lib/rubocop/cop/style/next.rb#140 def offense_location(offense_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:134 + # source://rubocop//lib/rubocop/cop/style/next.rb#134 def offense_node(body); end # Adjust indentation of `lines` to match `node` # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:204 + # source://rubocop//lib/rubocop/cop/style/next.rb#204 def reindent(lines, node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:224 + # source://rubocop//lib/rubocop/cop/style/next.rb#224 def reindent_line(corrector, lineno, delta, buffer); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:193 + # source://rubocop//lib/rubocop/cop/style/next.rb#193 def reindentable_lines(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:104 + # source://rubocop//lib/rubocop/cop/style/next.rb#104 def simple_if_without_break?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:58 + # source://rubocop//lib/rubocop/cop/style/next.rb#58 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:56 +# source://rubocop//lib/rubocop/cop/style/next.rb#56 RuboCop::Cop::Style::Next::EXIT_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/next.rb:55 +# source://rubocop//lib/rubocop/cop/style/next.rb#55 RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String) # Checks for comparison of something with nil using `==` and @@ -39037,43 +40319,43 @@ RuboCop::Cop::Style::Next::MSG = T.let(T.unsafe(nil), String) # if x == nil # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:31 +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#31 class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:44 + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#44 def nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:41 + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#41 def nil_comparison?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:46 + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#46 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:65 + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#65 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:77 + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#77 def prefer_comparison?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:69 + # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#69 def style_check?(node, &block); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:36 +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#36 RuboCop::Cop::Style::NilComparison::EXPLICIT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:35 +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#35 RuboCop::Cop::Style::NilComparison::PREDICATE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/nil_comparison.rb:38 +# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#38 RuboCop::Cop::Style::NilComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for lambdas and procs that always return nil, @@ -39105,24 +40387,24 @@ RuboCop::Cop::Style::NilComparison::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # Proc.new { nil if x } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/nil_lambda.rb:35 +# source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#35 class RuboCop::Cop::Style::NilLambda < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_lambda.rb:42 + # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#42 def nil_return?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_lambda.rb:46 + # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#46 def on_block(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/nil_lambda.rb:58 + # source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#58 def autocorrect(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/nil_lambda.rb:39 +# source://rubocop//lib/rubocop/cop/style/nil_lambda.rb#39 RuboCop::Cop::Style::NilLambda::MSG = T.let(T.unsafe(nil), String) # Checks for non-nil checks, which are usually redundant. @@ -39161,74 +40443,74 @@ RuboCop::Cop::Style::NilLambda::MSG = T.let(T.unsafe(nil), String) # if !x.nil? # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:44 +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#44 class RuboCop::Cop::Style::NonNilCheck < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:59 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#59 def nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:62 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#62 def not_and_nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:53 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#53 def not_equal_to_nil?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:73 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:73 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#73 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:64 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#64 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:56 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#56 def unless_check?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:93 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#93 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:123 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#123 def autocorrect_comparison(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:137 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#137 def autocorrect_non_nil(corrector, node, inner_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:145 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#145 def autocorrect_unless_nil(corrector, node, receiver); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:119 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#119 def include_semantic_changes?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:110 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#110 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:150 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#150 def nil_comparison_style; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:88 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#88 def register_offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:104 + # source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#104 def unless_and_nil_check?(send_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:48 +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#48 RuboCop::Cop::Style::NonNilCheck::MSG_FOR_REDUNDANCY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:47 +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#47 RuboCop::Cop::Style::NonNilCheck::MSG_FOR_REPLACEMENT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/non_nil_check.rb:50 +# source://rubocop//lib/rubocop/cop/style/non_nil_check.rb#50 RuboCop::Cop::Style::NonNilCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of the keyword `not` instead of `!`. @@ -39241,43 +40523,43 @@ RuboCop::Cop::Style::NonNilCheck::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # x = !something # -# source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:16 +# source://rubocop//lib/rubocop/cop/style/not.rb#16 class RuboCop::Cop::Style::Not < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:32 + # source://rubocop//lib/rubocop/cop/style/not.rb#32 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:60 + # source://rubocop//lib/rubocop/cop/style/not.rb#60 def correct_opposite_method(corrector, range, child); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:65 + # source://rubocop//lib/rubocop/cop/style/not.rb#65 def correct_with_parens(corrector, range, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:70 + # source://rubocop//lib/rubocop/cop/style/not.rb#70 def correct_without_parens(corrector, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:50 + # source://rubocop//lib/rubocop/cop/style/not.rb#50 def opposite_method?(child); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:54 + # source://rubocop//lib/rubocop/cop/style/not.rb#54 def requires_parens?(child); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:20 +# source://rubocop//lib/rubocop/cop/style/not.rb#20 RuboCop::Cop::Style::Not::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:23 +# source://rubocop//lib/rubocop/cop/style/not.rb#23 RuboCop::Cop::Style::Not::OPPOSITE_METHODS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/not.rb:21 +# source://rubocop//lib/rubocop/cop/style/not.rb#21 RuboCop::Cop::Style::Not::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for numbered parameters. @@ -39300,19 +40582,19 @@ RuboCop::Cop::Style::Not::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # collection.each { |item| puts item } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters.rb:27 +# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#27 class RuboCop::Cop::Style::NumberedParameters < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters.rb:36 + # source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#36 def on_numblock(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters.rb:31 +# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#31 RuboCop::Cop::Style::NumberedParameters::MSG_DISALLOW = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters.rb:32 +# source://rubocop//lib/rubocop/cop/style/numbered_parameters.rb#32 RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), String) # Detects use of an excessive amount of numbered parameters in a @@ -39329,26 +40611,26 @@ RuboCop::Cop::Style::NumberedParameters::MSG_MULTI_LINE = T.let(T.unsafe(nil), S # # good # foo { do_something(_1) } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters_limit.rb:19 +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#19 class RuboCop::Cop::Style::NumberedParametersLimit < ::RuboCop::Cop::Base extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def max=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters_limit.rb:30 + # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#30 def on_numblock(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters_limit.rb:41 + # source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#41 def max_count; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters_limit.rb:23 +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#23 RuboCop::Cop::Style::NumberedParametersLimit::DEFAULT_MAX_VALUE = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numbered_parameters_limit.rb:28 +# source://rubocop//lib/rubocop/cop/style/numbered_parameters_limit.rb#28 RuboCop::Cop::Style::NumberedParametersLimit::MSG = T.let(T.unsafe(nil), String) # Checks for octal, hex, binary, and decimal literals using @@ -39381,77 +40663,77 @@ RuboCop::Cop::Style::NumberedParametersLimit::MSG = T.let(T.unsafe(nil), String) # # good # num = 01234 # -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:36 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#36 class RuboCop::Cop::Style::NumericLiteralPrefix < ::RuboCop::Cop::Base include ::RuboCop::Cop::IntegerNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:52 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#52 def on_int(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:109 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#109 def format_binary(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:113 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#113 def format_decimal(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:105 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#105 def format_hex(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:97 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#97 def format_octal(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:101 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#101 def format_octal_zero_only(source); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:82 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#82 def hex_bin_dec_literal_type(literal); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:68 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#68 def literal_type(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:64 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#64 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:74 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#74 def octal_literal_type(literal); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:93 + # source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#93 def octal_zero_only?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:49 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#49 RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:43 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#43 RuboCop::Cop::Style::NumericLiteralPrefix::BINARY_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:50 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#50 RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:44 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#44 RuboCop::Cop::Style::NumericLiteralPrefix::DECIMAL_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:48 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#48 RuboCop::Cop::Style::NumericLiteralPrefix::HEX_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:42 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#42 RuboCop::Cop::Style::NumericLiteralPrefix::HEX_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:47 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#47 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:41 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#41 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:46 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#46 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literal_prefix.rb:40 +# source://rubocop//lib/rubocop/cop/style/numeric_literal_prefix.rb#40 RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsafe(nil), Regexp) # Checks for big numeric literals without `_` between groups @@ -39488,54 +40770,54 @@ RuboCop::Cop::Style::NumericLiteralPrefix::OCTAL_ZERO_ONLY_REGEX = T.let(T.unsaf # # good # 3000 # You can specify allowed numbers. (e.g. port number) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:43 +# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#43 class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::IntegerNode include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:11 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#11 def min_digits=(value); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:60 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#60 def on_float(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:56 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#56 def on_int(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:118 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#118 def allowed_numbers; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:122 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#122 def allowed_patterns; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:66 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#66 def check(node); end # @param int_part [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:107 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#107 def format_int_part(int_part); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:93 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#93 def format_number(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:114 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#114 def min_digits; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:82 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#82 def register_offense(node, &_block); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:89 + # source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#89 def short_group_regex; end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:49 +# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#49 RuboCop::Cop::Style::NumericLiterals::DELIMITER_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_literals.rb:48 +# source://rubocop//lib/rubocop/cop/style/numeric_literals.rb#48 RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String) # Checks for usage of comparison operators (`==`, @@ -39591,7 +40873,7 @@ RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String) # foo.zero? # foo.negative? # bar.baz.positive? -# @example AllowedPatterns: [/zero/] with EnforcedStyle: predicate +# @example AllowedPatterns: ['zero'] with EnforcedStyle: predicate # # good # # bad # foo.zero? @@ -39600,62 +40882,62 @@ RuboCop::Cop::Style::NumericLiterals::MSG = T.let(T.unsafe(nil), String) # foo.negative? # bar.baz.positive? # -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:78 +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#78 class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::AllowedPattern extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:166 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#166 def comparison(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:171 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#171 def inverted_comparison(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:90 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#90 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:161 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#161 def predicate(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:107 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#107 def allowed_method_name?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:111 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#111 def check(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:152 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#152 def invert; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:132 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#132 def parenthesized_source(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:124 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#124 def replacement(numeric, operation); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:144 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#144 def replacement_supported?(operator); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:140 + # source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#140 def require_parentheses?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:84 +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#84 RuboCop::Cop::Style::NumericPredicate::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:86 +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#86 RuboCop::Cop::Style::NumericPredicate::REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/numeric_predicate.rb:88 +# source://rubocop//lib/rubocop/cop/style/numeric_predicate.rb#88 RuboCop::Cop::Style::NumericPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use of consistent method names @@ -39676,33 +40958,34 @@ RuboCop::Cop::Style::NumericPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # good # obj.yield_self { |x| x.do_something } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:25 +# source://rubocop//lib/rubocop/cop/style/object_then.rb#25 class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:31 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#34 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:31 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#34 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:37 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#40 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:45 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#48 def check_method_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:65 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#68 def message(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:54 + # source://rubocop//lib/rubocop/cop/style/object_then.rb#57 def preferred_method(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/object_then.rb:29 +# source://rubocop//lib/rubocop/cop/style/object_then.rb#32 RuboCop::Cop::Style::ObjectThen::MSG = T.let(T.unsafe(nil), String) # Checks for uses of if/then/else/end constructs on a single line. @@ -39733,62 +41016,62 @@ RuboCop::Cop::Style::ObjectThen::MSG = T.let(T.unsafe(nil), String) # baz # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:33 +# source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#33 class RuboCop::Cop::Style::OneLineConditional < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::OnNormalIfUnless extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:41 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#41 def on_normal_if_unless(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:76 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#76 def always_multiline?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:58 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#58 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:80 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#80 def cannot_replace_to_ternary?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:92 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#92 def expr_replacement(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:120 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#120 def indentation_width; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:113 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#113 def keyword_with_changed_precedence?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:54 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#54 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:106 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#106 def method_call_with_changed_precedence?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:98 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#98 def requires_parentheses?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:66 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#66 def ternary_correction(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:84 + # source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#84 def ternary_replacement(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/one_line_conditional.rb:38 +# source://rubocop//lib/rubocop/cop/style/one_line_conditional.rb#38 RuboCop::Cop::Style::OneLineConditional::MSG = T.let(T.unsafe(nil), String) # Flags uses of OpenStruct, as it is now officially discouraged @@ -39813,25 +41096,58 @@ RuboCop::Cop::Style::OneLineConditional::MSG = T.let(T.unsafe(nil), String) # test_double = double # allow(test_double).to receive(:a).and_return('b') # -# source://rubocop-1.35.1/lib/rubocop/cop/style/open_struct_use.rb:44 +# source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#44 class RuboCop::Cop::Style::OpenStructUse < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/open_struct_use.rb:52 + # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#52 def on_const(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/open_struct_use.rb:48 + # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#48 def uses_open_struct?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/open_struct_use.rb:61 + # source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#61 def custom_class_or_module_definition?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/open_struct_use.rb:45 +# source://rubocop//lib/rubocop/cop/style/open_struct_use.rb#45 RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String) +# Checks for redundant dot before operator method call. +# The target operator methods are `|`, `^`, `&`, `<=>`, `==`, `===`, `=~`, `>`, `>=`, `<`, +# `<=`, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`. +# +# @example +# +# # bad +# foo.+ bar +# foo.& bar +# +# # good +# foo + bar +# foo & bar +# +# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#20 +class RuboCop::Cop::Style::OperatorMethodCall < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#26 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#41 + def wrap_in_parentheses_if_chained(corrector, node); end +end + +# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#23 +RuboCop::Cop::Style::OperatorMethodCall::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/operator_method_call.rb#24 +RuboCop::Cop::Style::OperatorMethodCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for options hashes and discourages them if the # current Ruby version supports keyword arguments. # @@ -39848,31 +41164,31 @@ RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String) # # ... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:22 +# source://rubocop//lib/rubocop/cop/style/option_hash.rb#22 class RuboCop::Cop::Style::OptionHash < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:30 + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#30 def on_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:26 + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#26 def option_hash(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:39 + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#39 def allowlist; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:48 + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#48 def super_used?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:43 + # source://rubocop//lib/rubocop/cop/style/option_hash.rb#43 def suspicious_name?(arg_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/option_hash.rb:23 +# source://rubocop//lib/rubocop/cop/style/option_hash.rb#23 RuboCop::Cop::Style::OptionHash::MSG = T.let(T.unsafe(nil), String) # Checks for optional arguments to methods @@ -39890,21 +41206,21 @@ RuboCop::Cop::Style::OptionHash::MSG = T.let(T.unsafe(nil), String) # def foobar(a = 1, b = 2, c = 3) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/optional_arguments.rb:24 +# source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#24 class RuboCop::Cop::Style::OptionalArguments < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/optional_arguments.rb:27 + # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#27 def on_def(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/optional_arguments.rb:45 + # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#45 def argument_positions(arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/optional_arguments.rb:33 + # source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#33 def each_misplaced_optional_arg(arguments); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/optional_arguments.rb:25 +# source://rubocop//lib/rubocop/cop/style/optional_arguments.rb#25 RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String) # Checks for places where keyword arguments can be used instead of @@ -39933,23 +41249,23 @@ RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String) # puts bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/optional_boolean_parameter.rb:37 +# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#37 class RuboCop::Cop::Style::OptionalBooleanParameter < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods - # source://rubocop-1.35.1/lib/rubocop/cop/style/optional_boolean_parameter.rb:43 + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/optional_boolean_parameter.rb:43 + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#43 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/optional_boolean_parameter.rb:56 + # source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#56 def format_message(argument); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/optional_boolean_parameter.rb:40 +# source://rubocop//lib/rubocop/cop/style/optional_boolean_parameter.rb#40 RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String) # Checks for potential usage of the `||=` operator. @@ -39976,44 +41292,44 @@ RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String # # good - set name to 'Bozhidar', only if it's nil or false # name ||= 'Bozhidar' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:29 +# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#29 class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:51 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#51 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:57 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#57 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:35 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#35 def ternary_assignment?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:44 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#44 def unless_assignment?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:70 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#70 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:80 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#80 def take_variable_and_default_from_ternary(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:85 + # source://rubocop//lib/rubocop/cop/style/or_assignment.rb#85 def take_variable_and_default_from_unless(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/or_assignment.rb:32 +# source://rubocop//lib/rubocop/cop/style/or_assignment.rb#32 RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for simple usages of parallel assignment. @@ -40034,15 +41350,15 @@ RuboCop::Cop::Style::OrAssignment::MSG = T.let(T.unsafe(nil), String) # b = 2 # c = 3 # -# source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:25 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#25 class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:115 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#115 def implicit_self_getter?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:31 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#31 def on_masgn(node); end private @@ -40051,55 +41367,55 @@ class RuboCop::Cop::Style::ParallelAssignment < ::RuboCop::Cop::Base # This makes the sorting algorithm work for expressions such as # `self.a, self.b = b, a`. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:108 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#108 def add_self_to_getters(right_elements); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:60 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#60 def allowed_lhs?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:54 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#54 def allowed_masign?(lhs_elements, rhs_elements); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:68 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#68 def allowed_rhs?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:80 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#80 def assignment_corrector(node, order); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:44 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#44 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:91 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#91 def find_valid_order(left_elements, right_elements); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:174 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#174 def modifier_statement?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:76 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#76 def return_of_method_call?(node); end end # Helper class necessitated by silly design of TSort prior to Ruby 2.1 # Newer versions have a better API, but that doesn't help us # -# source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:119 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#119 class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter include ::TSort extend ::RuboCop::AST::NodePattern::Macros # @return [AssignmentSorter] a new instance of AssignmentSorter # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:132 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#132 def initialize(assignments); end # `lhs` is an assignment method call like `obj.attr=` or `ary[idx]=`. @@ -40107,111 +41423,111 @@ class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:161 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#161 def accesses?(rhs, lhs); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:154 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#154 def dependency?(lhs, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:130 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#130 def matching_calls(param0, param1, param2); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:140 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#140 def tsort_each_child(assignment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:136 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#136 def tsort_each_node(&block); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:127 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#127 def uses_var?(param0, param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:124 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#124 def var_name(param0 = T.unsafe(nil)); end end # An internal class for correcting parallel assignment # -# source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:179 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#179 class RuboCop::Cop::Style::ParallelAssignment::GenericCorrector include ::RuboCop::Cop::Alignment # @return [GenericCorrector] a new instance of GenericCorrector # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:184 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#184 def initialize(node, config, new_elements); end # Returns the value of attribute config. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:182 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#182 def config; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:190 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#190 def correction; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:194 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#194 def correction_range; end # Returns the value of attribute node. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:182 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#182 def node; end protected - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:200 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#200 def assignment; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:220 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#220 def cop_config; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:216 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#216 def extract_sources(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:206 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#206 def source(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:29 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#29 RuboCop::Cop::Style::ParallelAssignment::MSG = T.let(T.unsafe(nil), String) # An internal class for correcting parallel assignment # guarded by if, unless, while, or until # -# source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:265 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#265 class RuboCop::Cop::Style::ParallelAssignment::ModifierCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:266 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#266 def correction; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:275 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#275 def correction_range; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:281 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#281 def modifier_range(node); end end # An internal class for correcting parallel assignment # protected by rescue # -# source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:227 +# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#227 class RuboCop::Cop::Style::ParallelAssignment::RescueCorrector < ::RuboCop::Cop::Style::ParallelAssignment::GenericCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:228 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#228 def correction; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:242 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#242 def correction_range; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:253 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#253 def begin_correction(rescue_result); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parallel_assignment.rb:248 + # source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#248 def def_correction(rescue_result); end end @@ -40261,51 +41577,51 @@ end # y > 10) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:56 +# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#56 class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment include ::RuboCop::Cop::Parentheses include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:76 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#76 def control_op_condition(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:62 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#62 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:68 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:68 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#68 def on_while(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:122 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#122 def allow_multiline_conditions?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:110 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#110 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:103 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#103 def modifier_op?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:116 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#116 def parens_allowed?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:80 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#80 def process_control_op(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/parentheses_around_condition.rb:95 + # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#95 def semicolon_separated_expressions?(first_exp, rest_exps); end end @@ -40330,65 +41646,65 @@ end # # bad # %I(alpha beta) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:26 +# source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#26 class RuboCop::Cop::Style::PercentLiteralDelimiters < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:30 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#30 def on_array(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:38 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 def on_dstr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:34 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#34 def on_regexp(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:38 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#38 def on_str(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:43 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#43 def on_sym(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:47 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#47 def on_xstr(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:93 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#93 def contains_delimiter?(node, delimiters); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:82 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#82 def contains_preferred_delimiter?(node, type); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:86 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#86 def include_same_character_as_used_for_delimiter?(node, type); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:108 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#108 def matchpairs(begin_delimiter); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:67 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#67 def message(type); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:53 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#53 def on_percent_literal(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:74 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#74 def preferred_delimiters_for(type); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:100 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#100 def string_source(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_literal_delimiters.rb:78 + # source://rubocop//lib/rubocop/cop/style/percent_literal_delimiters.rb#78 def uses_preferred_delimiter?(node, type); end end @@ -40414,37 +41730,37 @@ end # %Q/Mix the foo into the baz./ # %Q{They all said: 'Hooray!'} # -# source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:28 +# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#28 class RuboCop::Cop::Style::PercentQLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:36 + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#36 def on_str(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:55 + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#55 def correct_literal_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:64 + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#64 def corrected(src); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:60 + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#60 def message(_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:42 + # source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#42 def on_percent_literal(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:33 +# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#33 RuboCop::Cop::Style::PercentQLiterals::LOWER_CASE_Q_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/percent_q_literals.rb:34 +# source://rubocop//lib/rubocop/cop/style/percent_q_literals.rb#34 RuboCop::Cop::Style::PercentQLiterals::UPPER_CASE_Q_MSG = T.let(T.unsafe(nil), String) # Looks for uses of Perl-style regexp match @@ -40458,26 +41774,33 @@ RuboCop::Cop::Style::PercentQLiterals::UPPER_CASE_Q_MSG = T.let(T.unsafe(nil), S # # good # puts Regexp.last_match(1) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:16 +# source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#16 class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:21 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#21 def on_back_ref(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:25 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#25 def on_gvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:29 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#29 def on_nth_ref(node); end private + # @param node [RuboCop::AST::Node] + # @private + # @return [String] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#99 + def constant_prefix(node); end + # @param node [RuboCop::AST::Node] # @private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:38 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#38 def derived_from_braceless_interpolation?(node); end # @param node [RuboCop::AST::Node] @@ -40485,31 +41808,38 @@ class RuboCop::Cop::Style::PerlBackrefs < ::RuboCop::Cop::Base # @private # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:46 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#46 def format_message(node:, preferred_expression:); end # @param node [RuboCop::AST::Node] # @private # - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:88 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#109 def on_back_ref_or_gvar_or_nth_ref(node); end # @param node [RuboCop::AST::Node] # @private # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:58 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#58 def original_expression_of(node); end # @param node [RuboCop::AST::Node] # @private # @return [String, nil] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:70 + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#70 def preferred_expression_to(node); end + + # @param node [RuboCop::AST::Node] + # @private + # @return [String, nil] + # + # source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#89 + def preferred_expression_to_node_with_constant_prefix(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/perl_backrefs.rb:19 +# source://rubocop//lib/rubocop/cop/style/perl_backrefs.rb#19 RuboCop::Cop::Style::PerlBackrefs::MESSAGE_FORMAT = T.let(T.unsafe(nil), String) # Checks for uses of methods `Hash#has_key?` and @@ -40535,38 +41865,38 @@ RuboCop::Cop::Style::PerlBackrefs::MESSAGE_FORMAT = T.let(T.unsafe(nil), String) # Hash#has_key? # Hash#has_value? # -# source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:33 +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#33 class RuboCop::Cop::Style::PreferredHashMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:43 + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:43 + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#43 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:56 + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#56 def message(method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:68 + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#68 def offending_selector?(method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:60 + # source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#60 def proper_method_name(method_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:37 +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#37 RuboCop::Cop::Style::PreferredHashMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:39 +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#39 RuboCop::Cop::Style::PreferredHashMethods::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/preferred_hash_methods.rb:41 +# source://rubocop//lib/rubocop/cop/style/preferred_hash_methods.rb#41 RuboCop::Cop::Style::PreferredHashMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of Proc.new where Kernel#proc @@ -40579,21 +41909,21 @@ RuboCop::Cop::Style::PreferredHashMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil # # good # p = proc { |n| puts n } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/proc.rb:16 +# source://rubocop//lib/rubocop/cop/style/proc.rb#16 class RuboCop::Cop::Style::Proc < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/proc.rb:25 + # source://rubocop//lib/rubocop/cop/style/proc.rb#25 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/proc.rb:25 + # source://rubocop//lib/rubocop/cop/style/proc.rb#25 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/proc.rb:22 + # source://rubocop//lib/rubocop/cop/style/proc.rb#22 def proc_new?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/proc.rb:19 +# source://rubocop//lib/rubocop/cop/style/proc.rb#19 RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String) # Checks if the quotes used for quoted symbols match the configured defaults. @@ -40623,55 +41953,55 @@ RuboCop::Cop::Style::Proc::MSG = T.let(T.unsafe(nil), String) # :"#{str}" # :"a\'b" # -# source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:33 +# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#33 class RuboCop::Cop::Style::QuotedSymbols < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::SymbolHelp include ::RuboCop::Cop::StringLiteralsHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:44 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#44 def on_sym(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:108 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#108 def alternative_style; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:71 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#71 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:88 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#88 def correct_quotes(str); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:83 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#83 def hash_colon_key?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:61 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#61 def invalid_double_quotes?(source); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:112 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#112 def quoted?(sym_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:99 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#99 def style; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:116 + # source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#116 def wrong_quotes?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:41 +# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#41 RuboCop::Cop::Style::QuotedSymbols::MSG_DOUBLE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/quoted_symbols.rb:39 +# source://rubocop//lib/rubocop/cop/style/quoted_symbols.rb#39 RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String) # Checks the args passed to `fail` and `raise`. For exploded @@ -40712,56 +42042,56 @@ RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String) # raise MyCustomError.new(arg1, arg2, arg3) # fail 'message' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:44 +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#44 class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:53 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#53 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:129 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#129 def acceptable_exploded_args?(args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:143 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#143 def allowed_non_exploded_type?(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:92 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#92 def check_compact(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:108 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#108 def check_exploded(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:66 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#66 def correction_compact_to_exploded(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:78 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#78 def correction_exploded_to_compact(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:149 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#149 def requires_parens?(parent); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:125 + # source://rubocop//lib/rubocop/cop/style/raise_args.rb#125 def use_new_method?(first_arg); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:49 +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#49 RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:48 +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#48 RuboCop::Cop::Style::RaiseArgs::EXPLODED_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/raise_args.rb:51 +# source://rubocop//lib/rubocop/cop/style/raise_args.rb#51 RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of randomly generated numbers, @@ -40785,53 +42115,53 @@ RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # rand(1..6) # rand(1...7) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:26 +# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#26 class RuboCop::Cop::Style::RandomWithOffset < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:33 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#33 def integer_op_rand?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:63 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#63 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:54 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#54 def rand_modified?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:43 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#43 def rand_op_integer?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:73 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#73 def random_call(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:147 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#147 def to_int(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:78 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#78 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:135 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#135 def boundaries_from_random_node(random_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:88 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#88 def corrected_integer_op_rand(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:118 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#118 def corrected_rand_modified(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:103 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#103 def corrected_rand_op_integer(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:131 + # source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#131 def prefix_from_prefix_node(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:29 +# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#29 RuboCop::Cop::Style::RandomWithOffset::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/random_with_offset.rb:30 +# source://rubocop//lib/rubocop/cop/style/random_with_offset.rb#30 RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for a redundant argument passed to certain methods. @@ -40844,6 +42174,7 @@ RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # ---- # Methods: # join: '' +# sum: 0 # split: ' ' # chomp: "\n" # chomp!: "\n" @@ -40854,6 +42185,7 @@ RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # bad # array.join('') # [1, 2, 3].join("") +# array.sum(0) # string.split(" ") # "first\nsecond".split(" ") # string.chomp("\n") @@ -40863,35 +42195,36 @@ RuboCop::Cop::Style::RandomWithOffset::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # # good # array.join # [1, 2, 3].join +# array.sum # string.split # "first second".split # string.chomp # string.chomp! # A.foo # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_argument.rb:50 +# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#53 class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_argument.rb:56 + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#59 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_argument.rb:85 + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#88 def argument_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_argument.rb:78 + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#81 def redundant_arg_for_method(method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_argument.rb:71 + # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#74 def redundant_argument?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_argument.rb:54 +# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#57 RuboCop::Cop::Style::RedundantArgument::MSG = T.let(T.unsafe(nil), String) # Checks for redundant assignment before returning. @@ -40928,41 +42261,41 @@ RuboCop::Cop::Style::RedundantArgument::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:40 +# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#40 class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:50 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:50 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#50 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:46 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#46 def redundant_assignment?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:91 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#91 def check_begin_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:57 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#57 def check_branch(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:71 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#71 def check_case_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:87 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#87 def check_ensure_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:76 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#76 def check_if_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#83 def check_rescue_node(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_assignment.rb:43 +# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#43 RuboCop::Cop::Style::RedundantAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for redundant `begin` blocks. @@ -41025,86 +42358,86 @@ RuboCop::Cop::Style::RedundantAssignment::MSG = T.let(T.unsafe(nil), String) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:65 +# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#65 class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:72 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#72 def offensive_kwbegins(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#84 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:76 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#76 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:76 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#76 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:94 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#95 def on_kwbegin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#84 def on_numblock(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:102 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#103 def allowable_kwbegin?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:168 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#169 def begin_block_has_multiline_statements?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:160 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#161 def condition_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:172 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#173 def contain_rescue_or_ensure?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:153 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#154 def correct_modifier_form_after_multiline_begin_block(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:164 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#165 def empty_begin?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:109 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#110 def register_offense(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:126 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#127 def replace_begin_with_statement(corrector, offense_range, node); end # Restore comments that occur between "begin" and "first_child". # These comments will be moved to above the assignment line. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:140 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#141 def restore_removed_comments(corrector, offense_range, node, first_child); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:147 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#148 def use_modifier_form_after_multiline_begin_block?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:185 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#186 def valid_begin_assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:178 + # source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#179 def valid_context_using_only_begin?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_begin.rb:69 +# source://rubocop//lib/rubocop/cop/style/redundant_begin.rb#69 RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String) # Checks for usage of the %W() syntax when %w() would do. @@ -41119,27 +42452,27 @@ RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String) # %w[shirt pants shoes] # %W(apple #{fruit} grape) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_capital_w.rb:17 +# source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#17 class RuboCop::Cop::Style::RedundantCapitalW < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_capital_w.rb:23 + # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#23 def on_array(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_capital_w.rb:29 + # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#29 def on_percent_literal(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_capital_w.rb:38 + # source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#38 def requires_interpolation?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_capital_w.rb:21 +# source://rubocop//lib/rubocop/cop/style/redundant_capital_w.rb#21 RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # Checks for unnecessary conditional expressions. @@ -41168,115 +42501,120 @@ RuboCop::Cop::Style::RedundantCapitalW::MSG = T.let(T.unsafe(nil), String) # c # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:33 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#33 class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:40 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#40 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:139 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#139 def asgn_type?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:129 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#129 def branches_have_assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:143 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#143 def branches_have_method?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:222 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#225 def correct_ternary(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:169 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#172 def else_source(else_branch, arithmetic_operation); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:195 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#198 def else_source_if_has_assignment(else_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:185 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#188 def else_source_if_has_method(else_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:157 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#160 def if_source(if_branch, arithmetic_operation); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:205 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#208 def make_ternary_form(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:61 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#61 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:76 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#76 def offense?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:69 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#69 def range_of_offense(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:85 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#85 def redundant_condition?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:237 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#240 def require_braces?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:230 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#233 def require_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:153 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#156 def same_method?(if_branch, else_branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:101 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#152 + def single_argument_method?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#101 def synonymous_condition_and_branch?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:241 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#244 def use_arithmetic_operation?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:97 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#97 def use_hash_key_access?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:93 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#93 def use_hash_key_assignment?(else_branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:89 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#89 def use_if_branch?(else_branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:245 + # source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#248 def without_argument_parentheses_method?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:37 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#37 RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_condition.rb:38 +# source://rubocop//lib/rubocop/cop/style/redundant_condition.rb#38 RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(nil), String) # Checks for redundant returning of true/false in conditionals. @@ -41301,51 +42639,205 @@ RuboCop::Cop::Style::RedundantCondition::REDUNDANT_CONDITION = T.let(T.unsafe(ni # # good # x != y # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:27 +# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#27 class RuboCop::Cop::Style::RedundantConditional < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:36 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#36 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:56 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#56 def redundant_condition?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:61 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#61 def redundant_condition_inverted?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:90 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#90 def configured_indentation_width; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:86 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#86 def indented_else_node(expression, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:78 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#78 def invert_expression?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:48 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#48 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:65 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#65 def offense?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:71 + # source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#71 def replacement_condition(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:32 +# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#32 RuboCop::Cop::Style::RedundantConditional::COMPARISON_OPERATOR_MATCHER = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_conditional.rb:34 +# source://rubocop//lib/rubocop/cop/style/redundant_conditional.rb#34 RuboCop::Cop::Style::RedundantConditional::MSG = T.let(T.unsafe(nil), String) +# Avoid redundant `::` prefix on constant. +# +# How Ruby searches constant is a bit complicated, and it can often be difficult to +# understand from the code whether the `::` is intended or not. Where `Module.nesting` +# is empty, there is no need to prepend `::`, so it would be nice to consistently +# avoid such meaningless `::` prefix to avoid confusion. +# +# NOTE: This cop is disabled if `Lint/ConstantResolution` cop is enabled to prevent +# conflicting rules. Because it respects user configurations that want to enable +# `Lint/ConstantResolution` cop which is disabled by default. +# +# @example +# # bad +# ::Const +# +# # good +# Const +# +# # bad +# class << self +# ::Const +# end +# +# # good +# class << self +# Const +# end +# +# # good +# class A +# ::Const +# end +# +# # good +# module A +# ::Const +# end +# +# source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#43 +class RuboCop::Cop::Style::RedundantConstantBase < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#48 + def on_cbase(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#67 + def bad?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#63 + def lint_constant_resolution_config; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#59 + def lint_constant_resolution_cop_enabled?; end + + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#71 + def module_nesting_ancestors_of(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#77 + def used_in_super_class_part?(node, class_node:); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_constant_base.rb#46 +RuboCop::Cop::Style::RedundantConstantBase::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant uses of double splat hash braces. +# +# @example +# +# # bad +# do_something(**{foo: bar, baz: qux}) +# +# # good +# do_something(foo: bar, baz: qux) +# +# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#16 +class RuboCop::Cop::Style::RedundantDoubleSplatHashBraces < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#22 + def double_splat_hash_braces?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#26 + def on_hash(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb#19 +RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil), String) + +# Checks for redundant `each`. +# +# @example +# +# # bad +# array.each.each { |v| do_something(v) } +# +# # good +# array.each { |v| do_something(v) } +# +# # bad +# array.each.each_with_index { |v, i| do_something(v, i) } +# +# # good +# array.each.with_index { |v, i| do_something(v, i) } +# array.each_with_index { |v, i| do_something(v, i) } +# +# # bad +# array.each.each_with_object { |v, o| do_something(v, o) } +# +# # good +# array.each.with_object { |v, o| do_something(v, o) } +# array.each_with_object { |v, o| do_something(v, o) } +# +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#34 +class RuboCop::Cop::Style::RedundantEach < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#93 + def message(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#85 + def range(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#63 + def redundant_each_method(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#104 + def remove_redundant_each(corrector, range, redundant_node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#37 +RuboCop::Cop::Style::RedundantEach::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#38 +RuboCop::Cop::Style::RedundantEach::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#39 +RuboCop::Cop::Style::RedundantEach::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#41 +RuboCop::Cop::Style::RedundantEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for RuntimeError as the argument of raise/fail. # # It checks for code like this: @@ -41360,36 +42852,36 @@ RuboCop::Cop::Style::RedundantConditional::MSG = T.let(T.unsafe(nil), String) # # Good # raise 'message' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:19 +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#19 class RuboCop::Cop::Style::RedundantException < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:59 + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#59 def compact?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:54 + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#54 def exploded?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:45 + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#45 def fix_compact(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:33 + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#33 def fix_exploded(node); end # Switch `raise RuntimeError, 'message'` to `raise 'message'`, and # `raise RuntimeError.new('message')` to `raise 'message'`. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:29 + # source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#29 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:22 +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#22 RuboCop::Cop::Style::RedundantException::MSG_1 = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:23 +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#23 RuboCop::Cop::Style::RedundantException::MSG_2 = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_exception.rb:25 +# source://rubocop//lib/rubocop/cop/style/redundant_exception.rb#25 RuboCop::Cop::Style::RedundantException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `fetch(key) { value }` @@ -41419,59 +42911,59 @@ RuboCop::Cop::Style::RedundantException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # # good # ENV.fetch(:key, VALUE) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:38 +# source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#38 class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:53 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#53 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:87 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#87 def rails_cache?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:46 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#46 def redundant_fetch_block_candidate?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:72 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#72 def basic_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:102 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#102 def build_bad_method(send, body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:95 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#95 def build_good_method(send, body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:109 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#109 def check_for_constant?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:113 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#113 def check_for_string?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:76 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#76 def const_type?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:91 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#91 def fetch_range(send, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:80 + # source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#80 def should_not_check?(send, body); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_fetch_block.rb:43 +# source://rubocop//lib/rubocop/cop/style/redundant_fetch_block.rb#43 RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String) # Checks for the presence of superfluous `.rb` extension in @@ -41495,27 +42987,27 @@ RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String) # require_relative '../foo' # require_relative '../foo.so' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb:27 +# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#27 class RuboCop::Cop::Style::RedundantFileExtensionInRequire < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb:39 + # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#39 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb:35 + # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#35 def require_call?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb:53 + # source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#53 def extension_range(name_node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb:31 +# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#31 RuboCop::Cop::Style::RedundantFileExtensionInRequire::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_file_extension_in_require.rb:32 +# source://rubocop//lib/rubocop/cop/style/redundant_file_extension_in_require.rb#32 RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for uses of `Object#freeze` on immutable objects. @@ -41532,32 +43024,32 @@ RuboCop::Cop::Style::RedundantFileExtensionInRequire::RESTRICT_ON_SEND = T.let(T # # good # CONST = 1 # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:19 +# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#19 class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Base include ::RuboCop::Cop::FrozenStringLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:26 + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#26 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:57 + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#57 def operation_produces_immutable_object?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:39 + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#39 def immutable_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:48 + # source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#48 def strip_parenthesis(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:23 +# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#23 RuboCop::Cop::Style::RedundantFreeze::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_freeze.rb:24 +# source://rubocop//lib/rubocop/cop/style/redundant_freeze.rb#24 RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for `initialize` methods that are redundant. @@ -41645,48 +43137,48 @@ RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # # Overriding to negate superclass `initialize` method. # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:97 +# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#97 class RuboCop::Cop::Style::RedundantInitialize < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:106 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#106 def initialize_forwards?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:110 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#110 def on_def(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:134 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#134 def acceptable?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:142 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#142 def allow_comments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:138 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#138 def forwards?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:128 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#128 def register_offense(node, message); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:146 + # source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#148 def same_args?(super_node, args); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:102 +# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#102 RuboCop::Cop::Style::RedundantInitialize::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_initialize.rb:103 +# source://rubocop//lib/rubocop/cop/style/redundant_initialize.rb#103 RuboCop::Cop::Style::RedundantInitialize::MSG_EMPTY = T.let(T.unsafe(nil), String) # Checks for strings that are just an interpolated expression. @@ -41702,68 +43194,68 @@ RuboCop::Cop::Style::RedundantInitialize::MSG_EMPTY = T.let(T.unsafe(nil), Strin # # good if @var is already a String # @var # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:39 +# source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#39 class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:49 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#49 def on_dstr(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:122 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#122 def autocorrect_other(corrector, embedded_node, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:105 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#105 def autocorrect_single_variable_interpolation(corrector, embedded_node, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:99 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#99 def autocorrect_variable_interpolation(corrector, embedded_node, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:95 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#95 def embedded_in_percent_array?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:91 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#91 def implicit_concatenation?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#83 def interpolation?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:132 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#132 def require_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:67 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#67 def single_interpolation?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:74 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#74 def single_variable_interpolation?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:87 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#87 def variable_interpolation?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:45 + # source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#45 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_interpolation.rb:43 +# source://rubocop//lib/rubocop/cop/style/redundant_interpolation.rb#43 RuboCop::Cop::Style::RedundantInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for redundant parentheses. @@ -41776,158 +43268,161 @@ RuboCop::Cop::Style::RedundantInterpolation::MSG = T.let(T.unsafe(nil), String) # # good # x if y.z.nil? # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:16 +# source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#16 class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::Parentheses extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:33 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#33 + def allowed_pin_operator?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#36 def arg_in_call_with_block?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:216 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#220 def first_send_argument?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:221 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#225 def first_super_argument?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:226 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#230 def first_yield_argument?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:134 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#138 def interpolation?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:27 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#27 def method_node_and_args(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:35 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#38 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:24 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#24 def range_end?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:30 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#30 def rescue?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:21 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#21 def square_brackets?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:64 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#68 def allowed_ancestor?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:57 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#61 def allowed_expression?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:69 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#73 def allowed_method_call?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:74 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#78 def allowed_multiple_expression?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#87 def allowed_ternary?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:230 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#234 def call_chain_starts_with_int?(begin_node, send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:121 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#125 def check(begin_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:136 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#140 def check_send(begin_node, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:145 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#149 def check_unary(begin_node, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:169 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#173 def disallowed_literal?(begin_node, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:101 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#105 def empty_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:106 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#110 def first_arg_begins_with_hash_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:211 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#215 def first_argument?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:50 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#54 def ignore_syntax?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:165 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#169 def keyword_ancestor?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:184 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#188 def keyword_with_redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:96 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#100 def like_method_argument_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:197 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201 def method_call_with_redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:113 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#117 def method_chain_begins_with_hash_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:155 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#159 def offense(node, msg); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:207 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#211 def only_begin_arg?(args); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:43 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#46 def parens_allowed?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:173 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177 def raised_to_power_negative_numeric?(begin_node, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:161 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#165 def suspect_unary?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_parentheses.rb:89 + # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#93 def ternary_parentheses_required?; end end @@ -41945,80 +43440,80 @@ end # time = "8 o'clock" # question = '"What did you say?"' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:20 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#20 class RuboCop::Cop::Style::RedundantPercentQ < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:34 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#34 def on_dstr(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:40 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#40 def on_str(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:99 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#99 def acceptable_capital_q?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:91 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#91 def acceptable_q?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:67 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#67 def allowed_percent_q?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:51 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#51 def check(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:63 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#63 def interpolated_quotes?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:72 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#72 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:87 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#87 def start_with_percent_q_variant?(string); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:82 + # source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#82 def string_literal?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:25 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#25 RuboCop::Cop::Style::RedundantPercentQ::DYNAMIC_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:28 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#28 RuboCop::Cop::Style::RedundantPercentQ::EMPTY = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:32 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#32 RuboCop::Cop::Style::RedundantPercentQ::ESCAPED_NON_BACKSLASH = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:23 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#23 RuboCop::Cop::Style::RedundantPercentQ::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:30 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#30 RuboCop::Cop::Style::RedundantPercentQ::PERCENT_CAPITAL_Q = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:29 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#29 RuboCop::Cop::Style::RedundantPercentQ::PERCENT_Q = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:27 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#27 RuboCop::Cop::Style::RedundantPercentQ::QUOTE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:26 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#26 RuboCop::Cop::Style::RedundantPercentQ::SINGLE_QUOTE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_percent_q.rb:31 +# source://rubocop//lib/rubocop/cop/style/redundant_percent_q.rb#31 RuboCop::Cop::Style::RedundantPercentQ::STRING_INTERPOLATION_REGEXP = T.let(T.unsafe(nil), Regexp) # Checks for unnecessary single-element Regexp character classes. @@ -42046,54 +43541,59 @@ RuboCop::Cop::Style::RedundantPercentQ::STRING_INTERPOLATION_REGEXP = T.let(T.un # # good # r = /[ab]/ # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:30 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#30 class RuboCop::Cop::Style::RedundantRegexpCharacterClass < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:37 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#37 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:101 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#101 def backslash_b?(elem); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:53 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#107 + def backslash_zero?(elem); end + + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#53 def each_redundant_character_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:61 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#61 def each_single_element_character_class(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#83 def multiple_codepoins?(expression); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:72 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#72 def redundant_single_element_character_class?(node, char_class); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:107 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#114 def requires_escape_outside_char_class?(elem); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:95 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#95 def whitespace_in_free_space_mode?(node, elem); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:87 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#87 def without_character_class(loc); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:34 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#34 RuboCop::Cop::Style::RedundantRegexpCharacterClass::MSG_REDUNDANT_CHARACTER_CLASS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_character_class.rb:33 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_character_class.rb#33 RuboCop::Cop::Style::RedundantRegexpCharacterClass::REQUIRES_ESCAPE_OUTSIDE_CHAR_CLASS_CHARS = T.let(T.unsafe(nil), Array) # Checks for redundant escapes inside Regexp literals. @@ -42126,46 +43626,51 @@ RuboCop::Cop::Style::RedundantRegexpCharacterClass::REQUIRES_ESCAPE_OUTSIDE_CHAR # # good # /[+\-]\d/ # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:35 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#35 class RuboCop::Cop::Style::RedundantRegexpEscape < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:45 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#45 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:59 - def allowed_escape?(node, char, within_character_class); end + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#59 + def allowed_escape?(node, char, index, within_character_class); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#75 + def char_class_begins_or_ends_with_escaped_hyphen?(node, index); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:74 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#83 def delimiter?(node, char); end # Please remove this `else` branch when support for regexp_parser 1.8 will be dropped. # It's for compatibility with regexp_arser 1.8 and will never be maintained. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:81 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#90 def each_escape(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:108 + # source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#117 def escape_range_at_index(node, index); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:41 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#41 RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_ALWAYS_ESCAPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:43 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#43 RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_OUTSIDE_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:42 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#42 RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_WITHIN_CHAR_CLASS_METACHAR_ESCAPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_regexp_escape.rb:39 +# source://rubocop//lib/rubocop/cop/style/redundant_regexp_escape.rb#39 RuboCop::Cop::Style::RedundantRegexpEscape::MSG_REDUNDANT_ESCAPE = T.let(T.unsafe(nil), String) # Checks for redundant `return` expressions. @@ -42210,75 +43715,81 @@ RuboCop::Cop::Style::RedundantRegexpEscape::MSG_REDUNDANT_ESCAPE = T.let(T.unsaf # return x, y # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:50 +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#50 class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:57 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#64 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:57 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#64 def on_defs(node); end + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#58 + def on_send(node); end + private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:92 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#99 def add_braces(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:87 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#94 def add_brackets(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:157 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#164 def allow_multiple_return_values?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:152 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#159 def check_begin_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:98 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#105 def check_branch(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:126 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#133 def check_case_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:147 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#154 def check_ensure_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:131 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#138 def check_if_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:143 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#150 def check_resbody_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:138 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#145 def check_rescue_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:114 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#121 def check_return_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:68 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#75 def correct_with_arguments(return_node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:64 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#71 def correct_without_arguments(return_node, corrector); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:83 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#90 def hash_without_braces?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:161 + # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#168 def message(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:54 +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#54 RuboCop::Cop::Style::RedundantReturn::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_return.rb:55 +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#55 RuboCop::Cop::Style::RedundantReturn::MULTI_RETURN_MSG = T.let(T.unsafe(nil), String) +# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#56 +RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for redundant uses of `self`. # # The usage of `self` is only needed when: @@ -42318,114 +43829,114 @@ RuboCop::Cop::Style::RedundantReturn::MULTI_RETURN_MSG = T.let(T.unsafe(nil), St # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:44 +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#44 class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector # @return [RedundantSelf] a new instance of RedundantSelf # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:59 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#59 def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end # Assignment of self.x # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:67 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67 def on_and_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:85 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#85 def on_args(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:119 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:89 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#89 def on_blockarg(node); end # Using self.x to distinguish from local variable x # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:80 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80 def on_def(node); end # Using self.x to distinguish from local variable x # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:80 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:125 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:103 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#103 def on_in_pattern(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:98 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#98 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:93 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#93 def on_masgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:119 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:73 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#73 def on_op_asgn(node); end # Assignment of self.x # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:67 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67 def on_or_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:107 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#107 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:125 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:125 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125 def on_while(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:181 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181 def add_lhs_to_local_variables_scopes(rhs, lhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:189 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#189 def add_masgn_lhs_variables(rhs, lhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:195 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#195 def add_match_var_scopes(in_pattern_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:143 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#143 def add_scope(node, local_variables = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:175 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#175 def allow_self(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:149 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#149 def allowed_send_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:166 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#166 def on_argument(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:158 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#158 def regular_method_call?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:55 + # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#55 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:48 +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48 RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:49 +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49 RuboCop::Cop::Style::RedundantSelf::KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self.rb:47 +# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#47 RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String) # Checks for places where redundant assignments are made for in place @@ -42448,55 +43959,55 @@ RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String) # foo.concat(ary) # self.foo += ary # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:31 +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#31 class RuboCop::Cop::Style::RedundantSelfAssignment < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:52 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:52 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:52 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:52 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#52 def on_lvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:69 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#69 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:96 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#96 def redundant_nonself_assignment?(param0 = T.unsafe(nil), param1, param2); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:86 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#86 def redundant_self_assignment?(param0 = T.unsafe(nil), param1); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:112 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#112 def correction_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:81 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#81 def method_returning_self?(method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:105 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#105 def redundant_assignment?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:45 +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#45 RuboCop::Cop::Style::RedundantSelfAssignment::ASSIGNMENT_TYPE_TO_RECEIVER_TYPE = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:38 +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#38 RuboCop::Cop::Style::RedundantSelfAssignment::METHODS_RETURNING_SELF = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment.rb:35 +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment.rb#35 RuboCop::Cop::Style::RedundantSelfAssignment::MSG = T.let(T.unsafe(nil), String) # Checks for places where conditional branch makes redundant self-assignment. @@ -42518,44 +44029,44 @@ RuboCop::Cop::Style::RedundantSelfAssignment::MSG = T.let(T.unsafe(nil), String) # # good # foo = bar unless condition # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:25 +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#25 class RuboCop::Cop::Style::RedundantSelfAssignmentBranch < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:32 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#32 def bad_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:36 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#36 def on_lvasgn(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:59 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#59 def inconvertible_to_modifier?(if_branch, else_branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:64 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#64 def multiple_statements?(branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:72 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#72 def register_offense(if_node, offense_branch, opposite_branch, keyword); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:68 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#68 def self_assign?(variable, branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:53 + # source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#53 def use_if_and_else_branch?(expression); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_self_assignment_branch.rb:29 +# source://rubocop//lib/rubocop/cop/style/redundant_self_assignment_branch.rb#29 RuboCop::Cop::Style::RedundantSelfAssignmentBranch::MSG = T.let(T.unsafe(nil), String) # Identifies instances of sorting and then @@ -42604,15 +44115,15 @@ RuboCop::Cop::Style::RedundantSelfAssignmentBranch::MSG = T.let(T.unsafe(nil), S # # good # arr.max_by(&:foo) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:79 +# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#79 class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:104 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:88 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#88 def redundant_sort?(param0 = T.unsafe(nil)); end private @@ -42620,52 +44131,52 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base # This gets the start of the accessor whether it has a dot # (e.g. `.first`) or doesn't (e.g. `[0]`) # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:192 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#192 def accessor_start(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:182 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#182 def arg_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:186 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#186 def arg_value(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:147 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#147 def autocorrect(corrector, node, sort_node, sorter, accessor); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:165 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#165 def base(accessor, arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:114 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#114 def find_redundant_sort(*nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:135 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#135 def message(node, sorter, accessor); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:131 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#131 def offense_range(sort_node, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:124 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#124 def register_offense(node, sort_node, sorter, accessor); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:156 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#156 def replace_with_logical_operator(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:173 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#173 def suffix(sorter); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:161 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#161 def suggestion(sorter, accessor, arg); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:200 + # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#200 def with_logical_operator?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:83 +# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#83 RuboCop::Cop::Style::RedundantSort::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort.rb:85 +# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#85 RuboCop::Cop::Style::RedundantSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Identifies places where `sort_by { ... }` can be replaced by @@ -42681,35 +44192,158 @@ RuboCop::Cop::Style::RedundantSort::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arra # # good # array.sort # -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:18 +# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#18 class RuboCop::Cop::Style::RedundantSortBy < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:25 + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#25 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:35 + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#35 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:48 + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#48 def redundant_sort_by_block(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:53 + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#53 def redundant_sort_by_numblock(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:57 + # source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#57 def sort_by_range(send, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:22 +# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#22 RuboCop::Cop::Style::RedundantSortBy::MSG_BLOCK = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/redundant_sort_by.rb:23 +# source://rubocop//lib/rubocop/cop/style/redundant_sort_by.rb#23 RuboCop::Cop::Style::RedundantSortBy::MSG_NUMBLOCK = T.let(T.unsafe(nil), String) +# Checks for redundant escapes in string literals. +# +# @example +# # bad - no need to escape # without following {/$/@ +# "\#foo" +# +# # bad - no need to escape single quotes inside double quoted string +# "\'foo\'" +# +# # bad - heredocs are also checked for unnecessary escapes +# <<~STR +# \#foo \"foo\" +# STR +# +# # good +# "#foo" +# +# # good +# "\#{no_interpolation}" +# +# # good +# "'foo'" +# +# # good +# "foo\ +# bar" +# +# # good +# <<~STR +# #foo "foo" +# STR +# +# source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#37 +class RuboCop::Cop::Style::RedundantStringEscape < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MatchRange + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#44 + def on_str(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#80 + def allowed_escape?(node, range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#120 + def array_literal?(node, prefix); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#74 + def begin_loc_present?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#154 + def delimiter?(node, char); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#170 + def disabling_interpolation?(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#150 + def heredoc?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#140 + def heredoc_with_disabled_interpolation?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#101 + def interpolation_not_enabled?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#166 + def literal_in_interpolated_or_multiline_string?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#60 + def message(range); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#136 + def percent_array_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#112 + def percent_q_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#128 + def percent_w_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#132 + def percent_w_upper_literal?(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#108 + def single_quoted?(node); end + + # source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#64 + def str_contents_range(node); end +end + +# source://rubocop//lib/rubocop/cop/style/redundant_string_escape.rb#42 +RuboCop::Cop::Style::RedundantStringEscape::MSG = T.let(T.unsafe(nil), String) + # Enforces using // or %r around regular expressions. # # @example EnforcedStyle: slashes (default) @@ -42785,103 +44419,202 @@ RuboCop::Cop::Style::RedundantSortBy::MSG_NUMBLOCK = T.let(T.unsafe(nil), String # # good # x =~ /home\// # -# source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:84 +# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#84 class RuboCop::Cop::Style::RegexpLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:92 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#92 def on_regexp(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:135 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#135 def allow_inner_slashes?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:123 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#123 def allowed_mixed_percent_r?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:113 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#113 def allowed_mixed_slash?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:152 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#152 def allowed_omit_parentheses_with_percent_r_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:117 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#117 def allowed_percent_r_literal?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:109 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#109 def allowed_slash_literal?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:212 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#212 def calculate_replacement(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:127 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#127 def contains_disallowed_slash?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:131 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#131 def contains_slash?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:161 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#161 def correct_delimiters(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:167 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#167 def correct_inner_slashes(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:200 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#200 def inner_slash_after_correction(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:196 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#196 def inner_slash_before_correction(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:204 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#204 def inner_slash_for(opening_delimiter); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:183 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#183 def inner_slash_indices(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:139 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#139 def node_body(node, include_begin_nodes: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:148 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#148 def preferred_delimiters; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:144 + # source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#144 def slash_literal?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:90 +# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#90 RuboCop::Cop::Style::RegexpLiteral::MSG_USE_PERCENT_R = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/regexp_literal.rb:89 +# source://rubocop//lib/rubocop/cop/style/regexp_literal.rb#89 RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), String) +# Sort `require` and `require_relative` in alphabetical order. +# +# @example +# # bad +# require 'b' +# require 'a' +# +# # good +# require 'a' +# require 'b' +# +# # bad +# require_relative 'b' +# require_relative 'a' +# +# # good +# require_relative 'a' +# require_relative 'b' +# +# # good (sorted within each section separated by a blank line) +# require 'a' +# require 'd' +# +# require 'b' +# require 'c' +# +# # good +# require 'b' +# require_relative 'c' +# require 'a' +# +# # bad +# require 'a' +# require 'c' if foo +# require 'b' +# +# # good +# require 'a' +# require 'b' +# require 'c' if foo +# +# # bad +# require 'c' +# if foo +# require 'd' +# require 'b' +# end +# require 'a' +# +# # good +# require 'c' +# if foo +# require 'b' +# require 'd' +# end +# require 'a' +# +# source://rubocop//lib/rubocop/cop/style/require_order.rb#66 +class RuboCop::Cop::Style::RequireOrder < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#76 + def if_inside_only_require(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#83 + def on_send(node); end + + private + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#105 + def find_previous_older_sibling(node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/require_order.rb#128 + def in_same_section?(node1, node2); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/require_order.rb#101 + def not_modifier_form?(node); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#118 + def search_node(node); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#122 + def sibling_node(node); end + + # source://rubocop//lib/rubocop/cop/style/require_order.rb#134 + def swap(range1, range2, corrector:); end +end + +# source://rubocop//lib/rubocop/cop/style/require_order.rb#73 +RuboCop::Cop::Style::RequireOrder::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/require_order.rb#71 +RuboCop::Cop::Style::RequireOrder::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for uses of rescue in its modifier form. # # The cop to check `rescue` in its modifier form is added for following # reasons: # # * The syntax of modifier form `rescue` can be misleading because it -# might led us to believe that `rescue` handles the given exception +# might lead us to believe that `rescue` handles the given exception # but it actually rescue all exceptions to return the given rescue # block. In this case, value returned by handle_error or # SomeException. @@ -42912,36 +44645,36 @@ RuboCop::Cop::Style::RegexpLiteral::MSG_USE_SLASHES = T.let(T.unsafe(nil), Strin # handle_error # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:42 +# source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#42 class RuboCop::Cop::Style::RescueModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RescueNode extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:54 + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#54 def on_resbody(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:72 + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#72 def correct_rescue_block(corrector, node, parenthesized); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:88 + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#88 def indentation_and_offset(node, parenthesized); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:68 + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#68 def parenthesized?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:50 + # source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#50 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_modifier.rb:48 +# source://rubocop//lib/rubocop/cop/style/rescue_modifier.rb#48 RuboCop::Cop::Style::RescueModifier::MSG = T.let(T.unsafe(nil), String) # Checks for rescuing `StandardError`. There are two supported @@ -43011,35 +44744,35 @@ RuboCop::Cop::Style::RescueModifier::MSG = T.let(T.unsafe(nil), String) # bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:73 +# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#73 class RuboCop::Cop::Style::RescueStandardError < ::RuboCop::Cop::Base include ::RuboCop::Cop::RescueNode include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:92 + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#92 def on_resbody(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:88 + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#88 def rescue_standard_error?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:83 + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#83 def rescue_without_error_class?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:118 + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#118 def offense_for_explicit_enforced_style(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:107 + # source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#107 def offense_for_implicit_enforced_style(node, error); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:80 +# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#80 RuboCop::Cop::Style::RescueStandardError::MSG_EXPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/rescue_standard_error.rb:79 +# source://rubocop//lib/rubocop/cop/style/rescue_standard_error.rb#79 RuboCop::Cop::Style::RescueStandardError::MSG_IMPLICIT = T.let(T.unsafe(nil), String) # Enforces consistency between 'return nil' and 'return'. @@ -43067,46 +44800,46 @@ RuboCop::Cop::Style::RescueStandardError::MSG_IMPLICIT = T.let(T.unsafe(nil), St # return nil if arg # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:31 +# source://rubocop//lib/rubocop/cop/style/return_nil.rb#31 class RuboCop::Cop::Style::ReturnNil < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:86 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#86 def chained_send?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:89 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#89 def define_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:44 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#44 def on_return(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:42 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#42 def return_nil_node?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:39 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#39 def return_node?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:76 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#76 def correct_style?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:72 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#72 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:81 + # source://rubocop//lib/rubocop/cop/style/return_nil.rb#81 def scoped_node?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:35 +# source://rubocop//lib/rubocop/cop/style/return_nil.rb#35 RuboCop::Cop::Style::ReturnNil::RETURN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/return_nil.rb:36 +# source://rubocop//lib/rubocop/cop/style/return_nil.rb#36 RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String) # Transforms usages of a method call safeguarded by a non `nil` @@ -43145,6 +44878,11 @@ RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String) # foo && foo.bar { |e| e.something } # foo && foo.bar(param) { |e| e.something } # +# foo ? foo.bar : nil +# foo.nil? ? nil : foo.bar +# !foo.nil? ? foo.bar : nil +# !foo ? nil : foo.bar +# # # good # foo&.bar # foo&.bar&.baz @@ -43172,7 +44910,7 @@ RuboCop::Cop::Style::ReturnNil::RETURN_NIL_MSG = T.let(T.unsafe(nil), String) # foo.baz + bar if foo # foo.bar > 2 if foo # -# source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:79 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#84 class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods include ::RuboCop::Cop::NilMethods @@ -43180,106 +44918,112 @@ class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:121 - def check_node(node); end - # if format: (if checked_variable body nil) # unless format: (if checked_variable nil body) # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:94 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#99 def modifier_if_safe_navigation_candidate(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:109 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#125 def not_nil_check?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:117 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#133 def on_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:111 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#127 def on_if(node); end - # @return [Boolean] - # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:132 - def use_var_only_in_unless_modifier?(node, variable); end + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#114 + def ternary_safe_navigation_candidate(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:278 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#307 def add_safe_nav_to_all_methods_in_chain(corrector, start_method, method_chain); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:176 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#200 def allowed_if_condition?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:138 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#154 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:270 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#299 def begin_range(node, method_call); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:232 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#261 def chain_length(method_chain, method); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:157 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#139 + def check_node(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#181 def comments(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:274 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#303 def end_range(node, method_call); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:214 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#166 + def extract_body(node); end + + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#243 def extract_common_parts(method_chain, checked_variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:185 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#209 def extract_parts(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:204 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#233 def extract_parts_from_and(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:194 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#218 def extract_parts_from_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:222 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#251 def find_matching_receiver_invocation(method_chain, checked_variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:150 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#174 def handle_comments(corrector, node, method_call); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:291 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#320 def max_chain_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:180 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#204 def method_call(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:266 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#295 def method_called?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:258 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#287 def negated?(send_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:163 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#187 def relevant_comment_ranges(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:252 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#281 def unsafe_method?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:240 + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#269 def unsafe_method_used?(method_chain, method); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#150 + def use_var_only_in_unless_modifier?(node, variable); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:87 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#92 RuboCop::Cop::Style::SafeNavigation::LOGIC_JUMP_KEYWORDS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/safe_navigation.rb:85 +# source://rubocop//lib/rubocop/cop/style/safe_navigation.rb#90 RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String) # Identifies usages of `shuffle.first`, @@ -43307,55 +45051,55 @@ RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String) # [1, 2, 3].shuffle[foo, bar] # [1, 2, 3].shuffle(random: Random.new) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:30 +# source://rubocop//lib/rubocop/cop/style/sample.rb#30 class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:41 + # source://rubocop//lib/rubocop/cop/style/sample.rb#41 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:37 + # source://rubocop//lib/rubocop/cop/style/sample.rb#37 def sample_candidate?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:123 + # source://rubocop//lib/rubocop/cop/style/sample.rb#123 def correction(shuffle_arg, method, method_args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:139 + # source://rubocop//lib/rubocop/cop/style/sample.rb#139 def extract_source(args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:117 + # source://rubocop//lib/rubocop/cop/style/sample.rb#117 def message(shuffle_arg, method, method_args, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:58 + # source://rubocop//lib/rubocop/cop/style/sample.rb#58 def offensive?(method, method_args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:95 + # source://rubocop//lib/rubocop/cop/style/sample.rb#95 def range_size(range_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:130 + # source://rubocop//lib/rubocop/cop/style/sample.rb#130 def sample_arg(method, method_args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:69 + # source://rubocop//lib/rubocop/cop/style/sample.rb#69 def sample_size(method_args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:78 + # source://rubocop//lib/rubocop/cop/style/sample.rb#78 def sample_size_for_one_arg(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:88 + # source://rubocop//lib/rubocop/cop/style/sample.rb#88 def sample_size_for_two_args(first, second); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:111 + # source://rubocop//lib/rubocop/cop/style/sample.rb#111 def source_range(shuffle_node, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:33 +# source://rubocop//lib/rubocop/cop/style/sample.rb#33 RuboCop::Cop::Style::Sample::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/sample.rb:34 +# source://rubocop//lib/rubocop/cop/style/sample.rb#34 RuboCop::Cop::Style::Sample::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Looks for places where an subset of an Enumerable (array, @@ -43389,60 +45133,68 @@ RuboCop::Cop::Style::Sample::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # array.grep(regexp) # array.grep_v(regexp) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:45 +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#45 class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:78 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#79 def calls_lvar?(param0 = T.unsafe(nil), param1); end # Returns true if a node appears to return a hash # - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:64 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#65 def creates_hash?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:73 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#74 def env_const?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:86 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#87 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:55 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#56 def regexp_match?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:118 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#122 def extract_send_node(block_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:127 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#135 def find_regexp(node, block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:138 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#146 def match_predicate_without_receiver?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:99 + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#131 + def opposite?(regexp_method_send_node); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#102 def receiver_allowed?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:105 - def register_offense(node, block_node, regexp); end + # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#108 + def register_offense(node, block_node, regexp, opposite); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:49 +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#49 RuboCop::Cop::Style::SelectByRegexp::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:52 +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#52 +RuboCop::Cop::Style::SelectByRegexp::OPPOSITE_REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#53 RuboCop::Cop::Style::SelectByRegexp::REGEXP_METHODS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:51 +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#51 RuboCop::Cop::Style::SelectByRegexp::REPLACEMENTS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/select_by_regexp.rb:50 +# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#50 RuboCop::Cop::Style::SelectByRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Enforces the use the shorthand for self-assignment. @@ -43455,52 +45207,52 @@ RuboCop::Cop::Style::SelectByRegexp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr # # good # x += 1 # -# source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:15 +# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#15 class RuboCop::Cop::Style::SelfAssignment < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:33 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#33 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:29 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#29 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:25 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#25 def on_lvasgn(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:94 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#94 def apply_autocorrect(corrector, node, rhs, operator, new_rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:74 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#74 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:89 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#89 def autocorrect_boolean_node(corrector, node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:84 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#84 def autocorrect_send_node(corrector, node, rhs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:39 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#39 def check(node, var_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:62 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#62 def check_boolean_node(node, rhs, var_name, var_type); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:50 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#50 def check_send_node(node, rhs, var_name, var_type); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:21 + # source://rubocop//lib/rubocop/cop/style/self_assignment.rb#21 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:18 +# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#18 RuboCop::Cop::Style::SelfAssignment::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/self_assignment.rb:19 +# source://rubocop//lib/rubocop/cop/style/self_assignment.rb#19 RuboCop::Cop::Style::SelfAssignment::OPS = T.let(T.unsafe(nil), Array) # Checks for multiple expressions placed on the same line. @@ -43525,50 +45277,50 @@ RuboCop::Cop::Style::SelfAssignment::OPS = T.let(T.unsafe(nil), Array) # # good # foo = 1; bar = 2 # -# source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:29 +# source://rubocop//lib/rubocop/cop/style/semicolon.rb#29 class RuboCop::Cop::Style::Semicolon < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:45 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#45 def on_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:39 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#39 def on_new_investigation; end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:63 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#64 def check_for_line_terminator_or_opener; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:72 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#73 def each_semicolon; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:103 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#104 def expressions_per_line(exprs); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:117 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#118 def find_range_node(token_before_semicolon); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:109 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#110 def find_semicolon_positions(line); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:123 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#124 def range_nodes; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:83 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#84 def register_semicolon(line, column, after_expression, token_before_semicolon = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:79 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#80 def tokens_for_lines; end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:35 + # source://rubocop//lib/rubocop/cop/style/semicolon.rb#35 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/semicolon.rb:33 +# source://rubocop//lib/rubocop/cop/style/semicolon.rb#33 RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) # Checks for the use of the send method. @@ -43582,19 +45334,19 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) # Foo.__send__(:bar) # quuz.public_send(:fred) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/send.rb:16 +# source://rubocop//lib/rubocop/cop/style/send.rb#16 class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/send.rb:20 + # source://rubocop//lib/rubocop/cop/style/send.rb#20 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/send.rb:20 + # source://rubocop//lib/rubocop/cop/style/send.rb#20 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/send.rb:17 +# source://rubocop//lib/rubocop/cop/style/send.rb#17 RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/send.rb:18 +# source://rubocop//lib/rubocop/cop/style/send.rb#18 RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `fail` and `raise`. @@ -43697,59 +45449,61 @@ RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # explicit_receiver.fail # explicit_receiver.raise # -# source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:107 +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#107 class RuboCop::Cop::Style::SignalException < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:120 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#120 def custom_fail_methods(param0); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:117 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#117 def kernel_call?(param0 = T.unsafe(nil), param1); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:122 - def on_new_investigation; end - - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:127 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#122 def on_rescue(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:139 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#134 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:204 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#206 def allow(method_name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:186 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#188 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:165 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#167 def check_scope(method_name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:178 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#180 def check_send(method_name, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:198 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#200 def command_or_kernel_call?(name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:208 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#149 + def custom_fail_defined?; end + + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#210 def each_command_or_kernel_call(method_name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:154 + # source://rubocop//lib/rubocop/cop/style/signal_exception.rb#156 def message(method_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:111 +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#111 RuboCop::Cop::Style::SignalException::FAIL_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:112 +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#112 RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/signal_exception.rb:114 +# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#114 RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Sometimes using dig method ends up with just a single @@ -43772,21 +45526,21 @@ RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar # keys = %i[key1 key2] # { key1: { key2: 'value' } }.dig(*keys) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_argument_dig.rb:31 +# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#31 class RuboCop::Cop::Style::SingleArgumentDig < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_argument_dig.rb:42 + # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#42 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_argument_dig.rb:38 + # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#38 def single_argument_dig?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_argument_dig.rb:34 +# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34 RuboCop::Cop::Style::SingleArgumentDig::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_argument_dig.rb:35 +# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#35 RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks whether the block parameters of a single-line @@ -43815,50 +45569,50 @@ RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), # c + d # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:31 +# source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#31 class RuboCop::Cop::Style::SingleLineBlockParams < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:36 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#36 def on_block(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:105 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#105 def args_match?(method_name, args); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:69 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#69 def autocorrect(corrector, node, preferred_block_arguments, joined_block_arguments); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:57 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#57 def build_preferred_arguments_map(node, preferred_arguments); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:79 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#79 def eligible_arguments?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:83 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#83 def eligible_method?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:95 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#95 def method_name(method); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:91 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#91 def method_names; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:87 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#87 def methods; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:99 + # source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#99 def target_args(method_name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_block_params.rb:34 +# source://rubocop//lib/rubocop/cop/style/single_line_block_params.rb#34 RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String) # Checks for single-line method definitions that contain a body. @@ -43887,65 +45641,65 @@ RuboCop::Cop::Style::SingleLineBlockParams::MSG = T.let(T.unsafe(nil), String) # # bad # def no_op; end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:34 +# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#34 class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:41 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:41 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#41 def on_defs(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:60 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#60 def allow_empty?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:52 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#52 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:97 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#97 def break_line_before(corrector, node, range, indent_steps: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:88 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#88 def correct_to_endless(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:64 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#64 def correct_to_endless?(body_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:74 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#74 def correct_to_multiline(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:136 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#136 def disallow_endless_method_style?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:104 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#104 def each_part(body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:121 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#121 def method_body_source(method_body); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:114 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#114 def move_comment(node, corrector); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:132 + # source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#132 def require_parentheses?(method_body); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:38 +# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#38 RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/single_line_methods.rb:39 +# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#39 RuboCop::Cop::Style::SingleLineMethods::NOT_SUPPORTED_ENDLESS_METHOD_BODY_TYPES = T.let(T.unsafe(nil), Array) # Checks that arrays are sliced with endless ranges instead of @@ -43958,22 +45712,22 @@ RuboCop::Cop::Style::SingleLineMethods::NOT_SUPPORTED_ENDLESS_METHOD_BODY_TYPES # # good # items[1..] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/slicing_with_range.rb:28 +# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#28 class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/slicing_with_range.rb:40 + # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#40 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/slicing_with_range.rb:38 + # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#38 def range_till_minus_one?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/slicing_with_range.rb:34 +# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#34 RuboCop::Cop::Style::SlicingWithRange::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/slicing_with_range.rb:35 +# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#35 RuboCop::Cop::Style::SlicingWithRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # If the branch of a conditional consists solely of a conditional node, @@ -44018,98 +45772,98 @@ RuboCop::Cop::Style::SlicingWithRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), A # do_something # end if condition_a # -# source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:49 +# source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#49 class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:59 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#59 def on_if(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:238 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#238 def allow_modifier?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:223 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#223 def arguments_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:81 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#81 def assigned_variables(condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:98 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#98 def autocorrect(corrector, node, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:110 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#110 def autocorrect_outer_condition_basic(corrector, node, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:125 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#125 def autocorrect_outer_condition_modify_form(corrector, node, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:145 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#145 def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:175 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#175 def correct_for_comment(corrector, node, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:136 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#136 def correct_for_guard_condition_style(corrector, outer_condition, if_branch, and_operator); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:165 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#165 def correct_for_outer_condition_modify_form_style(corrector, node, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:130 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#130 def correct_from_unless_to_if(corrector, node, is_modify_form: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:182 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#182 def correct_outer_condition(corrector, condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:193 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#193 def insert_bang(corrector, node, is_modify_form); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:206 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#206 def insert_bang_for_and(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:89 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#89 def offending_branch?(node, branch); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:242 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#242 def outer_condition_modify_form?(node, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:234 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#234 def replace_condition(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:218 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#218 def require_parentheses?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:74 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#74 def use_variable_assignment_in_condition?(condition, if_branch); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:155 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#155 def wrap_condition(corrector, condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:229 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#229 def wrap_condition?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:55 + # source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#55 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/sole_nested_conditional.rb:53 +# source://rubocop//lib/rubocop/cop/style/sole_nested_conditional.rb#53 RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # This cop looks for uses of Perl-style global variables. @@ -44187,88 +45941,88 @@ RuboCop::Cop::Style::SoleNestedConditional::MSG = T.let(T.unsafe(nil), String) # puts $* # @example EnforcedStyle: use_builtin_english_names # -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:88 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#88 class RuboCop::Cop::Style::SpecialGlobalVars < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RequireLibrary extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:177 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#177 def autocorrect(corrector, node, global_var); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:169 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#169 def message(global_var); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:153 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#153 def on_gvar(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:148 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#148 def on_new_investigation; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:248 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#248 def add_require_english?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:242 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#242 def english_name_replacement(preferred_name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:191 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#191 def format_english_message(global_var); end # For now, we assume that lists are 2 items or less. Easy grammar! # - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:213 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#213 def format_list(items); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:199 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#199 def format_message(english, regular, global); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:236 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#236 def matching_styles(global); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:228 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#228 def preferred_names(global); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:217 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#217 def replacement(node, global_var); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:252 + # source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#252 def should_require_english?(global_var); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:129 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#129 RuboCop::Cop::Style::SpecialGlobalVars::BUILTIN_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:101 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#101 RuboCop::Cop::Style::SpecialGlobalVars::ENGLISH_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:146 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#146 RuboCop::Cop::Style::SpecialGlobalVars::LIBRARY_NAME = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:94 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#94 RuboCop::Cop::Style::SpecialGlobalVars::MSG_BOTH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:97 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#97 RuboCop::Cop::Style::SpecialGlobalVars::MSG_ENGLISH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:99 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#99 RuboCop::Cop::Style::SpecialGlobalVars::MSG_REGULAR = T.let(T.unsafe(nil), String) # Anything *not* in this set is provided by the English library. # -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:123 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#123 RuboCop::Cop::Style::SpecialGlobalVars::NON_ENGLISH_VARS = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:125 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#125 RuboCop::Cop::Style::SpecialGlobalVars::PERL_VARS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/cop/style/special_global_vars.rb:140 +# source://rubocop//lib/rubocop/cop/style/special_global_vars.rb#140 RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Hash) # Check for parentheses around stabby lambda arguments. @@ -44287,50 +46041,50 @@ RuboCop::Cop::Style::SpecialGlobalVars::STYLE_VARS_MAP = T.let(T.unsafe(nil), Ha # # good # ->a,b,c { a + b + c} # -# source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:22 +# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#22 class RuboCop::Cop::Style::StabbyLambdaParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:28 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#28 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:54 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#54 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:46 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#46 def missing_parentheses?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:58 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#58 def missing_parentheses_corrector(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:73 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#73 def parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:50 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#50 def redundant_parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:69 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#69 def stabby_lambda_with_args?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:62 + # source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#62 def unwanted_parentheses_corrector(corrector, node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:27 +# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#27 RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_NO_REQUIRE = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:26 +# source://rubocop//lib/rubocop/cop/style/stabby_lambda_parentheses.rb#26 RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_REQUIRE = T.let(T.unsafe(nil), String) # Checks for places where classes with only class methods can be @@ -44368,35 +46122,46 @@ RuboCop::Cop::Style::StabbyLambdaParentheses::MSG_REQUIRE = T.let(T.unsafe(nil), # def self.class_method; end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:46 +# source://rubocop//lib/rubocop/cop/style/static_class.rb#46 class RuboCop::Cop::Style::StaticClass < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::VisibilityHelp + extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:51 + # source://rubocop//lib/rubocop/cop/style/static_class.rb#53 def on_class(class_node); end private + # source://rubocop//lib/rubocop/cop/style/static_class.rb#64 + def autocorrect(corrector, class_node); end + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#77 + def autocorrect_def(corrector, node); end + + # source://rubocop//lib/rubocop/cop/style/static_class.rb#83 + def autocorrect_sclass(corrector, node); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:59 + # source://rubocop//lib/rubocop/cop/style/static_class.rb#90 def class_convertible_to_module?(class_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:83 + # source://rubocop//lib/rubocop/cop/style/static_class.rb#114 def class_elements(class_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:71 + # source://rubocop//lib/rubocop/cop/style/static_class.rb#102 def extend_call?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:75 + # source://rubocop//lib/rubocop/cop/style/static_class.rb#106 def sclass_convertible_to_module?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/static_class.rb:49 +# source://rubocop//lib/rubocop/cop/style/static_class.rb#51 RuboCop::Cop::Style::StaticClass::MSG = T.let(T.unsafe(nil), String) # Identifies places where `$stderr.puts` can be replaced by @@ -44410,35 +46175,35 @@ RuboCop::Cop::Style::StaticClass::MSG = T.let(T.unsafe(nil), String) # # good # warn('hello') # -# source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:17 +# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#17 class RuboCop::Cop::Style::StderrPuts < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:32 + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#32 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:25 + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#25 def stderr_puts?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:43 + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#43 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:47 + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#47 def stderr_gvar?(sym); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:51 + # source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#51 def stderr_puts_range(send); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:21 +# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#21 RuboCop::Cop::Style::StderrPuts::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/stderr_puts.rb:22 +# source://rubocop//lib/rubocop/cop/style/stderr_puts.rb#22 RuboCop::Cop::Style::StderrPuts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for uses of `String#split` with empty string or regexp literal argument. @@ -44451,22 +46216,22 @@ RuboCop::Cop::Style::StderrPuts::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # # good # string.chars # -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_chars.rb:21 +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#21 class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_chars.rb:29 + # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_chars.rb:27 +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#27 RuboCop::Cop::Style::StringChars::BAD_ARGUMENTS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_chars.rb:25 +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#25 RuboCop::Cop::Style::StringChars::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_chars.rb:26 +# source://rubocop//lib/rubocop/cop/style/string_chars.rb#26 RuboCop::Cop::Style::StringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for places where string concatenation @@ -44511,75 +46276,75 @@ RuboCop::Cop::Style::StringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # user.name + '!!' # Pathname.new('/') + 'test' # -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:53 +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#53 class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:69 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#69 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:73 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#73 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:62 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#62 def string_concatenation?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:116 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#116 def collect_parts(node, parts = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:141 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#141 def corrected_ancestor?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:108 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#108 def find_topmost_plus_node(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:162 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#162 def handle_quotes(parts); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:135 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#135 def heredoc?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:98 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#98 def line_end_concatenation?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:172 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#172 def mode; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:127 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#127 def plus_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:86 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#86 def register_offense(topmost_plus_node, parts); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:145 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#145 def replacement(parts); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:168 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#168 def single_quoted?(str_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:131 + # source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#131 def uncorrectable?(part); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:58 +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#58 RuboCop::Cop::Style::StringConcatenation::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_concatenation.rb:59 +# source://rubocop//lib/rubocop/cop/style/string_concatenation.rb#59 RuboCop::Cop::Style::StringConcatenation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for the use of strings as keys in hashes. The use of @@ -44592,21 +46357,21 @@ RuboCop::Cop::Style::StringConcatenation::RESTRICT_ON_SEND = T.let(T.unsafe(nil) # # good # { one: 1, two: 2, three: 3 } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_hash_keys.rb:19 +# source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#19 class RuboCop::Cop::Style::StringHashKeys < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_hash_keys.rb:42 + # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#42 def on_pair(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_hash_keys.rb:30 + # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#30 def receive_environments_method?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_hash_keys.rb:25 + # source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#25 def string_hash_key?(param0 = T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_hash_keys.rb:22 +# source://rubocop//lib/rubocop/cop/style/string_hash_keys.rb#22 RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String) # Checks if uses of quotes match the configured preference. @@ -44632,65 +46397,65 @@ RuboCop::Cop::Style::StringHashKeys::MSG = T.let(T.unsafe(nil), String) # "No special chars or interpolation" # "Every string in #{project} uses double_quotes" # -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:29 +# source://rubocop//lib/rubocop/cop/style/string_literals.rb#29 class RuboCop::Cop::Style::StringLiterals < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::StringLiteralsHelp include ::RuboCop::Cop::StringHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:37 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#37 def on_dstr(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:127 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#123 def accept_child_double_quotes?(nodes); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:71 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#71 def all_string_literals?(nodes); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:61 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#61 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:109 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#105 def check_multiline_quote_style(node, quote); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:105 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#101 def consistent_multiline?; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:75 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#75 def detect_quote_styles(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:87 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#87 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:97 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#97 def offense?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:65 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#65 def register_offense(node, message: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:123 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#119 def unexpected_double_quotes?(quote); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:119 + # source://rubocop//lib/rubocop/cop/style/string_literals.rb#115 def unexpected_single_quotes?(quote); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals.rb:35 +# source://rubocop//lib/rubocop/cop/style/string_literals.rb#35 RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), String) # Checks that quotes inside the string interpolation @@ -44709,24 +46474,24 @@ RuboCop::Cop::Style::StringLiterals::MSG_INCONSISTENT = T.let(T.unsafe(nil), Str # # good # result = "Tests #{success ? "PASS" : "FAIL"}" # -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals_in_interpolation.rb:22 +# source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#22 class RuboCop::Cop::Style::StringLiteralsInInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::StringLiteralsHelp include ::RuboCop::Cop::StringHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals_in_interpolation.rb:28 + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#28 def autocorrect(corrector, node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals_in_interpolation.rb:34 + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#34 def message(_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_literals_in_interpolation.rb:41 + # source://rubocop//lib/rubocop/cop/style/string_literals_in_interpolation.rb#41 def offense?(node); end end @@ -44742,19 +46507,19 @@ end # 'name'.to_sym # 'var'.preferred_method # -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_methods.rb:17 +# source://rubocop//lib/rubocop/cop/style/string_methods.rb#17 class RuboCop::Cop::Style::StringMethods < ::RuboCop::Cop::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_methods.rb:23 + # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/string_methods.rb:23 + # source://rubocop//lib/rubocop/cop/style/string_methods.rb#23 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/string_methods.rb:21 +# source://rubocop//lib/rubocop/cop/style/string_methods.rb#21 RuboCop::Cop::Style::StringMethods::MSG = T.let(T.unsafe(nil), String) # Identifies places where `lstrip.rstrip` can be replaced by @@ -44768,22 +46533,22 @@ RuboCop::Cop::Style::StringMethods::MSG = T.let(T.unsafe(nil), String) # # good # 'abc'.strip # -# source://rubocop-1.35.1/lib/rubocop/cop/style/strip.rb:16 +# source://rubocop//lib/rubocop/cop/style/strip.rb#16 class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/strip.rb:24 + # source://rubocop//lib/rubocop/cop/style/strip.rb#24 def lstrip_rstrip(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/strip.rb:29 + # source://rubocop//lib/rubocop/cop/style/strip.rb#29 def on_send(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/strip.rb:20 +# source://rubocop//lib/rubocop/cop/style/strip.rb#20 RuboCop::Cop::Style::Strip::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/strip.rb:21 +# source://rubocop//lib/rubocop/cop/style/strip.rb#21 RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for inheritance from Struct.new. @@ -44803,27 +46568,27 @@ RuboCop::Cop::Style::Strip::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/struct_inheritance.rb:26 +# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#26 class RuboCop::Cop::Style::StructInheritance < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/struct_inheritance.rb:33 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#33 def on_class(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/struct_inheritance.rb:45 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#45 def struct_constructor?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/struct_inheritance.rb:52 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#52 def correct_parent(parent, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/struct_inheritance.rb:62 + # source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#62 def range_for_empty_class_body(class_node, struct_new); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/struct_inheritance.rb:30 +# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30 RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) # Enforces the use of shorthand-style swapping of 2 variables. @@ -44837,66 +46602,66 @@ RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String) # # good # x, y = y, x # -# source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:21 +# source://rubocop//lib/rubocop/cop/style/swap_values.rb#21 class RuboCop::Cop::Style::SwapValues < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_asgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_casgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_cvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_gvasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_ivasgn(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:30 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#30 def on_lvasgn(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:47 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#47 def allowed_assignment?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:104 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#104 def correction_range(tmp_assign, y_assign); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:81 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#81 def lhs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:66 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#66 def message(x_assign, y_assign); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:75 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#75 def replacement(x_assign); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:95 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#95 def rhs(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:60 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#60 def simple_assignment?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:51 + # source://rubocop//lib/rubocop/cop/style/swap_values.rb#51 def swapping_values?(tmp_assign, x_assign, y_assign); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:25 +# source://rubocop//lib/rubocop/cop/style/swap_values.rb#25 RuboCop::Cop::Style::SwapValues::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/swap_values.rb:28 +# source://rubocop//lib/rubocop/cop/style/swap_values.rb#28 RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Set) # Checks for array literals made up of symbols that are not @@ -44924,7 +46689,7 @@ RuboCop::Cop::Style::SwapValues::SIMPLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), # # bad # %i[foo bar baz] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:31 +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#31 class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::ArrayMinSize include ::RuboCop::Cop::ArraySyntax @@ -44933,46 +46698,46 @@ class RuboCop::Cop::Style::SymbolArray < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:48 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#48 def on_array(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:67 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#67 def build_bracketed_array(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:88 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#90 def symbol_without_quote?(string); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:60 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#60 def symbols_contain_spaces?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:80 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#82 def to_symbol_literal(string); end class << self # Returns the value of attribute largest_brackets. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:45 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#45 def largest_brackets; end # Sets the attribute largest_brackets # # @param value the value to set the attribute largest_brackets to. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:45 + # source://rubocop//lib/rubocop/cop/style/symbol_array.rb#45 def largest_brackets=(_arg0); end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:42 +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#42 RuboCop::Cop::Style::SymbolArray::ARRAY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_array.rb:41 +# source://rubocop//lib/rubocop/cop/style/symbol_array.rb#41 RuboCop::Cop::Style::SymbolArray::PERCENT_MSG = T.let(T.unsafe(nil), String) # Checks symbol literal syntax. @@ -44985,25 +46750,25 @@ RuboCop::Cop::Style::SymbolArray::PERCENT_MSG = T.let(T.unsafe(nil), String) # # good # :symbol # -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_literal.rb:15 +# source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#15 class RuboCop::Cop::Style::SymbolLiteral < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_literal.rb:20 + # source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#20 def on_sym(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_literal.rb:18 +# source://rubocop//lib/rubocop/cop/style/symbol_literal.rb#18 RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # Use symbols as procs when possible. # # If you prefer a style that allows block for method with arguments, # please set `true` to `AllowMethodsWithArguments`. -# respond_to , and `define_method?` methods are allowed by default. +# `define_method?` methods are allowed by default. # These are customizable with `AllowedMethods` option. # -# @example AllowedPatterns: [/map/] (default) +# @example AllowedPatterns: ['map'] (default) # # good # something.map { |s| s.upcase } # @example AllowMethodsWithArguments: false (default) @@ -45029,9 +46794,8 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # s.upcase # some comment # # some comment # end -# @example AllowedMethods: [respond_to, define_method] (default) +# @example AllowedMethods: [define_method] (default) # # good -# respond_to { |foo| foo.bar } # define_method(:foo) { |foo| foo.bar } # @example AllowedPatterns: [] (default) # # bad @@ -45044,7 +46808,7 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String) # # good # something.map(&:upcase) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:88 +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#87 class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::RangeHelp @@ -45054,117 +46818,117 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:137 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#136 def destructuring_block_argument?(argument_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:117 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#116 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:117 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#116 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:99 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#98 def proc_node?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:105 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#104 def symbol_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:102 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#101 def symbol_proc_receiver?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:205 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204 def allow_comments?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:201 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200 def allow_if_method_has_argument?(send_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:152 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#151 def allowed_method_name?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:165 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#164 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:177 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#176 def autocorrect_with_args(corrector, node, args, method_name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:173 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#172 def autocorrect_without_args(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:191 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#190 def begin_pos_for_replacement(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:186 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#185 def block_range_with_space(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:156 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155 def register_offense(node, method_name, block_method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:148 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147 def unsafe_array_usage?(node); end # See: https://github.com/rubocop/rubocop/issues/10864 # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:144 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#143 def unsafe_hash_usage?(node); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:112 + # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#111 def autocorrect_incompatible_with; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:95 +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#94 RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/symbol_proc.rb:96 +# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#95 RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array) # Corrector to correct conditional assignment in ternary conditions. # -# source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:504 +# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#504 class RuboCop::Cop::Style::TernaryCorrector extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper class << self - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:509 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#509 def correct(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:513 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#513 def move_assignment_inside_condition(corrector, node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:527 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#527 def correction(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:540 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#540 def element_assignment?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:544 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#544 def extract_branches(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:557 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#557 def move_branch_inside_condition(corrector, branch, assignment); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:552 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#552 def remove_parentheses(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/conditional_assignment.rb:531 + # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#531 def ternary(node); end end end @@ -45216,7 +46980,7 @@ end # # bad # foo = (bar = baz) ? a : b # -# source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:57 +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#57 class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::SafeAssignment include ::RuboCop::Cop::ConfigurableEnforcedStyle @@ -45224,20 +46988,20 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:193 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#193 def method_name(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:69 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#69 def on_if(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:100 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#100 def autocorrect(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:183 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#183 def below_ternary_precedence?(child); end # If the condition is parenthesized we recurse and check for any @@ -45245,21 +47009,21 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:131 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#131 def complex_condition?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:89 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#89 def condition_as_parenthesized_one_line_pattern_matching?(condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:198 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#198 def correct_parenthesized(corrector, condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:208 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#208 def correct_unparenthesized(corrector, condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:151 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#151 def message(node); end # Anything that is not a variable, constant, or method/.method call @@ -45267,65 +47031,65 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:141 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#141 def non_complex_expression?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:145 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#145 def non_complex_send?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:113 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#113 def offense?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:85 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#85 def only_closing_parenthesis_is_last_line?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:169 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#169 def parenthesized?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:161 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#161 def require_parentheses?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:165 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#165 def require_parentheses_when_complex?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:179 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#179 def unparenthesized_method_call?(child); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:173 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#173 def unsafe_autocorrect?(condition); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:212 + # source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#212 def whitespace_after?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:66 +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#66 RuboCop::Cop::Style::TernaryParentheses::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:67 +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#67 RuboCop::Cop::Style::TernaryParentheses::MSG_COMPLEX = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:64 +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#64 RuboCop::Cop::Style::TernaryParentheses::NON_COMPLEX_TYPES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/ternary_parentheses.rb:63 +# source://rubocop//lib/rubocop/cop/style/ternary_parentheses.rb#63 RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), Set) # Newcomers to ruby applications may write top-level methods, @@ -45370,38 +47134,38 @@ RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), S # define_method(:foo) { puts 1 } # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:47 +# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#47 class RuboCop::Cop::Style::TopLevelMethodDefinition < ::RuboCop::Cop::Base - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:79 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#79 def define_method_block?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:60 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 def on_block(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:52 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:52 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_defs(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:60 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#60 def on_numblock(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:52 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#52 def on_send(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:70 + # source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#70 def top_level_method_definition?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:48 +# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#48 RuboCop::Cop::Style::TopLevelMethodDefinition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/top_level_method_definition.rb:50 +# source://rubocop//lib/rubocop/cop/style/top_level_method_definition.rb#50 RuboCop::Cop::Style::TopLevelMethodDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for trailing code after the class definition. @@ -45416,17 +47180,17 @@ RuboCop::Cop::Style::TopLevelMethodDefinition::RESTRICT_ON_SEND = T.let(T.unsafe # def foo; end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_class.rb:18 +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#18 class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::TrailingBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_class.rb:25 + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#25 def on_class(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_class.rb:23 +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_class.rb#23 RuboCop::Cop::Style::TrailingBodyOnClass::MSG = T.let(T.unsafe(nil), String) # Checks for trailing code after the method definition. @@ -45454,20 +47218,20 @@ RuboCop::Cop::Style::TrailingBodyOnClass::MSG = T.let(T.unsafe(nil), String) # # def endless_method = do_stuff # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_method_definition.rb:31 +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#31 class RuboCop::Cop::Style::TrailingBodyOnMethodDefinition < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::TrailingBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_method_definition.rb:38 + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_method_definition.rb:38 + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#38 def on_defs(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_method_definition.rb:36 +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_method_definition.rb#36 RuboCop::Cop::Style::TrailingBodyOnMethodDefinition::MSG = T.let(T.unsafe(nil), String) # Checks for trailing code after the module definition. @@ -45482,17 +47246,17 @@ RuboCop::Cop::Style::TrailingBodyOnMethodDefinition::MSG = T.let(T.unsafe(nil), # extend self # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_module.rb:18 +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#18 class RuboCop::Cop::Style::TrailingBodyOnModule < ::RuboCop::Cop::Base include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::TrailingBody extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_module.rb:25 + # source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#25 def on_module(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_body_on_module.rb:23 +# source://rubocop//lib/rubocop/cop/style/trailing_body_on_module.rb#23 RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String) # Checks for trailing comma in argument lists. @@ -45575,21 +47339,21 @@ RuboCop::Cop::Style::TrailingBodyOnModule::MSG = T.let(T.unsafe(nil), String) # 2 # ) # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb:87 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#87 class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb:91 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 def on_csend(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb:91 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 def on_send(node); end class << self - # source://rubocop-rspec-2.12.1/lib/rubocop-rspec.rb:51 + # source://rubocop-rspec/2.16.0/lib/rubocop-rspec.rb#61 def autocorrect_incompatible_with; end end end @@ -45671,14 +47435,14 @@ end # 2 # ] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb:84 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#84 class RuboCop::Cop::Style::TrailingCommaInArrayLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb:88 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_array_literal.rb#88 def on_array(node); end end @@ -45720,36 +47484,36 @@ end # foo + bar # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:62 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#62 class RuboCop::Cop::Style::TrailingCommaInBlockArgs < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:67 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#67 def on_block(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:83 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#83 def arg_count(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:95 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#95 def argument_tokens(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:91 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#91 def last_comma(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:87 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#87 def trailing_comma?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:79 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#79 def useless_trailing_comma?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_block_args.rb:65 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_block_args.rb#65 RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String) # Checks for trailing comma in hash literals. @@ -45832,14 +47596,14 @@ RuboCop::Cop::Style::TrailingCommaInBlockArgs::MSG = T.let(T.unsafe(nil), String # bar: 2 # } # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb:87 +# source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#87 class RuboCop::Cop::Style::TrailingCommaInHashLiteral < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::TrailingComma extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb:91 + # source://rubocop//lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb#91 def on_hash(node); end end @@ -45873,27 +47637,27 @@ end # end # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_method_end_statement.rb:36 +# source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#36 class RuboCop::Cop::Style::TrailingMethodEndStatement < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_method_end_statement.rb:41 + # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#41 def on_def(node); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_method_end_statement.rb:55 + # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#55 def body_and_end_on_same_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_method_end_statement.rb:51 + # source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#51 def trailing_end?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_method_end_statement.rb:39 +# source://rubocop//lib/rubocop/cop/style/trailing_method_end_statement.rb#39 RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), String) # Checks for extra underscores in variable assignment. @@ -45919,62 +47683,62 @@ RuboCop::Cop::Style::TrailingMethodEndStatement::MSG = T.let(T.unsafe(nil), Stri # # bad # a, b, _something = foo() # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:31 +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#31 class RuboCop::Cop::Style::TrailingUnderscoreVariable < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::SurroundingSpace extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:41 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#41 def on_masgn(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:92 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#92 def allow_named_underscore_variables; end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:125 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#125 def children_offenses(variables); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:57 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#57 def find_first_offense(variables); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:66 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#66 def find_first_possible_offense(variables); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:108 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#108 def main_node_offense(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:146 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#146 def range_for_parentheses(offense, left); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:88 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#88 def reverse_index(collection, item); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:80 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#80 def splat_variable_before?(first_offense, variables); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:96 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#96 def unneeded_ranges(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:133 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#133 def unused_range(node_type, mlhs_node, right); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:129 + # source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#129 def unused_variables_only?(offense, variables); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:38 +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#38 RuboCop::Cop::Style::TrailingUnderscoreVariable::DISALLOW = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:36 +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#36 RuboCop::Cop::Style::TrailingUnderscoreVariable::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/trailing_underscore_variable.rb:37 +# source://rubocop//lib/rubocop/cop/style/trailing_underscore_variable.rb#37 RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil), String) # Looks for trivial reader/writer methods, that could @@ -46061,115 +47825,115 @@ RuboCop::Cop::Style::TrailingUnderscoreVariable::UNDERSCORE = T.let(T.unsafe(nil # attr_reader :baz # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:98 +# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#98 class RuboCop::Cop::Style::TrivialAccessors < ::RuboCop::Cop::Base include ::RuboCop::Cop::AllowedMethods extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:190 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#190 def looks_like_trivial_writer?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:104 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 def on_def(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:104 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#104 def on_defs(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:222 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#222 def accessor(kind, method_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:161 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#161 def allow_dsl_writers?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:157 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#157 def allow_predicates?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:195 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#195 def allowed_method_name?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:169 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#169 def allowed_method_names; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:204 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#204 def allowed_reader?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:200 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#200 def allowed_writer?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:142 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#142 def autocorrect(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:234 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#234 def autocorrect_class(corrector, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:226 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#226 def autocorrect_instance(corrector, node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:173 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#173 def dsl_writer?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:153 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#153 def exact_name_match?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:165 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#165 def ignore_class_methods?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:115 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#115 def in_module_or_instance_eval?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:181 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#181 def looks_like_trivial_reader?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:208 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#208 def names_match?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:129 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#129 def on_method_def(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:248 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#248 def top_level_node?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:214 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#214 def trivial_accessor_kind(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:177 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#177 def trivial_reader?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:185 + # source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#185 def trivial_writer?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/trivial_accessors.rb:102 +# source://rubocop//lib/rubocop/cop/style/trivial_accessors.rb#102 RuboCop::Cop::Style::TrivialAccessors::MSG = T.let(T.unsafe(nil), String) # Looks for `unless` expressions with `else` clauses. @@ -46189,22 +47953,22 @@ RuboCop::Cop::Style::TrivialAccessors::MSG = T.let(T.unsafe(nil), String) # # do a different thing... # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/unless_else.rb:22 +# source://rubocop//lib/rubocop/cop/style/unless_else.rb#22 class RuboCop::Cop::Style::UnlessElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_else.rb:28 + # source://rubocop//lib/rubocop/cop/style/unless_else.rb#28 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_else.rb:45 + # source://rubocop//lib/rubocop/cop/style/unless_else.rb#45 def range_between_condition_and_else(node, condition); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_else.rb:49 + # source://rubocop//lib/rubocop/cop/style/unless_else.rb#49 def range_between_else_and_end(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/unless_else.rb:26 +# source://rubocop//lib/rubocop/cop/style/unless_else.rb#26 RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String) # Checks for the use of logical operators in an `unless` condition. @@ -46250,44 +48014,44 @@ RuboCop::Cop::Style::UnlessElse::MSG = T.let(T.unsafe(nil), String) # return unless a # return unless a? # -# source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:49 +# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#49 class RuboCop::Cop::Style::UnlessLogicalOperators < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:61 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#61 def and_with_or?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:66 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#66 def logical_operator?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:70 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#70 def on_if(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:56 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#56 def or_with_and?(param0 = T.unsafe(nil)); end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:82 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#82 def mixed_logical_operator?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:89 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#89 def mixed_precedence_and?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:96 + # source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#96 def mixed_precedence_or?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:53 +# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#53 RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_LOGICAL_OPERATORS = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/unless_logical_operators.rb:52 +# source://rubocop//lib/rubocop/cop/style/unless_logical_operators.rb#52 RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_MIXED_LOGICAL_OPERATORS = T.let(T.unsafe(nil), String) # Checks for accessing the first element of `String#unpack` @@ -46304,27 +48068,27 @@ RuboCop::Cop::Style::UnlessLogicalOperators::FORBID_MIXED_LOGICAL_OPERATORS = T. # # good # 'foo'.unpack1('h*') # -# source://rubocop-1.35.1/lib/rubocop/cop/style/unpack_first.rb:20 +# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#20 class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/style/unpack_first.rb:38 + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#38 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/unpack_first.rb:31 + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#31 def unpack_and_first_element?(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/unpack_first.rb:54 + # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#54 def first_element_range(node, unpack_call); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/unpack_first.rb:26 +# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#26 RuboCop::Cop::Style::UnpackFirst::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/unpack_first.rb:28 +# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#28 RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Checks for variable interpolation (like "#@ivar"). @@ -46340,24 +48104,24 @@ RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # /check #{$pattern}/ # "Let's go to the #{@store}" # -# source://rubocop-1.35.1/lib/rubocop/cop/style/variable_interpolation.rb:18 +# source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#18 class RuboCop::Cop::Style::VariableInterpolation < ::RuboCop::Cop::Base include ::RuboCop::Cop::Interpolation extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/variable_interpolation.rb:25 + # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#25 def on_node_with_interpolations(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/variable_interpolation.rb:35 + # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#35 def message(range); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/variable_interpolation.rb:39 + # source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#39 def var_nodes(nodes); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/variable_interpolation.rb:22 +# source://rubocop//lib/rubocop/cop/style/variable_interpolation.rb#22 RuboCop::Cop::Style::VariableInterpolation::MSG = T.let(T.unsafe(nil), String) # Checks for `when;` uses in `case` expressions. @@ -46375,15 +48139,15 @@ RuboCop::Cop::Style::VariableInterpolation::MSG = T.let(T.unsafe(nil), String) # when 2 then 'bar' # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/when_then.rb:20 +# source://rubocop//lib/rubocop/cop/style/when_then.rb#20 class RuboCop::Cop::Style::WhenThen < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/when_then.rb:25 + # source://rubocop//lib/rubocop/cop/style/when_then.rb#25 def on_when(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/when_then.rb:23 +# source://rubocop//lib/rubocop/cop/style/when_then.rb#23 RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) # Checks for uses of `do` in multi-line `while/until` statements. @@ -46411,18 +48175,18 @@ RuboCop::Cop::Style::WhenThen::MSG = T.let(T.unsafe(nil), String) # do_something(x.pop) # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_do.rb:31 +# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#31 class RuboCop::Cop::Style::WhileUntilDo < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_do.rb:36 + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#36 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_do.rb:36 + # source://rubocop//lib/rubocop/cop/style/while_until_do.rb#36 def on_while(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_do.rb:34 +# source://rubocop//lib/rubocop/cop/style/while_until_do.rb#34 RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # Checks for while and until statements that would fit on one line @@ -46454,20 +48218,20 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) # x += 100 # end # -# source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_modifier.rb:36 +# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#36 class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_modifier.rb:42 + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#42 def on_until(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_modifier.rb:42 + # source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#42 def on_while(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/while_until_modifier.rb:40 +# source://rubocop//lib/rubocop/cop/style/while_until_modifier.rb#40 RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) # Checks for array literals made up of word-like @@ -46493,6 +48257,25 @@ RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) # # # bad (contains spaces) # %w[foo\ bar baz\ quux] +# +# # bad +# [ +# ['one', 'One'], +# ['two', 'Two'] +# ] +# +# # good +# [ +# %w[one One], +# %w[two Two] +# ] +# +# # good (2d array containing spaces) +# [ +# ['one', 'One'], +# ['two', 'Two'], +# ['forty two', 'Forty Two'] +# ] # @example EnforcedStyle: brackets # # good # ['foo', 'bar', 'baz'] @@ -46503,7 +48286,19 @@ RuboCop::Cop::Style::WhileUntilModifier::MSG = T.let(T.unsafe(nil), String) # # good (contains spaces) # ['foo bar', 'baz quux'] # -# source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:39 +# # good +# [ +# ['one', 'One'], +# ['two', 'Two'] +# ] +# +# # bad +# [ +# %w[one One], +# %w[two Two] +# ] +# +# source://rubocop//lib/rubocop/cop/style/word_array.rb#71 class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::ArrayMinSize include ::RuboCop::Cop::ArraySyntax @@ -46511,46 +48306,51 @@ class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base include ::RuboCop::Cop::PercentArray extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:53 + # source://rubocop//lib/rubocop/cop/style/word_array.rb#85 def on_array(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:85 + # source://rubocop//lib/rubocop/cop/style/word_array.rb#126 def build_bracketed_array(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:65 + # source://rubocop//lib/rubocop/cop/style/word_array.rb#106 def complex_content?(strings, complex_regex: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:76 + # source://rubocop//lib/rubocop/cop/style/word_array.rb#117 def invalid_percent_array_contents?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:81 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/word_array.rb#98 + def within_2d_array_of_complex_content?(node); end + + # source://rubocop//lib/rubocop/cop/style/word_array.rb#122 def word_regex; end class << self # Returns the value of attribute largest_brackets. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:50 + # source://rubocop//lib/rubocop/cop/style/word_array.rb#82 def largest_brackets; end # Sets the attribute largest_brackets # # @param value the value to set the attribute largest_brackets to. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:50 + # source://rubocop//lib/rubocop/cop/style/word_array.rb#82 def largest_brackets=(_arg0); end end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:47 +# source://rubocop//lib/rubocop/cop/style/word_array.rb#79 RuboCop::Cop::Style::WordArray::ARRAY_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/word_array.rb:46 +# source://rubocop//lib/rubocop/cop/style/word_array.rb#78 RuboCop::Cop::Style::WordArray::PERCENT_MSG = T.let(T.unsafe(nil), String) # Enforces or forbids Yoda conditions, @@ -46600,96 +48400,145 @@ RuboCop::Cop::Style::WordArray::PERCENT_MSG = T.let(T.unsafe(nil), String) # 99 == foo # "bar" != foo # -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:75 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#75 class RuboCop::Cop::Style::YodaCondition < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:88 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#88 def file_constant_equal_program_name?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:92 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#92 def on_send(node); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:140 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#140 def actual_code_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:133 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#133 def corrected_code(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:104 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#104 def enforce_yoda?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:109 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#109 def equality_only?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:164 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#164 def interpolation?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:129 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#129 def message(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:148 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#148 def non_equality_operator?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:152 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#152 def noncommutative_operator?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:160 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#160 def program_name?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:144 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#144 def reverse_comparison(operator); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:156 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#156 def source_file_path_constant?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:118 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#118 def valid_yoda?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:114 + # source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#114 def yoda_compatible_condition?(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:82 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#82 RuboCop::Cop::Style::YodaCondition::EQUALITY_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:80 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#80 RuboCop::Cop::Style::YodaCondition::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:83 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#83 RuboCop::Cop::Style::YodaCondition::NONCOMMUTATIVE_OPERATORS = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:84 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#84 RuboCop::Cop::Style::YodaCondition::PROGRAM_NAMES = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:85 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#85 RuboCop::Cop::Style::YodaCondition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop-1.35.1/lib/rubocop/cop/style/yoda_condition.rb:81 +# source://rubocop//lib/rubocop/cop/style/yoda_condition.rb#81 RuboCop::Cop::Style::YodaCondition::REVERSE_COMPARISON = T.let(T.unsafe(nil), Hash) +# Forbids Yoda expressions, i.e. binary operations (using `*`, `+`, `&`, `|`, +# and `^` operators) where the order of expression is reversed, eg. `1 + x`. +# This cop complements `Style/YodaCondition` cop, which has a similar purpose. +# +# @example SupportedOperators: ['*', '+', '&''] +# # bad +# 1 + x +# 10 * y +# 1 & z +# +# # good +# 60 * 24 +# x + 1 +# y * 10 +# z & 1 +# +# # good +# 1 | x +# +# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#30 +class RuboCop::Cop::Style::YodaExpression < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#37 + def on_new_investigation; end + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#41 + def on_send(node); end + + private + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#64 + def offended_ancestor?(node); end + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#68 + def offended_nodes; end + + # source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#60 + def supported_operators; end +end + +# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#33 +RuboCop::Cop::Style::YodaExpression::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop//lib/rubocop/cop/style/yoda_expression.rb#35 +RuboCop::Cop::Style::YodaExpression::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for numeric comparisons that can be replaced # by a predicate method, such as receiver.length == 0, # receiver.length > 0, receiver.length != 0, @@ -46713,7 +48562,7 @@ RuboCop::Cop::Style::YodaCondition::REVERSE_COMPARISON = T.let(T.unsafe(nil), Ha # !string.empty? # !hash.empty? # -# source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:34 +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#34 class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector @@ -46721,48 +48570,54 @@ class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Base # implement `#size`, but not `#empty`. We ignore those to # reduce false positives. # - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:118 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#135 def non_polymorphic_collection?(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:88 - def nonzero_length_predicate(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#105 + def nonzero_length_comparison(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:42 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#42 def on_send(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:109 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#126 def other_receiver(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:80 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#97 + def zero_length_comparison(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#92 def zero_length_predicate(param0 = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:101 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#118 def zero_length_receiver(param0 = T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:64 - def check_nonzero_length_predicate(node); end + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#76 + def check_nonzero_length_comparison(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:49 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#61 + def check_zero_length_comparison(node); end + + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#50 def check_zero_length_predicate(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:93 + # source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#110 def replacement(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:38 +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#38 RuboCop::Cop::Style::ZeroLengthPredicate::NONZERO_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:40 +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#40 RuboCop::Cop::Style::ZeroLengthPredicate::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-1.35.1/lib/rubocop/cop/style/zero_length_predicate.rb:37 +# source://rubocop//lib/rubocop/cop/style/zero_length_predicate.rb#37 RuboCop::Cop::Style::ZeroLengthPredicate::ZERO_MSG = T.let(T.unsafe(nil), String) # Common functionality for checking and correcting surrounding whitespace. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#6 module RuboCop::Cop::SurroundingSpace include ::RuboCop::Cop::RangeHelp @@ -46770,92 +48625,92 @@ module RuboCop::Cop::SurroundingSpace # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:109 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#110 def empty_brackets?(left_bracket_token, right_bracket_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:103 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#104 def empty_offense(node, range, message, command); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:93 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#94 def empty_offenses(node, left, right, message); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:68 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#68 def extra_space?(token, side); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:127 - def no_space_between?(left_bracket_token, right_bracket_token); end + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#129 + def no_character_between?(left_bracket_token, right_bracket_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:38 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#38 def no_space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:119 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#120 def offending_empty_no_space?(config, left_token, right_token); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:115 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#116 def offending_empty_space?(config, left_token, right_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:33 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#33 def on_new_investigation; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:78 - def reposition(src, pos, step); end + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#78 + def reposition(src, pos, step, include_newlines: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:16 - def side_space_range(range:, side:); end + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#16 + def side_space_range(range:, side:, include_newlines: T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:123 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#124 def space_between?(left_bracket_token, right_bracket_token); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:84 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#85 def space_offense(node, token, side, message, command); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:53 + # source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#53 def space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#9 RuboCop::Cop::SurroundingSpace::NO_SPACE_COMMAND = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:12 +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#12 RuboCop::Cop::SurroundingSpace::SINGLE_SPACE_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/surrounding_space.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/surrounding_space.rb#10 RuboCop::Cop::SurroundingSpace::SPACE_COMMAND = T.let(T.unsafe(nil), String) # Classes that include this module just implement functions for working # with symbol nodes. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/symbol_help.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/symbol_help.rb#7 module RuboCop::Cop::SymbolHelp # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/symbol_help.rb:8 + # source://rubocop//lib/rubocop/cop/mixin/symbol_help.rb#8 def hash_key?(node); end end # Common functionality for checking target ruby version. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/target_ruby_version.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#6 module RuboCop::Cop::TargetRubyVersion - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/target_ruby_version.rb:11 + # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#11 def minimum_target_ruby_version(version); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/target_ruby_version.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#7 def required_minimum_ruby_version; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/target_ruby_version.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/target_ruby_version.rb#15 def support_target_ruby_version?(version); end end @@ -46867,164 +48722,164 @@ end # first the ones needed for autocorrection (if any), then the rest # (unless autocorrections happened). # -# source://rubocop-1.35.1/lib/rubocop/cop/team.rb:12 +# source://rubocop//lib/rubocop/cop/team.rb#12 class RuboCop::Cop::Team # @return [Team] a new instance of Team # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:17 + # source://rubocop//lib/rubocop/cop/team.rb#55 def initialize(cops, config = T.unsafe(nil), options = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:51 + # source://rubocop//lib/rubocop/cop/team.rb#65 def autocorrect?; end # Returns the value of attribute cops. # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:13 + # source://rubocop//lib/rubocop/cop/team.rb#51 def cops; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:55 + # source://rubocop//lib/rubocop/cop/team.rb#69 def debug?; end # Returns the value of attribute errors. # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:13 + # source://rubocop//lib/rubocop/cop/team.rb#51 def errors; end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:113 + # source://rubocop//lib/rubocop/cop/team.rb#112 def external_dependency_checksum; end # @deprecated # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:94 + # source://rubocop//lib/rubocop/cop/team.rb#108 def forces; end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:61 + # source://rubocop//lib/rubocop/cop/team.rb#75 def inspect_file(processed_source); end # @return [Commissioner::InvestigationReport] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:66 + # source://rubocop//lib/rubocop/cop/team.rb#80 def investigate(processed_source); end # Returns the value of attribute updated_source_file. # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:13 + # source://rubocop//lib/rubocop/cop/team.rb#51 def updated_source_file; end # Returns the value of attribute updated_source_file. # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:13 + # source://rubocop//lib/rubocop/cop/team.rb#51 def updated_source_file?; end # Returns the value of attribute warnings. # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:13 + # source://rubocop//lib/rubocop/cop/team.rb#51 def warnings; end private - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:120 + # source://rubocop//lib/rubocop/cop/team.rb#119 def autocorrect(processed_source, report); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:179 + # source://rubocop//lib/rubocop/cop/team.rb#178 def autocorrect_report(report); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:139 + # source://rubocop//lib/rubocop/cop/team.rb#138 def be_ready; end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:185 + # source://rubocop//lib/rubocop/cop/team.rb#184 def collate_corrections(report); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:197 + # source://rubocop//lib/rubocop/cop/team.rb#196 def each_corrector(report); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:247 + # source://rubocop//lib/rubocop/cop/team.rb#246 def handle_error(error, location, cop); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:239 + # source://rubocop//lib/rubocop/cop/team.rb#238 def handle_warning(error, location); end # @return [Commissioner::InvestigationReport] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:153 + # source://rubocop//lib/rubocop/cop/team.rb#152 def investigate_partial(cops, processed_source); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:224 + # source://rubocop//lib/rubocop/cop/team.rb#223 def process_errors(file, errors); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:147 + # source://rubocop//lib/rubocop/cop/team.rb#146 def reset; end # @return [Array] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:159 + # source://rubocop//lib/rubocop/cop/team.rb#158 def roundup_relevant_cops(filename); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:173 + # source://rubocop//lib/rubocop/cop/team.rb#172 def support_target_rails_version?(cop); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:167 + # source://rubocop//lib/rubocop/cop/team.rb#166 def support_target_ruby_version?(cop); end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:212 + # source://rubocop//lib/rubocop/cop/team.rb#211 def suppress_clobbering; end - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:218 + # source://rubocop//lib/rubocop/cop/team.rb#217 def validate_config; end class << self # @return [Array] needed for the given cops # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:99 + # source://rubocop//lib/rubocop/cop/team.rb#37 def forces_for(cops); end # @return [Team] with cops assembled from the given `cop_classes` # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:36 + # source://rubocop//lib/rubocop/cop/team.rb#22 def mobilize(cop_classes, config, options = T.unsafe(nil)); end - # @return [Array] + # @return [Array] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:42 + # source://rubocop//lib/rubocop/cop/team.rb#28 def mobilize_cops(cop_classes, config, options = T.unsafe(nil)); end # @return [Team] # - # source://rubocop-1.35.1/lib/rubocop/cop/team.rb:28 + # source://rubocop//lib/rubocop/cop/team.rb#14 def new(cop_or_classes, config, options = T.unsafe(nil)); end end end # Common methods shared by TrailingBody cops # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_body.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#6 module RuboCop::Cop::TrailingBody # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_body.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#12 def body_on_first_line?(node, body); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_body.rb:16 + # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#16 def first_part_of(body); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_body.rb:7 + # source://rubocop//lib/rubocop/cop/mixin/trailing_body.rb#7 def trailing_body?(node); end end # Common methods shared by Style/TrailingCommaInArguments and # Style/TrailingCommaInLiteral # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#7 module RuboCop::Cop::TrailingComma include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::RangeHelp @@ -47037,63 +48892,63 @@ module RuboCop::Cop::TrailingComma # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:104 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#104 def allowed_multiline_argument?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:167 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#167 def any_heredoc?(items); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:159 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#159 def autocorrect_range(item); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:133 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#133 def avoid_comma(kind, comma_begin_pos, extra_info); end # Returns true if the node has round/square/curly brackets. # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:82 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#82 def brackets?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:19 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#19 def check(node, items, kind, begin_pos, end_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:37 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#37 def check_comma(node, kind, comma_pos); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:43 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#43 def check_literal(node, kind); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:30 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#30 def comma_offset(items, range); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:108 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#108 def elements(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:54 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#54 def extra_avoid_comma_info; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:171 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#171 def heredoc?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:189 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#189 def heredoc_send?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:76 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#76 def inside_comment?(range, comma_offset); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:93 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#93 def method_name_and_arguments_on_same_line?(node); end # Returns true if the round/square/curly brackets of the given node are @@ -47102,231 +48957,242 @@ module RuboCop::Cop::TrailingComma # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:89 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#89 def multiline?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:123 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#123 def no_elements_on_same_line?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:129 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#129 def on_same_line?(range1, range2); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:147 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#147 def put_comma(items, kind); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:65 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#65 def should_have_comma?(style, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:15 + # source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#15 def style_parameter_name; end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/trailing_comma.rb:11 +# source://rubocop//lib/rubocop/cop/mixin/trailing_comma.rb#11 RuboCop::Cop::TrailingComma::MSG = T.let(T.unsafe(nil), String) # Common functionality shared by Uncommunicative cops # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#6 module RuboCop::Cop::UncommunicativeName - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:12 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#12 def check(node, args); end private - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:95 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#95 def allow_nums; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:87 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#87 def allowed_names; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:78 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#78 def arg_range(arg, length); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:45 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#45 def case_offense(node, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:64 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#64 def ends_with_num?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:91 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#91 def forbidden_names; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:83 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#83 def forbidden_offense(node, range, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:36 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#36 def issue_offenses(node, range, name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:68 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#68 def length_offense(node, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:74 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#74 def long_enough?(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:99 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#99 def min_length; end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:53 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#53 def name_type(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:60 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#60 def num_offense(node, range); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:49 + # source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#49 def uppercase?(name); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:7 +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#7 RuboCop::Cop::UncommunicativeName::CASE_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:10 +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#10 RuboCop::Cop::UncommunicativeName::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:9 +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#9 RuboCop::Cop::UncommunicativeName::LENGTH_MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/uncommunicative_name.rb:8 +# source://rubocop//lib/rubocop/cop/mixin/uncommunicative_name.rb#8 RuboCop::Cop::UncommunicativeName::NUM_MSG = T.let(T.unsafe(nil), String) # This autocorrects unused arguments. # -# source://rubocop-1.35.1/lib/rubocop/cop/correctors/unused_arg_corrector.rb:6 +# source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#6 class RuboCop::Cop::UnusedArgCorrector extend ::RuboCop::Cop::RangeHelp class << self - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/unused_arg_corrector.rb:12 + # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#12 def correct(corrector, processed_source, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/unused_arg_corrector.rb:31 + # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#31 def correct_for_blockarg_type(corrector, node); end # Returns the value of attribute processed_source. # - # source://rubocop-1.35.1/lib/rubocop/cop/correctors/unused_arg_corrector.rb:10 + # source://rubocop//lib/rubocop/cop/correctors/unused_arg_corrector.rb#10 def processed_source; end end end # This module contains a collection of useful utility methods. # -# source://rubocop-1.35.1/lib/rubocop/cop/util.rb:6 +# source://rubocop//lib/rubocop/cop/util.rb#6 module RuboCop::Cop::Util include ::RuboCop::PathUtil private - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:34 + # source://rubocop//lib/rubocop/cop/util.rb#34 def add_parentheses(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:55 + # source://rubocop//lib/rubocop/cop/util.rb#55 + def any_descendant?(node, *types); end + + # source://rubocop//lib/rubocop/cop/util.rb#70 def args_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:67 + # source://rubocop//lib/rubocop/cop/util.rb#82 def args_end(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:80 + # source://rubocop//lib/rubocop/cop/util.rb#100 def begins_its_line?(range); end # This is a bad API # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:16 + # source://rubocop//lib/rubocop/cop/util.rb#16 def comment_line?(line_source); end # @deprecated Use `ProcessedSource#line_with_comment?`, `contains_comment?` or similar # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:21 + # source://rubocop//lib/rubocop/cop/util.rb#21 def comment_lines?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:161 + # source://rubocop//lib/rubocop/cop/util.rb#184 def compatible_external_encoding_for?(src); end # If converting a string to Ruby string literal source code, must # double quotes be used? # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:102 + # source://rubocop//lib/rubocop/cop/util.rb#122 def double_quotes_required?(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:116 + # source://rubocop//lib/rubocop/cop/util.rb#136 def escape_string(string); end # Returns, for example, a bare `if` node if the given node is an `if` # with calls chained to the end of it. # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:86 + # source://rubocop//lib/rubocop/cop/util.rb#106 def first_part_of_call_chain(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:151 + # source://rubocop//lib/rubocop/cop/util.rb#189 + def include_or_equal?(source, target); end + + # source://rubocop//lib/rubocop/cop/util.rb#171 def indent(node, offset: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:133 + # source://rubocop//lib/rubocop/cop/util.rb#153 def interpret_string_escapes(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:137 + # source://rubocop//lib/rubocop/cop/util.rb#157 def line(node_or_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:25 + # source://rubocop//lib/rubocop/cop/util.rb#25 def line_range(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:112 + # source://rubocop//lib/rubocop/cop/util.rb#132 def needs_escaping?(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:71 + # source://rubocop//lib/rubocop/cop/util.rb#86 def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:29 + # source://rubocop//lib/rubocop/cop/util.rb#29 def parentheses?(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:145 + # source://rubocop//lib/rubocop/cop/util.rb#165 def same_line?(node1, node2); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:120 + # source://rubocop//lib/rubocop/cop/util.rb#140 def to_string_literal(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:155 + # source://rubocop//lib/rubocop/cop/util.rb#177 def to_supported_styles(enforced_style); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:129 + # source://rubocop//lib/rubocop/cop/util.rb#149 def trim_string_interpolation_escape_character(str); end class << self - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:34 + # source://rubocop//lib/rubocop/cop/util.rb#34 def add_parentheses(node, corrector); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:55 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/util.rb#55 + def any_descendant?(node, *types); end + + # source://rubocop//lib/rubocop/cop/util.rb#70 def args_begin(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:67 + # source://rubocop//lib/rubocop/cop/util.rb#82 def args_end(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:80 + # source://rubocop//lib/rubocop/cop/util.rb#100 def begins_its_line?(range); end # This is a bad API # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:16 + # source://rubocop//lib/rubocop/cop/util.rb#16 def comment_line?(line_source); end # @deprecated Use `ProcessedSource#line_with_comment?`, `contains_comment?` or similar # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:21 + # source://rubocop//lib/rubocop/cop/util.rb#21 def comment_lines?(node); end # If converting a string to Ruby string literal source code, must @@ -47334,110 +49200,113 @@ module RuboCop::Cop::Util # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:102 + # source://rubocop//lib/rubocop/cop/util.rb#122 def double_quotes_required?(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:116 + # source://rubocop//lib/rubocop/cop/util.rb#136 def escape_string(string); end # Returns, for example, a bare `if` node if the given node is an `if` # with calls chained to the end of it. # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:86 + # source://rubocop//lib/rubocop/cop/util.rb#106 def first_part_of_call_chain(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:151 + # source://rubocop//lib/rubocop/cop/util.rb#171 def indent(node, offset: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:133 + # source://rubocop//lib/rubocop/cop/util.rb#153 def interpret_string_escapes(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:137 + # source://rubocop//lib/rubocop/cop/util.rb#157 def line(node_or_range); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:25 + # source://rubocop//lib/rubocop/cop/util.rb#25 def line_range(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:112 + # source://rubocop//lib/rubocop/cop/util.rb#132 def needs_escaping?(string); end # @yield [sexp] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:71 + # source://rubocop//lib/rubocop/cop/util.rb#86 def on_node(syms, sexp, excludes = T.unsafe(nil), &block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:29 + # source://rubocop//lib/rubocop/cop/util.rb#29 def parentheses?(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:145 + # source://rubocop//lib/rubocop/cop/util.rb#165 def same_line?(node1, node2); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:120 + # source://rubocop//lib/rubocop/cop/util.rb#140 def to_string_literal(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:155 + # source://rubocop//lib/rubocop/cop/util.rb#177 def to_supported_styles(enforced_style); end - # source://rubocop-1.35.1/lib/rubocop/cop/util.rb:129 + # source://rubocop//lib/rubocop/cop/util.rb#149 def trim_string_interpolation_escape_character(str); end end end +# source://rubocop//lib/rubocop/cop/util.rb#95 +RuboCop::Cop::Util::LINE_BEGINS_REGEX_CACHE = T.let(T.unsafe(nil), Hash) + # Match literal regex characters, not including anchors, character # classes, alternatives, groups, repetitions, references, etc # -# source://rubocop-1.35.1/lib/rubocop/cop/util.rb:11 +# source://rubocop//lib/rubocop/cop/util.rb#11 RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:5 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#5 module RuboCop::Cop::Utils; end # Parses {Kernel#sprintf} format strings. # -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:7 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#7 class RuboCop::Cop::Utils::FormatString # @return [FormatString] a new instance of FormatString # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:89 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#89 def initialize(string); end - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:93 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#93 def format_sequences; end - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:105 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#105 def max_digit_dollar_num; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:101 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#101 def named_interpolation?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:97 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#97 def valid?; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:117 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#117 def mixed_formats?; end - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:111 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#111 def parse; end end -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:8 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#8 RuboCop::Cop::Utils::FormatString::DIGIT_DOLLAR = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:9 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#9 RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) # The syntax of a format sequence is as follows. @@ -47454,97 +49323,97 @@ RuboCop::Cop::Utils::FormatString::FLAG = T.let(T.unsafe(nil), Regexp) # # @see https://ruby-doc.org/core-2.6.3/Kernel.html#method-i-format # -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:43 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#43 class RuboCop::Cop::Utils::FormatString::FormatSequence # @return [FormatSequence] a new instance of FormatSequence # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:46 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#46 def initialize(match); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:61 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#61 def annotated?; end # Number of arguments required for the format sequence # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:70 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#70 def arity; end # Returns the value of attribute begin_pos. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def begin_pos; end # Returns the value of attribute end_pos. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def end_pos; end # Returns the value of attribute flags. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def flags; end - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:74 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#74 def max_digit_dollar_num; end # Returns the value of attribute name. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def name; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:57 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#57 def percent?; end # Returns the value of attribute precision. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def precision; end - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:78 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#78 def style; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:65 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#65 def template?; end # Returns the value of attribute type. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def type; end # Returns the value of attribute width. # - # source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:44 + # source://rubocop//lib/rubocop/cop/utils/format_string.rb#44 def width; end end -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:15 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#15 RuboCop::Cop::Utils::FormatString::NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:11 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#11 RuboCop::Cop::Utils::FormatString::NUMBER = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:10 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#10 RuboCop::Cop::Utils::FormatString::NUMBER_ARG = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:13 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#13 RuboCop::Cop::Utils::FormatString::PRECISION = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:18 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#18 RuboCop::Cop::Utils::FormatString::SEQUENCE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:16 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#16 RuboCop::Cop::Utils::FormatString::TEMPLATE_NAME = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:14 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#14 RuboCop::Cop::Utils::FormatString::TYPE = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/cop/utils/format_string.rb:12 +# source://rubocop//lib/rubocop/cop/utils/format_string.rb#12 RuboCop::Cop::Utils::FormatString::WIDTH = T.let(T.unsafe(nil), Regexp) # This force provides a way to track local variables and scopes of Ruby. @@ -47570,65 +49439,65 @@ RuboCop::Cop::Utils::FormatString::WIDTH = T.let(T.unsafe(nil), Regexp) # # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:27 +# source://rubocop//lib/rubocop/cop/variable_force.rb#27 class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # Starting point. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:75 + # source://rubocop//lib/rubocop/cop/variable_force.rb#75 def investigate(processed_source); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:84 + # source://rubocop//lib/rubocop/cop/variable_force.rb#84 def process_node(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:70 + # source://rubocop//lib/rubocop/cop/variable_force.rb#70 def variable_table; end private - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:379 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def after_declaring_variable(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:379 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def after_entering_scope(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:379 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def after_leaving_scope(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:379 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def before_declaring_variable(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:379 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def before_entering_scope(arg); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:379 + # source://rubocop//lib/rubocop/cop/variable_force.rb#367 def before_leaving_scope(arg); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:349 + # source://rubocop//lib/rubocop/cop/variable_force.rb#338 def descendant_reference(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:339 + # source://rubocop//lib/rubocop/cop/variable_force.rb#328 def each_descendant_reference(loop_node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:324 + # source://rubocop//lib/rubocop/cop/variable_force.rb#313 def find_variables_in_loop(loop_node); end # This is called for each scope recursively. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:93 + # source://rubocop//lib/rubocop/cop/variable_force.rb#93 def inspect_variables_in_scope(scope_node); end # Mark all assignments which are referenced in the same loop @@ -47637,199 +49506,197 @@ class RuboCop::Cop::VariableForce < ::RuboCop::Cop::Force # # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:305 + # source://rubocop//lib/rubocop/cop/variable_force.rb#294 def mark_assignments_as_referenced_in_loop(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:112 + # source://rubocop//lib/rubocop/cop/variable_force.rb#125 def node_handler_method_name(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:99 + # source://rubocop//lib/rubocop/cop/variable_force.rb#99 def process_children(origin_node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:241 + # source://rubocop//lib/rubocop/cop/variable_force.rb#230 def process_loop(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:170 + # source://rubocop//lib/rubocop/cop/variable_force.rb#159 def process_regexp_named_captures(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:256 + # source://rubocop//lib/rubocop/cop/variable_force.rb#245 def process_rescue(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:275 + # source://rubocop//lib/rubocop/cop/variable_force.rb#264 def process_scope(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:294 + # source://rubocop//lib/rubocop/cop/variable_force.rb#283 def process_send(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:152 + # source://rubocop//lib/rubocop/cop/variable_force.rb#141 def process_variable_assignment(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:140 + # source://rubocop//lib/rubocop/cop/variable_force.rb#129 def process_variable_declaration(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:229 + # source://rubocop//lib/rubocop/cop/variable_force.rb#218 def process_variable_multiple_assignment(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:194 + # source://rubocop//lib/rubocop/cop/variable_force.rb#183 def process_variable_operator_assignment(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:236 + # source://rubocop//lib/rubocop/cop/variable_force.rb#225 def process_variable_referencing(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:267 + # source://rubocop//lib/rubocop/cop/variable_force.rb#256 def process_zero_arity_super(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:188 + # source://rubocop//lib/rubocop/cop/variable_force.rb#177 def regexp_captured_names(node); end - # Use Node#equal? for accurate check. - # # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:362 + # source://rubocop//lib/rubocop/cop/variable_force.rb#350 def scanned_node?(node); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:366 + # source://rubocop//lib/rubocop/cop/variable_force.rb#354 def scanned_nodes; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:107 + # source://rubocop//lib/rubocop/cop/variable_force.rb#107 def skip_children!; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:288 + # source://rubocop//lib/rubocop/cop/variable_force.rb#277 def twisted_nodes(node); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:32 +# source://rubocop//lib/rubocop/cop/variable_force.rb#32 RuboCop::Cop::VariableForce::ARGUMENT_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) # This class represents each assignment of a variable. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:7 +# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#7 class RuboCop::Cop::VariableForce::Assignment include ::RuboCop::Cop::VariableForce::Branchable # @return [Assignment] a new instance of Assignment # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:16 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#16 def initialize(node, variable); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:67 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#67 def meta_assignment_node; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:56 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#56 def multiple_assignment?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:29 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#29 def name; end # Returns the value of attribute node. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 def node; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:62 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#62 def operator; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:50 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#50 def operator_assignment?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:37 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#37 def reference!(node); end # Returns the value of attribute referenced. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 def referenced; end # Returns the value of attribute referenced. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 def referenced?; end # Returns the value of attribute references. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 def references; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:46 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#46 def regexp_named_capture?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:33 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#33 def scope; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:42 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#42 def used?; end # Returns the value of attribute variable. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:12 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#12 def variable; end private - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:85 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#85 def multiple_assignment_node; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:77 + # source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#77 def operator_assignment_node; end end -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/assignment.rb:10 +# source://rubocop//lib/rubocop/cop/variable_force/assignment.rb#10 RuboCop::Cop::VariableForce::Assignment::MULTIPLE_LEFT_HAND_SIDE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:64 +# source://rubocop//lib/rubocop/cop/variable_force.rb#64 class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:65 + # source://rubocop//lib/rubocop/cop/variable_force.rb#65 def assignment?; end # Returns the value of attribute node @@ -47842,7 +49709,7 @@ class RuboCop::Cop::VariableForce::AssignmentReference < ::Struct # @param value [Object] the value to set the attribute node to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:64 + # source://rubocop//lib/rubocop/cop/variable_force.rb#64 def node=(_); end class << self @@ -47855,24 +49722,24 @@ end # Namespace for branch classes for each control structure. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:7 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#7 module RuboCop::Cop::VariableForce::Branch class << self - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:8 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#8 def of(target_node, scope: T.unsafe(nil)); end end end # left_body && right_body # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:265 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#265 class RuboCop::Cop::VariableForce::Branch::And < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::LogicalOperator - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def left_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def right_body?; end end @@ -47896,20 +49763,20 @@ end # do_something # no branch # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:42 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 class RuboCop::Cop::VariableForce::Branch::Base < ::Struct - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:121 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 def ==(other); end # @raise [NotImplementedError] # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:92 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#92 def always_run?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:88 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#88 def branched?; end # Returns the value of attribute child_node @@ -47922,40 +49789,40 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # @param value [Object] the value to set the attribute child_node to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:42 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def child_node=(_); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:70 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#70 def control_node; end # @yield [_self] # @yieldparam _self [RuboCop::Cop::VariableForce::Branch::Base] the object that the method was called on # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:80 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#80 def each_ancestor(include_self: T.unsafe(nil), &block); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:121 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#121 def eql?(other); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:104 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#104 def exclusive_with?(other); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:129 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#129 def hash; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:96 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#96 def may_jump_to_other_branch?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:100 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#100 def may_run_incompletely?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:74 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#74 def parent; end # Returns the value of attribute scope @@ -47968,38 +49835,38 @@ class RuboCop::Cop::VariableForce::Branch::Base < ::Struct # @param value [Object] the value to set the attribute scope to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:42 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#42 def scope=(_); end private - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:135 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#135 def scan_ancestors; end class << self def [](*_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:43 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#43 def classes; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:56 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#56 def define_predicate(name, child_index: T.unsafe(nil)); end # @private # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:47 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#47 def inherited(subclass); end def inspect; end def members; end def new(*_arg0); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:52 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#52 def type; end end end -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:325 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#325 RuboCop::Cop::VariableForce::Branch::CLASSES_BY_TYPE = T.let(T.unsafe(nil), Hash) # case target @@ -48008,20 +49875,20 @@ RuboCop::Cop::VariableForce::Branch::CLASSES_BY_TYPE = T.let(T.unsafe(nil), Hash # else_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:219 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#219 class RuboCop::Cop::VariableForce::Branch::Case < ::RuboCop::Cop::VariableForce::Branch::Base # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:224 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#224 def always_run?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def else_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def target?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def when_clause?; end end @@ -48031,20 +49898,20 @@ end # else_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:234 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#234 class RuboCop::Cop::VariableForce::Branch::CaseMatch < ::RuboCop::Cop::VariableForce::Branch::Base # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:239 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#239 def always_run?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def else_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def in_pattern?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def target?; end end @@ -48054,34 +49921,34 @@ end # ensure_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:314 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#314 class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::ExceptionHandler # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:320 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#320 def always_run?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def ensure_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def main_body?; end end # Mix-in module for exception handling control structures. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:281 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#281 module RuboCop::Cop::VariableForce::Branch::ExceptionHandler # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:282 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#282 def may_jump_to_other_branch?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:286 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#286 def may_run_incompletely?; end end @@ -48089,20 +49956,20 @@ end # loop_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:247 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#247 class RuboCop::Cop::VariableForce::Branch::For < ::RuboCop::Cop::VariableForce::Branch::Base # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:252 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#252 def always_run?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def collection?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def element?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -48118,40 +49985,40 @@ end # truthy_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:166 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#166 class RuboCop::Cop::VariableForce::Branch::If < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def falsey_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def truthy_body?; end end # Mix-in module for logical operator control structures. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:258 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#258 module RuboCop::Cop::VariableForce::Branch::LogicalOperator # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:259 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#259 def always_run?; end end # left_body || right_body # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:273 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#273 class RuboCop::Cop::VariableForce::Branch::Or < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::LogicalOperator - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def left_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def right_body?; end end @@ -48162,38 +50029,38 @@ end # else_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:297 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#297 class RuboCop::Cop::VariableForce::Branch::Rescue < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::ExceptionHandler # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:304 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#304 def always_run?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def else_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def main_body?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def rescue_clause?; end end # Mix-in module for simple conditional control structures. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:145 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#145 module RuboCop::Cop::VariableForce::Branch::SimpleConditional # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:150 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#150 def always_run?; end # @raise [NotImplementedError] # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:146 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#146 def conditional_clause?; end end @@ -48201,14 +50068,14 @@ end # loop_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:187 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#187 class RuboCop::Cop::VariableForce::Branch::Until < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -48216,14 +50083,14 @@ end # loop_body # end until conditional_clause # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:207 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#207 class RuboCop::Cop::VariableForce::Branch::UntilPost < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -48231,14 +50098,14 @@ end # loop_body # end # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:177 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#177 class RuboCop::Cop::VariableForce::Branch::While < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end @@ -48246,75 +50113,80 @@ end # loop_body # end while conditional_clause # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:197 +# source://rubocop//lib/rubocop/cop/variable_force/branch.rb#197 class RuboCop::Cop::VariableForce::Branch::WhilePost < ::RuboCop::Cop::VariableForce::Branch::Base include ::RuboCop::Cop::VariableForce::Branch::SimpleConditional - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def conditional_clause?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branch.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/branch.rb#57 def loop_body?; end end # Mix-in module for classes which own a node and need branch information # of the node. The user classes must implement #node and #scope. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branchable.rb:8 +# source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#8 module RuboCop::Cop::VariableForce::Branchable - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branchable.rb:9 + # source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#9 def branch; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/branchable.rb:15 + # source://rubocop//lib/rubocop/cop/variable_force/branchable.rb#15 def run_exclusively_with?(other); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:39 +# source://rubocop//lib/rubocop/cop/variable_force.rb#39 RuboCop::Cop::VariableForce::LOGICAL_OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:47 +# source://rubocop//lib/rubocop/cop/variable_force.rb#47 RuboCop::Cop::VariableForce::LOOP_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:42 +# source://rubocop//lib/rubocop/cop/variable_force.rb#42 RuboCop::Cop::VariableForce::MULTIPLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:40 +# source://rubocop//lib/rubocop/cop/variable_force.rb#111 +RuboCop::Cop::VariableForce::NODE_HANDLER_METHOD_NAMES = T.let(T.unsafe(nil), Hash) + +# @api private +# +# source://rubocop//lib/rubocop/cop/variable_force.rb#40 RuboCop::Cop::VariableForce::OPERATOR_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:46 +# source://rubocop//lib/rubocop/cop/variable_force.rb#46 RuboCop::Cop::VariableForce::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:29 +# source://rubocop//lib/rubocop/cop/variable_force.rb#29 RuboCop::Cop::VariableForce::REGEXP_NAMED_CAPTURE_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:49 +# source://rubocop//lib/rubocop/cop/variable_force.rb#49 RuboCop::Cop::VariableForce::RESCUE_TYPE = T.let(T.unsafe(nil), Symbol) # This class represents each reference of a variable. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/reference.rb:7 +# source://rubocop//lib/rubocop/cop/variable_force/reference.rb#7 class RuboCop::Cop::VariableForce::Reference include ::RuboCop::Cop::VariableForce::Branchable # @return [Reference] a new instance of Reference # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/reference.rb:16 + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#16 def initialize(node, scope); end # There's an implicit variable reference by the zero-arity `super`: @@ -48334,219 +50206,219 @@ class RuboCop::Cop::VariableForce::Reference # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/reference.rb:41 + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#41 def explicit?; end # Returns the value of attribute node. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/reference.rb:14 + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#14 def node; end # Returns the value of attribute scope. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/reference.rb:14 + # source://rubocop//lib/rubocop/cop/variable_force/reference.rb#14 def scope; end end -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/reference.rb:10 +# source://rubocop//lib/rubocop/cop/variable_force/reference.rb#10 RuboCop::Cop::VariableForce::Reference::VARIABLE_REFERENCE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:54 +# source://rubocop//lib/rubocop/cop/variable_force.rb#54 RuboCop::Cop::VariableForce::SCOPE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:56 +# source://rubocop//lib/rubocop/cop/variable_force.rb#56 RuboCop::Cop::VariableForce::SEND_TYPE = T.let(T.unsafe(nil), Symbol) # A Scope represents a context of local variable visibility. # This is a place where local variables belong to. # A scope instance holds a scope node and variable entries. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:9 +# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#9 class RuboCop::Cop::VariableForce::Scope # @return [Scope] a new instance of Scope # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:22 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#22 def initialize(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:35 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#35 def ==(other); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:43 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#43 def body_node; end # @yield [node] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:61 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#61 def each_node(&block); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:57 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#57 def include?(target_node); end # Returns the value of attribute naked_top_level. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:18 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 def naked_top_level; end # Returns the value of attribute naked_top_level. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:18 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 def naked_top_level?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:39 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#39 def name; end # Returns the value of attribute node. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:18 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 def node; end # Returns the value of attribute variables. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:18 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#18 def variables; end private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:100 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#100 def ancestor_node?(target_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:90 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#90 def belong_to_inner_scope?(target_node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:79 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#79 def belong_to_outer_scope?(target_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:70 + # source://rubocop//lib/rubocop/cop/variable_force/scope.rb#70 def scan_node(node, &block); end end -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/scope.rb:10 +# source://rubocop//lib/rubocop/cop/variable_force/scope.rb#10 RuboCop::Cop::VariableForce::Scope::OUTER_SCOPE_CHILD_INDICES = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:53 +# source://rubocop//lib/rubocop/cop/variable_force.rb#53 RuboCop::Cop::VariableForce::TWISTED_SCOPE_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:28 +# source://rubocop//lib/rubocop/cop/variable_force.rb#28 RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPE = T.let(T.unsafe(nil), Symbol) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:30 +# source://rubocop//lib/rubocop/cop/variable_force.rb#30 RuboCop::Cop::VariableForce::VARIABLE_ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:44 +# source://rubocop//lib/rubocop/cop/variable_force.rb#44 RuboCop::Cop::VariableForce::VARIABLE_REFERENCE_TYPE = T.let(T.unsafe(nil), Symbol) # A Variable represents existence of a local variable. # This holds a variable declaration node and some states of the variable. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:8 +# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#8 class RuboCop::Cop::VariableForce::Variable # @return [Variable] a new instance of Variable # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:15 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#15 def initialize(name, declaration_node, scope); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:92 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#92 def argument?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:31 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#31 def assign(node); end # Returns the value of attribute assignments. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def assignments; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:100 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#100 def block_argument?; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:72 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#72 def capture_with_block!; end # Returns the value of attribute captured_by_block. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def captured_by_block; end # Returns the value of attribute captured_by_block. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def captured_by_block?; end # Returns the value of attribute declaration_node. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def declaration_node; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:108 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#108 def explicit_block_local_variable?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:66 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#66 def in_modifier_if?(assignment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:104 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#104 def keyword_argument?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:96 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#96 def method_argument?; end # Returns the value of attribute name. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def name; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:40 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#40 def reference!(node); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:35 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#35 def referenced?; end # Returns the value of attribute references. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def references; end # Returns the value of attribute scope. # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:11 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#11 def scope; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:88 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#88 def should_be_unused?; end # This is a convenient way to check whether the variable is used @@ -48560,21 +50432,21 @@ class RuboCop::Cop::VariableForce::Variable # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:84 + # source://rubocop//lib/rubocop/cop/variable_force/variable.rb#84 def used?; end end -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable.rb:9 +# source://rubocop//lib/rubocop/cop/variable_force/variable.rb#9 RuboCop::Cop::VariableForce::Variable::VARIABLE_DECLARATION_TYPES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:58 +# source://rubocop//lib/rubocop/cop/variable_force.rb#58 class RuboCop::Cop::VariableForce::VariableReference < ::Struct # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:59 + # source://rubocop//lib/rubocop/cop/variable_force.rb#59 def assignment?; end # Returns the value of attribute name @@ -48587,7 +50459,7 @@ class RuboCop::Cop::VariableForce::VariableReference < ::Struct # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:58 + # source://rubocop//lib/rubocop/cop/variable_force.rb#58 def name=(_); end class << self @@ -48604,264 +50476,282 @@ end # variables to current scope, and find local variables by considering # variable visibility of the current scope. # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:11 +# source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#11 class RuboCop::Cop::VariableForce::VariableTable # @return [VariableTable] a new instance of VariableTable # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:12 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#12 def initialize(hook_receiver = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:111 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#111 def accessible_variables; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:56 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#56 def assign_to_variable(name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:40 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#40 def current_scope; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:44 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#44 def current_scope_level; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:48 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#48 def declare_variable(name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:94 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#94 def find_variable(name); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:16 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#16 def invoke_hook(hook_name, *args); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:32 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#32 def pop_scope; end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:24 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#24 def push_scope(scope_node); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:68 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#68 def reference_variable(name, node); end - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:20 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#20 def scope_stack; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:107 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#107 def variable_exist?(name); end private - # source://rubocop-1.35.1/lib/rubocop/cop/variable_force/variable_table.rb:120 + # source://rubocop//lib/rubocop/cop/variable_force/variable_table.rb#120 def mark_variable_as_captured_by_block_if_so(variable); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/cop/variable_force.rb:51 +# source://rubocop//lib/rubocop/cop/variable_force.rb#51 RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol) # Help methods for determining node visibility. # -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/visibility_help.rb:6 +# source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#8 module RuboCop::Cop::VisibilityHelp extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/visibility_help.rb:32 + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#57 def visibility_block?(param0 = T.unsafe(nil)); end + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#62 + def visibility_inline_on_def?(param0 = T.unsafe(nil)); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#67 + def visibility_inline_on_method_name?(param0 = T.unsafe(nil), method_name:); end + private # Navigate to find the last protected method # - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/visibility_help.rb:23 + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#48 def find_visibility_end(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/visibility_help.rb:18 + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#43 def find_visibility_start(node); end - # source://rubocop-1.35.1/lib/rubocop/cop/mixin/visibility_help.rb:13 + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#15 def node_visibility(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#39 + def node_visibility_from_visibility_block(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#21 + def node_visibility_from_visibility_inline(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#28 + def node_visibility_from_visibility_inline_on_def(node); end + + # source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#33 + def node_visibility_from_visibility_inline_on_method_name(node); end end -# source://rubocop-1.35.1/lib/rubocop/cop/mixin/visibility_help.rb:9 -RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Array) +# source://rubocop//lib/rubocop/cop/mixin/visibility_help.rb#11 +RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set) # This class wraps the `Parser::Source::Comment` object that represents a # cops it contains. # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:7 +# source://rubocop//lib/rubocop/directive_comment.rb#7 class RuboCop::DirectiveComment # @return [DirectiveComment] a new instance of DirectiveComment # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:30 + # source://rubocop//lib/rubocop/directive_comment.rb#30 def initialize(comment, cop_registry = T.unsafe(nil)); end # Checks if all cops specified in this directive # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:80 + # source://rubocop//lib/rubocop/directive_comment.rb#80 def all_cops?; end # Returns the value of attribute comment. # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:28 + # source://rubocop//lib/rubocop/directive_comment.rb#28 def comment; end # Returns array of specified in this directive cop names # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:85 + # source://rubocop//lib/rubocop/directive_comment.rb#85 def cop_names; end # Returns the value of attribute cop_registry. # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:28 + # source://rubocop//lib/rubocop/directive_comment.rb#28 def cop_registry; end # Returns the value of attribute cops. # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:28 + # source://rubocop//lib/rubocop/directive_comment.rb#28 def cops; end # Returns array of specified in this directive department names # when all department disabled # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:91 + # source://rubocop//lib/rubocop/directive_comment.rb#91 def department_names; end - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:105 + # source://rubocop//lib/rubocop/directive_comment.rb#105 def directive_count; end # Checks if this directive disables cops # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:60 + # source://rubocop//lib/rubocop/directive_comment.rb#60 def disabled?; end # Checks if this directive disables all cops # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:75 + # source://rubocop//lib/rubocop/directive_comment.rb#75 def disabled_all?; end # Checks if this directive enables cops # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:65 + # source://rubocop//lib/rubocop/directive_comment.rb#65 def enabled?; end # Checks if this directive enables all cops # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:70 + # source://rubocop//lib/rubocop/directive_comment.rb#70 def enabled_all?; end # Checks if directive departments include cop # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:96 + # source://rubocop//lib/rubocop/directive_comment.rb#96 def in_directive_department?(cop); end # Returns line number for directive # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:110 + # source://rubocop//lib/rubocop/directive_comment.rb#110 def line_number; end # Checks if this directive contains all the given cop names # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:42 + # source://rubocop//lib/rubocop/directive_comment.rb#42 def match?(cop_names); end # Returns match captures to directive comment pattern # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:55 + # source://rubocop//lib/rubocop/directive_comment.rb#55 def match_captures; end # Returns the value of attribute mode. # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:28 + # source://rubocop//lib/rubocop/directive_comment.rb#28 def mode; end # Checks if cop department has already used in directive comment # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:101 + # source://rubocop//lib/rubocop/directive_comment.rb#101 def overridden_by_department?(cop); end - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:46 + # source://rubocop//lib/rubocop/directive_comment.rb#46 def range; end # Checks if this directive relates to single line # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:37 + # source://rubocop//lib/rubocop/directive_comment.rb#37 def single_line?; end private - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:130 + # source://rubocop//lib/rubocop/directive_comment.rb#130 def all_cop_names; end - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:134 + # source://rubocop//lib/rubocop/directive_comment.rb#134 def cop_names_for_department(department); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:126 + # source://rubocop//lib/rubocop/directive_comment.rb#126 def department?(name); end - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:140 + # source://rubocop//lib/rubocop/directive_comment.rb#140 def exclude_redundant_directive_cop(cops); end - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:120 + # source://rubocop//lib/rubocop/directive_comment.rb#120 def parsed_cop_names; end - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:116 + # source://rubocop//lib/rubocop/directive_comment.rb#116 def splitted_cops_string; end class << self - # source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:24 + # source://rubocop//lib/rubocop/directive_comment.rb#24 def before_comment(line); end end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:17 +# source://rubocop//lib/rubocop/directive_comment.rb#17 RuboCop::DirectiveComment::COPS_PATTERN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:15 +# source://rubocop//lib/rubocop/directive_comment.rb#15 RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:13 +# source://rubocop//lib/rubocop/directive_comment.rb#13 RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:19 +# source://rubocop//lib/rubocop/directive_comment.rb#19 RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:11 +# source://rubocop//lib/rubocop/directive_comment.rb#11 RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/directive_comment.rb:9 +# source://rubocop//lib/rubocop/directive_comment.rb#9 RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP_DEPARTMENT = T.let(T.unsafe(nil), String) # An Error exception is different from an Offense with severity 'error' @@ -48869,93 +50759,117 @@ RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP_DEPARTMENT = T.let(T.unsafe(n # a requested action (probably due to misconfiguration) and must stop # immediately, rather than carrying on # -# source://rubocop-1.35.1/lib/rubocop/error.rb:8 +# source://rubocop//lib/rubocop/error.rb#8 class RuboCop::Error < ::StandardError; end # A wrapper to display errored location of analyzed file. # -# source://rubocop-1.35.1/lib/rubocop/error.rb:13 +# source://rubocop//lib/rubocop/error.rb#13 class RuboCop::ErrorWithAnalyzedFileLocation < ::RuboCop::Error # @return [ErrorWithAnalyzedFileLocation] a new instance of ErrorWithAnalyzedFileLocation # - # source://rubocop-1.35.1/lib/rubocop/error.rb:14 + # source://rubocop//lib/rubocop/error.rb#14 def initialize(cause:, node:, cop:); end # Returns the value of attribute cause. # - # source://rubocop-1.35.1/lib/rubocop/error.rb:21 + # source://rubocop//lib/rubocop/error.rb#21 def cause; end - # source://rubocop-1.35.1/lib/rubocop/error.rb:27 + # source://rubocop//lib/rubocop/error.rb#27 def column; end # Returns the value of attribute cop. # - # source://rubocop-1.35.1/lib/rubocop/error.rb:21 + # source://rubocop//lib/rubocop/error.rb#21 def cop; end - # source://rubocop-1.35.1/lib/rubocop/error.rb:23 + # source://rubocop//lib/rubocop/error.rb#23 def line; end - # source://rubocop-1.35.1/lib/rubocop/error.rb:31 + # source://rubocop//lib/rubocop/error.rb#31 def message; end end # Allows specified configuration options to have an exclude limit # ie. a maximum value tracked that it can be used by `--auto-gen-config`. # -# source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:6 +# source://rubocop//lib/rubocop/cop/exclude_limit.rb#6 module RuboCop::ExcludeLimit # Sets up a configuration option to have an exclude limit tracked. # The parameter name given is transformed into a method name (eg. `Max` # becomes `self.max=` and `MinDigits` becomes `self.min_digits=`). # - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:10 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#10 def exclude_limit(parameter_name, method_name: T.unsafe(nil)); end private - # source://rubocop-1.35.1/lib/rubocop/cop/exclude_limit.rb:22 + # source://rubocop//lib/rubocop/cop/exclude_limit.rb#22 def transform(parameter_name); end end -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:4 +# source://rubocop//lib/rubocop/ext/range.rb#4 module RuboCop::Ext; end # Extensions to AST::ProcessedSource for our cached comment_config # -# source://rubocop-1.35.1/lib/rubocop/ext/processed_source.rb:6 +# source://rubocop//lib/rubocop/ext/processed_source.rb#6 module RuboCop::Ext::ProcessedSource - # source://rubocop-1.35.1/lib/rubocop/ext/processed_source.rb:7 + # source://rubocop//lib/rubocop/ext/processed_source.rb#9 def comment_config; end - # source://rubocop-1.35.1/lib/rubocop/ext/processed_source.rb:11 + # Returns the value of attribute config. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def config; end + + # Sets the attribute config + # + # @param value the value to set the attribute config to. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def config=(_arg0); end + + # source://rubocop//lib/rubocop/ext/processed_source.rb#13 def disabled_line_ranges; end + + # Returns the value of attribute registry. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def registry; end + + # Sets the attribute registry + # + # @param value the value to set the attribute registry to. + # + # source://rubocop//lib/rubocop/ext/processed_source.rb#7 + def registry=(_arg0); end end # Extensions to Parser::Source::Range # -# source://rubocop-1.35.1/lib/rubocop/ext/range.rb:6 +# source://rubocop//lib/rubocop/ext/range.rb#6 module RuboCop::Ext::Range # Adds `Range#single_line?` to parallel `Node#single_line?` # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/ext/range.rb:8 + # source://rubocop//lib/rubocop/ext/range.rb#8 def single_line?; end end # Extensions to AST::RegexpNode for our cached parsed regexp info # -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:6 +# source://rubocop//lib/rubocop/ext/regexp_node.rb#6 module RuboCop::Ext::RegexpNode # Please remove this `else` branch when support for regexp_parser 1.8 will be dropped. # It's for compatibility with regexp_arser 1.8 and will never be maintained. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:19 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#19 def assign_properties(*_arg0); end - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:53 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#53 def each_capture(named: T.unsafe(nil)); end # Note: we extend Regexp nodes to provide `loc` and `expression` @@ -48963,33 +50877,33 @@ module RuboCop::Ext::RegexpNode # # @return [Regexp::Expression::Root, nil] # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:16 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#16 def parsed_tree; end private - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:68 + # source://rubocop//lib/rubocop/ext/regexp_node.rb#68 def with_interpolations_blanked; end end -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_node.rb:7 +# source://rubocop//lib/rubocop/ext/regexp_node.rb#7 RuboCop::Ext::RegexpNode::ANY = T.let(T.unsafe(nil), Object) # Extensions for `regexp_parser` gem # -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:6 +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#6 module RuboCop::Ext::RegexpParser; end -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:20 +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#20 module RuboCop::Ext::RegexpParser::Expression; end # Add `expression` and `loc` to all `regexp_parser` nodes # -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:22 +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#22 module RuboCop::Ext::RegexpParser::Expression::Base # Shortcut to `loc.expression` # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:27 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#27 def expression; end # E.g. @@ -49002,62 +50916,62 @@ module RuboCop::Ext::RegexpParser::Expression::Base # # Please open issue if you need other locations # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:61 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#61 def loc; end # Returns the value of attribute origin. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:23 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#23 def origin; end # Sets the attribute origin # # @param value the value to set the attribute origin to. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:23 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#23 def origin=(_arg0); end private - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:67 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#67 def build_location; end end # Provide `CharacterSet` with `begin` and `end` locations. # -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:77 +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#77 module RuboCop::Ext::RegexpParser::Expression::CharacterSet - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:78 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#78 def build_location; end end # Source map for RegexpParser nodes # -# source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:8 +# source://rubocop//lib/rubocop/ext/regexp_parser.rb#8 class RuboCop::Ext::RegexpParser::Map < ::Parser::Source::Map # @return [Map] a new instance of Map # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:11 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#11 def initialize(expression, body:, quantifier: T.unsafe(nil), begin_l: T.unsafe(nil), end_l: T.unsafe(nil)); end # Returns the value of attribute begin. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:9 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 def begin; end # Returns the value of attribute body. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:9 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 def body; end # Returns the value of attribute end. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:9 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 def end; end # Returns the value of attribute quantifier. # - # source://rubocop-1.35.1/lib/rubocop/ext/regexp_parser.rb:9 + # source://rubocop//lib/rubocop/ext/regexp_parser.rb#9 def quantifier; end end @@ -49074,19 +50988,19 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:16 +# source://rubocop//lib/rubocop/feature_loader.rb#16 class RuboCop::FeatureLoader # @api private # @param config_directory_path [String] # @param feature [String] # @return [FeatureLoader] a new instance of FeatureLoader # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:27 + # source://rubocop//lib/rubocop/feature_loader.rb#27 def initialize(config_directory_path:, feature:); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:32 + # source://rubocop//lib/rubocop/feature_loader.rb#32 def load; end private @@ -49094,39 +51008,39 @@ class RuboCop::FeatureLoader # @api private # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:55 + # source://rubocop//lib/rubocop/feature_loader.rb#55 def namespaced_feature; end # @api private # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:60 + # source://rubocop//lib/rubocop/feature_loader.rb#60 def namespaced_target; end # @api private # @param [String] # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:70 + # source://rubocop//lib/rubocop/feature_loader.rb#70 def relative(feature); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:75 + # source://rubocop//lib/rubocop/feature_loader.rb#75 def relative?; end # @api private # @param error [LoadError] # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:81 + # source://rubocop//lib/rubocop/feature_loader.rb#81 def seems_cannot_load_such_file_error?(error); end # @api private # @return [String] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:86 + # source://rubocop//lib/rubocop/feature_loader.rb#86 def target; end class << self @@ -49134,7 +51048,7 @@ class RuboCop::FeatureLoader # @param config_directory_path [String] # @param feature [String] # - # source://rubocop-1.35.1/lib/rubocop/feature_loader.rb:20 + # source://rubocop//lib/rubocop/feature_loader.rb#20 def load(config_directory_path:, feature:); end end end @@ -49143,47 +51057,92 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/file_finder.rb:8 +# source://rubocop//lib/rubocop/file_finder.rb#8 module RuboCop::FileFinder # @api private # - # source://rubocop-1.35.1/lib/rubocop/file_finder.rb:17 + # source://rubocop//lib/rubocop/file_finder.rb#17 def find_file_upwards(filename, start_dir, stop_dir = T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/file_finder.rb:24 + # source://rubocop//lib/rubocop/file_finder.rb#24 def find_last_file_upwards(filename, start_dir, stop_dir = T.unsafe(nil)); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/file_finder.rb:32 + # source://rubocop//lib/rubocop/file_finder.rb#32 def traverse_files_upwards(filename, start_dir, stop_dir); end class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/file_finder.rb:9 + # source://rubocop//lib/rubocop/file_finder.rb#9 def root_level=(level); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/file_finder.rb:13 + # source://rubocop//lib/rubocop/file_finder.rb#13 def root_level?(path, stop_dir); end end end -# source://rubocop-1.35.1/lib/rubocop/formatter.rb:4 +# A wrapper around patterns array to perform optimized search. +# +# For projects with a large set of rubocop todo files, most items in `Exclude`/`Include` +# are exact file names. It is wasteful to linearly check the list of patterns over and over +# to check if the file is relevant to the cop. +# +# This class partitions an array of patterns into a set of exact match strings and the rest +# of the patterns. This way we can firstly do a cheap check in the set and then proceed via +# the costly patterns check, if needed. +# +# @api private +# +# source://rubocop//lib/rubocop/file_patterns.rb#14 +class RuboCop::FilePatterns + # @api private + # @return [FilePatterns] a new instance of FilePatterns + # + # source://rubocop//lib/rubocop/file_patterns.rb#21 + def initialize(patterns); end + + # @api private + # @return [Boolean] + # + # source://rubocop//lib/rubocop/file_patterns.rb#27 + def match?(path); end + + private + + # @api private + # + # source://rubocop//lib/rubocop/file_patterns.rb#33 + def partition_patterns(patterns); end + + class << self + # @api private + # + # source://rubocop//lib/rubocop/file_patterns.rb#17 + def from(patterns); end + end +end + +# The bootstrap module for formatter. +# +# @api private +# +# source://rubocop//lib/rubocop/formatter.rb#6 module RuboCop::Formatter; end # Does not show individual offenses in the console. # -# source://rubocop-1.35.1/lib/rubocop/formatter/auto_gen_config_formatter.rb:6 +# source://rubocop//lib/rubocop/formatter/auto_gen_config_formatter.rb#6 class RuboCop::Formatter::AutoGenConfigFormatter < ::RuboCop::Formatter::ProgressFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/auto_gen_config_formatter.rb:7 + # source://rubocop//lib/rubocop/formatter/auto_gen_config_formatter.rb#7 def finished(inspected_files); end end @@ -49223,13 +51182,13 @@ end # * `#file_finished` # * `#finished` # -# source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:41 +# source://rubocop//lib/rubocop/formatter/base_formatter.rb#41 class RuboCop::Formatter::BaseFormatter # @api public # @param output [IO] `$stdout` or opened file # @return [BaseFormatter] a new instance of BaseFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:63 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#63 def initialize(output, options = T.unsafe(nil)); end # Invoked at the end of inspecting each files. @@ -49240,7 +51199,7 @@ class RuboCop::Formatter::BaseFormatter # @return [void] # @see RuboCop::Cop::Offense # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:104 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#104 def file_finished(file, offenses); end # Invoked at the beginning of inspecting each files. @@ -49250,7 +51209,7 @@ class RuboCop::Formatter::BaseFormatter # @param options [Hash] file specific information, currently this is always empty. # @return [void] # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:89 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#89 def file_started(file, options); end # Invoked after all files are inspected or interrupted by user. @@ -49261,20 +51220,20 @@ class RuboCop::Formatter::BaseFormatter # unless RuboCop is interrupted by user. # @return [void] # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:116 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#116 def finished(inspected_files); end # @api public # @return [Hash] # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:57 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#57 def options; end # @api public # @return [IO] the IO object passed to `#initialize` # @see #initialize # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:50 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#50 def output; end # Invoked once before any files are inspected. @@ -49283,7 +51242,7 @@ class RuboCop::Formatter::BaseFormatter # @param target_files [Array(String)] all target file paths to be inspected # @return [void] # - # source://rubocop-1.35.1/lib/rubocop/formatter/base_formatter.rb:76 + # source://rubocop//lib/rubocop/formatter/base_formatter.rb#76 def started(target_files); end end @@ -49291,205 +51250,218 @@ end # The precise location of the problem is shown together with the # relevant source code. # -# source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:8 +# source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#8 class RuboCop::Formatter::ClangStyleFormatter < ::RuboCop::Formatter::SimpleTextFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:11 + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#11 def report_file(file, offenses); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:51 + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#51 def report_highlighted_area(highlighted_area); end - # source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:41 + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#41 def report_line(location); end - # source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:17 + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#17 def report_offense(file, offense); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:37 + # source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#37 def valid_line?(offense); end end -# source://rubocop-1.35.1/lib/rubocop/formatter/clang_style_formatter.rb:9 +# source://rubocop//lib/rubocop/formatter/clang_style_formatter.rb#9 RuboCop::Formatter::ClangStyleFormatter::ELLIPSES = T.let(T.unsafe(nil), String) # This mix-in module provides string coloring methods for terminals. # It automatically disables coloring if coloring is disabled in the process # globally or the formatter's output is not a terminal. # -# source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:8 +# source://rubocop//lib/rubocop/formatter/colorizable.rb#8 module RuboCop::Formatter::Colorizable - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def black(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def blue(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:21 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#21 def colorize(string, *args); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def cyan(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def green(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def magenta(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:9 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#9 def rainbow; end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def red(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def white(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/colorizable.rb:35 + # source://rubocop//lib/rubocop/formatter/colorizable.rb#35 def yellow(string); end end # This formatter displays a YAML configuration file where all cops that # detected any offenses are configured to not detect the offense. # -# source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:7 +# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#7 class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::PathUtil # @return [DisabledConfigFormatter] a new instance of DisabledConfigFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:27 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#27 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:39 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#39 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:33 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#33 def file_started(_file, _file_info); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:47 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#47 def finished(_inspected_files); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:68 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#68 + def auto_gen_enforced_style?; end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#72 def command; end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:148 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#156 def cop_config_params(default_cfg, cfg); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:168 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#176 def default_config(cop_name); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:207 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#220 def excludes(offending_files, cop_name, parent); end + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#191 + def filtered_config(cfg); end + # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:228 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#241 def merge_mode_for_exclude?(cfg); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:93 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#262 + def no_exclude_limit?; end + + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#101 def output_cop(cop_name, offense_count); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:120 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#128 def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:172 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#180 def output_cop_config(output_buffer, cfg, cop_name); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:155 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#163 def output_cop_param_comments(output_buffer, params, default_cfg); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:197 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#210 def output_exclude_list(output_buffer, offending_files, cop_name); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:232 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#245 def output_exclude_path(output_buffer, exclude_path, parent); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:186 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#199 def output_offending_files(output_buffer, cfg, cop_name); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:87 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#95 def output_offenses; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:245 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#258 def safe_autocorrect?(config); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:107 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#115 def set_max(cfg, cop_name); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:64 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#64 def show_offense_counts?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:60 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#60 def show_timestamp?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:140 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#148 def supports_safe_autocorrect?(cop_class, default_cfg); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:144 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#152 def supports_unsafe_autocorrect?(cop_class, default_cfg); end - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:83 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#91 def timestamp; end class << self # Returns the value of attribute config_to_allow_offenses. # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 def config_to_allow_offenses; end # Sets the attribute config_to_allow_offenses # # @param value the value to set the attribute config_to_allow_offenses to. # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 def config_to_allow_offenses=(_arg0); end # Returns the value of attribute detected_styles. # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 def detected_styles; end # Sets the attribute detected_styles # # @param value the value to set the attribute detected_styles to. # - # source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#24 def detected_styles=(_arg0); end end end -# source://rubocop-1.35.1/lib/rubocop/formatter/disabled_config_formatter.rb:10 +# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#10 RuboCop::Formatter::DisabledConfigFormatter::HEADING = T.let(T.unsafe(nil), String) # This formatter displays the report data in format that's # easy to process in the Emacs text editor. # The output is machine-parsable. # -# source://rubocop-1.35.1/lib/rubocop/formatter/emacs_style_formatter.rb:8 +# source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#8 class RuboCop::Formatter::EmacsStyleFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/emacs_style_formatter.rb:9 + # source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#9 def file_finished(file, offenses); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/emacs_style_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/emacs_style_formatter.rb#24 def message(offense); end end @@ -49501,9 +51473,9 @@ end # /some/file # /some/other/file # -# source://rubocop-1.35.1/lib/rubocop/formatter/file_list_formatter.rb:12 +# source://rubocop//lib/rubocop/formatter/file_list_formatter.rb#12 class RuboCop::Formatter::FileListFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/file_list_formatter.rb:13 + # source://rubocop//lib/rubocop/formatter/file_list_formatter.rb#13 def file_finished(file, offenses); end end @@ -49511,47 +51483,47 @@ end # formatter instances and provides transparent formatter API methods # which invoke same method of each formatters. # -# source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:10 +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#10 class RuboCop::Formatter::FormatterSet < ::Array # @return [FormatterSet] a new instance of FormatterSet # - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:39 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#39 def initialize(options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:55 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#55 def add_formatter(formatter_type, output_path = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:67 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#67 def close_output_files; end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:50 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#50 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:44 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#44 def file_started(file, options); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:34 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34 def finished(*args); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:34 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#34 def started(*args); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:86 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#86 def builtin_formatter_class(specified_key); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:99 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#99 def custom_formatter_class(specified_class_name); end - # source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:75 + # source://rubocop//lib/rubocop/formatter/formatter_set.rb#75 def formatter_class(formatter_type); end end -# source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:11 +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#11 RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/formatter/formatter_set.rb:31 +# source://rubocop//lib/rubocop/formatter/formatter_set.rb#31 RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array) # This formatter displays a progress bar and shows details of offenses as @@ -49559,97 +51531,97 @@ RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array) # This is inspired by the Fuubar formatter for RSpec by Jeff Kreeftmeijer. # https://github.com/jeffkreeftmeijer/fuubar # -# source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:11 +# source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#11 class RuboCop::Formatter::FuubarStyleFormatter < ::RuboCop::Formatter::ClangStyleFormatter # @return [FuubarStyleFormatter] a new instance of FuubarStyleFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:14 + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#14 def initialize(*output); end - # source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:51 + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#51 def count_stats(offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:40 + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#40 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:71 + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#71 def progressbar_color; end - # source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:20 + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#20 def started(target_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:61 + # source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#61 def with_color; end end -# source://rubocop-1.35.1/lib/rubocop/formatter/fuubar_style_formatter.rb:12 +# source://rubocop//lib/rubocop/formatter/fuubar_style_formatter.rb#12 RuboCop::Formatter::FuubarStyleFormatter::RESET_SEQUENCE = T.let(T.unsafe(nil), String) # This formatter formats report data as GitHub Workflow commands resulting # in GitHub check annotations when run within GitHub Actions. # -# source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:7 +# source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#7 class RuboCop::Formatter::GitHubActionsFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:14 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#14 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:18 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#18 def finished(_inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:10 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#10 def started(_target_files); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:29 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#29 def github_escape(string); end - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:41 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#41 def github_severity(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:33 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#33 def minimum_severity_to_fail; end - # source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:45 + # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#45 def report_offense(file, offense); end end -# source://rubocop-1.35.1/lib/rubocop/formatter/git_hub_actions_formatter.rb:8 +# source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#8 RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Hash) # This formatter saves the output as an html file. # -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:11 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#11 class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter # @return [HTMLFormatter] a new instance of HTMLFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:30 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#30 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:40 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#40 def file_finished(file, offenses); end # Returns the value of attribute files. # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:28 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28 def files; end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:45 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#45 def finished(inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:51 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#51 def render_html; end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:36 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#36 def started(target_files); end # Returns the value of attribute summary. # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:28 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28 def summary; end end -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:15 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # Returns the value of attribute alpha # @@ -49661,7 +51633,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # @param value [Object] the value to set the attribute alpha to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:15 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 def alpha=(_); end # Returns the value of attribute blue @@ -49674,10 +51646,10 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # @param value [Object] the value to set the attribute blue to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:15 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 def blue=(_); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:20 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#20 def fade_out(amount); end # Returns the value of attribute green @@ -49690,7 +51662,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # @param value [Object] the value to set the attribute green to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:15 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 def green=(_); end # Returns the value of attribute red @@ -49703,10 +51675,10 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct # @param value [Object] the value to set the attribute red to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:15 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15 def red=(_); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:16 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#16 def to_s; end class << self @@ -49717,68 +51689,68 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct end end -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:12 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#12 RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String) # This class provides helper methods used in the ERB template. # -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:62 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#62 class RuboCop::Formatter::HTMLFormatter::ERBContext include ::RuboCop::PathUtil include ::RuboCop::Formatter::TextUtil # @return [ERBContext] a new instance of ERBContext # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:78 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#78 def initialize(files, summary); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:125 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#125 def base64_encoded_logo_image; end # Make Kernel#binding public. # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:85 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#85 def binding; end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:90 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#90 def decorated_message(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:121 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#121 def escape(string); end # Returns the value of attribute files. # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:76 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76 def files; end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:101 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#101 def highlight_source_tag(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:94 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#94 def highlighted_source_line(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:117 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#117 def possible_ellipses(location); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:112 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#112 def source_after_highlight(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:107 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#107 def source_before_highlight(offense); end # Returns the value of attribute summary. # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:76 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76 def summary; end end -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:74 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#74 RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:66 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#66 RuboCop::Formatter::HTMLFormatter::ERBContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:26 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#26 class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # Returns the value of attribute offenses # @@ -49790,7 +51762,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:26 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26 def offenses=(_); end # Returns the value of attribute path @@ -49803,7 +51775,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct # @param value [Object] the value to set the attribute path to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:26 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26 def path=(_); end class << self @@ -49814,7 +51786,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct end end -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:25 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # Returns the value of attribute inspected_files # @@ -49826,7 +51798,7 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # @param value [Object] the value to set the attribute inspected_files to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:25 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def inspected_files=(_); end # Returns the value of attribute offense_count @@ -49839,7 +51811,7 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # @param value [Object] the value to set the attribute offense_count to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:25 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def offense_count=(_); end # Returns the value of attribute target_files @@ -49852,7 +51824,7 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct # @param value [Object] the value to set the attribute target_files to. # @return [Object] the newly set value # - # source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:25 + # source://rubocop//lib/rubocop/formatter/html_formatter.rb#25 def target_files=(_); end class << self @@ -49863,27 +51835,27 @@ class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct end end -# source://rubocop-1.35.1/lib/rubocop/formatter/html_formatter.rb:13 +# source://rubocop//lib/rubocop/formatter/html_formatter.rb#13 RuboCop::Formatter::HTMLFormatter::TEMPLATE_PATH = T.let(T.unsafe(nil), String) # This formatter formats the report data in JSON format. # -# source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:9 +# source://rubocop//lib/rubocop/formatter/json_formatter.rb#9 class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::PathUtil # @return [JSONFormatter] a new instance of JSONFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:14 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#14 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:23 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#23 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:28 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#28 def finished(inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:43 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#43 def hash_for_file(file, offenses); end # TODO: Consider better solution for Offense#real_column. @@ -49891,111 +51863,111 @@ class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter # So, the minimum value of `last_column` should be 1. # And non-zero value of `last_column` should be used as is. # - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:65 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#65 def hash_for_location(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:50 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#50 def hash_for_offense(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:33 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#33 def metadata_hash; end # Returns the value of attribute output_hash. # - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:12 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#12 def output_hash; end - # source://rubocop-1.35.1/lib/rubocop/formatter/json_formatter.rb:19 + # source://rubocop//lib/rubocop/formatter/json_formatter.rb#19 def started(target_files); end end # This formatter formats the report data in JUnit format. # -# source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:17 +# source://rubocop//lib/rubocop/formatter/junit_formatter.rb#17 class RuboCop::Formatter::JUnitFormatter < ::RuboCop::Formatter::BaseFormatter # @return [JUnitFormatter] a new instance of JUnitFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:18 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#18 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:55 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#55 def add_testcase_element_to_testsuite_element(file, target_offenses, cop); end - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:64 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#64 def classname_attribute_value(file); end - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:29 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#29 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:68 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#68 def finished(_inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:51 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#51 def offenses_for_cop(all_offenses, cop); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:47 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#47 def relevant_for_output?(options, target_offenses); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:80 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#80 def add_failure_to(testcase, offenses, cop_name); end - # source://rubocop-1.35.1/lib/rubocop/formatter/junit_formatter.rb:75 + # source://rubocop//lib/rubocop/formatter/junit_formatter.rb#75 def reset_count; end end # This formatter displays the report data in markdown # -# source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:6 +# source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#6 class RuboCop::Formatter::MarkdownFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::Formatter::TextUtil include ::RuboCop::PathUtil # @return [MarkdownFormatter] a new instance of MarkdownFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:11 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#11 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:21 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#21 def file_finished(file, offenses); end # Returns the value of attribute files. # - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:9 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 def files; end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:26 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#26 def finished(inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:17 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#17 def started(target_files); end # Returns the value of attribute summary. # - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:9 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#9 def summary; end private - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:73 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#73 def possible_ellipses(location); end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:33 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#33 def render_markdown; end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:67 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#67 def write_code(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:61 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#61 def write_context(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:42 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#42 def write_file_messages; end - # source://rubocop-1.35.1/lib/rubocop/formatter/markdown_formatter.rb:54 + # source://rubocop//lib/rubocop/formatter/markdown_formatter.rb#54 def write_heading(file); end end @@ -50007,31 +51979,31 @@ end # 26 LineLength # 3 OneLineConditional # -- -# 29 Total +# 29 Total in 5 files # -# source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:16 +# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#16 class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:41 + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#42 def file_finished(_file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:49 + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#51 def finished(_inspected_files); end # Returns the value of attribute offense_counts. # - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:17 + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#17 def offense_counts; end - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:71 + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#74 def ordered_offense_counts(offense_counts); end - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:54 - def report_summary(offense_counts); end + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#56 + def report_summary(offense_counts, offending_files_count); end - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:19 + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#19 def started(target_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/offense_count_formatter.rb:75 + # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#78 def total_offense_count(offense_counts); end end @@ -50041,99 +52013,99 @@ end # This is inspired by the Pacman formatter for RSpec by Carlos Rojas. # https://github.com/go-labs/rspec_pacman_formatter # -# source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:10 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#10 class RuboCop::Formatter::PacmanFormatter < ::RuboCop::Formatter::ClangStyleFormatter include ::RuboCop::Formatter::TextUtil # @return [PacmanFormatter] a new instance of PacmanFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:19 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#19 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:50 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#50 def cols; end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:37 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#37 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:33 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#33 def file_started(_file, _options); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:43 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#43 def next_step(offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:64 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#64 def pacdots(number); end # Returns the value of attribute progress_line. # - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:12 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 def progress_line; end # Sets the attribute progress_line # # @param value the value to set the attribute progress_line to. # - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:12 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#12 def progress_line=(_arg0); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:26 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#26 def started(target_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:68 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#68 def step(character); end - # source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:57 + # source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#57 def update_progress_line; end end -# source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:14 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#14 RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) -# source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:15 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#15 RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:17 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#17 RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter) -# source://rubocop-1.35.1/lib/rubocop/formatter/pacman_formatter.rb:16 +# source://rubocop//lib/rubocop/formatter/pacman_formatter.rb#16 RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter) # This formatter display dots for files with no offenses and # letters for files with problems in the them. In the end it # appends the regular report data in the clang style format. # -# source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:8 +# source://rubocop//lib/rubocop/formatter/progress_formatter.rb#8 class RuboCop::Formatter::ProgressFormatter < ::RuboCop::Formatter::ClangStyleFormatter include ::RuboCop::Formatter::TextUtil # @return [ProgressFormatter] a new instance of ProgressFormatter # - # source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:13 + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#13 def initialize(output, options = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#24 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:33 + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#33 def finished(inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:50 + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#50 def report_file_as_mark(offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:18 + # source://rubocop//lib/rubocop/formatter/progress_formatter.rb#18 def started(target_files); end end -# source://rubocop-1.35.1/lib/rubocop/formatter/progress_formatter.rb:11 +# source://rubocop//lib/rubocop/formatter/progress_formatter.rb#11 RuboCop::Formatter::ProgressFormatter::DOT = T.let(T.unsafe(nil), String) # If no offenses are found, no output is displayed. # Otherwise, SimpleTextFormatter's output is displayed. # -# source://rubocop-1.35.1/lib/rubocop/formatter/quiet_formatter.rb:7 +# source://rubocop//lib/rubocop/formatter/quiet_formatter.rb#7 class RuboCop::Formatter::QuietFormatter < ::RuboCop::Formatter::SimpleTextFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/quiet_formatter.rb:8 + # source://rubocop//lib/rubocop/formatter/quiet_formatter.rb#8 def report_summary(file_count, offense_count, correction_count, correctable_count); end end @@ -50141,119 +52113,119 @@ end # Offenses are displayed at compact form - just the # location of the problem and the associated message. # -# source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:10 +# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#10 class RuboCop::Formatter::SimpleTextFormatter < ::RuboCop::Formatter::BaseFormatter include ::RuboCop::Formatter::Colorizable include ::RuboCop::PathUtil - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:29 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#29 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:36 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#36 def finished(inspected_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:43 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#43 def report_file(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:57 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#57 def report_summary(file_count, offense_count, correction_count, correctable_count); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:23 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#23 def started(_target_files); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:85 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#85 def annotate_message(msg); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:80 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#80 def colored_severity_code(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:73 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#73 def count_stats(offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:89 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#89 def message(offense); end end -# source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:14 +# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#14 RuboCop::Formatter::SimpleTextFormatter::COLOR_FOR_SEVERITY = T.let(T.unsafe(nil), Hash) # A helper class for building the report summary text. # -# source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:105 +# source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#105 class RuboCop::Formatter::SimpleTextFormatter::Report include ::RuboCop::Formatter::Colorizable include ::RuboCop::Formatter::TextUtil # @return [Report] a new instance of Report # - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:110 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#110 def initialize(file_count, offense_count, correction_count, correctable_count, rainbow, safe_autocorrect: T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:123 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#123 def summary; end private - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:160 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#160 def correctable; end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:153 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#153 def corrections; end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:142 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#142 def files; end - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:146 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#146 def offenses; end # Returns the value of attribute rainbow. # - # source://rubocop-1.35.1/lib/rubocop/formatter/simple_text_formatter.rb:140 + # source://rubocop//lib/rubocop/formatter/simple_text_formatter.rb#140 def rainbow; end end # This formatter formats report data using the Test Anything Protocol. # TAP allows for to communicate tests results in a language agnostics way. # -# source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:7 +# source://rubocop//lib/rubocop/formatter/tap_formatter.rb#7 class RuboCop::Formatter::TapFormatter < ::RuboCop::Formatter::ClangStyleFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:14 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#14 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:8 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#8 def started(target_files); end private - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:66 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#66 def annotate_message(msg); end - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:70 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#70 def message(offense); end - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:39 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#39 def report_highlighted_area(highlighted_area); end - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:29 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#29 def report_line(location); end - # source://rubocop-1.35.1/lib/rubocop/formatter/tap_formatter.rb:46 + # source://rubocop//lib/rubocop/formatter/tap_formatter.rb#46 def report_offense(file, offense); end end # Common logic for UI texts. # -# source://rubocop-1.35.1/lib/rubocop/formatter/text_util.rb:6 +# source://rubocop//lib/rubocop/formatter/text_util.rb#6 module RuboCop::Formatter::TextUtil private - # source://rubocop-1.35.1/lib/rubocop/formatter/text_util.rb:9 + # source://rubocop//lib/rubocop/formatter/text_util.rb#9 def pluralize(number, thing, options = T.unsafe(nil)); end class << self - # source://rubocop-1.35.1/lib/rubocop/formatter/text_util.rb:9 + # source://rubocop//lib/rubocop/formatter/text_util.rb#9 def pluralize(number, thing, options = T.unsafe(nil)); end end end @@ -50266,35 +52238,35 @@ end # 26 this/file/is/really/bad.rb # 3 just/ok.rb # -- -# 29 Total +# 29 Total in 2 files # -# source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:16 +# source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#16 class RuboCop::Formatter::WorstOffendersFormatter < ::RuboCop::Formatter::BaseFormatter - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:24 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#24 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:31 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#31 def finished(_inspected_files); end # Returns the value of attribute offense_counts. # - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:17 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#17 def offense_counts; end - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:52 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#55 def ordered_offense_counts(offense_counts); end - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:36 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#36 def report_summary(offense_counts); end - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:19 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#19 def started(target_files); end - # source://rubocop-1.35.1/lib/rubocop/formatter/worst_offenders_formatter.rb:56 + # source://rubocop//lib/rubocop/formatter/worst_offenders_formatter.rb#59 def total_offense_count(offense_counts); end end -# source://rubocop-1.35.1/lib/rubocop/options.rb:7 +# source://rubocop//lib/rubocop/options.rb#8 class RuboCop::IncorrectCopNameError < ::StandardError; end # Encapsulation of a lockfile for use when checking for gems. @@ -50302,33 +52274,33 @@ class RuboCop::IncorrectCopNameError < ::StandardError; end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/lockfile.rb:7 +# source://rubocop//lib/rubocop/lockfile.rb#7 class RuboCop::Lockfile # Gems that the bundle depends on # # @api private # - # source://rubocop-1.35.1/lib/rubocop/lockfile.rb:9 + # source://rubocop//lib/rubocop/lockfile.rb#9 def dependencies; end # All activated gems, including transitive dependencies # # @api private # - # source://rubocop-1.35.1/lib/rubocop/lockfile.rb:16 + # source://rubocop//lib/rubocop/lockfile.rb#16 def gems; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/lockfile.rb:24 + # source://rubocop//lib/rubocop/lockfile.rb#24 def includes_gem?(name); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/lockfile.rb:30 + # source://rubocop//lib/rubocop/lockfile.rb#30 def parser; end end @@ -50336,21 +52308,21 @@ end # # @abstract parent of three different magic comment handlers # -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:7 +# source://rubocop//lib/rubocop/magic_comment.rb#7 class RuboCop::MagicComment # @return [MagicComment] a new instance of MagicComment # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:32 + # source://rubocop//lib/rubocop/magic_comment.rb#32 def initialize(comment); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:36 + # source://rubocop//lib/rubocop/magic_comment.rb#36 def any?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:104 + # source://rubocop//lib/rubocop/magic_comment.rb#104 def encoding_specified?; end # Expose the `frozen_string_literal` value coerced to a boolean if possible. @@ -50359,7 +52331,7 @@ class RuboCop::MagicComment # @return [nil] if frozen_string_literal comment isn't found # @return [String] if comment is found but isn't true or false # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:86 + # source://rubocop//lib/rubocop/magic_comment.rb#86 def frozen_string_literal; end # Does the magic comment enable the frozen string literal feature. @@ -50370,53 +52342,53 @@ class RuboCop::MagicComment # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:55 + # source://rubocop//lib/rubocop/magic_comment.rb#55 def frozen_string_literal?; end # Was a magic comment for the frozen string literal found? # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:70 + # source://rubocop//lib/rubocop/magic_comment.rb#70 def frozen_string_literal_specified?; end # Expose the `shareable_constant_value` value coerced to a boolean if possible. # # @return [String] for shareable_constant_value config # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:100 + # source://rubocop//lib/rubocop/magic_comment.rb#100 def shareable_constant_value; end # Was a shareable_constant_value specified? # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:77 + # source://rubocop//lib/rubocop/magic_comment.rb#77 def shareable_constant_value_specified?; end - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:115 + # source://rubocop//lib/rubocop/magic_comment.rb#115 def typed; end # Was the Sorbet `typed` sigil specified? # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:111 + # source://rubocop//lib/rubocop/magic_comment.rb#111 def typed_specified?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:43 + # source://rubocop//lib/rubocop/magic_comment.rb#43 def valid?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:59 + # source://rubocop//lib/rubocop/magic_comment.rb#59 def valid_literal_value?; end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:63 + # source://rubocop//lib/rubocop/magic_comment.rb#63 def valid_shareable_constant_value?; end private @@ -50427,12 +52399,12 @@ class RuboCop::MagicComment # @return [String] if pattern matched # @return [nil] otherwise # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:131 + # source://rubocop//lib/rubocop/magic_comment.rb#131 def extract(pattern); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:121 + # source://rubocop//lib/rubocop/magic_comment.rb#121 def specified?(value); end class << self @@ -50441,7 +52413,7 @@ class RuboCop::MagicComment # @param comment [String] # @return [RuboCop::MagicComment] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:23 + # source://rubocop//lib/rubocop/magic_comment.rb#23 def parse(comment); end end end @@ -50450,14 +52422,14 @@ end # # @abstract # -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:138 +# source://rubocop//lib/rubocop/magic_comment.rb#138 class RuboCop::MagicComment::EditorComment < ::RuboCop::MagicComment - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:139 + # source://rubocop//lib/rubocop/magic_comment.rb#139 def encoding; end # Rewrite the comment without a given token type # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:144 + # source://rubocop//lib/rubocop/magic_comment.rb#144 def without(type); end private @@ -50468,14 +52440,14 @@ class RuboCop::MagicComment::EditorComment < ::RuboCop::MagicComment # @return [String] extracted value if it is found # @return [nil] otherwise # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:159 + # source://rubocop//lib/rubocop/magic_comment.rb#159 def match(keyword); end # Individual tokens composing an editor specific comment string. # # @return [Array] # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:174 + # source://rubocop//lib/rubocop/magic_comment.rb#174 def tokens; end end @@ -50490,35 +52462,35 @@ end # @see https://www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html # @see https://github.com/ruby/ruby/blob/3f306dc/parse.y#L6873-L6892 Emacs handling in parse.y # -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:190 +# source://rubocop//lib/rubocop/magic_comment.rb#190 class RuboCop::MagicComment::EmacsComment < ::RuboCop::MagicComment::EditorComment private - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:198 + # source://rubocop//lib/rubocop/magic_comment.rb#198 def extract_frozen_string_literal; end - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:202 + # source://rubocop//lib/rubocop/magic_comment.rb#202 def extract_shareable_constant_value; end # Emacs comments cannot specify Sorbet typechecking behavior. # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:207 + # source://rubocop//lib/rubocop/magic_comment.rb#207 def extract_typed; end end -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:192 +# source://rubocop//lib/rubocop/magic_comment.rb#192 RuboCop::MagicComment::EmacsComment::FORMAT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:194 +# source://rubocop//lib/rubocop/magic_comment.rb#194 RuboCop::MagicComment::EmacsComment::OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:191 +# source://rubocop//lib/rubocop/magic_comment.rb#191 RuboCop::MagicComment::EmacsComment::REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:193 +# source://rubocop//lib/rubocop/magic_comment.rb#193 RuboCop::MagicComment::EmacsComment::SEPARATOR = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:11 +# source://rubocop//lib/rubocop/magic_comment.rb#11 RuboCop::MagicComment::KEYWORDS = T.let(T.unsafe(nil), Hash) # Wrapper for regular magic comments not bound to an editor. @@ -50534,16 +52506,16 @@ RuboCop::MagicComment::KEYWORDS = T.let(T.unsafe(nil), Hash) # comment2.frozen_string_literal # => nil # comment2.encoding # => 'utf-8' # -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:262 +# source://rubocop//lib/rubocop/magic_comment.rb#262 class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment # Match `encoding` or `coding` # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:263 + # source://rubocop//lib/rubocop/magic_comment.rb#263 def encoding; end # Rewrite the comment without a given token type # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:268 + # source://rubocop//lib/rubocop/magic_comment.rb#268 def without(type); end private @@ -50557,13 +52529,13 @@ class RuboCop::MagicComment::SimpleComment < ::RuboCop::MagicComment # # @see https://github.com/ruby/ruby/blob/78b95b4/parse.y#L7134-L7138 # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:285 + # source://rubocop//lib/rubocop/magic_comment.rb#285 def extract_frozen_string_literal; end - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:289 + # source://rubocop//lib/rubocop/magic_comment.rb#289 def extract_shareable_constant_value; end - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:293 + # source://rubocop//lib/rubocop/magic_comment.rb#293 def extract_typed; end end @@ -50571,7 +52543,7 @@ end # # @see https://github.com/ruby/ruby/blob/b4a55c1/lib/irb/magic-file.rb#L5 # -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:10 +# source://rubocop//lib/rubocop/magic_comment.rb#10 RuboCop::MagicComment::TOKEN = T.let(T.unsafe(nil), Regexp) # Wrapper for Vim style magic comments. @@ -50583,7 +52555,7 @@ RuboCop::MagicComment::TOKEN = T.let(T.unsafe(nil), Regexp) # # comment.encoding # => 'ascii-8bit' # -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:218 +# source://rubocop//lib/rubocop/magic_comment.rb#218 class RuboCop::MagicComment::VimComment < ::RuboCop::MagicComment::EditorComment # For some reason the fileencoding keyword only works if there # is at least one other token included in the string. For example @@ -50594,99 +52566,99 @@ class RuboCop::MagicComment::VimComment < ::RuboCop::MagicComment::EditorComment # # does nothing # # vim: foo=bar, fileencoding=ascii-8bit # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:234 + # source://rubocop//lib/rubocop/magic_comment.rb#234 def encoding; end # Vim comments cannot specify Sorbet typechecking behavior. # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:245 + # source://rubocop//lib/rubocop/magic_comment.rb#245 def extract_typed; end # Vim comments cannot specify frozen string literal behavior. # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:239 + # source://rubocop//lib/rubocop/magic_comment.rb#239 def frozen_string_literal; end # Vim comments cannot specify shareable constant values behavior. # - # source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:242 + # source://rubocop//lib/rubocop/magic_comment.rb#242 def shareable_constant_value; end end -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:220 +# source://rubocop//lib/rubocop/magic_comment.rb#220 RuboCop::MagicComment::VimComment::FORMAT = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:223 +# source://rubocop//lib/rubocop/magic_comment.rb#223 RuboCop::MagicComment::VimComment::KEYWORDS = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:222 +# source://rubocop//lib/rubocop/magic_comment.rb#222 RuboCop::MagicComment::VimComment::OPERATOR = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:219 +# source://rubocop//lib/rubocop/magic_comment.rb#219 RuboCop::MagicComment::VimComment::REGEXP = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/magic_comment.rb:221 +# source://rubocop//lib/rubocop/magic_comment.rb#221 RuboCop::MagicComment::VimComment::SEPARATOR = T.let(T.unsafe(nil), String) # Common functionality for finding names that are similar to a given name. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/name_similarity.rb:6 +# source://rubocop//lib/rubocop/name_similarity.rb#6 module RuboCop::NameSimilarity private # @api private # - # source://rubocop-1.35.1/lib/rubocop/name_similarity.rb:9 + # source://rubocop//lib/rubocop/name_similarity.rb#9 def find_similar_name(target_name, names); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/name_similarity.rb:15 + # source://rubocop//lib/rubocop/name_similarity.rb#15 def find_similar_names(target_name, names); end class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/name_similarity.rb:9 + # source://rubocop//lib/rubocop/name_similarity.rb#9 def find_similar_name(target_name, names); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/name_similarity.rb:15 + # source://rubocop//lib/rubocop/name_similarity.rb#15 def find_similar_names(target_name, names); end end end -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:5 +# source://rubocop//lib/rubocop/ast_aliases.rb#5 RuboCop::NodePattern = RuboCop::AST::NodePattern -# source://rubocop-1.35.1/lib/rubocop/options.rb:9 +# source://rubocop//lib/rubocop/options.rb#10 class RuboCop::OptionArgumentError < ::StandardError; end # This class handles command line options. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:13 +# source://rubocop//lib/rubocop/options.rb#14 class RuboCop::Options # @api private # @return [Options] a new instance of Options # - # source://rubocop-1.35.1/lib/rubocop/options.rb:21 + # source://rubocop//lib/rubocop/options.rb#22 def initialize; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:26 + # source://rubocop//lib/rubocop/options.rb#27 def parse(command_line_args); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:217 + # source://rubocop//lib/rubocop/options.rb#212 def add_additional_modes(opts); end # the autocorrect command-line arguments map to the autocorrect @options values like so: @@ -50698,67 +52670,57 @@ class RuboCop::Options # # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:140 + # source://rubocop//lib/rubocop/options.rb#133 def add_autocorrection_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:200 + # source://rubocop//lib/rubocop/options.rb#195 def add_cache_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:75 + # source://rubocop//lib/rubocop/options.rb#67 def add_check_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:163 + # source://rubocop//lib/rubocop/options.rb#156 def add_config_generation_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:179 + # source://rubocop//lib/rubocop/options.rb#174 def add_cop_selection_csv_option(option, opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:229 + # source://rubocop//lib/rubocop/options.rb#224 def add_general_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:105 + # source://rubocop//lib/rubocop/options.rb#98 def add_output_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:207 + # source://rubocop//lib/rubocop/options.rb#202 def add_server_options(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:191 + # source://rubocop//lib/rubocop/options.rb#186 def add_severity_option(opts); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:56 - def args_from_env; end - - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/options.rb:48 - def args_from_file; end - - # @api private - # - # source://rubocop-1.35.1/lib/rubocop/options.rb:60 + # source://rubocop//lib/rubocop/options.rb#52 def define_options; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:241 + # source://rubocop//lib/rubocop/options.rb#236 def handle_deprecated_option(old_option, new_option); end # Finds the option in `args` starting with -- and converts it to a symbol, @@ -50766,7 +52728,7 @@ class RuboCop::Options # # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:275 + # source://rubocop//lib/rubocop/options.rb#270 def long_opt_symbol(args); end # Sets a value in the @options hash, based on the given long option and its @@ -50774,17 +52736,17 @@ class RuboCop::Options # # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:264 + # source://rubocop//lib/rubocop/options.rb#259 def option(opts, *args); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:246 + # source://rubocop//lib/rubocop/options.rb#241 def rainbow; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:280 + # source://rubocop//lib/rubocop/options.rb#275 def require_feature(file); end # Creates a section of options in order to separate them visually when @@ -50792,148 +52754,148 @@ class RuboCop::Options # # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:256 + # source://rubocop//lib/rubocop/options.rb#251 def section(opts, heading, &_block); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:19 +# source://rubocop//lib/rubocop/options.rb#20 RuboCop::Options::DEFAULT_MAXIMUM_EXCLUSION_ITEMS = T.let(T.unsafe(nil), Integer) # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:18 +# source://rubocop//lib/rubocop/options.rb#19 RuboCop::Options::EXITING_OPTIONS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:14 +# source://rubocop//lib/rubocop/options.rb#15 RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String) # This module contains help texts for command line options. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:467 +# source://rubocop//lib/rubocop/options.rb#468 module RuboCop::OptionsHelp; end # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:469 +# source://rubocop//lib/rubocop/options.rb#470 RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:468 +# source://rubocop//lib/rubocop/options.rb#469 RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:471 +# source://rubocop//lib/rubocop/options.rb#472 RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash) # Validates option arguments and the options' compatibility with each other. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/options.rb:290 +# source://rubocop//lib/rubocop/options.rb#285 class RuboCop::OptionsValidator # @api private # @return [OptionsValidator] a new instance of OptionsValidator # - # source://rubocop-1.35.1/lib/rubocop/options.rb:328 + # source://rubocop//lib/rubocop/options.rb#323 def initialize(options); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:442 + # source://rubocop//lib/rubocop/options.rb#443 def boolean_or_empty_cache?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:410 + # source://rubocop//lib/rubocop/options.rb#411 def disable_parallel_when_invalid_option_combo; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:434 + # source://rubocop//lib/rubocop/options.rb#435 def display_only_fail_level_offenses_with_autocorrect?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:438 + # source://rubocop//lib/rubocop/options.rb#439 def except_syntax?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:446 + # source://rubocop//lib/rubocop/options.rb#447 def incompatible_options; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:423 + # source://rubocop//lib/rubocop/options.rb#424 def invalid_arguments_for_parallel; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:429 + # source://rubocop//lib/rubocop/options.rb#430 def only_includes_redundant_disable?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:363 + # source://rubocop//lib/rubocop/options.rb#358 def validate_auto_gen_config; end # @api private # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:402 + # source://rubocop//lib/rubocop/options.rb#397 def validate_autocorrect; end # @api private # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:458 + # source://rubocop//lib/rubocop/options.rb#459 def validate_cache_enabled_for_cache_root; end # @api private # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:337 + # source://rubocop//lib/rubocop/options.rb#332 def validate_compatibility; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:332 + # source://rubocop//lib/rubocop/options.rb#327 def validate_cop_options; end # @api private # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:384 + # source://rubocop//lib/rubocop/options.rb#379 def validate_display_only_correctable_and_autocorrect; end # @api private # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:376 + # source://rubocop//lib/rubocop/options.rb#371 def validate_display_only_failed; end # @api private # @raise [OptionArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:393 + # source://rubocop//lib/rubocop/options.rb#388 def validate_display_only_failed_and_display_only_correctable; end # @api private # @raise [OptionParser::MissingArgument] # - # source://rubocop-1.35.1/lib/rubocop/options.rb:450 + # source://rubocop//lib/rubocop/options.rb#451 def validate_exclude_limit_option; end class << self @@ -50942,50 +52904,55 @@ class RuboCop::OptionsValidator # # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:297 + # source://rubocop//lib/rubocop/options.rb#292 def validate_cop_list(names); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/options.rb:314 + # source://rubocop//lib/rubocop/options.rb#309 def format_message_from(name, cop_names); end end end # Common methods and behaviors for dealing with paths. # -# source://rubocop-1.35.1/lib/rubocop/path_util.rb:5 +# source://rubocop//lib/rubocop/path_util.rb#5 module RuboCop::PathUtil private # Returns true for an absolute Unix or Windows path. # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:53 + # source://rubocop//lib/rubocop/path_util.rb#67 def absolute?(path); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:79 + # Returns true for a glob + # + # source://rubocop//lib/rubocop/path_util.rb#72 + def glob?(path); end + + # source://rubocop//lib/rubocop/path_util.rb#102 def hidden_dir?(path); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:66 + # source://rubocop//lib/rubocop/path_util.rb#85 def hidden_file?(path); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:57 + # source://rubocop//lib/rubocop/path_util.rb#76 def hidden_file_in_not_hidden_dir?(pattern, path); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:36 + # source://rubocop//lib/rubocop/path_util.rb#43 def match_path?(pattern, path); end # Loose check to reduce memory allocations # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:71 + # source://rubocop//lib/rubocop/path_util.rb#92 def maybe_hidden_file?(path); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:8 + # source://rubocop//lib/rubocop/path_util.rb#13 def relative_path(path, base_dir = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:25 + # source://rubocop//lib/rubocop/path_util.rb#31 def smart_path(path); end class << self @@ -50993,58 +52960,80 @@ module RuboCop::PathUtil # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:53 + # source://rubocop//lib/rubocop/path_util.rb#67 def absolute?(path); end + # Returns true for a glob + # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:79 + # source://rubocop//lib/rubocop/path_util.rb#72 + def glob?(path); end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/path_util.rb#102 def hidden_dir?(path); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:66 + # source://rubocop//lib/rubocop/path_util.rb#85 def hidden_file?(path); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:57 + # source://rubocop//lib/rubocop/path_util.rb#76 def hidden_file_in_not_hidden_dir?(pattern, path); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:36 + # source://rubocop//lib/rubocop/path_util.rb#43 def match_path?(pattern, path); end # Loose check to reduce memory allocations # # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:71 + # source://rubocop//lib/rubocop/path_util.rb#92 def maybe_hidden_file?(path); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:8 + # source://rubocop//lib/rubocop/path_util.rb#13 def relative_path(path, base_dir = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/path_util.rb:25 + # Returns the value of attribute relative_paths_cache. + # + # source://rubocop//lib/rubocop/path_util.rb#7 + def relative_paths_cache; end + + # Sets the attribute relative_paths_cache + # + # @param value the value to set the attribute relative_paths_cache to. + # + # source://rubocop//lib/rubocop/path_util.rb#7 + def relative_paths_cache=(_arg0); end + + # source://rubocop//lib/rubocop/path_util.rb#31 def smart_path(path); end end end +# source://rubocop//lib/rubocop/path_util.rb#89 +RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) + # This module provides information on the platform that RuboCop is being run # on. # -# source://rubocop-1.35.1/lib/rubocop/platform.rb:6 +# source://rubocop//lib/rubocop/platform.rb#6 module RuboCop::Platform class << self # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/platform.rb:7 + # source://rubocop//lib/rubocop/platform.rb#7 def windows?; end end end -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:6 +# source://rubocop//lib/rubocop/ast_aliases.rb#6 RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource # Provides a custom rake task. @@ -51055,112 +53044,112 @@ RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource # Use global Rake namespace here to avoid namespace issues with custom # rubocop-rake tasks # -# source://rubocop-1.33.0/lib/rubocop/rake_task.rb:14 +# source://rubocop//lib/rubocop/rake_task.rb#14 class RuboCop::RakeTask < ::Rake::TaskLib # @return [RakeTask] a new instance of RakeTask # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:17 + # source://rubocop//lib/rubocop/rake_task.rb#17 def initialize(name = T.unsafe(nil), *args, &task_block); end # Returns the value of attribute fail_on_error. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def fail_on_error; end # Sets the attribute fail_on_error # # @param value the value to set the attribute fail_on_error to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def fail_on_error=(_arg0); end # Returns the value of attribute formatters. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def formatters; end # Sets the attribute formatters # # @param value the value to set the attribute formatters to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def formatters=(_arg0); end # Returns the value of attribute name. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def name; end # Sets the attribute name # # @param value the value to set the attribute name to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def name=(_arg0); end # Returns the value of attribute options. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def options; end # Sets the attribute options # # @param value the value to set the attribute options to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def options=(_arg0); end # Returns the value of attribute patterns. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def patterns; end # Sets the attribute patterns # # @param value the value to set the attribute patterns to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def patterns=(_arg0); end # Returns the value of attribute requires. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def requires; end # Sets the attribute requires # # @param value the value to set the attribute requires to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def requires=(_arg0); end # Returns the value of attribute verbose. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def verbose; end # Sets the attribute verbose # # @param value the value to set the attribute verbose to. # - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:15 + # source://rubocop//lib/rubocop/rake_task.rb#15 def verbose=(_arg0); end private - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:55 + # source://rubocop//lib/rubocop/rake_task.rb#55 def full_options; end - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:35 + # source://rubocop//lib/rubocop/rake_task.rb#35 def perform(option); end - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:44 + # source://rubocop//lib/rubocop/rake_task.rb#44 def run_cli(verbose, options); end - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:62 + # source://rubocop//lib/rubocop/rake_task.rb#62 def setup_ivars(name); end - # source://rubocop-1.33.0/lib/rubocop/rake_task.rb:72 + # source://rubocop//lib/rubocop/rake_task.rb#72 def setup_subtasks(name, *args, &task_block); end end @@ -51168,118 +53157,118 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/remote_config.rb:9 +# source://rubocop//lib/rubocop/remote_config.rb#9 class RuboCop::RemoteConfig # @api private # @return [RemoteConfig] a new instance of RemoteConfig # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:14 + # source://rubocop//lib/rubocop/remote_config.rb#14 def initialize(url, base_dir); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:19 + # source://rubocop//lib/rubocop/remote_config.rb#19 def file; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:32 + # source://rubocop//lib/rubocop/remote_config.rb#32 def inherit_from_remote(file, path); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:10 + # source://rubocop//lib/rubocop/remote_config.rb#10 def uri; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:95 + # source://rubocop//lib/rubocop/remote_config.rb#95 def cache_name_from_uri; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:78 + # source://rubocop//lib/rubocop/remote_config.rb#78 def cache_path; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:82 + # source://rubocop//lib/rubocop/remote_config.rb#82 def cache_path_exists?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:86 + # source://rubocop//lib/rubocop/remote_config.rb#86 def cache_path_expired?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:101 + # source://rubocop//lib/rubocop/remote_config.rb#101 def cloned_url; end # @api private # @yield [request] # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:53 + # source://rubocop//lib/rubocop/remote_config.rb#53 def generate_request(uri); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:62 + # source://rubocop//lib/rubocop/remote_config.rb#62 def handle_response(response, limit, &block); end # @api private # @raise [ArgumentError] # - # source://rubocop-1.35.1/lib/rubocop/remote_config.rb:40 + # source://rubocop//lib/rubocop/remote_config.rb#40 def request(uri = T.unsafe(nil), limit = T.unsafe(nil), &block); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/remote_config.rb:12 +# source://rubocop//lib/rubocop/remote_config.rb#12 RuboCop::RemoteConfig::CACHE_LIFETIME = T.let(T.unsafe(nil), Integer) # Provides functionality for caching RuboCop runs. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/result_cache.rb:12 +# source://rubocop//lib/rubocop/result_cache.rb#12 class RuboCop::ResultCache # @api private # @return [ResultCache] a new instance of ResultCache # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:88 + # source://rubocop//lib/rubocop/result_cache.rb#88 def initialize(file, team, options, config_store, cache_root = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:101 + # source://rubocop//lib/rubocop/result_cache.rb#101 def debug?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:109 + # source://rubocop//lib/rubocop/result_cache.rb#109 def load; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:86 + # source://rubocop//lib/rubocop/result_cache.rb#86 def path; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:114 + # source://rubocop//lib/rubocop/result_cache.rb#114 def save(offenses); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:105 + # source://rubocop//lib/rubocop/result_cache.rb#105 def valid?; end private @@ -51287,7 +53276,7 @@ class RuboCop::ResultCache # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:147 + # source://rubocop//lib/rubocop/result_cache.rb#147 def any_symlink?(path); end # We combine team and options into a single "context" checksum to avoid @@ -51297,17 +53286,17 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:233 + # source://rubocop//lib/rubocop/result_cache.rb#233 def context_checksum(team, options); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:190 + # source://rubocop//lib/rubocop/result_cache.rb#190 def digest(path); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:158 + # source://rubocop//lib/rubocop/result_cache.rb#158 def file_checksum(file, config_store); end # Return a hash of the options given at invocation, minus the ones that have @@ -51316,25 +53305,25 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:217 + # source://rubocop//lib/rubocop/result_cache.rb#217 def relevant_options_digest(options); end # The checksum of the RuboCop program running the inspection. # # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:175 + # source://rubocop//lib/rubocop/result_cache.rb#175 def rubocop_checksum; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:201 + # source://rubocop//lib/rubocop/result_cache.rb#201 def rubocop_extra_features; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:143 + # source://rubocop//lib/rubocop/result_cache.rb#143 def symlink_protection_triggered?(path); end # The external dependency checksums are cached per RuboCop team so that @@ -51342,19 +53331,19 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:224 + # source://rubocop//lib/rubocop/result_cache.rb#224 def team_checksum(team); end class << self # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:82 + # source://rubocop//lib/rubocop/result_cache.rb#82 def allow_symlinks_in_cache_location?(config_store); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:76 + # source://rubocop//lib/rubocop/result_cache.rb#76 def cache_root(config_store); end # Remove old files so that the cache doesn't grow too big. When the @@ -51366,212 +53355,212 @@ class RuboCop::ResultCache # # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:29 + # source://rubocop//lib/rubocop/result_cache.rb#29 def cleanup(config_store, verbose, cache_root = T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:171 + # source://rubocop//lib/rubocop/result_cache.rb#171 def inhibit_cleanup; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:171 + # source://rubocop//lib/rubocop/result_cache.rb#171 def inhibit_cleanup=(_arg0); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:43 + # source://rubocop//lib/rubocop/result_cache.rb#43 def rubocop_required_features; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:43 + # source://rubocop//lib/rubocop/result_cache.rb#43 def rubocop_required_features=(_arg0); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:171 + # source://rubocop//lib/rubocop/result_cache.rb#171 def source_checksum; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:171 + # source://rubocop//lib/rubocop/result_cache.rb#171 def source_checksum=(_arg0); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:66 + # source://rubocop//lib/rubocop/result_cache.rb#66 def remove_files(files, dirs, remove_count); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:53 + # source://rubocop//lib/rubocop/result_cache.rb#53 def remove_oldest_files(files, dirs, cache_root, verbose); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/result_cache.rb:49 + # source://rubocop//lib/rubocop/result_cache.rb#49 def requires_file_removal?(file_count, config_store); end end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/result_cache.rb:17 +# source://rubocop//lib/rubocop/result_cache.rb#17 RuboCop::ResultCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/result_cache.rb:13 +# source://rubocop//lib/rubocop/result_cache.rb#13 RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array) # This class handles the processing of files, which includes dealing with # formatters and letting cops inspect the files. # -# source://rubocop-1.35.1/lib/rubocop/runner.rb:8 +# source://rubocop//lib/rubocop/runner.rb#8 class RuboCop::Runner # @return [Runner] a new instance of Runner # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:33 + # source://rubocop//lib/rubocop/runner.rb#38 def initialize(options, config_store); end # Sets the attribute aborting # # @param value the value to set the attribute aborting to. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:31 + # source://rubocop//lib/rubocop/runner.rb#36 def aborting=(_arg0); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:57 + # source://rubocop//lib/rubocop/runner.rb#62 def aborting?; end # Returns the value of attribute errors. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:30 + # source://rubocop//lib/rubocop/runner.rb#35 def errors; end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:41 + # source://rubocop//lib/rubocop/runner.rb#46 def run(paths); end # Returns the value of attribute warnings. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:30 + # source://rubocop//lib/rubocop/runner.rb#35 def warnings; end private - # source://rubocop-1.35.1/lib/rubocop/runner.rb:166 + # source://rubocop//lib/rubocop/runner.rb#175 def add_redundant_disables(file, offenses, source); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:140 + # source://rubocop//lib/rubocop/runner.rb#149 def cached_result(file, team); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:218 + # source://rubocop//lib/rubocop/runner.rb#229 def cached_run?; end # Check whether a run created source identical to a previous run, which # means that we definitely have an infinite loop. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:296 + # source://rubocop//lib/rubocop/runner.rb#307 def check_for_infinite_loop(processed_source, offenses_by_iteration); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:192 + # source://rubocop//lib/rubocop/runner.rb#201 def check_for_redundant_disables?(source); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:376 + # source://rubocop//lib/rubocop/runner.rb#387 def considered_failure?(offense); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:409 + # source://rubocop//lib/rubocop/runner.rb#420 def default_config(cop_name); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:240 + # source://rubocop//lib/rubocop/runner.rb#251 def do_inspection_loop(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:103 + # source://rubocop//lib/rubocop/runner.rb#112 def each_inspected_file(files); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:213 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/runner.rb#215 + def except_redundant_cop_disable_directive?; end + + # source://rubocop//lib/rubocop/runner.rb#224 def file_finished(file, offenses); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:144 + # source://rubocop//lib/rubocop/runner.rb#153 def file_offense_cache(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:132 + # source://rubocop//lib/rubocop/runner.rb#141 def file_offenses(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:208 + # source://rubocop//lib/rubocop/runner.rb#219 def file_started(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:356 + # source://rubocop//lib/rubocop/runner.rb#367 def filter_cop_classes(cop_classes, config); end - # @return [Boolean] - # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:204 - def filtered_run?; end - - # source://rubocop-1.35.1/lib/rubocop/runner.rb:74 + # source://rubocop//lib/rubocop/runner.rb#83 def find_target_files(paths); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:367 + # source://rubocop//lib/rubocop/runner.rb#378 def formatter_set; end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:421 + # source://rubocop//lib/rubocop/runner.rb#432 def get_processed_source(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:310 + # source://rubocop//lib/rubocop/runner.rb#321 def inspect_file(processed_source, team = T.unsafe(nil)); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:85 + # source://rubocop//lib/rubocop/runner.rb#94 def inspect_files(files); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:271 + # source://rubocop//lib/rubocop/runner.rb#282 def iterate_until_no_changes(source, offenses_by_iteration); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:118 + # source://rubocop//lib/rubocop/runner.rb#127 def list_files(paths); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:405 + # source://rubocop//lib/rubocop/runner.rb#416 def mark_as_safe_by_config?(config); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:413 + # source://rubocop//lib/rubocop/runner.rb#424 def minimum_severity_to_fail; end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:317 + # source://rubocop//lib/rubocop/runner.rb#328 def mobilize_team(processed_source); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:322 + # source://rubocop//lib/rubocop/runner.rb#333 def mobilized_cop_classes(config); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:385 + # source://rubocop//lib/rubocop/runner.rb#396 def offenses_to_report(offenses); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:122 + # source://rubocop//lib/rubocop/runner.rb#131 def process_file(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:346 + # source://rubocop//lib/rubocop/runner.rb#357 def qualify_option_cop_names; end # @yield [cop] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:196 + # source://rubocop//lib/rubocop/runner.rb#207 def redundant_cop_disable_directive(file); end - # source://rubocop-1.35.1/lib/rubocop/runner.rb:230 + # source://rubocop//lib/rubocop/runner.rb#241 def save_in_cache(cache, offenses); end # A Cop::Team instance is stateful and may change when inspecting. @@ -51579,82 +53568,87 @@ class RuboCop::Runner # otherwise dormant team that can be used for config- and option- # level caching in ResultCache. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:439 + # source://rubocop//lib/rubocop/runner.rb#454 def standby_team(config); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:363 + # source://rubocop//lib/rubocop/runner.rb#374 def style_guide_cops_only?(config); end # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:397 + # source://rubocop//lib/rubocop/runner.rb#408 def supports_safe_autocorrect?(offense); end # @yield [team] # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:181 + # source://rubocop//lib/rubocop/runner.rb#190 def team_for_redundant_disables(file, offenses, source); end # Warms up the RuboCop cache by forking a suitable number of RuboCop # instances that each inspects its allotted group of files. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:65 + # source://rubocop//lib/rubocop/runner.rb#70 def warm_cache(target_files); end end # An exception indicating that the inspection loop got stuck correcting # offenses back and forth. # -# source://rubocop-1.35.1/lib/rubocop/runner.rb:11 +# source://rubocop//lib/rubocop/runner.rb#11 class RuboCop::Runner::InfiniteCorrectionLoop < ::StandardError # @return [InfiniteCorrectionLoop] a new instance of InfiniteCorrectionLoop # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:14 + # source://rubocop//lib/rubocop/runner.rb#14 def initialize(path, offenses_by_iteration, loop_start: T.unsafe(nil)); end # Returns the value of attribute offenses. # - # source://rubocop-1.35.1/lib/rubocop/runner.rb:12 + # source://rubocop//lib/rubocop/runner.rb#12 def offenses; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/runner.rb:28 +# source://rubocop//lib/rubocop/runner.rb#28 RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer) +# @api private +# +# source://rubocop//lib/rubocop/runner.rb#31 +RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array) + # Take a string with embedded escapes, and convert the escapes as the Ruby # interpreter would when reading a double-quoted string literal. # For example, "\\n" will be converted to "\n". # -# source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:7 +# source://rubocop//lib/rubocop/string_interpreter.rb#7 class RuboCop::StringInterpreter class << self - # source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:24 + # source://rubocop//lib/rubocop/string_interpreter.rb#24 def interpret(string); end private - # source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:51 + # source://rubocop//lib/rubocop/string_interpreter.rb#51 def interpret_hex(escape); end - # source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:55 + # source://rubocop//lib/rubocop/string_interpreter.rb#55 def interpret_octal(escape); end - # source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:33 + # source://rubocop//lib/rubocop/string_interpreter.rb#33 def interpret_string_escape(escape); end - # source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:43 + # source://rubocop//lib/rubocop/string_interpreter.rb#43 def interpret_unicode(escape); end end end -# source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:8 +# source://rubocop//lib/rubocop/string_interpreter.rb#8 RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/string_interpreter.rb:12 +# source://rubocop//lib/rubocop/string_interpreter.rb#12 RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp) # This class finds target files to inspect by scanning the directory tree @@ -51662,40 +53656,40 @@ RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp) # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_finder.rb:7 +# source://rubocop//lib/rubocop/target_finder.rb#7 class RuboCop::TargetFinder # @api private # @return [TargetFinder] a new instance of TargetFinder # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:10 + # source://rubocop//lib/rubocop/target_finder.rb#10 def initialize(config_store, options = T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:145 + # source://rubocop//lib/rubocop/target_finder.rb#145 def all_cops_include; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:116 + # source://rubocop//lib/rubocop/target_finder.rb#116 def combined_exclude_glob_patterns(base_dir); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:172 + # source://rubocop//lib/rubocop/target_finder.rb#172 def configured_include?(file); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:19 + # source://rubocop//lib/rubocop/target_finder.rb#19 def debug?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:23 + # source://rubocop//lib/rubocop/target_finder.rb#23 def fail_fast?; end # Generate a list of target files by expanding globbing patterns @@ -51705,7 +53699,7 @@ class RuboCop::TargetFinder # @api private # @return [Array] array of file paths # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:31 + # source://rubocop//lib/rubocop/target_finder.rb#31 def find(args, mode); end # Search for files recursively starting at the given base directory using @@ -51716,75 +53710,75 @@ class RuboCop::TargetFinder # # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:83 + # source://rubocop//lib/rubocop/target_finder.rb#83 def find_files(base_dir, flags); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:15 + # source://rubocop//lib/rubocop/target_finder.rb#15 def force_exclusion?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:176 + # source://rubocop//lib/rubocop/target_finder.rb#176 def included_file?(file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:180 + # source://rubocop//lib/rubocop/target_finder.rb#180 def process_explicit_path(path, mode); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:149 + # source://rubocop//lib/rubocop/target_finder.rb#149 def ruby_executable?(file); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:123 + # source://rubocop//lib/rubocop/target_finder.rb#123 def ruby_extension?(file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:127 + # source://rubocop//lib/rubocop/target_finder.rb#127 def ruby_extensions; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:168 + # source://rubocop//lib/rubocop/target_finder.rb#168 def ruby_file?(file); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:134 + # source://rubocop//lib/rubocop/target_finder.rb#134 def ruby_filename?(file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:138 + # source://rubocop//lib/rubocop/target_finder.rb#138 def ruby_filenames; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:160 + # source://rubocop//lib/rubocop/target_finder.rb#160 def ruby_interpreters(file); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:164 + # source://rubocop//lib/rubocop/target_finder.rb#164 def stdin?; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:108 + # source://rubocop//lib/rubocop/target_finder.rb#108 def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end # Finds all Ruby source files under the current or other supplied @@ -51799,70 +53793,70 @@ class RuboCop::TargetFinder # ruby source files # @return [Array] Array of filenames # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:56 + # source://rubocop//lib/rubocop/target_finder.rb#56 def target_files_in_dir(base_dir = T.unsafe(nil)); end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:69 + # source://rubocop//lib/rubocop/target_finder.rb#69 def to_inspect?(file, hidden_files, base_dir_config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:96 + # source://rubocop//lib/rubocop/target_finder.rb#96 def wanted_dir_patterns(base_dir, exclude_pattern, flags); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_finder.rb:197 + # source://rubocop//lib/rubocop/target_finder.rb#197 def order; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_finder.rb:8 +# source://rubocop//lib/rubocop/target_finder.rb#8 RuboCop::TargetFinder::HIDDEN_PATH_SUBSTRING = T.let(T.unsafe(nil), String) # The kind of Ruby that code inspected by RuboCop is written in. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:6 +# source://rubocop//lib/rubocop/target_ruby.rb#6 class RuboCop::TargetRuby # @api private # @return [TargetRuby] a new instance of TargetRuby # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:248 + # source://rubocop//lib/rubocop/target_ruby.rb#247 def initialize(config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:264 + # source://rubocop//lib/rubocop/target_ruby.rb#263 def rubocop_version_with_support; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:252 + # source://rubocop//lib/rubocop/target_ruby.rb#251 def source; end # @api private # @return [Boolean] # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:260 + # source://rubocop//lib/rubocop/target_ruby.rb#259 def supported?; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:256 + # source://rubocop//lib/rubocop/target_ruby.rb#255 def version; end class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:233 + # source://rubocop//lib/rubocop/target_ruby.rb#233 def supported_versions; end end end @@ -51871,47 +53865,47 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:106 +# source://rubocop//lib/rubocop/target_ruby.rb#106 class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:107 + # source://rubocop//lib/rubocop/target_ruby.rb#107 def name; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:140 + # source://rubocop//lib/rubocop/target_ruby.rb#140 def bundler_lock_file_path; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:113 + # source://rubocop//lib/rubocop/target_ruby.rb#113 def find_version; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:8 +# source://rubocop//lib/rubocop/target_ruby.rb#8 RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float) # If all else fails, a default version will be picked. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:221 +# source://rubocop//lib/rubocop/target_ruby.rb#221 class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:222 + # source://rubocop//lib/rubocop/target_ruby.rb#222 def name; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:228 + # source://rubocop//lib/rubocop/target_ruby.rb#228 def find_version; end end @@ -51919,90 +53913,90 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:147 +# source://rubocop//lib/rubocop/target_ruby.rb#147 class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source extend ::RuboCop::AST::NodePattern::Macros - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:158 + # source://rubocop//lib/rubocop/target_ruby.rb#158 def gem_requirement?(param0 = T.unsafe(nil)); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:162 + # source://rubocop//lib/rubocop/target_ruby.rb#162 def name; end - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:153 + # source://rubocop//lib/rubocop/target_ruby.rb#153 def required_ruby_version(param0); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:209 + # source://rubocop//lib/rubocop/target_ruby.rb#209 def find_default_minimal_known_ruby(right_hand_side); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:168 + # source://rubocop//lib/rubocop/target_ruby.rb#168 def find_version; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:178 + # source://rubocop//lib/rubocop/target_ruby.rb#178 def gemspec_filename; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:185 + # source://rubocop//lib/rubocop/target_ruby.rb#185 def gemspec_filepath; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:205 + # source://rubocop//lib/rubocop/target_ruby.rb#205 def version_from_array(array); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:190 + # source://rubocop//lib/rubocop/target_ruby.rb#190 def version_from_gemspec_file(file); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:195 + # source://rubocop//lib/rubocop/target_ruby.rb#195 def version_from_right_hand_side(right_hand_side); end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:150 +# source://rubocop//lib/rubocop/target_ruby.rb#150 RuboCop::TargetRuby::GemspecFile::GEMSPEC_EXTENSION = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:7 +# source://rubocop//lib/rubocop/target_ruby.rb#7 RuboCop::TargetRuby::KNOWN_RUBIES = T.let(T.unsafe(nil), Array) # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:10 +# source://rubocop//lib/rubocop/target_ruby.rb#10 RuboCop::TargetRuby::OBSOLETE_RUBIES = T.let(T.unsafe(nil), Hash) # The target ruby version may be configured in RuboCop's config. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:38 +# source://rubocop//lib/rubocop/target_ruby.rb#38 class RuboCop::TargetRuby::RuboCopConfig < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:39 + # source://rubocop//lib/rubocop/target_ruby.rb#39 def name; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:45 + # source://rubocop//lib/rubocop/target_ruby.rb#45 def find_version; end end @@ -52010,76 +54004,76 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:52 +# source://rubocop//lib/rubocop/target_ruby.rb#52 class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:56 + # source://rubocop//lib/rubocop/target_ruby.rb#56 def name; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:62 + # source://rubocop//lib/rubocop/target_ruby.rb#62 def filename; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:70 + # source://rubocop//lib/rubocop/target_ruby.rb#70 def find_version; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:66 + # source://rubocop//lib/rubocop/target_ruby.rb#66 def pattern; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:77 + # source://rubocop//lib/rubocop/target_ruby.rb#77 def version_file; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:53 +# source://rubocop//lib/rubocop/target_ruby.rb#53 RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:54 +# source://rubocop//lib/rubocop/target_ruby.rb#54 RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp) # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:237 +# source://rubocop//lib/rubocop/target_ruby.rb#237 RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array) # A place where information about a target ruby version is found. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:23 +# source://rubocop//lib/rubocop/target_ruby.rb#23 class RuboCop::TargetRuby::Source # @api private # @return [Source] a new instance of Source # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:26 + # source://rubocop//lib/rubocop/target_ruby.rb#26 def initialize(config); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:24 + # source://rubocop//lib/rubocop/target_ruby.rb#24 def name; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:31 + # source://rubocop//lib/rubocop/target_ruby.rb#31 def to_s; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:24 + # source://rubocop//lib/rubocop/target_ruby.rb#24 def version; end end @@ -52088,65 +54082,65 @@ end # # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:85 +# source://rubocop//lib/rubocop/target_ruby.rb#85 class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:89 + # source://rubocop//lib/rubocop/target_ruby.rb#89 def name; end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:95 + # source://rubocop//lib/rubocop/target_ruby.rb#95 def filename; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:99 + # source://rubocop//lib/rubocop/target_ruby.rb#99 def pattern; end end # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:86 +# source://rubocop//lib/rubocop/target_ruby.rb#86 RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String) # @api private # -# source://rubocop-1.35.1/lib/rubocop/target_ruby.rb:87 +# source://rubocop//lib/rubocop/target_ruby.rb#87 RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp) -# source://rubocop-1.35.1/lib/rubocop/ast_aliases.rb:7 +# source://rubocop//lib/rubocop/ast_aliases.rb#7 RuboCop::Token = RuboCop::AST::Token # This module contains a collection of useful utility methods. # -# source://rubocop-1.35.1/lib/rubocop/util.rb:5 +# source://rubocop//lib/rubocop/util.rb#5 module RuboCop::Util class << self - # source://rubocop-1.35.1/lib/rubocop/util.rb:6 + # source://rubocop//lib/rubocop/util.rb#6 def silence_warnings; end end end -# source://rubocop-1.35.1/lib/rubocop/error.rb:10 +# source://rubocop//lib/rubocop/error.rb#10 class RuboCop::ValidationError < ::RuboCop::Error; end # This module holds the RuboCop version information. # -# source://rubocop-1.35.1/lib/rubocop/version.rb:5 +# source://rubocop//lib/rubocop/version.rb#5 module RuboCop::Version class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/version.rb:88 + # source://rubocop//lib/rubocop/version.rb#89 def document_version; end # @api private # - # source://rubocop-1.35.1/lib/rubocop/version.rb:38 + # source://rubocop//lib/rubocop/version.rb#39 def extension_versions(env); end # Returns feature version in one of two ways: @@ -52156,26 +54150,31 @@ module RuboCop::Version # # @api private # - # source://rubocop-1.35.1/lib/rubocop/version.rb:72 + # source://rubocop//lib/rubocop/version.rb#73 def feature_version(feature); end # @api private # - # source://rubocop-1.35.1/lib/rubocop/version.rb:17 + # source://rubocop//lib/rubocop/version.rb#94 + def server_mode; end + + # @api private + # + # source://rubocop//lib/rubocop/version.rb#17 def version(debug: T.unsafe(nil), env: T.unsafe(nil)); end end end -# source://rubocop-1.35.1/lib/rubocop/version.rb:12 +# source://rubocop//lib/rubocop/version.rb#12 RuboCop::Version::CANONICAL_FEATURE_NAMES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/version.rb:14 +# source://rubocop//lib/rubocop/version.rb#14 RuboCop::Version::EXTENSION_PATH_NAMES = T.let(T.unsafe(nil), Hash) -# source://rubocop-1.35.1/lib/rubocop/version.rb:8 +# source://rubocop//lib/rubocop/version.rb#8 RuboCop::Version::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-1.35.1/lib/rubocop/version.rb:6 +# source://rubocop//lib/rubocop/version.rb#6 RuboCop::Version::STRING = T.let(T.unsafe(nil), String) # A Warning exception is different from an Offense with severity 'warning' @@ -52184,33 +54183,33 @@ RuboCop::Version::STRING = T.let(T.unsafe(nil), String) # user error # For example, a configuration value in .rubocop.yml might be malformed # -# source://rubocop-1.35.1/lib/rubocop/warning.rb:9 +# source://rubocop//lib/rubocop/warning.rb#9 class RuboCop::Warning < ::StandardError; end # Find duplicated keys from YAML. # # @api private # -# source://rubocop-1.35.1/lib/rubocop/yaml_duplication_checker.rb:6 +# source://rubocop//lib/rubocop/yaml_duplication_checker.rb#6 module RuboCop::YAMLDuplicationChecker class << self # @api private # - # source://rubocop-1.35.1/lib/rubocop/yaml_duplication_checker.rb:7 + # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#7 def check(yaml_string, filename, &on_duplicated); end private # @api private # - # source://rubocop-1.35.1/lib/rubocop/yaml_duplication_checker.rb:21 + # source://rubocop//lib/rubocop/yaml_duplication_checker.rb#21 def traverse(tree, &on_duplicated); end end end # Extensions to the core String class # -# source://rubocop-1.35.1/lib/rubocop/core_ext/string.rb:4 +# source://rubocop//lib/rubocop/core_ext/string.rb#4 class String include ::Comparable @@ -52225,6 +54224,6 @@ class String # ' test'.blank? #=> false # @return [Boolean] true is the string is blank, false otherwise # - # source://rubocop-1.35.1/lib/rubocop/core_ext/string.rb:19 + # source://rubocop//lib/rubocop/core_ext/string.rb#19 def blank?; end end diff --git a/sorbet/rbi/gems/spoom@1.1.12.rbi b/sorbet/rbi/gems/spoom@1.1.15.rbi similarity index 64% rename from sorbet/rbi/gems/spoom@1.1.12.rbi rename to sorbet/rbi/gems/spoom@1.1.15.rbi index c08d749b..36deea42 100644 --- a/sorbet/rbi/gems/spoom@1.1.12.rbi +++ b/sorbet/rbi/gems/spoom@1.1.15.rbi @@ -4,127 +4,127 @@ # This is an autogenerated file for types exported from the `spoom` gem. # Please instead update this file by running `bin/tapioca gem spoom`. -# source://spoom-1.1.12/lib/spoom.rb:7 +# source://spoom//lib/spoom.rb#7 module Spoom class << self - # source://spoom-1.1.12/lib/spoom.rb:45 + # source://spoom//lib/spoom.rb#45 sig { params(cmd: ::String, arg: ::String, path: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } def exec(cmd, *arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/cli/helper.rb:9 +# source://spoom//lib/spoom/cli/helper.rb#9 module Spoom::Cli; end -# source://spoom-1.1.12/lib/spoom/cli/bump.rb:9 +# source://spoom//lib/spoom/cli/bump.rb#9 class Spoom::Cli::Bump < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom-1.1.12/lib/spoom/cli/bump.rb:32 + # source://spoom//lib/spoom/cli/bump.rb#33 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/bump.rb:159 + # source://spoom//lib/spoom/cli/bump.rb#170 def config_files(path: T.unsafe(nil)); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/bump.rb:134 + # source://spoom//lib/spoom/cli/bump.rb#144 def print_changes(files, command:, from: T.unsafe(nil), to: T.unsafe(nil), dry: T.unsafe(nil), path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/bump.rb:155 + # source://spoom//lib/spoom/cli/bump.rb#166 def undo_changes(files, from_strictness); end end -# source://spoom-1.1.12/lib/spoom/cli/config.rb:9 +# source://spoom//lib/spoom/cli/config.rb#9 class Spoom::Cli::Config < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/config.rb:15 + # source://spoom//lib/spoom/cli/config.rb#15 def show; end end -# source://spoom-1.1.12/lib/spoom/cli/coverage.rb:9 +# source://spoom//lib/spoom/cli/coverage.rb#9 class Spoom::Cli::Coverage < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:187 + # source://spoom//lib/spoom/cli/coverage.rb#186 def bundle_install(path, sha); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:199 + # source://spoom//lib/spoom/cli/coverage.rb#198 def message_no_data(file); end - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:162 + # source://spoom//lib/spoom/cli/coverage.rb#161 def open(file = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:178 + # source://spoom//lib/spoom/cli/coverage.rb#177 def parse_time(string, option); end - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:131 + # source://spoom//lib/spoom/cli/coverage.rb#130 def report; end - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:20 + # source://spoom//lib/spoom/cli/coverage.rb#20 def snapshot; end - # source://spoom-1.1.12/lib/spoom/cli/coverage.rb:43 + # source://spoom//lib/spoom/cli/coverage.rb#43 def timeline; end end -# source://spoom-1.1.12/lib/spoom/cli/coverage.rb:12 +# source://spoom//lib/spoom/cli/coverage.rb#12 Spoom::Cli::Coverage::DATA_DIR = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/cli/helper.rb:10 +# source://spoom//lib/spoom/cli/helper.rb#10 module Spoom::Cli::Helper include ::Spoom::Colorize requires_ancestor { Thor } - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:143 + # source://spoom//lib/spoom/cli/helper.rb#143 sig { params(string: ::String).returns(::String) } def blue(string); end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:87 + # source://spoom//lib/spoom/cli/helper.rb#87 sig { params(exit_code: ::Integer, block: T.nilable(T.proc.void)).void } def check_sorbet_segfault(exit_code, &block); end # Is the `--color` option true? # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:107 + # source://spoom//lib/spoom/cli/helper.rb#107 sig { returns(T::Boolean) } def color?; end # Colorize a string if `color?` # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:136 + # source://spoom//lib/spoom/cli/helper.rb#136 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:148 + # source://spoom//lib/spoom/cli/helper.rb#148 sig { params(string: ::String).returns(::String) } def cyan(string); end # Return the path specified through `--path` # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:72 + # source://spoom//lib/spoom/cli/helper.rb#72 sig { returns(::String) } def exec_path; end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:153 + # source://spoom//lib/spoom/cli/helper.rb#153 sig { params(string: ::String).returns(::String) } def gray(string); end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:158 + # source://spoom//lib/spoom/cli/helper.rb#158 sig { params(string: ::String).returns(::String) } def green(string); end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:112 + # source://spoom//lib/spoom/cli/helper.rb#112 sig { params(string: ::String).returns(::String) } def highlight(string); end @@ -132,23 +132,23 @@ module Spoom::Cli::Helper # # Display an error message and exit otherwise. # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:59 + # source://spoom//lib/spoom/cli/helper.rb#59 sig { void } def in_sorbet_project!; end # Is `spoom` ran inside a project with a `sorbet/config` file? # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:51 + # source://spoom//lib/spoom/cli/helper.rb#51 sig { returns(T::Boolean) } def in_sorbet_project?; end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:163 + # source://spoom//lib/spoom/cli/helper.rb#163 sig { params(string: ::String).returns(::String) } def red(string); end # Print `message` on `$stdout` # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:20 + # source://spoom//lib/spoom/cli/helper.rb#20 sig { params(message: ::String).void } def say(message); end @@ -156,150 +156,150 @@ module Spoom::Cli::Helper # # The message is prefixed by a status (default: `Error`). # - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:39 + # source://spoom//lib/spoom/cli/helper.rb#39 sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:82 + # source://spoom//lib/spoom/cli/helper.rb#82 sig { returns(::Spoom::Sorbet::Config) } def sorbet_config; end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:77 + # source://spoom//lib/spoom/cli/helper.rb#77 sig { returns(::String) } def sorbet_config_file; end - # source://spoom-1.1.12/lib/spoom/cli/helper.rb:168 + # source://spoom//lib/spoom/cli/helper.rb#168 sig { params(string: ::String).returns(::String) } def yellow(string); end end -# source://spoom-1.1.12/lib/spoom/cli/lsp.rb:10 +# source://spoom//lib/spoom/cli/lsp.rb#10 class Spoom::Cli::LSP < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:54 + # source://spoom//lib/spoom/cli/lsp.rb#54 def defs(file, line, col); end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:64 + # source://spoom//lib/spoom/cli/lsp.rb#64 def find(query); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:40 + # source://spoom//lib/spoom/cli/lsp.rb#40 def hover(file, line, col); end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:25 + # source://spoom//lib/spoom/cli/lsp.rb#25 def list; end - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:113 + # source://spoom//lib/spoom/cli/lsp.rb#113 def lsp_client; end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:84 + # source://spoom//lib/spoom/cli/lsp.rb#84 def refs(file, line, col); end - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:135 + # source://spoom//lib/spoom/cli/lsp.rb#135 def run(&block); end - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:16 + # source://spoom//lib/spoom/cli/lsp.rb#16 def show; end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:94 + # source://spoom//lib/spoom/cli/lsp.rb#94 def sigs(file, line, col); end - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:127 + # source://spoom//lib/spoom/cli/lsp.rb#127 def symbol_printer; end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:74 + # source://spoom//lib/spoom/cli/lsp.rb#74 def symbols(file); end - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:160 + # source://spoom//lib/spoom/cli/lsp.rb#160 def to_uri(path); end # TODO: options, filter, limit, kind etc.. filter rbi # - # source://spoom-1.1.12/lib/spoom/cli/lsp.rb:104 + # source://spoom//lib/spoom/cli/lsp.rb#104 def types(file, line, col); end end -# source://spoom-1.1.12/lib/spoom/cli.rb:16 +# source://spoom//lib/spoom/cli.rb#16 class Spoom::Cli::Main < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom-1.1.12/lib/spoom/cli.rb:68 + # source://spoom//lib/spoom/cli.rb#68 def __print_version; end - # source://thor-1.2.1/lib/thor.rb:239 + # source://thor/1.2.1/lib/thor.rb#239 def bump(*args); end - # source://thor-1.2.1/lib/thor.rb:239 + # source://thor/1.2.1/lib/thor.rb#239 def config(*args); end - # source://thor-1.2.1/lib/thor.rb:239 + # source://thor/1.2.1/lib/thor.rb#239 def coverage(*args); end - # source://spoom-1.1.12/lib/spoom/cli.rb:43 + # source://spoom//lib/spoom/cli.rb#43 def files; end - # source://thor-1.2.1/lib/thor.rb:239 + # source://thor/1.2.1/lib/thor.rb#239 def lsp(*args); end - # source://thor-1.2.1/lib/thor.rb:239 + # source://thor/1.2.1/lib/thor.rb#239 def tc(*args); end class << self # @return [Boolean] # - # source://spoom-1.1.12/lib/spoom/cli.rb:75 + # source://spoom//lib/spoom/cli.rb#75 def exit_on_failure?; end end end -# source://spoom-1.1.12/lib/spoom/cli/run.rb:6 +# source://spoom//lib/spoom/cli/run.rb#6 class Spoom::Cli::Run < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom-1.1.12/lib/spoom/cli/run.rb:117 + # source://spoom//lib/spoom/cli/run.rb#124 def colorize_message(message); end - # source://spoom-1.1.12/lib/spoom/cli/run.rb:108 + # source://spoom//lib/spoom/cli/run.rb#115 def format_error(error, format); end def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/cli/run.rb:26 + # source://spoom//lib/spoom/cli/run.rb#26 def tc(*paths_to_select); end end -# source://spoom-1.1.12/lib/spoom/cli/run.rb:15 +# source://spoom//lib/spoom/cli/run.rb#15 Spoom::Cli::Run::DEFAULT_FORMAT = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/cli/run.rb:11 +# source://spoom//lib/spoom/cli/run.rb#11 Spoom::Cli::Run::SORT_CODE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/cli/run.rb:13 +# source://spoom//lib/spoom/cli/run.rb#13 Spoom::Cli::Run::SORT_ENUM = T.let(T.unsafe(nil), Array) -# source://spoom-1.1.12/lib/spoom/cli/run.rb:12 +# source://spoom//lib/spoom/cli/run.rb#12 Spoom::Cli::Run::SORT_LOC = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/colors.rb:5 +# source://spoom//lib/spoom/colors.rb#5 class Spoom::Color < ::T::Enum enums do CLEAR = new @@ -322,14 +322,14 @@ class Spoom::Color < ::T::Enum LIGHT_WHITE = new end - # source://spoom-1.1.12/lib/spoom/colors.rb:32 + # source://spoom//lib/spoom/colors.rb#32 sig { returns(::String) } def ansi_code; end end -# source://spoom-1.1.12/lib/spoom/colors.rb:37 +# source://spoom//lib/spoom/colors.rb#37 module Spoom::Colorize - # source://spoom-1.1.12/lib/spoom/colors.rb:41 + # source://spoom//lib/spoom/colors.rb#41 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def set_color(string, *color); end end @@ -339,44 +339,44 @@ end # A context maps to a directory in the file system. # It is used to manipulate files and run commands in the context of this directory. # -# source://spoom-1.1.12/lib/spoom/context.rb:12 +# source://spoom//lib/spoom/context.rb#12 class Spoom::Context # Create a new context about `absolute_path` # # The directory will not be created if it doesn't exist. # Call `#make!` to create it. # - # source://spoom-1.1.12/lib/spoom/context.rb:37 + # source://spoom//lib/spoom/context.rb#37 sig { params(absolute_path: ::String).void } def initialize(absolute_path); end # The absolute path to the directory this context is about # - # source://spoom-1.1.12/lib/spoom/context.rb:17 + # source://spoom//lib/spoom/context.rb#17 sig { returns(::String) } def absolute_path; end # Returns the absolute path to `relative_path` in the context's directory # - # source://spoom-1.1.12/lib/spoom/context.rb:43 + # source://spoom//lib/spoom/context.rb#43 sig { params(relative_path: ::String).returns(::String) } def absolute_path_to(relative_path); end # Run a command with `bundle` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:150 + # source://spoom//lib/spoom/context.rb#156 sig { params(command: ::String, version: T.nilable(::String)).returns(::Spoom::ExecResult) } def bundle(command, version: T.unsafe(nil)); end # Run a command `bundle exec` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:163 + # source://spoom//lib/spoom/context.rb#169 sig { params(command: ::String, version: T.nilable(::String)).returns(::Spoom::ExecResult) } def bundle_exec(command, version: T.unsafe(nil)); end # Run `bundle install` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:157 + # source://spoom//lib/spoom/context.rb#163 sig { params(version: T.nilable(::String)).returns(::Spoom::ExecResult) } def bundle_install!(version: T.unsafe(nil)); end @@ -384,67 +384,79 @@ class Spoom::Context # # Warning: it will `rm -rf` the context directory on the file system. # - # source://spoom-1.1.12/lib/spoom/context.rb:112 + # source://spoom//lib/spoom/context.rb#118 sig { void } def destroy!; end # Run a command in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:120 + # source://spoom//lib/spoom/context.rb#126 sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } def exec(command, capture_err: T.unsafe(nil)); end + # Does the context directory at `absolute_path` exist and is a directory? + # + # source://spoom//lib/spoom/context.rb#51 + sig { returns(T::Boolean) } + def exist?; end + # Does `relative_path` point to an existing file in this context directory? # - # source://spoom-1.1.12/lib/spoom/context.rb:72 + # source://spoom//lib/spoom/context.rb#78 sig { params(relative_path: ::String).returns(T::Boolean) } def file?(relative_path); end # Run a command prefixed by `git` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:171 + # source://spoom//lib/spoom/context.rb#177 sig { params(command: ::String).returns(::Spoom::ExecResult) } def git(command); end # Run `git checkout` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:183 + # source://spoom//lib/spoom/context.rb#189 sig { params(ref: ::String).returns(::Spoom::ExecResult) } def git_checkout!(ref: T.unsafe(nil)); end # Get the current git branch in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:189 + # source://spoom//lib/spoom/context.rb#195 sig { returns(T.nilable(::String)) } def git_current_branch; end # Run `git init` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:177 + # source://spoom//lib/spoom/context.rb#183 sig { params(branch: ::String).void } def git_init!(branch: T.unsafe(nil)); end + # Get the last commit in the currently checked out branch + # + # source://spoom//lib/spoom/context.rb#201 + sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } + def git_last_commit(short_sha: T.unsafe(nil)); end + # List all files in this context matching `pattern` # - # source://spoom-1.1.12/lib/spoom/context.rb:58 + # source://spoom//lib/spoom/context.rb#64 sig { params(pattern: ::String).returns(T::Array[::String]) } def glob(pattern = T.unsafe(nil)); end # List all files at the top level of this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:66 + # source://spoom//lib/spoom/context.rb#72 sig { returns(T::Array[::String]) } def list; end # Create the context directory at `absolute_path` # - # source://spoom-1.1.12/lib/spoom/context.rb:51 + # source://spoom//lib/spoom/context.rb#57 sig { void } def mkdir!; end # Move the file or directory from `from_relative_path` to `to_relative_path` # - # source://spoom-1.1.12/lib/spoom/context.rb:102 + # source://spoom//lib/spoom/context.rb#108 sig { params(from_relative_path: ::String, to_relative_path: ::String).void } def move!(from_relative_path, to_relative_path); end @@ -452,37 +464,37 @@ class Spoom::Context # # Will raise if the file doesn't exist. # - # source://spoom-1.1.12/lib/spoom/context.rb:80 + # source://spoom//lib/spoom/context.rb#86 sig { params(relative_path: ::String).returns(::String) } def read(relative_path); end # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) # - # source://spoom-1.1.12/lib/spoom/context.rb:215 + # source://spoom//lib/spoom/context.rb#227 sig { params(relative_path: ::String).returns(T.nilable(::String)) } def read_file_strictness(relative_path); end # Read the `contents` of the Gemfile in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:138 + # source://spoom//lib/spoom/context.rb#144 sig { returns(T.nilable(::String)) } def read_gemfile; end # Read the contents of `sorbet/config` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:203 + # source://spoom//lib/spoom/context.rb#215 sig { returns(::String) } def read_sorbet_config; end # Remove the path at `relative_path` (recursive + force) in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:96 + # source://spoom//lib/spoom/context.rb#102 sig { params(relative_path: ::String).void } def remove!(relative_path); end # Run `bundle exec srb` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:197 + # source://spoom//lib/spoom/context.rb#209 sig { params(command: ::String).returns(::Spoom::ExecResult) } def srb(command); end @@ -490,19 +502,19 @@ class Spoom::Context # # Append to the file if `append` is true. # - # source://spoom-1.1.12/lib/spoom/context.rb:88 + # source://spoom//lib/spoom/context.rb#94 sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void } def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end # Set the `contents` of the Gemfile in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:144 + # source://spoom//lib/spoom/context.rb#150 sig { params(contents: ::String, append: T::Boolean).void } def write_gemfile!(contents, append: T.unsafe(nil)); end # Set the `contents` of `sorbet/config` in this context directory # - # source://spoom-1.1.12/lib/spoom/context.rb:209 + # source://spoom//lib/spoom/context.rb#221 sig { params(contents: ::String, append: T::Boolean).void } def write_sorbet_config!(contents, append: T.unsafe(nil)); end @@ -512,16 +524,16 @@ class Spoom::Context # `name` is used as prefix to the temporary directory name. # The directory will be created if it doesn't exist. # - # source://spoom-1.1.12/lib/spoom/context.rb:27 + # source://spoom//lib/spoom/context.rb#27 sig { params(name: T.nilable(::String)).returns(T.attached_class) } def mktmp!(name = T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:5 +# source://spoom//lib/spoom/coverage/snapshot.rb#5 module Spoom::Coverage class << self - # source://spoom-1.1.12/lib/spoom/coverage.rb:69 + # source://spoom//lib/spoom/coverage.rb#90 sig do params( snapshots: T::Array[::Spoom::Coverage::Snapshot], @@ -531,11 +543,11 @@ module Spoom::Coverage end def report(snapshots, palette:, path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage.rb:89 + # source://spoom//lib/spoom/coverage.rb#109 sig { params(path: ::String).returns(::Spoom::FileTree) } def sigils_tree(path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage.rb:16 + # source://spoom//lib/spoom/coverage.rb#16 sig do params( path: ::String, @@ -545,156 +557,156 @@ module Spoom::Coverage end def snapshot(path: T.unsafe(nil), rbi: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage.rb:84 + # source://spoom//lib/spoom/coverage.rb#104 sig { params(path: ::String).returns(::Spoom::Sorbet::Config) } def sorbet_config(path: T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:88 +# source://spoom//lib/spoom/coverage/report.rb#88 module Spoom::Coverage::Cards; end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:89 +# source://spoom//lib/spoom/coverage/report.rb#89 class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:98 + # source://spoom//lib/spoom/coverage/report.rb#98 sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void } def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end # @return [String, nil] # - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:95 + # source://spoom//lib/spoom/coverage/report.rb#95 def body; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:95 + # source://spoom//lib/spoom/coverage/report.rb#95 sig { returns(T.nilable(::String)) } def title; end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:92 +# source://spoom//lib/spoom/coverage/report.rb#92 Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String) # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:105 +# source://spoom//lib/spoom/coverage/report.rb#105 class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card abstract! - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:112 + # source://spoom//lib/spoom/coverage/report.rb#112 sig { void } def initialize; end # @abstract # - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:120 + # source://spoom//lib/spoom/coverage/report.rb#120 sig { abstract.returns(::String) } def erb; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:115 + # source://spoom//lib/spoom/coverage/report.rb#115 sig { override.returns(::String) } def html; end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:153 +# source://spoom//lib/spoom/coverage/report.rb#153 class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:157 + # source://spoom//lib/spoom/coverage/report.rb#157 sig { params(sigils_tree: ::Spoom::FileTree, title: ::String).void } def initialize(sigils_tree:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:123 +# source://spoom//lib/spoom/coverage/report.rb#123 class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:132 + # source://spoom//lib/spoom/coverage/report.rb#132 sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void } def initialize(snapshot:, title: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:143 + # source://spoom//lib/spoom/coverage/report.rb#143 sig { returns(::Spoom::Coverage::D3::Pie::Calls) } def pie_calls; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:138 + # source://spoom//lib/spoom/coverage/report.rb#138 sig { returns(::Spoom::Coverage::D3::Pie::Sigils) } def pie_sigils; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:148 + # source://spoom//lib/spoom/coverage/report.rb#148 sig { returns(::Spoom::Coverage::D3::Pie::Sigs) } def pie_sigs; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:129 + # source://spoom//lib/spoom/coverage/report.rb#129 sig { returns(::Spoom::Coverage::Snapshot) } def snapshot; end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:126 +# source://spoom//lib/spoom/coverage/report.rb#126 Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:225 +# source://spoom//lib/spoom/coverage/report.rb#225 class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:229 + # source://spoom//lib/spoom/coverage/report.rb#229 sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void } def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:235 + # source://spoom//lib/spoom/coverage/report.rb#235 sig { override.returns(::String) } def erb; end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:162 +# source://spoom//lib/spoom/coverage/report.rb#162 class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:166 + # source://spoom//lib/spoom/coverage/report.rb#166 sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void } def initialize(title:, timeline:); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:179 +# source://spoom//lib/spoom/coverage/report.rb#179 class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:183 + # source://spoom//lib/spoom/coverage/report.rb#183 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:197 +# source://spoom//lib/spoom/coverage/report.rb#197 class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:201 + # source://spoom//lib/spoom/coverage/report.rb#201 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:215 +# source://spoom//lib/spoom/coverage/report.rb#215 class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:219 + # source://spoom//lib/spoom/coverage/report.rb#219 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:170 +# source://spoom//lib/spoom/coverage/report.rb#170 class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:174 + # source://spoom//lib/spoom/coverage/report.rb#174 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:188 +# source://spoom//lib/spoom/coverage/report.rb#188 class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:192 + # source://spoom//lib/spoom/coverage/report.rb#192 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:206 +# source://spoom//lib/spoom/coverage/report.rb#206 class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:210 + # source://spoom//lib/spoom/coverage/report.rb#210 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:6 +# source://spoom//lib/spoom/coverage/d3/base.rb#6 module Spoom::Coverage::D3 class << self - # source://spoom-1.1.12/lib/spoom/coverage/d3.rb:61 + # source://spoom//lib/spoom/coverage/d3.rb#61 sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) } def header_script(palette); end - # source://spoom-1.1.12/lib/spoom/coverage/d3.rb:21 + # source://spoom//lib/spoom/coverage/d3.rb#21 sig { returns(::String) } def header_style; end end @@ -702,384 +714,384 @@ end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:7 +# source://spoom//lib/spoom/coverage/d3/base.rb#7 class Spoom::Coverage::D3::Base abstract! - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:17 + # source://spoom//lib/spoom/coverage/d3/base.rb#17 sig { params(id: ::String, data: T.untyped).void } def initialize(id, data); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:37 + # source://spoom//lib/spoom/coverage/d3/base.rb#37 sig { returns(::String) } def html; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:14 + # source://spoom//lib/spoom/coverage/d3/base.rb#14 sig { returns(::String) } def id; end # @abstract # - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:50 + # source://spoom//lib/spoom/coverage/d3/base.rb#50 sig { abstract.returns(::String) } def script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:45 + # source://spoom//lib/spoom/coverage/d3/base.rb#45 sig { returns(::String) } def tooltip; end class << self - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:31 + # source://spoom//lib/spoom/coverage/d3/base.rb#31 sig { returns(::String) } def header_script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/base.rb:26 + # source://spoom//lib/spoom/coverage/d3/base.rb#26 sig { returns(::String) } def header_style; end end end -# source://spoom-1.1.12/lib/spoom/coverage/d3.rb:12 +# source://spoom//lib/spoom/coverage/d3.rb#12 Spoom::Coverage::D3::COLOR_FALSE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/d3.rb:11 +# source://spoom//lib/spoom/coverage/d3.rb#11 Spoom::Coverage::D3::COLOR_IGNORE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/d3.rb:14 +# source://spoom//lib/spoom/coverage/d3.rb#14 Spoom::Coverage::D3::COLOR_STRICT = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/d3.rb:15 +# source://spoom//lib/spoom/coverage/d3.rb#15 Spoom::Coverage::D3::COLOR_STRONG = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/d3.rb:13 +# source://spoom//lib/spoom/coverage/d3.rb#13 Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:9 +# source://spoom//lib/spoom/coverage/d3/circle_map.rb#9 class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:59 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#59 sig { override.returns(::String) } def script; end class << self - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:40 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#40 sig { returns(::String) } def header_script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:14 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#14 sig { returns(::String) } def header_style; end end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:148 +# source://spoom//lib/spoom/coverage/d3/circle_map.rb#148 class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:152 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#152 sig { params(id: ::String, sigils_tree: ::Spoom::FileTree).void } def initialize(id, sigils_tree); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:181 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#181 sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } def tree_node_score(node); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:173 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#173 sig { params(node: ::Spoom::FileTree::Node).returns(T.nilable(::String)) } def tree_node_strictness(node); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/circle_map.rb:160 + # source://spoom//lib/spoom/coverage/d3/circle_map.rb#160 sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) } def tree_node_to_json(node); end end -# source://spoom-1.1.12/lib/spoom/coverage/d3.rb:103 +# source://spoom//lib/spoom/coverage/d3.rb#103 class Spoom::Coverage::D3::ColorPalette < ::T::Struct - prop :false, ::String prop :ignore, ::String + prop :false, ::String + prop :true, ::String prop :strict, ::String prop :strong, ::String - prop :true, ::String class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:9 +# source://spoom//lib/spoom/coverage/d3/pie.rb#9 class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base abstract! - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:16 + # source://spoom//lib/spoom/coverage/d3/pie.rb#16 sig { params(id: ::String, title: ::String, data: T.untyped).void } def initialize(id, title, data); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:56 + # source://spoom//lib/spoom/coverage/d3/pie.rb#56 sig { override.returns(::String) } def script; end class << self - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:43 + # source://spoom//lib/spoom/coverage/d3/pie.rb#43 sig { returns(::String) } def header_script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:25 + # source://spoom//lib/spoom/coverage/d3/pie.rb#25 sig { returns(::String) } def header_style; end end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:141 +# source://spoom//lib/spoom/coverage/d3/pie.rb#141 class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:145 + # source://spoom//lib/spoom/coverage/d3/pie.rb#145 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:150 + # source://spoom//lib/spoom/coverage/d3/pie.rb#150 sig { override.returns(::String) } def tooltip; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:123 +# source://spoom//lib/spoom/coverage/d3/pie.rb#123 class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:127 + # source://spoom//lib/spoom/coverage/d3/pie.rb#127 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:132 + # source://spoom//lib/spoom/coverage/d3/pie.rb#132 sig { override.returns(::String) } def tooltip; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:159 +# source://spoom//lib/spoom/coverage/d3/pie.rb#159 class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:163 + # source://spoom//lib/spoom/coverage/d3/pie.rb#163 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/pie.rb:168 + # source://spoom//lib/spoom/coverage/d3/pie.rb#172 sig { override.returns(::String) } def tooltip; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:9 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#9 class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base abstract! - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:16 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#16 sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void } def initialize(id, data, keys); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:187 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#187 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:203 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#203 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end # @abstract # - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:126 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#126 sig { abstract.returns(::String) } def plot; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:217 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#217 sig { params(y: ::String).returns(::String) } def points(y:); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:101 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#101 sig { override.returns(::String) } def script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:129 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#129 sig { returns(::String) } def x_scale; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:145 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#145 sig { returns(::String) } def x_ticks; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:158 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#158 sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) } def y_scale(min:, max:, ticks:); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:174 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#174 sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) } def y_ticks(ticks:, format:, padding:); end class << self - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:79 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#79 sig { returns(::String) } def header_script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:25 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#25 sig { returns(::String) } def header_style; end end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:448 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#448 class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:452 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#452 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:466 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#466 sig { override.returns(::String) } def tooltip; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:502 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#505 class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:506 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#509 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:574 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#577 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:614 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#617 sig { override.returns(::String) } def plot; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:534 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#537 sig { override.returns(::String) } def script; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:520 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#523 sig { override.returns(::String) } def tooltip; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:282 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#282 class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:286 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#286 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:311 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#311 sig { override.returns(::String) } def plot; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:298 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#298 sig { override.returns(::String) } def tooltip; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:421 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#421 class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:425 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#425 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:439 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#439 sig { override.returns(::String) } def tooltip; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:475 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#475 class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:479 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#479 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:493 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#496 sig { override.returns(::String) } def tooltip; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:329 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#329 class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline abstract! - # source://sorbet-runtime-0.5.10346/lib/types/private/abstract/declare.rb:37 + # source://sorbet-runtime/0.5.10611/lib/types/private/abstract/declare.rb#37 def initialize(*args, &blk); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:388 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#388 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:377 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#377 sig { override.returns(::String) } def plot; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:336 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#336 sig { override.returns(::String) } def script; end end -# source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:232 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#232 class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:236 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#236 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:263 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#263 sig { override.returns(::String) } def plot; end - # source://spoom-1.1.12/lib/spoom/coverage/d3/timeline.rb:249 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#249 sig { override.returns(::String) } def tooltip; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:38 +# source://spoom//lib/spoom/coverage/report.rb#38 class Spoom::Coverage::Page < ::Spoom::Coverage::Template abstract! - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:53 + # source://spoom//lib/spoom/coverage/report.rb#53 sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void } def initialize(title:, palette:, template: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:75 + # source://spoom//lib/spoom/coverage/report.rb#75 sig { returns(::String) } def body_html; end # @abstract # - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:80 + # source://spoom//lib/spoom/coverage/report.rb#80 sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:83 + # source://spoom//lib/spoom/coverage/report.rb#83 sig { returns(::String) } def footer_html; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:70 + # source://spoom//lib/spoom/coverage/report.rb#70 sig { returns(::String) } def header_html; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:65 + # source://spoom//lib/spoom/coverage/report.rb#65 sig { returns(::String) } def header_script; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:60 + # source://spoom//lib/spoom/coverage/report.rb#60 sig { returns(::String) } def header_style; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:50 + # source://spoom//lib/spoom/coverage/report.rb#50 sig { returns(::Spoom::Coverage::D3::ColorPalette) } def palette; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:47 + # source://spoom//lib/spoom/coverage/report.rb#47 sig { returns(::String) } def title; end end -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:44 +# source://spoom//lib/spoom/coverage/report.rb#44 Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:246 +# source://spoom//lib/spoom/coverage/report.rb#246 class Spoom::Coverage::Report < ::Spoom::Coverage::Page - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:274 + # source://spoom//lib/spoom/coverage/report.rb#274 sig do params( project_name: ::String, @@ -1092,148 +1104,151 @@ class Spoom::Coverage::Report < ::Spoom::Coverage::Page end def initialize(project_name:, palette:, snapshots:, sigils_tree:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:302 + # source://spoom//lib/spoom/coverage/report.rb#302 sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:291 + # source://spoom//lib/spoom/coverage/report.rb#291 sig { override.returns(::String) } def header_html; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:250 + # source://spoom//lib/spoom/coverage/report.rb#250 sig { returns(::String) } def project_name; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:262 + # source://spoom//lib/spoom/coverage/report.rb#262 sig { returns(::Spoom::FileTree) } def sigils_tree; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:259 + # source://spoom//lib/spoom/coverage/report.rb#259 sig { returns(T::Array[::Spoom::Coverage::Snapshot]) } def snapshots; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:253 + # source://spoom//lib/spoom/coverage/report.rb#253 sig { returns(T.nilable(::String)) } def sorbet_intro_commit; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:256 + # source://spoom//lib/spoom/coverage/report.rb#256 sig { returns(T.nilable(::Time)) } def sorbet_intro_date; end end -# source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:6 +# source://spoom//lib/spoom/coverage/snapshot.rb#6 class Spoom::Coverage::Snapshot < ::T::Struct - prop :calls_typed, ::Integer, default: T.unsafe(nil) - prop :calls_untyped, ::Integer, default: T.unsafe(nil) - prop :classes, ::Integer, default: T.unsafe(nil) + prop :timestamp, ::Integer, default: T.unsafe(nil) + prop :version_static, T.nilable(::String), default: T.unsafe(nil) + prop :version_runtime, T.nilable(::String), default: T.unsafe(nil) + prop :duration, ::Integer, default: T.unsafe(nil) prop :commit_sha, T.nilable(::String), default: T.unsafe(nil) prop :commit_timestamp, T.nilable(::Integer), default: T.unsafe(nil) - prop :duration, ::Integer, default: T.unsafe(nil) prop :files, ::Integer, default: T.unsafe(nil) - prop :methods_with_sig, ::Integer, default: T.unsafe(nil) - prop :methods_without_sig, ::Integer, default: T.unsafe(nil) - prop :modules, ::Integer, default: T.unsafe(nil) prop :rbi_files, ::Integer, default: T.unsafe(nil) - prop :sigils, T::Hash[::String, ::Integer], default: T.unsafe(nil) + prop :modules, ::Integer, default: T.unsafe(nil) + prop :classes, ::Integer, default: T.unsafe(nil) prop :singleton_classes, ::Integer, default: T.unsafe(nil) - prop :timestamp, ::Integer, default: T.unsafe(nil) - prop :version_runtime, T.nilable(::String), default: T.unsafe(nil) - prop :version_static, T.nilable(::String), default: T.unsafe(nil) + prop :methods_without_sig, ::Integer, default: T.unsafe(nil) + prop :methods_with_sig, ::Integer, default: T.unsafe(nil) + prop :calls_untyped, ::Integer, default: T.unsafe(nil) + prop :calls_typed, ::Integer, default: T.unsafe(nil) + prop :sigils, T::Hash[::String, ::Integer], default: T.unsafe(nil) + prop :methods_with_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) + prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) + prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil) - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:30 + # source://spoom//lib/spoom/coverage/snapshot.rb#33 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:36 + # source://spoom//lib/spoom/coverage/snapshot.rb#39 sig { params(arg: T.untyped).returns(::String) } def to_json(*arg); end class << self - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:44 + # source://spoom//lib/spoom/coverage/snapshot.rb#47 sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) } def from_json(json); end - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:49 + # source://spoom//lib/spoom/coverage/snapshot.rb#52 sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end # The strictness name as found in the Sorbet metrics file # -# source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:27 +# source://spoom//lib/spoom/coverage/snapshot.rb#30 Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array) -# source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:81 +# source://spoom//lib/spoom/coverage/snapshot.rb#95 class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:85 + # source://spoom//lib/spoom/coverage/snapshot.rb#99 sig { params(snapshot: ::Spoom::Coverage::Snapshot).void } def print_snapshot(snapshot); end private - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:134 + # source://spoom//lib/spoom/coverage/snapshot.rb#158 sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) } def percent(value, total); end - # source://spoom-1.1.12/lib/spoom/coverage/snapshot.rb:123 + # source://spoom//lib/spoom/coverage/snapshot.rb#147 sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void } def print_map(hash, total); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/coverage/report.rb:10 +# source://spoom//lib/spoom/coverage/report.rb#10 class Spoom::Coverage::Template abstract! # Create a new template from an Erb file path # - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:18 + # source://spoom//lib/spoom/coverage/report.rb#18 sig { params(template: ::String).void } def initialize(template:); end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:23 + # source://spoom//lib/spoom/coverage/report.rb#23 sig { returns(::String) } def erb; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:33 + # source://spoom//lib/spoom/coverage/report.rb#33 sig { returns(::Binding) } def get_binding; end - # source://spoom-1.1.12/lib/spoom/coverage/report.rb:28 + # source://spoom//lib/spoom/coverage/report.rb#28 sig { returns(::String) } def html; end end -# source://spoom-1.1.12/lib/spoom.rb:12 +# source://spoom//lib/spoom.rb#12 class Spoom::Error < ::StandardError; end -# source://spoom-1.1.12/lib/spoom.rb:14 +# source://spoom//lib/spoom.rb#14 class Spoom::ExecResult < ::T::Struct - const :err, ::String - const :exit_code, ::Integer const :out, ::String + const :err, ::String const :status, T::Boolean + const :exit_code, ::Integer - # source://spoom-1.1.12/lib/spoom.rb:23 + # source://spoom//lib/spoom.rb#23 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end # Build a file hierarchy from a set of file paths. # -# source://spoom-1.1.12/lib/spoom/file_tree.rb:6 +# source://spoom//lib/spoom/file_tree.rb#6 class Spoom::FileTree - # source://spoom-1.1.12/lib/spoom/file_tree.rb:13 + # source://spoom//lib/spoom/file_tree.rb#13 sig { params(paths: T::Enumerable[::String], strip_prefix: T.nilable(::String)).void } def initialize(paths = T.unsafe(nil), strip_prefix: T.unsafe(nil)); end @@ -1241,29 +1256,29 @@ class Spoom::FileTree # # This will create all nodes until the root of `path`. # - # source://spoom-1.1.12/lib/spoom/file_tree.rb:29 + # source://spoom//lib/spoom/file_tree.rb#29 sig { params(path: ::String).returns(::Spoom::FileTree::Node) } def add_path(path); end # Add all `paths` to the tree # - # source://spoom-1.1.12/lib/spoom/file_tree.rb:21 + # source://spoom//lib/spoom/file_tree.rb#21 sig { params(paths: T::Enumerable[::String]).void } def add_paths(paths); end # All the nodes in this tree # - # source://spoom-1.1.12/lib/spoom/file_tree.rb:51 + # source://spoom//lib/spoom/file_tree.rb#51 sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end # All the paths in this tree # - # source://spoom-1.1.12/lib/spoom/file_tree.rb:59 + # source://spoom//lib/spoom/file_tree.rb#59 sig { returns(T::Array[::String]) } def paths; end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:71 + # source://spoom//lib/spoom/file_tree.rb#71 sig do params( out: T.any(::IO, ::StringIO), @@ -1276,17 +1291,17 @@ class Spoom::FileTree # All root nodes # - # source://spoom-1.1.12/lib/spoom/file_tree.rb:45 + # source://spoom//lib/spoom/file_tree.rb#45 sig { returns(T::Array[::Spoom::FileTree::Node]) } def roots; end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:10 + # source://spoom//lib/spoom/file_tree.rb#10 sig { returns(T.nilable(::String)) } def strip_prefix; end private - # source://spoom-1.1.12/lib/spoom/file_tree.rb:85 + # source://spoom//lib/spoom/file_tree.rb#85 sig do params( node: ::Spoom::FileTree::Node, @@ -1298,20 +1313,20 @@ end # A node representing either a file or a directory inside a FileTree # -# source://spoom-1.1.12/lib/spoom/file_tree.rb:92 +# source://spoom//lib/spoom/file_tree.rb#92 class Spoom::FileTree::Node < ::T::Struct - const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) - const :name, ::String const :parent, T.nilable(::Spoom::FileTree::Node) + const :name, ::String + const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) # Full path to this node from root # - # source://spoom-1.1.12/lib/spoom/file_tree.rb:106 + # source://spoom//lib/spoom/file_tree.rb#106 sig { returns(::String) } def path; end class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end @@ -1320,9 +1335,9 @@ end # # See `FileTree#print` # -# source://spoom-1.1.12/lib/spoom/file_tree.rb:117 +# source://spoom//lib/spoom/file_tree.rb#117 class Spoom::FileTree::TreePrinter < ::Spoom::Printer - # source://spoom-1.1.12/lib/spoom/file_tree.rb:132 + # source://spoom//lib/spoom/file_tree.rb#132 sig do params( tree: ::Spoom::FileTree, @@ -1334,140 +1349,139 @@ class Spoom::FileTree::TreePrinter < ::Spoom::Printer end def initialize(tree:, out: T.unsafe(nil), show_strictness: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:144 + # source://spoom//lib/spoom/file_tree.rb#144 sig { params(node: ::Spoom::FileTree::Node).void } def print_node(node); end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:171 + # source://spoom//lib/spoom/file_tree.rb#171 sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } def print_nodes(nodes); end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:139 + # source://spoom//lib/spoom/file_tree.rb#139 sig { void } def print_tree; end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:121 + # source://spoom//lib/spoom/file_tree.rb#121 sig { returns(::Spoom::FileTree) } def tree; end private - # source://spoom-1.1.12/lib/spoom/file_tree.rb:178 + # source://spoom//lib/spoom/file_tree.rb#178 sig { params(node: ::Spoom::FileTree::Node).returns(T.nilable(::String)) } def node_strictness(node); end - # source://spoom-1.1.12/lib/spoom/file_tree.rb:186 + # source://spoom//lib/spoom/file_tree.rb#186 sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } def strictness_color(strictness); end end # Execute git commands # -# source://spoom-1.1.12/lib/spoom/git.rb:8 +# source://spoom//lib/spoom/git.rb#8 module Spoom::Git class << self # Git commands # - # source://spoom-1.1.12/lib/spoom/git.rb:36 + # source://spoom//lib/spoom/git.rb#48 sig { params(arg: ::String, path: ::String).returns(::Spoom::ExecResult) } def checkout(*arg, path: T.unsafe(nil)); end - # Get the commit Time for a `sha` - # - # source://spoom-1.1.12/lib/spoom/git.rb:81 - sig { params(sha: ::String, path: ::String).returns(T.nilable(::Time)) } - def commit_time(sha, path: T.unsafe(nil)); end - - # Get the commit epoch timestamp for a `sha` - # - # source://spoom-1.1.12/lib/spoom/git.rb:72 - sig { params(sha: ::String, path: ::String).returns(T.nilable(::Integer)) } - def commit_timestamp(sha, path: T.unsafe(nil)); end - - # source://spoom-1.1.12/lib/spoom/git.rb:61 + # source://spoom//lib/spoom/git.rb#68 sig { params(path: ::String).returns(T.nilable(::String)) } def current_branch(path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/git.rb:41 + # source://spoom//lib/spoom/git.rb#53 sig { params(arg: ::String, path: ::String).returns(::Spoom::ExecResult) } def diff(*arg, path: T.unsafe(nil)); end - # Translate a git epoch timestamp into a Time - # - # source://spoom-1.1.12/lib/spoom/git.rb:99 - sig { params(timestamp: ::String).returns(::Time) } - def epoch_to_time(timestamp); end - # Execute a `command` # - # source://spoom-1.1.12/lib/spoom/git.rb:14 + # source://spoom//lib/spoom/git.rb#26 sig { params(command: ::String, arg: ::String, path: ::String).returns(::Spoom::ExecResult) } def exec(command, *arg, path: T.unsafe(nil)); end - # Get the last commit sha + # Get the last commit in the currently checked out branch # - # source://spoom-1.1.12/lib/spoom/git.rb:90 - sig { params(path: ::String).returns(T.nilable(::String)) } - def last_commit(path: T.unsafe(nil)); end + # source://spoom//lib/spoom/git.rb#79 + sig { params(path: ::String, short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } + def last_commit(path: T.unsafe(nil), short_sha: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/git.rb:46 + # source://spoom//lib/spoom/git.rb#58 sig { params(arg: ::String, path: ::String).returns(::Spoom::ExecResult) } def log(*arg, path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/git.rb:51 - sig { params(arg: ::String, path: ::String).returns(::Spoom::ExecResult) } - def rev_parse(*arg, path: T.unsafe(nil)); end + # Parse a line formated as `%h %at` into a `Commit` + # + # source://spoom//lib/spoom/git.rb#121 + sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } + def parse_commit(string); end - # source://spoom-1.1.12/lib/spoom/git.rb:56 + # source://spoom//lib/spoom/git.rb#63 sig { params(arg: ::String, path: ::String).returns(::Spoom::ExecResult) } def show(*arg, path: T.unsafe(nil)); end - # Get the hash of the commit introducing the `sorbet/config` file + # Get the commit introducing the `sorbet/config` file # - # source://spoom-1.1.12/lib/spoom/git.rb:111 - sig { params(path: ::String).returns(T.nilable(::String)) } + # source://spoom//lib/spoom/git.rb#97 + sig { params(path: ::String).returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_intro_commit(path: T.unsafe(nil)); end - # Get the hash of the commit removing the `sorbet/config` file + # Get the commit removing the `sorbet/config` file # - # source://spoom-1.1.12/lib/spoom/git.rb:123 - sig { params(path: ::String).returns(T.nilable(::String)) } + # source://spoom//lib/spoom/git.rb#109 + sig { params(path: ::String).returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_removal_commit(path: T.unsafe(nil)); end # Is there uncommited changes in `path`? # - # source://spoom-1.1.12/lib/spoom/git.rb:105 + # source://spoom//lib/spoom/git.rb#91 sig { params(path: ::String).returns(T::Boolean) } def workdir_clean?(path: T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:5 +# source://spoom//lib/spoom/git.rb#9 +class Spoom::Git::Commit < ::T::Struct + const :sha, ::String + const :time, ::Time + + # source://spoom//lib/spoom/git.rb#16 + sig { returns(::Integer) } + def timestamp; end + + class << self + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 + def inherited(s); end + end +end + +# source://spoom//lib/spoom/sorbet/lsp/base.rb#5 module Spoom::LSP; end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:13 +# source://spoom//lib/spoom/sorbet/lsp.rb#13 class Spoom::LSP::Client - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:17 + # source://spoom//lib/spoom/sorbet/lsp.rb#17 sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:229 + # source://spoom//lib/spoom/sorbet/lsp.rb#229 sig { void } def close; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:131 + # source://spoom//lib/spoom/sorbet/lsp.rb#131 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def definitions(uri, line, column); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:212 + # source://spoom//lib/spoom/sorbet/lsp.rb#212 sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def document_symbols(uri); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:89 + # source://spoom//lib/spoom/sorbet/lsp.rb#89 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } def hover(uri, line, column); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:27 + # source://spoom//lib/spoom/sorbet/lsp.rb#27 sig { returns(::Integer) } def next_id; end @@ -1475,21 +1489,21 @@ class Spoom::LSP::Client # # @raise [Error::AlreadyOpen] # - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:72 + # source://spoom//lib/spoom/sorbet/lsp.rb#72 sig { params(workspace_path: ::String).void } def open(workspace_path); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:54 + # source://spoom//lib/spoom/sorbet/lsp.rb#54 sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def read; end # @raise [Error::BadHeaders] # - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:43 + # source://spoom//lib/spoom/sorbet/lsp.rb#43 sig { returns(T.nilable(::String)) } def read_raw; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:173 + # source://spoom//lib/spoom/sorbet/lsp.rb#173 sig do params( uri: ::String, @@ -1500,166 +1514,166 @@ class Spoom::LSP::Client end def references(uri, line, column, include_decl = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:37 + # source://spoom//lib/spoom/sorbet/lsp.rb#37 sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def send(message); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:32 + # source://spoom//lib/spoom/sorbet/lsp.rb#32 sig { params(json_string: ::String).void } def send_raw(json_string); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:110 + # source://spoom//lib/spoom/sorbet/lsp.rb#110 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } def signatures(uri, line, column); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:197 + # source://spoom//lib/spoom/sorbet/lsp.rb#197 sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def symbols(query); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp.rb:152 + # source://spoom//lib/spoom/sorbet/lsp.rb#152 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def type_definitions(uri, line, column); end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:178 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 class Spoom::LSP::Diagnostic < ::T::Struct include ::Spoom::LSP::PrintableSymbol + const :range, ::Spoom::LSP::Range const :code, ::Integer - const :informations, ::Object const :message, ::String - const :range, ::Spoom::LSP::Range + const :informations, ::Object - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:202 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#202 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:207 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#207 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:191 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#191 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:212 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 class Spoom::LSP::DocumentSymbol < ::T::Struct include ::Spoom::LSP::PrintableSymbol - const :children, T::Array[::Spoom::LSP::DocumentSymbol] + const :name, ::String const :detail, T.nilable(::String) const :kind, ::Integer const :location, T.nilable(::Spoom::LSP::Location) - const :name, ::String const :range, T.nilable(::Spoom::LSP::Range) + const :children, T::Array[::Spoom::LSP::DocumentSymbol] - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:240 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#240 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:272 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#272 sig { returns(::String) } def kind_string; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:267 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#267 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:227 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#227 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:276 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#276 Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:6 +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 class Spoom::LSP::Error < ::StandardError; end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:7 +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#7 class Spoom::LSP::Error::AlreadyOpen < ::Spoom::LSP::Error; end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:8 +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#8 class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:10 +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:32 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#32 sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } def initialize(uri, diagnostics); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:17 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#17 sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } def diagnostics; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:14 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#14 sig { returns(::String) } def uri; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:23 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#23 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } def from_json(json); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:19 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 class Spoom::LSP::Hover < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :contents, ::String const :range, T.nilable(T::Range[T.untyped]) - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:39 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#39 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:45 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:30 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#30 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:112 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#112 class Spoom::LSP::Location < ::T::Struct include ::Spoom::LSP::PrintableSymbol - const :range, ::Spoom::LSP::Range const :uri, ::String + const :range, ::Spoom::LSP::Range - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:132 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:138 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#138 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:123 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#123 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end @@ -1668,21 +1682,21 @@ end # # The language server protocol always uses `"2.0"` as the `jsonrpc` version. # -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:12 +# source://spoom//lib/spoom/sorbet/lsp/base.rb#12 class Spoom::LSP::Message - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:19 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#19 sig { void } def initialize; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:24 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#24 sig { returns(T::Hash[T.untyped, T.untyped]) } def as_json; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:16 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#16 sig { returns(::String) } def jsonrpc; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:32 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#32 sig { params(args: T.untyped).returns(::String) } def to_json(*args); end end @@ -1691,80 +1705,80 @@ end # # A processed notification message must not send a response back. They work like events. # -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:64 +# source://spoom//lib/spoom/sorbet/lsp/base.rb#64 class Spoom::LSP::Notification < ::Spoom::LSP::Message - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:74 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#74 sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(method, params); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:68 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#68 sig { returns(::String) } def method; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:71 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#71 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:50 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#50 class Spoom::LSP::Position < ::T::Struct include ::Spoom::LSP::PrintableSymbol - const :char, ::Integer const :line, ::Integer + const :char, ::Integer - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:70 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#70 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:75 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#75 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:61 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#61 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end # @abstract Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:9 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 module Spoom::LSP::PrintableSymbol interface! # @abstract # - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:16 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:80 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#80 class Spoom::LSP::Range < ::T::Struct include ::Spoom::LSP::PrintableSymbol - const :end, ::Spoom::LSP::Position const :start, ::Spoom::LSP::Position + const :end, ::Spoom::LSP::Position - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:100 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#100 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:107 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#107 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:91 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end @@ -1773,75 +1787,75 @@ end # # Every processed request must send a response back to the sender of the request. # -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:40 +# source://spoom//lib/spoom/sorbet/lsp/base.rb#40 class Spoom::LSP::Request < ::Spoom::LSP::Message - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:53 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#53 sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(id, method, params); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:44 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#44 sig { returns(::Integer) } def id; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:47 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#47 sig { returns(::String) } def method; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/base.rb:50 + # source://spoom//lib/spoom/sorbet/lsp/base.rb#50 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:40 +# source://spoom//lib/spoom/sorbet/lsp/errors.rb#40 class Spoom::LSP::ResponseError < ::Spoom::LSP::Error - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:63 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#63 sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } def initialize(code, message, data); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:44 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#44 sig { returns(::Integer) } def code; end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:47 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#47 sig { returns(T::Hash[T.untyped, T.untyped]) } def data; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/errors.rb:53 + # source://spoom//lib/spoom/sorbet/lsp/errors.rb#53 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } def from_json(json); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:143 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#143 class Spoom::LSP::SignatureHelp < ::T::Struct include ::Spoom::LSP::PrintableSymbol - const :doc, ::Object const :label, T.nilable(::String) + const :doc, ::Object const :params, T::Array[T.untyped] - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:165 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:173 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#173 sig { returns(::String) } def to_s; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:155 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:306 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#306 class Spoom::LSP::SymbolPrinter < ::Spoom::Printer - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:323 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#323 sig do params( out: T.any(::IO, ::StringIO), @@ -1852,83 +1866,83 @@ class Spoom::LSP::SymbolPrinter < ::Spoom::Printer end def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:345 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#345 sig { params(uri: ::String).returns(::String) } def clean_uri(uri); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:313 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 sig { returns(T.nilable(::String)) } def prefix; end # @return [String, nil] # - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:313 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#313 def prefix=(_arg0); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:353 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#353 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_list(objects); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:333 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#333 sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } def print_object(object); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:340 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#340 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_objects(objects); end - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:310 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#310 sig { returns(T::Set[::Integer]) } def seen; end # @return [Set] # - # source://spoom-1.1.12/lib/spoom/sorbet/lsp/structures.rb:310 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#310 def seen=(_arg0); end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://spoom-1.1.12/lib/spoom/printer.rb:7 +# source://spoom//lib/spoom/printer.rb#7 class Spoom::Printer include ::Spoom::Colorize abstract! - # source://spoom-1.1.12/lib/spoom/printer.rb:19 + # source://spoom//lib/spoom/printer.rb#19 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end # Colorize `string` with color if `@colors` # - # source://spoom-1.1.12/lib/spoom/printer.rb:80 + # source://spoom//lib/spoom/printer.rb#80 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Decrease indent level # - # source://spoom-1.1.12/lib/spoom/printer.rb:33 + # source://spoom//lib/spoom/printer.rb#33 sig { void } def dedent; end # Increase indent level # - # source://spoom-1.1.12/lib/spoom/printer.rb:27 + # source://spoom//lib/spoom/printer.rb#27 sig { void } def indent; end - # source://spoom-1.1.12/lib/spoom/printer.rb:16 + # source://spoom//lib/spoom/printer.rb#16 sig { returns(T.any(::IO, ::StringIO)) } def out; end # @return [IO, StringIO] # - # source://spoom-1.1.12/lib/spoom/printer.rb:16 + # source://spoom//lib/spoom/printer.rb#16 def out=(_arg0); end # Print `string` into `out` # - # source://spoom-1.1.12/lib/spoom/printer.rb:39 + # source://spoom//lib/spoom/printer.rb#39 sig { params(string: T.nilable(::String)).void } def print(string); end @@ -1936,36 +1950,36 @@ class Spoom::Printer # # Does not use colors unless `@colors`. # - # source://spoom-1.1.12/lib/spoom/printer.rb:49 + # source://spoom//lib/spoom/printer.rb#49 sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } def print_colored(string, *color); end # Print `string` with indent and newline # - # source://spoom-1.1.12/lib/spoom/printer.rb:64 + # source://spoom//lib/spoom/printer.rb#64 sig { params(string: T.nilable(::String)).void } def printl(string); end # Print a new line into `out` # - # source://spoom-1.1.12/lib/spoom/printer.rb:58 + # source://spoom//lib/spoom/printer.rb#58 sig { void } def printn; end # Print an indent space into `out` # - # source://spoom-1.1.12/lib/spoom/printer.rb:74 + # source://spoom//lib/spoom/printer.rb#74 sig { void } def printt; end end -# source://spoom-1.1.12/lib/spoom.rb:10 +# source://spoom//lib/spoom.rb#10 Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/config.rb:5 +# source://spoom//lib/spoom/sorbet/config.rb#5 module Spoom::Sorbet class << self - # source://spoom-1.1.12/lib/spoom/sorbet.rb:31 + # source://spoom//lib/spoom/sorbet.rb#31 sig do params( arg: ::String, @@ -1978,11 +1992,11 @@ module Spoom::Sorbet # List all files typechecked by Sorbet from its `config` # - # source://spoom-1.1.12/lib/spoom/sorbet.rb:55 + # source://spoom//lib/spoom/sorbet.rb#55 sig { params(config: ::Spoom::Sorbet::Config, path: ::String).returns(T::Array[::String]) } def srb_files(config, path: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet.rb:93 + # source://spoom//lib/spoom/sorbet.rb#93 sig do params( arg: ::String, @@ -1993,7 +2007,7 @@ module Spoom::Sorbet end def srb_metrics(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet.rb:48 + # source://spoom//lib/spoom/sorbet.rb#48 sig do params( arg: ::String, @@ -2004,7 +2018,7 @@ module Spoom::Sorbet end def srb_tc(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet.rb:71 + # source://spoom//lib/spoom/sorbet.rb#71 sig do params( arg: ::String, @@ -2019,16 +2033,16 @@ module Spoom::Sorbet # # Returns `nil` if `gem` cannot be found in the Gemfile. # - # source://spoom-1.1.12/lib/spoom/sorbet.rb:116 + # source://spoom//lib/spoom/sorbet.rb#116 sig { params(gem: ::String, path: ::String).returns(T.nilable(::String)) } def version_from_gemfile_lock(gem: T.unsafe(nil), path: T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/sorbet.rb:16 +# source://spoom//lib/spoom/sorbet.rb#16 Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet.rb:14 +# source://spoom//lib/spoom/sorbet.rb#14 Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) # Parse Sorbet config files @@ -2052,33 +2066,33 @@ Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) # puts config.ignore # "c" # ``` # -# source://spoom-1.1.12/lib/spoom/sorbet/config.rb:26 +# source://spoom//lib/spoom/sorbet/config.rb#26 class Spoom::Sorbet::Config - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:36 + # source://spoom//lib/spoom/sorbet/config.rb#36 sig { void } def initialize; end # @return [Array] # - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:30 + # source://spoom//lib/spoom/sorbet/config.rb#30 def allowed_extensions; end - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:44 + # source://spoom//lib/spoom/sorbet/config.rb#44 sig { returns(::Spoom::Sorbet::Config) } def copy; end # @return [Array] # - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:30 + # source://spoom//lib/spoom/sorbet/config.rb#30 def ignore; end - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:33 + # source://spoom//lib/spoom/sorbet/config.rb#33 sig { returns(T::Boolean) } def no_stdlib; end # @return [Boolean] # - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:33 + # source://spoom//lib/spoom/sorbet/config.rb#33 def no_stdlib=(_arg0); end # Returns self as a string of options that can be passed to Sorbet @@ -2094,48 +2108,48 @@ class Spoom::Sorbet::Config # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" # ~~~ # - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:66 + # source://spoom//lib/spoom/sorbet/config.rb#66 sig { returns(::String) } def options_string; end - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:30 + # source://spoom//lib/spoom/sorbet/config.rb#30 sig { returns(T::Array[::String]) } def paths; end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:79 + # source://spoom//lib/spoom/sorbet/config.rb#79 sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } def parse_file(sorbet_config_path); end - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:84 + # source://spoom//lib/spoom/sorbet/config.rb#84 sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } def parse_string(sorbet_config); end private - # source://spoom-1.1.12/lib/spoom/sorbet/config.rb:148 + # source://spoom//lib/spoom/sorbet/config.rb#148 sig { params(line: ::String).returns(::String) } def parse_option(line); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:6 +# source://spoom//lib/spoom/sorbet/errors.rb#6 module Spoom::Sorbet::Errors class << self - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:13 + # source://spoom//lib/spoom/sorbet/errors.rb#13 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def sort_errors_by_code(errors); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:7 +# source://spoom//lib/spoom/sorbet/errors.rb#7 Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:122 +# source://spoom//lib/spoom/sorbet/errors.rb#122 class Spoom::Sorbet::Errors::Error include ::Comparable - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:148 + # source://spoom//lib/spoom/sorbet/errors.rb#148 sig do params( file: T.nilable(::String), @@ -2149,138 +2163,138 @@ class Spoom::Sorbet::Errors::Error # By default errors are sorted by location # - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:159 + # source://spoom//lib/spoom/sorbet/errors.rb#159 sig { params(other: T.untyped).returns(::Integer) } def <=>(other); end # @return [Integer, nil] # - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:130 + # source://spoom//lib/spoom/sorbet/errors.rb#130 def code; end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:127 + # source://spoom//lib/spoom/sorbet/errors.rb#127 sig { returns(T.nilable(::String)) } def file; end # Other files associated with the error # - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:137 + # source://spoom//lib/spoom/sorbet/errors.rb#137 sig { returns(T::Set[::String]) } def files_from_error_sections; end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:130 + # source://spoom//lib/spoom/sorbet/errors.rb#130 sig { returns(T.nilable(::Integer)) } def line; end # @return [String, nil] # - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:127 + # source://spoom//lib/spoom/sorbet/errors.rb#127 def message; end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:133 + # source://spoom//lib/spoom/sorbet/errors.rb#133 sig { returns(T::Array[::String]) } def more; end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:166 + # source://spoom//lib/spoom/sorbet/errors.rb#166 sig { returns(::String) } def to_s; end end # Parse errors from Sorbet output # -# source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:18 +# source://spoom//lib/spoom/sorbet/errors.rb#18 class Spoom::Sorbet::Errors::Parser - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:40 + # source://spoom//lib/spoom/sorbet/errors.rb#40 sig { params(error_url_base: ::String).void } def initialize(error_url_base: T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:47 + # source://spoom//lib/spoom/sorbet/errors.rb#47 sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse(output); end private - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:111 + # source://spoom//lib/spoom/sorbet/errors.rb#111 sig { params(line: ::String).void } def append_error(line); end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:103 + # source://spoom//lib/spoom/sorbet/errors.rb#103 sig { void } def close_error; end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:70 + # source://spoom//lib/spoom/sorbet/errors.rb#70 sig { params(error_url_base: ::String).returns(::Regexp) } def error_line_match_regexp(error_url_base); end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:87 + # source://spoom//lib/spoom/sorbet/errors.rb#87 sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } def match_error_line(line); end - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:96 + # source://spoom//lib/spoom/sorbet/errors.rb#96 sig { params(error: ::Spoom::Sorbet::Errors::Error).void } def open_error(error); end class << self - # source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:33 + # source://spoom//lib/spoom/sorbet/errors.rb#33 sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse_string(output, error_url_base: T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/errors.rb:21 +# source://spoom//lib/spoom/sorbet/errors.rb#21 Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) -# source://spoom-1.1.12/lib/spoom/sorbet.rb:15 +# source://spoom//lib/spoom/sorbet.rb#15 Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/metrics.rb:8 +# source://spoom//lib/spoom/sorbet/metrics.rb#8 module Spoom::Sorbet::MetricsParser class << self - # source://spoom-1.1.12/lib/spoom/sorbet/metrics.rb:15 + # source://spoom//lib/spoom/sorbet/metrics.rb#15 sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_file(path, prefix = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet/metrics.rb:25 + # source://spoom//lib/spoom/sorbet/metrics.rb#25 sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_hash(obj, prefix = T.unsafe(nil)); end - # source://spoom-1.1.12/lib/spoom/sorbet/metrics.rb:20 + # source://spoom//lib/spoom/sorbet/metrics.rb#20 sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_string(string, prefix = T.unsafe(nil)); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/metrics.rb:9 +# source://spoom//lib/spoom/sorbet/metrics.rb#9 Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet.rb:18 +# source://spoom//lib/spoom/sorbet.rb#18 Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:9 +# source://spoom//lib/spoom/sorbet/sigils.rb#9 module Spoom::Sorbet::Sigils class << self # changes the sigil in the file at the passed path to the specified new strictness # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:69 + # source://spoom//lib/spoom/sorbet/sigils.rb#69 sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } def change_sigil_in_file(path, new_strictness); end # changes the sigil to have a new strictness in a list of files # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:80 + # source://spoom//lib/spoom/sorbet/sigils.rb#80 sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } def change_sigil_in_files(path_list, new_strictness); end # returns a string containing the strictness of a sigil in a file at the passed path # * returns nil if no sigil # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:60 + # source://spoom//lib/spoom/sorbet/sigils.rb#60 sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } def file_strictness(path); end # finds all files in the specified directory with the passed strictness # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:94 + # source://spoom//lib/spoom/sorbet/sigils.rb#94 sig do params( directory: T.any(::Pathname, ::String), @@ -2292,78 +2306,78 @@ module Spoom::Sorbet::Sigils # returns the full sigil comment string for the passed strictness # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:35 + # source://spoom//lib/spoom/sorbet/sigils.rb#35 sig { params(strictness: ::String).returns(::String) } def sigil_string(strictness); end # returns the strictness of a sigil in the passed file content string (nil if no sigil) # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:47 + # source://spoom//lib/spoom/sorbet/sigils.rb#47 sig { params(content: ::String).returns(T.nilable(::String)) } def strictness_in_content(content); end # returns a string which is the passed content but with the sigil updated to a new strictness # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:53 + # source://spoom//lib/spoom/sorbet/sigils.rb#53 sig { params(content: ::String, new_strictness: ::String).returns(::String) } def update_sigil(content, new_strictness); end # returns true if the passed string is a valid strictness (else false) # - # source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:41 + # source://spoom//lib/spoom/sorbet/sigils.rb#41 sig { params(strictness: ::String).returns(T::Boolean) } def valid_strictness?(strictness); end end end -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:28 +# source://spoom//lib/spoom/sorbet/sigils.rb#28 Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:13 +# source://spoom//lib/spoom/sorbet/sigils.rb#13 Spoom::Sorbet::Sigils::STRICTNESS_FALSE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:12 +# source://spoom//lib/spoom/sorbet/sigils.rb#12 Spoom::Sorbet::Sigils::STRICTNESS_IGNORE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:17 +# source://spoom//lib/spoom/sorbet/sigils.rb#17 Spoom::Sorbet::Sigils::STRICTNESS_INTERNAL = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:15 +# source://spoom//lib/spoom/sorbet/sigils.rb#15 Spoom::Sorbet::Sigils::STRICTNESS_STRICT = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:16 +# source://spoom//lib/spoom/sorbet/sigils.rb#16 Spoom::Sorbet::Sigils::STRICTNESS_STRONG = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:14 +# source://spoom//lib/spoom/sorbet/sigils.rb#14 Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) -# source://spoom-1.1.12/lib/spoom/sorbet/sigils.rb:19 +# source://spoom//lib/spoom/sorbet/sigils.rb#19 Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) -# source://spoom-1.1.12/lib/spoom/timeline.rb:7 +# source://spoom//lib/spoom/timeline.rb#7 class Spoom::Timeline - # source://spoom-1.1.12/lib/spoom/timeline.rb:11 + # source://spoom//lib/spoom/timeline.rb#11 sig { params(from: ::Time, to: ::Time, path: ::String).void } def initialize(from, to, path: T.unsafe(nil)); end # Return one commit for each date in `dates` # - # source://spoom-1.1.12/lib/spoom/timeline.rb:38 - sig { params(dates: T::Array[::Time]).returns(T::Array[::String]) } + # source://spoom//lib/spoom/timeline.rb#38 + sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } def commits_for_dates(dates); end # Return all months between `from` and `to` # - # source://spoom-1.1.12/lib/spoom/timeline.rb:25 + # source://spoom//lib/spoom/timeline.rb#25 sig { returns(T::Array[::Time]) } def months; end # Return one commit for each month between `from` and `to` # - # source://spoom-1.1.12/lib/spoom/timeline.rb:19 - sig { returns(T::Array[::String]) } + # source://spoom//lib/spoom/timeline.rb#19 + sig { returns(T::Array[::Spoom::Git::Commit]) } def ticks; end end -# source://spoom-1.1.12/lib/spoom/version.rb:5 +# source://spoom//lib/spoom/version.rb#5 Spoom::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/tapioca@0.9.4.rbi b/sorbet/rbi/gems/tapioca@0.10.5.rbi similarity index 59% rename from sorbet/rbi/gems/tapioca@0.9.4.rbi rename to sorbet/rbi/gems/tapioca@0.10.5.rbi index cfd74a1c..5a3e0533 100644 --- a/sorbet/rbi/gems/tapioca@0.9.4.rbi +++ b/sorbet/rbi/gems/tapioca@0.10.5.rbi @@ -15,27 +15,27 @@ end # That's because RubyGems does alias-method-chain for Kernel#require and such, # so, if Bootsnap were to do prepend, it might end up breaking RubyGems. # -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:65 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#68 class Module - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:78 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#101 def append_features(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:68 + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#71 def autoload(const_name, path); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:90 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#111 def extend_object(obj); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:66 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#91 def prepend_features(constant); end end -# source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:4 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#4 module RBI; end -# source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:5 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi-0.0.15/lib/rbi/model.rb:115 + # source://rbi/0.0.16/lib/rbi/model.rb#115 sig do params( loc: T.nilable(::RBI::Loc), @@ -45,23 +45,23 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi-0.0.15/lib/rbi/model.rb:122 + # source://rbi/0.0.16/lib/rbi/model.rb#122 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi-0.0.15/lib/rbi/printer.rb:224 + # source://rbi/0.0.16/lib/rbi/printer.rb#224 sig { override.params(v: ::RBI::Printer).void } def accept_printer(v); end - # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:66 + # source://rbi/0.0.16/lib/rbi/rewriters/add_sig_templates.rb#66 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:48 + # source://rbi/0.0.16/lib/rbi/rewriters/annotate.rb#48 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:38 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -71,43 +71,44 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:45 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:55 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:50 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:88 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#89 sig do params( name: ::String, parameters: T::Array[::RBI::TypedParam], return_type: ::String, class_method: T::Boolean, - visibility: ::RBI::Visibility + visibility: ::RBI::Visibility, + comments: T::Array[::RBI::Comment] ).void end - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:60 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:25 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#25 sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_module(name, &block); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:9 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#9 sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).void } def create_path(constant, &block); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:74 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -120,23 +121,23 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:40 + # source://rbi/0.0.16/lib/rbi/rewriters/deannotate.rb#40 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi-0.0.15/lib/rbi/model.rb:128 + # source://rbi/0.0.16/lib/rbi/model.rb#128 sig { returns(T::Boolean) } def empty?; end - # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:38 + # source://rbi/0.0.16/lib/rbi/rewriters/group_nodes.rb#38 sig { void } def group_nodes!; end - # source://rbi-0.0.15/lib/rbi/index.rb:64 + # source://rbi/0.0.16/lib/rbi/index.rb#64 sig { returns(::RBI::Index) } def index; end - # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:318 + # source://rbi/0.0.16/lib/rbi/rewriters/merge_trees.rb#318 sig do params( other: ::RBI::Tree, @@ -147,60 +148,60 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:45 + # source://rbi/0.0.16/lib/rbi/rewriters/nest_non_public_methods.rb#45 sig { void } def nest_non_public_methods!; end - # source://rbi-0.0.15/lib/rbi/rewriters/nest_singleton_methods.rb:35 + # source://rbi/0.0.16/lib/rbi/rewriters/nest_singleton_methods.rb#35 sig { void } def nest_singleton_methods!; end - # source://rbi-0.0.15/lib/rbi/model.rb:106 + # source://rbi/0.0.16/lib/rbi/model.rb#106 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi-0.0.15/lib/rbi/printer.rb:231 + # source://rbi/0.0.16/lib/rbi/printer.rb#231 sig { override.returns(T::Boolean) } def oneline?; end - # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:105 + # source://rbi/0.0.16/lib/rbi/rewriters/sort_nodes.rb#107 sig { void } def sort_nodes!; end private - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:108 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#116 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:103 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#111 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:118 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#126 class RBI::TypedParam < ::T::Struct const :param, ::RBI::Param const :type, ::String class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://rbi-0.0.15/lib/rbi/version.rb:5 +# source://rbi/0.0.16/lib/rbi/version.rb#5 RBI::VERSION = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:5 +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#5 module T::Generic - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:13 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13 def [](*types); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:21 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#21 def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:37 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#37 def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end end @@ -211,107 +212,99 @@ end # We are interested in the data of the `[]`, `type_member` and `type_template` calls which # are all needed to generate good generic information at runtime. # -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:12 +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#12 module T::Generic::TypeStoragePatch - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:13 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#13 def [](*types); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:21 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#21 def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:37 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#37 def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:28 +# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#28 module T::Private::Methods class << self - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:30 + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#30 def finalize_proc(decl); end end end -# source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:29 +# source://sorbet-runtime/0.5.10611/lib/types/private/methods/_methods.rb#29 T::Private::Methods::ARG_NOT_PROVIDED = T.let(T.unsafe(nil), Object) -# source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:30 +# source://sorbet-runtime/0.5.10611/lib/types/private/methods/_methods.rb#30 T::Private::Methods::PROC_TYPE = T.let(T.unsafe(nil), Object) -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:29 +# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#29 module T::Private::Methods::ProcBindPatch - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:30 + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#30 def finalize_proc(decl); end end -# source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:581 +# source://sorbet-runtime/0.5.10611/lib/types/private/methods/_methods.rb#581 T::Private::Methods::TOP_SELF = T.let(T.unsafe(nil), Object) class T::Types::Proc < ::T::Types::Base; end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:6 +# source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#6 module T::Types::ProcBindPatch - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:7 + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#7 def initialize(arg_types, returns, bind = T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:15 + # source://tapioca//lib/tapioca/sorbet_ext/proc_bind_patch.rb#15 def name; end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:6 +# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#6 class T::Types::Simple < ::T::Types::Base - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:64 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#64 def name; end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:59 +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#59 module T::Types::Simple::GenericPatch # This method intercepts calls to the `name` method for simple types, so that # it can ask the name to the type if the type is generic, since, by this point, # we've created a clone of that type with the `name` method returning the # appropriate name for that specific concrete type. # - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:64 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#64 def name; end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:7 +# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#7 module T::Types::Simple::NamePatch - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:10 + # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#10 def name; end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:16 + # source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#16 def qualified_name_of(constant); end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:8 +# source://tapioca//lib/tapioca/sorbet_ext/name_patch.rb#8 T::Types::Simple::NamePatch::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:80 -module T::Utils +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#84 +module T::Utils::Private class << self - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:82 - def coerce(val); end + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#86 + def coerce_and_check_module_types(val, check_val, check_module_type); end end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:81 -module T::Utils::CoercePatch - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:82 - def coerce(val); end +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#85 +module T::Utils::Private::PrivateCoercePatch + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#86 + def coerce_and_check_module_types(val, check_val, check_module_type); end end -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:4 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4 module Tapioca class << self - # source://tapioca-0.9.4/lib/tapioca.rb:17 - sig { void } - def disable_traces; end - - # source://tapioca-0.9.4/lib/tapioca.rb:12 - sig { params(trace_name: ::Symbol, block: T.proc.params(arg0: ::TracePoint).void).void } - def register_trace(trace_name, &block); end - - # source://tapioca-0.9.4/lib/tapioca.rb:26 + # source://tapioca//lib/tapioca.rb#19 sig do type_parameters(:Result) .params( @@ -322,88 +315,88 @@ module Tapioca end end -# source://tapioca-0.9.4/lib/tapioca.rb:43 +# source://tapioca//lib/tapioca.rb#37 Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:63 +# source://tapioca//lib/tapioca.rb#60 Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:62 +# source://tapioca//lib/tapioca.rb#59 Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:61 +# source://tapioca//lib/tapioca.rb#58 Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/cli.rb:5 +# source://tapioca//lib/tapioca/cli.rb#5 class Tapioca::Cli < ::Thor include ::Tapioca::CliHelper include ::Tapioca::ConfigHelper include ::Tapioca::EnvHelper - # source://tapioca-0.9.4/lib/tapioca/cli.rb:323 + # source://tapioca//lib/tapioca/cli.rb#332 def __print_version; end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:306 + # source://tapioca//lib/tapioca/cli.rb#312 def annotations; end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:279 + # source://tapioca//lib/tapioca/cli.rb#282 def check_shims; end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:36 + # source://tapioca//lib/tapioca/cli.rb#41 def configure; end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:119 + # source://tapioca//lib/tapioca/cli.rb#133 def dsl(*constants); end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:224 + # source://tapioca//lib/tapioca/cli.rb#234 def gem(*gems); end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:25 + # source://tapioca//lib/tapioca/cli.rb#27 def init; end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:47 + # source://tapioca//lib/tapioca/cli.rb#52 def require; end - # source://tapioca-0.9.4/lib/tapioca/cli.rb:66 + # source://tapioca//lib/tapioca/cli.rb#71 def todo; end private - # source://tapioca-0.9.4/lib/tapioca/cli.rb:335 + # source://tapioca//lib/tapioca/cli.rb#346 def print_init_next_steps; end class << self - # source://tapioca-0.9.4/lib/tapioca/cli.rb:328 + # source://tapioca//lib/tapioca/cli.rb#338 def exit_on_failure?; end end end -# source://tapioca-0.9.4/lib/tapioca/cli.rb:10 +# source://tapioca//lib/tapioca/cli.rb#10 Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:5 +# source://tapioca//lib/tapioca/helpers/cli_helper.rb#5 module Tapioca::CliHelper requires_ancestor { Thor::Shell } - # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:33 + # source://tapioca//lib/tapioca/helpers/cli_helper.rb#33 sig { params(options: T::Hash[::Symbol, T.untyped]).returns(T.nilable(::String)) } def netrc_file(options); end - # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:26 + # source://tapioca//lib/tapioca/helpers/cli_helper.rb#26 sig { params(options: T::Hash[::Symbol, T.untyped]).returns(::Tapioca::RBIFormatter) } def rbi_formatter(options); end - # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:12 + # source://tapioca//lib/tapioca/helpers/cli_helper.rb#12 sig { params(message: ::String, color: T.any(::Symbol, T::Array[::Symbol])).void } def say_error(message = T.unsafe(nil), *color); end end -# source://tapioca-0.9.4/lib/tapioca/commands.rb:5 +# source://tapioca//lib/tapioca/commands.rb#5 module Tapioca::Commands; end -# source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:6 -class Tapioca::Commands::Annotations < ::Tapioca::Commands::Command - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:18 +# source://tapioca//lib/tapioca/commands/annotations.rb#6 +class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracker + # source://tapioca//lib/tapioca/commands/annotations.rb#18 sig do params( central_repo_root_uris: T::Array[::String], @@ -415,79 +408,79 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::Command end def initialize(central_repo_root_uris:, auth: T.unsafe(nil), netrc_file: T.unsafe(nil), central_repo_index_path: T.unsafe(nil), typed_overrides: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:36 + # source://tapioca//lib/tapioca/commands/annotations.rb#36 sig { override.void } def execute; end private - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:191 + # source://tapioca//lib/tapioca/commands/annotations.rb#191 sig { params(name: ::String, content: ::String).returns(::String) } def add_header(name, content); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:209 + # source://tapioca//lib/tapioca/commands/annotations.rb#209 sig { params(name: ::String, content: ::String).returns(::String) } def apply_typed_override(name, content); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:132 + # source://tapioca//lib/tapioca/commands/annotations.rb#132 sig { params(repo_uris: T::Array[::String], gem_name: ::String).void } def fetch_annotation(repo_uris, gem_name); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:109 + # source://tapioca//lib/tapioca/commands/annotations.rb#109 sig { params(gem_names: T::Array[::String]).returns(T::Array[::String]) } def fetch_annotations(gem_names); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:150 + # source://tapioca//lib/tapioca/commands/annotations.rb#150 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_file(repo_uri, path); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:167 + # source://tapioca//lib/tapioca/commands/annotations.rb#167 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_http_file(repo_uri, path); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:98 + # source://tapioca//lib/tapioca/commands/annotations.rb#98 sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) } def fetch_index(repo_uri, repo_number:); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:77 + # source://tapioca//lib/tapioca/commands/annotations.rb#77 sig { returns(T::Hash[::String, Tapioca::RepoIndex]) } def fetch_indexes; end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:159 + # source://tapioca//lib/tapioca/commands/annotations.rb#159 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_local_file(repo_uri, path); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:46 + # source://tapioca//lib/tapioca/commands/annotations.rb#46 sig { returns(T::Array[::String]) } def list_gemfile_gems; end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:221 + # source://tapioca//lib/tapioca/commands/annotations.rb#221 sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) } def merge_files(gem_name, contents); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:56 + # source://tapioca//lib/tapioca/commands/annotations.rb#56 sig { params(project_gems: T::Array[::String]).void } def remove_expired_annotations(project_gems); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:248 + # source://tapioca//lib/tapioca/commands/annotations.rb#248 sig { returns(T::Hash[::String, T.nilable(::String)]) } def repo_tokens; end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:276 + # source://tapioca//lib/tapioca/commands/annotations.rb#276 sig { params(path: ::String, repo_uri: ::String, message: ::String).void } def say_http_error(path, repo_uri, message:); end - # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:260 + # source://tapioca//lib/tapioca/commands/annotations.rb#260 sig { params(repo_uri: ::String).returns(T.nilable(::String)) } def token_for(repo_uri); end end -# source://tapioca-0.9.4/lib/tapioca/commands/check_shims.rb:6 -class Tapioca::Commands::CheckShims < ::Tapioca::Commands::Command +# source://tapioca//lib/tapioca/commands/check_shims.rb#6 +class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper include ::Tapioca::RBIFilesHelper - # source://tapioca-0.9.4/lib/tapioca/commands/check_shims.rb:22 + # source://tapioca//lib/tapioca/commands/check_shims.rb#22 sig do params( gem_rbi_dir: ::String, @@ -501,14 +494,14 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::Command end def initialize(gem_rbi_dir:, dsl_rbi_dir:, annotations_rbi_dir:, shim_rbi_dir:, todo_rbi_file:, payload:, number_of_workers:); end - # source://tapioca-0.9.4/lib/tapioca/commands/check_shims.rb:42 + # source://tapioca//lib/tapioca/commands/check_shims.rb#42 sig { override.void } def execute; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://tapioca-0.9.4/lib/tapioca/commands/command.rb:6 +# source://tapioca//lib/tapioca/commands/command.rb#6 class Tapioca::Commands::Command include ::Thor::Base include ::Thor::Invocation @@ -519,23 +512,23 @@ class Tapioca::Commands::Command abstract! - # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:20 + # source://tapioca//lib/tapioca/commands/command.rb#20 sig { void } def initialize; end # @abstract # - # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:25 + # source://tapioca//lib/tapioca/commands/command.rb#25 sig { abstract.void } def execute; end - # source://thor-1.2.1/lib/thor/base.rb:139 + # source://thor/1.2.1/lib/thor/base.rb#139 sig { returns(::Thor::Actions) } def file_writer; end private - # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:46 + # source://tapioca//lib/tapioca/commands/command.rb#46 sig do params( path: T.any(::Pathname, ::String), @@ -547,64 +540,75 @@ class Tapioca::Commands::Command end def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:30 + # source://tapioca//lib/tapioca/commands/command.rb#30 sig { params(command: ::Symbol, args: ::String).returns(::String) } def default_command(command, *args); end - # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:56 + # source://tapioca//lib/tapioca/commands/command.rb#56 sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void } def remove_file(path, verbose: T.unsafe(nil)); end end -# source://tapioca-0.9.4/lib/tapioca/commands/command.rb:10 +# source://tapioca//lib/tapioca/commands/command.rb#10 class Tapioca::Commands::Command::FileWriter < ::Thor include ::Thor::Actions extend ::Thor::Actions::ClassMethods end -# source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:6 -class Tapioca::Commands::Configure < ::Tapioca::Commands::Command - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:14 +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/commands/command_without_tracker.rb#6 +class Tapioca::Commands::CommandWithoutTracker < ::Tapioca::Commands::Command + abstract! + + # source://tapioca//lib/tapioca/commands/command_without_tracker.rb#12 + sig { void } + def initialize; end +end + +# source://tapioca//lib/tapioca/commands/configure.rb#6 +class Tapioca::Commands::Configure < ::Tapioca::Commands::CommandWithoutTracker + # source://tapioca//lib/tapioca/commands/configure.rb#14 sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void } def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:30 + # source://tapioca//lib/tapioca/commands/configure.rb#30 sig { override.void } def execute; end private - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:78 + # source://tapioca//lib/tapioca/commands/configure.rb#78 sig { void } def create_binstub; end - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:68 + # source://tapioca//lib/tapioca/commands/configure.rb#68 sig { void } def create_post_require; end - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:40 + # source://tapioca//lib/tapioca/commands/configure.rb#40 sig { void } def create_sorbet_config; end - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:49 + # source://tapioca//lib/tapioca/commands/configure.rb#49 sig { void } def create_tapioca_config; end - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:91 + # source://tapioca//lib/tapioca/commands/configure.rb#91 sig { returns(::Bundler::Installer) } def installer; end - # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:96 - sig { returns(::Bundler::StubSpecification) } + # source://tapioca//lib/tapioca/commands/configure.rb#96 + sig { returns(T.any(::Bundler::StubSpecification, ::Gem::Specification)) } def spec; end end -# source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:6 -class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command +# source://tapioca//lib/tapioca/commands/dsl.rb#6 +class Tapioca::Commands::Dsl < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper include ::Tapioca::RBIFilesHelper - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:28 + # source://tapioca//lib/tapioca/commands/dsl.rb#28 sig do params( requested_constants: T::Array[::String], @@ -612,7 +616,6 @@ class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command only: T::Array[::String], exclude: T::Array[::String], file_header: T::Boolean, - compiler_path: ::String, tapioca_path: ::String, should_verify: T::Boolean, quiet: T::Boolean, @@ -620,26 +623,27 @@ class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command number_of_workers: T.nilable(::Integer), auto_strictness: T::Boolean, gem_dir: ::String, - rbi_formatter: ::Tapioca::RBIFormatter + rbi_formatter: ::Tapioca::RBIFormatter, + app_root: ::String ).void end - def initialize(requested_constants:, outpath:, only:, exclude:, file_header:, compiler_path:, tapioca_path:, should_verify: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end + def initialize(requested_constants:, outpath:, only:, exclude:, file_header:, tapioca_path:, should_verify: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil), app_root: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:65 + # source://tapioca//lib/tapioca/commands/dsl.rb#90 sig { override.void } def execute; end - private - - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:147 + # source://tapioca//lib/tapioca/commands/dsl.rb#63 sig { void } - def abort_if_pending_migrations!; end + def list_compilers; end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:324 + private + + # source://tapioca//lib/tapioca/commands/dsl.rb#317 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:248 + # source://tapioca//lib/tapioca/commands/dsl.rb#241 sig do params( constant_name: ::String, @@ -650,81 +654,69 @@ class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command end def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:186 + # source://tapioca//lib/tapioca/commands/dsl.rb#179 sig { params(constant_names: T::Array[::String]).returns(T::Array[::Module]) } def constantize(constant_names); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:209 + # source://tapioca//lib/tapioca/commands/dsl.rb#202 sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def constantize_compilers(compiler_names); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:287 + # source://tapioca//lib/tapioca/commands/dsl.rb#153 + sig { returns(::Tapioca::Dsl::Pipeline) } + def create_pipeline; end + + # source://tapioca//lib/tapioca/commands/dsl.rb#280 sig { params(constant_name: ::String).returns(::Pathname) } def dsl_rbi_filename(constant_name); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:173 + # source://tapioca//lib/tapioca/commands/dsl.rb#166 sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) } def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:382 + # source://tapioca//lib/tapioca/commands/dsl.rb#370 sig { params(constant: ::String).returns(::String) } def generate_command_for(constant); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:135 - sig { params(eager_load: T::Boolean).void } - def load_application(eager_load:); end - - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:158 - sig { void } - def load_dsl_compilers; end - - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:387 - sig { void } - def load_dsl_extensions; end - - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:360 - sig { returns(::Tapioca::Runtime::Loader) } - def loader; end - - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:266 + # source://tapioca//lib/tapioca/commands/dsl.rb#259 sig { params(dir: ::Pathname).void } def perform_dsl_verification(dir); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:275 + # source://tapioca//lib/tapioca/commands/dsl.rb#268 sig { params(files: T::Set[::Pathname]).void } def purge_stale_dsl_rbi_files(files); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:377 + # source://tapioca//lib/tapioca/commands/dsl.rb#365 sig { params(constant: ::String).returns(::String) } def rbi_filename_for(constant); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:353 + # source://tapioca//lib/tapioca/commands/dsl.rb#346 sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } def rbi_files_in(path); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:333 + # source://tapioca//lib/tapioca/commands/dsl.rb#326 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:228 + # source://tapioca//lib/tapioca/commands/dsl.rb#221 sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) } def resolve(name); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:365 + # source://tapioca//lib/tapioca/commands/dsl.rb#353 sig { params(class_name: ::String).returns(::String) } def underscore(class_name); end - # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:292 + # source://tapioca//lib/tapioca/commands/dsl.rb#285 sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } def verify_dsl_rbi(tmp_dir:); end end -# source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:6 +# source://tapioca//lib/tapioca/commands/gem.rb#6 class Tapioca::Commands::Gem < ::Tapioca::Commands::Command include ::Tapioca::SorbetHelper include ::Tapioca::RBIFilesHelper - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:28 + # source://tapioca//lib/tapioca/commands/gem.rb#28 sig do params( gem_names: T::Array[::String], @@ -745,166 +737,150 @@ class Tapioca::Commands::Gem < ::Tapioca::Commands::Command end def initialize(gem_names:, exclude:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:68 + # source://tapioca//lib/tapioca/commands/gem.rb#67 sig { override.void } def execute; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:101 + # source://tapioca//lib/tapioca/commands/gem.rb#105 sig { params(should_verify: T::Boolean, exclude: T::Array[::String]).void } def sync(should_verify: T.unsafe(nil), exclude: T.unsafe(nil)); end private - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:313 + # source://tapioca//lib/tapioca/commands/gem.rb#283 sig { returns(T::Array[::String]) } def added_rbis; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:374 + # source://tapioca//lib/tapioca/commands/gem.rb#344 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:140 - sig { returns(::Tapioca::Gemfile) } - def bundle; end - - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:180 + # source://tapioca//lib/tapioca/commands/gem.rb#154 sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } def compile_gem_rbi(gem); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:308 + # source://tapioca//lib/tapioca/commands/gem.rb#278 sig { params(gem_name: ::String).returns(::Pathname) } def existing_rbi(gem_name); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:356 + # source://tapioca//lib/tapioca/commands/gem.rb#326 sig { returns(T::Hash[::String, ::String]) } def existing_rbis; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:320 + # source://tapioca//lib/tapioca/commands/gem.rb#290 sig { params(gem_name: ::String).returns(::Pathname) } def expected_rbi(gem_name); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:362 + # source://tapioca//lib/tapioca/commands/gem.rb#332 sig { returns(T::Hash[::String, ::String]) } def expected_rbis; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:292 - sig { params(file: ::String, error: ::LoadError).void } - def explain_failed_require(file, error); end - - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:325 + # source://tapioca//lib/tapioca/commands/gem.rb#295 sig { params(gem_name: ::String).returns(T::Boolean) } def gem_rbi_exists?(gem_name); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:369 + # source://tapioca//lib/tapioca/commands/gem.rb#339 sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } def gem_rbi_filename(gem_name, version); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:165 + # source://tapioca//lib/tapioca/commands/gem.rb#139 sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } def gems_to_generate(gem_names); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:135 - sig { returns(::Tapioca::Runtime::Loader) } - def loader; end - - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:379 + # source://tapioca//lib/tapioca/commands/gem.rb#349 sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } def merge_with_exported_rbi(gem, file); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:350 + # source://tapioca//lib/tapioca/commands/gem.rb#320 sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } def move(old_filename, new_filename); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:255 + # source://tapioca//lib/tapioca/commands/gem.rb#231 sig { void } def perform_additions; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:228 + # source://tapioca//lib/tapioca/commands/gem.rb#204 sig { void } def perform_removals; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:209 + # source://tapioca//lib/tapioca/commands/gem.rb#185 sig { params(exclude: T::Array[::String]).void } def perform_sync_verification(exclude: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:303 + # source://tapioca//lib/tapioca/commands/gem.rb#273 sig { returns(T::Array[::String]) } def removed_rbis; end - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:330 + # source://tapioca//lib/tapioca/commands/gem.rb#300 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end - - # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:145 - sig { void } - def require_gem_file; end end -# source://tapioca-0.9.4/lib/tapioca/commands/require.rb:6 -class Tapioca::Commands::Require < ::Tapioca::Commands::Command - # source://tapioca-0.9.4/lib/tapioca/commands/require.rb:13 +# source://tapioca//lib/tapioca/commands/require.rb#6 +class Tapioca::Commands::Require < ::Tapioca::Commands::CommandWithoutTracker + # source://tapioca//lib/tapioca/commands/require.rb#13 sig { params(requires_path: ::String, sorbet_config_path: ::String).void } def initialize(requires_path:, sorbet_config_path:); end - # source://tapioca-0.9.4/lib/tapioca/commands/require.rb:21 + # source://tapioca//lib/tapioca/commands/require.rb#21 sig { override.void } def execute; end end -# source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:6 -class Tapioca::Commands::Todo < ::Tapioca::Commands::Command +# source://tapioca//lib/tapioca/commands/todo.rb#6 +class Tapioca::Commands::Todo < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper - # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:15 + # source://tapioca//lib/tapioca/commands/todo.rb#15 sig { params(todo_file: ::String, file_header: T::Boolean).void } def initialize(todo_file:, file_header:); end - # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:23 + # source://tapioca//lib/tapioca/commands/todo.rb#23 sig { override.void } def execute; end private - # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:49 + # source://tapioca//lib/tapioca/commands/todo.rb#49 sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) } def rbi(constants, command:); end - # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:69 + # source://tapioca//lib/tapioca/commands/todo.rb#69 sig { returns(T::Array[::String]) } def unresolved_constants; end end -# source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:5 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#5 module Tapioca::ConfigHelper requires_ancestor { Thor } - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:18 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#18 sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void } def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:12 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#12 sig { returns(::String) } def command_name; end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:15 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#15 sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } def defaults; end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:34 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#34 sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } def options; end private - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:151 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#151 sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } def build_error(msg); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:176 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#176 sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) } def build_error_message(config_file, errors); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:56 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#56 sig do params( options: ::Thor::CoreExt::HashWithIndifferentAccess @@ -912,11 +888,11 @@ module Tapioca::ConfigHelper end def config_options(options); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:46 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#46 sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } def filter_defaults(options); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:194 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#194 sig do params( options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) @@ -924,11 +900,11 @@ module Tapioca::ConfigHelper end def merge_options(*options); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:70 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#70 sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void } def validate_config!(config_file, config); end - # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:102 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#102 sig do params( command_options: T::Hash[::Symbol, ::Thor::Option], @@ -939,66 +915,66 @@ module Tapioca::ConfigHelper def validate_config_options(command_options, config_key, config_options); end end -# source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:146 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#146 class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:141 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#141 class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct - const :colors, T::Array[::Symbol] const :message, ::String + const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13 + # source://sorbet-runtime/0.5.10611/lib/types/struct.rb#13 def inherited(s); end end end -# source://tapioca-0.9.4/lib/tapioca.rb:50 +# source://tapioca//lib/tapioca.rb#44 Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:46 +# source://tapioca//lib/tapioca.rb#40 Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:59 +# source://tapioca//lib/tapioca.rb#56 Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:47 +# source://tapioca//lib/tapioca.rb#41 Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:52 +# source://tapioca//lib/tapioca.rb#46 Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) -# source://tapioca-0.9.4/lib/tapioca.rb:44 +# source://tapioca//lib/tapioca.rb#38 Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:45 +# source://tapioca//lib/tapioca.rb#39 Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:29 +# source://tapioca//lib/tapioca/rbi_formatter.rb#29 Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) -# source://tapioca-0.9.4/lib/tapioca.rb:58 +# source://tapioca//lib/tapioca.rb#55 Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) -# source://tapioca-0.9.4/lib/tapioca.rb:48 +# source://tapioca//lib/tapioca.rb#42 Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:49 +# source://tapioca//lib/tapioca.rb#43 Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:5 +# source://tapioca//lib/tapioca/dsl/compilers.rb#5 module Tapioca::Dsl; end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:6 +# source://tapioca//lib/tapioca/dsl/compiler.rb#6 class Tapioca::Dsl::Compiler extend T::Generic include ::Tapioca::SorbetHelper @@ -1010,91 +986,84 @@ class Tapioca::Dsl::Compiler ConstantType = type_member { { upper: Module } } - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:26 + # source://tapioca//lib/tapioca/dsl/compiler.rb#60 sig { params(pipeline: ::Tapioca::Dsl::Pipeline, root: ::RBI::Tree, constant: ConstantType).void } def initialize(pipeline, root, constant); end # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. # - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:59 + # source://tapioca//lib/tapioca/dsl/compiler.rb#77 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:39 + # source://tapioca//lib/tapioca/dsl/compiler.rb#68 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:20 + # source://tapioca//lib/tapioca/dsl/compiler.rb#20 sig { returns(ConstantType) } def constant; end # @abstract # - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:44 + # source://tapioca//lib/tapioca/dsl/compiler.rb#73 sig { abstract.void } def decorate; end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:23 + # source://tapioca//lib/tapioca/dsl/compiler.rb#23 sig { returns(::RBI::Tree) } def root; end private - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:163 - sig { params(type: ::String).returns(::String) } - def as_nilable_type(type); end - - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:117 + # source://tapioca//lib/tapioca/dsl/compiler.rb#126 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } def compile_method_parameters_to_rbi(method_def); end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:153 + # source://tapioca//lib/tapioca/dsl/compiler.rb#162 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } def compile_method_return_type_to_rbi(method_def); end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:107 + # source://tapioca//lib/tapioca/dsl/compiler.rb#116 sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end # Get the types of each parameter from a method signature # - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:84 + # source://tapioca//lib/tapioca/dsl/compiler.rb#90 sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } def parameters_types_from_signature(method_def, signature); end class << self # @abstract # - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:47 + # source://tapioca//lib/tapioca/dsl/compiler.rb#34 sig { abstract.returns(T::Enumerable[::Module]) } def gather_constants; end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:34 + # source://tapioca//lib/tapioca/dsl/compiler.rb#29 sig { params(constant: ::Module).returns(T::Boolean) } def handles?(constant); end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:50 + # source://tapioca//lib/tapioca/dsl/compiler.rb#37 sig { returns(T::Set[::Module]) } def processable_constants; end private - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:66 + # source://tapioca//lib/tapioca/dsl/compiler.rb#47 sig { returns(T::Enumerable[::Class]) } def all_classes; end - # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:72 + # source://tapioca//lib/tapioca/dsl/compiler.rb#53 sig { returns(T::Enumerable[::Module]) } def all_modules; end end end -# source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:6 +# source://tapioca//lib/tapioca/dsl/compilers.rb#6 module Tapioca::Dsl::Compilers; end -# source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:7 -Tapioca::Dsl::Compilers::DIRECTORY = T.let(T.unsafe(nil), String) - # DSL compilers are either built-in to Tapioca and live under the # `Tapioca::Dsl::Compilers` namespace (i.e. this namespace), and # can be referred to by just using the class name, or they live in @@ -1102,12 +1071,12 @@ Tapioca::Dsl::Compilers::DIRECTORY = T.let(T.unsafe(nil), String) # qualified name. This constant encapsulates that dual lookup when # a compiler needs to be resolved by name. # -# source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:18 +# source://tapioca//lib/tapioca/dsl/compilers.rb#13 Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) -# source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:6 +# source://tapioca//lib/tapioca/dsl/pipeline.rb#6 class Tapioca::Dsl::Pipeline - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:30 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#30 sig do params( requested_constants: T::Array[::Module], @@ -1119,31 +1088,35 @@ class Tapioca::Dsl::Pipeline end def initialize(requested_constants:, requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:82 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#10 + sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } + def active_compilers; end + + # source://tapioca//lib/tapioca/dsl/pipeline.rb#82 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:87 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#87 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:10 - sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } + # source://tapioca//lib/tapioca/dsl/pipeline.rb#96 + sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def compilers; end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:16 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#16 sig { returns(T.proc.params(error: ::String).void) } def error_handler; end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:19 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#19 sig { returns(T::Array[::String]) } def errors; end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:13 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#13 sig { returns(T::Array[::Module]) } def requested_constants; end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:52 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#52 sig do type_parameters(:T) .params( @@ -1154,50 +1127,50 @@ class Tapioca::Dsl::Pipeline private - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:120 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#128 sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) } def filter_anonymous_and_reloaded_constants(constants); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:103 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#111 sig do params( requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)] ).returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) end - def gather_compilers(requested_compilers, excluded_compilers); end + def gather_active_compilers(requested_compilers, excluded_compilers); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:111 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#119 sig { params(requested_constants: T::Array[::Module]).returns(T::Set[::Module]) } def gather_constants(requested_constants); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:145 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#156 sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } def rbi_for_constant(constant); end - # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:164 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#175 sig { params(error: ::String).returns(T.noreturn) } def report_error(error); end end -# source://tapioca-0.9.4/lib/tapioca/helpers/env_helper.rb:5 +# source://tapioca//lib/tapioca/helpers/env_helper.rb#5 module Tapioca::EnvHelper requires_ancestor { Thor } - # source://tapioca-0.9.4/lib/tapioca/helpers/env_helper.rb:12 + # source://tapioca//lib/tapioca/helpers/env_helper.rb#12 sig { params(options: T::Hash[::Symbol, T.untyped]).void } def set_environment(options); end end class Tapioca::Error < ::StandardError; end -# source://tapioca-0.9.4/lib/tapioca/executor.rb:5 +# source://tapioca//lib/tapioca/executor.rb#5 class Tapioca::Executor - # source://tapioca-0.9.4/lib/tapioca/executor.rb:11 + # source://tapioca//lib/tapioca/executor.rb#11 sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void } def initialize(queue, number_of_workers: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/executor.rb:28 + # source://tapioca//lib/tapioca/executor.rb#28 sig do type_parameters(:T) .params( @@ -1207,133 +1180,133 @@ class Tapioca::Executor def run_in_parallel(&block); end end -# source://tapioca-0.9.4/lib/tapioca/executor.rb:8 +# source://tapioca//lib/tapioca/executor.rb#8 Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:5 +# source://tapioca//lib/tapioca/gem/events.rb#5 module Tapioca::Gem; end -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:77 +# source://tapioca//lib/tapioca/gem/events.rb#77 class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:84 + # source://tapioca//lib/tapioca/gem/events.rb#84 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def initialize(symbol, constant, node); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:81 + # source://tapioca//lib/tapioca/gem/events.rb#81 sig { returns(::RBI::Const) } def node; end end -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:26 +# source://tapioca//lib/tapioca/gem/events.rb#26 class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:36 + # source://tapioca//lib/tapioca/gem/events.rb#36 sig { params(symbol: ::String, constant: ::BasicObject).void } def initialize(symbol, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:33 + # source://tapioca//lib/tapioca/gem/events.rb#33 sig { returns(::BasicObject) } def constant; end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:30 + # source://tapioca//lib/tapioca/gem/events.rb#30 sig { returns(::String) } def symbol; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:6 +# source://tapioca//lib/tapioca/gem/events.rb#6 class Tapioca::Gem::Event abstract! - # source://sorbet-runtime-0.5.10346/lib/types/private/abstract/declare.rb:37 + # source://sorbet-runtime/0.5.10611/lib/types/private/abstract/declare.rb#37 def initialize(*args, &blk); end end -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:43 +# source://tapioca//lib/tapioca/gem/events.rb#43 class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:52 + # source://tapioca//lib/tapioca/gem/events.rb#52 sig { params(symbol: ::String, constant: ::Module).void } def initialize(symbol, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:47 + # source://tapioca//lib/tapioca/gem/events.rb#47 sig { override.returns(::Module) } def constant; end end -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:103 +# source://tapioca//lib/tapioca/gem/events.rb#103 class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:6 +# source://tapioca//lib/tapioca/gem/listeners/base.rb#6 module Tapioca::Gem::Listeners; end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/base.rb#7 class Tapioca::Gem::Listeners::Base abstract! - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:14 + # source://tapioca//lib/tapioca/gem/listeners/base.rb#14 sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } def initialize(pipeline); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:19 + # source://tapioca//lib/tapioca/gem/listeners/base.rb#19 sig { params(event: ::Tapioca::Gem::NodeAdded).void } def dispatch(event); end private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:49 + # source://tapioca//lib/tapioca/gem/listeners/base.rb#49 sig { params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:37 + # source://tapioca//lib/tapioca/gem/listeners/base.rb#37 sig { params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:45 + # source://tapioca//lib/tapioca/gem/listeners/base.rb#45 sig { params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:41 + # source://tapioca//lib/tapioca/gem/listeners/base.rb#41 sig { params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/dynamic_mixins.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#7 class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/dynamic_mixins.rb:31 + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#31 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/dynamic_mixins.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#7 class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:59 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#60 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:54 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#55 sig { params(location: ::String).returns(T::Boolean) } def mixed_in_by_gem?(location); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/methods.rb#7 class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base include ::Tapioca::SorbetHelper include ::Tapioca::RBIHelper @@ -1341,11 +1314,11 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:34 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#34 sig { params(tree: ::RBI::Tree, module_name: ::String, mod: ::Module, for_visibility: T::Array[::Symbol]).void } def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:63 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#63 sig do params( tree: ::RBI::Tree, @@ -1357,15 +1330,15 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base end def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:191 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#191 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:184 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#184 sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } def initialize_method_for(constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:165 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#165 sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } def method_names_by_visibility(mod); end @@ -1379,26 +1352,26 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base # It walks up the ancestor tree via the `super_method` method; if any of the super # methods are owned by the constant, it means that the constant declares the method. # - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:151 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#151 sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) } def method_owned_by_constant?(method, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:16 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:174 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#174 sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) } def struct_method?(constant, method_name); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/mixins.rb#7 class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:42 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#42 sig do params( tree: ::RBI::Tree, @@ -1409,15 +1382,15 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base end def add_mixins(tree, constant, mods, mixin_type); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:88 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#84 sig { params(mixin_name: ::String).returns(T::Boolean) } def filtered_mixin?(mixin_name); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:95 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#91 sig { params(constant: ::Module).returns(T::Array[::Module]) } def interesting_ancestors_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:75 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#75 sig do params( constant: ::Module, @@ -1427,81 +1400,81 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base end def mixed_in_by_gem?(constant, mixin, mixin_type); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#7 class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:20 + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#20 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_enums.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#7 class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_enums.rb:25 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#25 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_enums.rb:13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#13 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_helpers.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#7 class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_helpers.rb:28 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#28 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_helpers.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_props.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#7 class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_props.rb:32 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#32 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_props.rb:13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#13 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#7 class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:23 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#23 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#13 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#7 class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection include ::Tapioca::SorbetHelper @@ -1509,119 +1482,119 @@ class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Bas private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:26 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#26 sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) } def compile_signature(signature, parameters); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:78 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#78 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:18 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#18 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:68 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#68 sig { params(signature: T.untyped).returns(T::Boolean) } def signature_final?(signature); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:13 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#13 Tapioca::Gem::Listeners::SorbetSignatures::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp) -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#7 class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:27 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#27 sig { params(tree: ::RBI::Tree, constant: ::Module).void } def compile_type_variable_declarations(tree, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:50 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#50 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/source_location.rb#7 class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:41 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#41 sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void } def add_source_location_comment(node, file, line); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:13 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#13 sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:35 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#35 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:19 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#19 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/subconstants.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#7 class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base include ::Tapioca::Runtime::Reflection private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/subconstants.rb:36 + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#36 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/subconstants.rb:15 + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:7 +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#7 class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:24 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#27 sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } def initialize(pipeline); end private - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:51 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#54 sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def documentation_comments(name, sigs: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:95 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#98 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:32 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#35 sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:42 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#45 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:37 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#40 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:10 +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#10 Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) -# source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:21 +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#24 Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array) -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:105 +# source://tapioca//lib/tapioca/gem/events.rb#105 class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:130 + # source://tapioca//lib/tapioca/gem/events.rb#130 sig do params( symbol: ::String, @@ -1634,85 +1607,85 @@ class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded end def initialize(symbol, constant, method, node, signature, parameters); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:109 + # source://tapioca//lib/tapioca/gem/events.rb#109 sig { returns(::UnboundMethod) } def method; end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:112 + # source://tapioca//lib/tapioca/gem/events.rb#112 sig { returns(::RBI::Method) } def node; end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:118 + # source://tapioca//lib/tapioca/gem/events.rb#118 sig { returns(T::Array[[::Symbol, ::String]]) } def parameters; end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:115 + # source://tapioca//lib/tapioca/gem/events.rb#115 sig { returns(T.untyped) } def signature; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:57 +# source://tapioca//lib/tapioca/gem/events.rb#57 class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event abstract! - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:70 + # source://tapioca//lib/tapioca/gem/events.rb#70 sig { params(symbol: ::String, constant: ::Module).void } def initialize(symbol, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:67 + # source://tapioca//lib/tapioca/gem/events.rb#67 sig { returns(::Module) } def constant; end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:64 + # source://tapioca//lib/tapioca/gem/events.rb#64 sig { returns(::String) } def symbol; end end -# source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:6 +# source://tapioca//lib/tapioca/gem/pipeline.rb#6 class Tapioca::Gem::Pipeline include ::Tapioca::Runtime::Reflection include ::Tapioca::SorbetHelper include ::Tapioca::RBIHelper - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:17 + # source://tapioca//lib/tapioca/gem/pipeline.rb#17 sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void } def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:48 + # source://tapioca//lib/tapioca/gem/pipeline.rb#48 sig { returns(::RBI::Tree) } def compile; end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:14 + # source://tapioca//lib/tapioca/gem/pipeline.rb#14 sig { returns(::Tapioca::Gemfile::GemSpec) } def gem; end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:110 + # source://tapioca//lib/tapioca/gem/pipeline.rb#110 sig { params(method: ::UnboundMethod).returns(T::Boolean) } def method_in_gem?(method); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:118 + # source://tapioca//lib/tapioca/gem/pipeline.rb#118 sig { params(constant: ::Module).returns(T.nilable(::String)) } def name_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:69 + # source://tapioca//lib/tapioca/gem/pipeline.rb#69 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def push_const(symbol, constant, node); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:59 + # source://tapioca//lib/tapioca/gem/pipeline.rb#59 sig { params(symbol: ::String, constant: ::BasicObject).void } def push_constant(symbol, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:64 + # source://tapioca//lib/tapioca/gem/pipeline.rb#64 sig { params(symbol: ::String, constant: ::Module).void } def push_foreign_constant(symbol, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:83 + # source://tapioca//lib/tapioca/gem/pipeline.rb#83 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_foreign_scope(symbol, constant, node); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:97 + # source://tapioca//lib/tapioca/gem/pipeline.rb#97 sig do params( symbol: ::String, @@ -1725,197 +1698,203 @@ class Tapioca::Gem::Pipeline end def push_method(symbol, constant, method, node, signature, parameters); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:76 + # source://tapioca//lib/tapioca/gem/pipeline.rb#76 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_scope(symbol, constant, node); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:54 + # source://tapioca//lib/tapioca/gem/pipeline.rb#54 sig { params(symbol: ::String).void } def push_symbol(symbol); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:102 + # source://tapioca//lib/tapioca/gem/pipeline.rb#102 sig { params(symbol_name: ::String).returns(T::Boolean) } def symbol_in_payload?(symbol_name); end private - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:364 + # source://tapioca//lib/tapioca/gem/pipeline.rb#362 sig { params(name: ::String).void } def add_to_alias_namespace(name); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:369 + # source://tapioca//lib/tapioca/gem/pipeline.rb#367 sig { params(name: ::String).returns(T::Boolean) } def alias_namespaced?(name); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:213 + # source://tapioca//lib/tapioca/gem/pipeline.rb#213 sig { params(name: ::String, constant: ::Module).void } def compile_alias(name, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:199 + # source://tapioca//lib/tapioca/gem/pipeline.rb#199 sig { params(symbol: ::String, constant: ::BasicObject).void } def compile_constant(symbol, constant); end # Compile # - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:194 + # source://tapioca//lib/tapioca/gem/pipeline.rb#194 sig { params(symbol: ::String, constant: ::Module).void } def compile_foreign_constant(symbol, constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:269 + # source://tapioca//lib/tapioca/gem/pipeline.rb#269 sig { params(name: ::String, constant: ::Module, foreign_constant: T::Boolean).void } def compile_module(name, constant, foreign_constant: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:234 + # source://tapioca//lib/tapioca/gem/pipeline.rb#234 sig { params(name: ::String, value: ::BasicObject).void } def compile_object(name, value); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:294 + # source://tapioca//lib/tapioca/gem/pipeline.rb#294 sig { params(constant: ::Class).returns(T.nilable(::String)) } def compile_superclass(constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:343 + # source://tapioca//lib/tapioca/gem/pipeline.rb#343 sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } def defined_in_gem?(constant, strict: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:146 + # source://tapioca//lib/tapioca/gem/pipeline.rb#146 sig { params(event: ::Tapioca::Gem::Event).void } def dispatch(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:386 + # source://tapioca//lib/tapioca/gem/pipeline.rb#384 sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } def generic_name_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:355 - sig { params(constant: ::Module).returns(T::Array[::String]) } + # source://tapioca//lib/tapioca/gem/pipeline.rb#355 + sig { params(constant: ::Module).returns(T::Set[::String]) } def get_file_candidates(constant); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:133 + # source://tapioca//lib/tapioca/gem/pipeline.rb#133 sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } def load_bootstrap_symbols(gem); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:376 + # source://tapioca//lib/tapioca/gem/pipeline.rb#374 sig { params(name: ::String).void } def mark_seen(name); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:399 + # source://tapioca//lib/tapioca/gem/pipeline.rb#400 sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } def name_of_proxy_target(constant, class_name); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:141 + # source://tapioca//lib/tapioca/gem/pipeline.rb#141 sig { returns(::Tapioca::Gem::Event) } def next_event; end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:169 + # source://tapioca//lib/tapioca/gem/pipeline.rb#169 sig { params(event: ::Tapioca::Gem::ConstantFound).void } def on_constant(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:187 + # source://tapioca//lib/tapioca/gem/pipeline.rb#187 sig { params(event: ::Tapioca::Gem::NodeAdded).void } def on_node(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:160 + # source://tapioca//lib/tapioca/gem/pipeline.rb#160 sig { params(event: ::Tapioca::Gem::SymbolFound).void } def on_symbol(event); end - # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:381 + # source://tapioca//lib/tapioca/gem/pipeline.rb#379 sig { params(name: ::String).returns(T::Boolean) } def seen?(name); end end -# source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:11 +# source://tapioca//lib/tapioca/gem/pipeline.rb#11 Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:90 +# source://tapioca//lib/tapioca/gem/events.rb#90 class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:97 + # source://tapioca//lib/tapioca/gem/events.rb#97 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def initialize(symbol, constant, node); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:94 + # source://tapioca//lib/tapioca/gem/events.rb#94 sig { returns(::RBI::Scope) } def node; end end -# source://tapioca-0.9.4/lib/tapioca/gem/events.rb:13 +# source://tapioca//lib/tapioca/gem/events.rb#13 class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:20 + # source://tapioca//lib/tapioca/gem/events.rb#20 sig { params(symbol: ::String).void } def initialize(symbol); end - # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:17 + # source://tapioca//lib/tapioca/gem/events.rb#17 sig { returns(::String) } def symbol; end end -# source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:5 +# source://tapioca//lib/tapioca/helpers/gem_helper.rb#5 module Tapioca::GemHelper - # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:9 - sig { params(gemfile_dir: ::String, full_gem_path: ::String).returns(T::Boolean) } - def gem_in_app_dir?(gemfile_dir, full_gem_path); end + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#9 + sig { params(app_dir: T.any(::Pathname, ::String), full_gem_path: ::String).returns(T::Boolean) } + def gem_in_app_dir?(app_dir, full_gem_path); end - # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:15 + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#17 sig { params(full_gem_path: ::String).returns(T::Boolean) } def gem_in_bundle_path?(full_gem_path); end - # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:20 + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#22 sig { params(path: T.any(::Pathname, ::String)).returns(::String) } def to_realpath(path); end + + private + + # source://tapioca//lib/tapioca/helpers/gem_helper.rb#31 + sig { params(path: T.any(::Pathname, ::String), dir: T.any(::Pathname, ::String)).returns(T::Boolean) } + def path_in_dir?(path, dir); end end -# source://tapioca-0.9.4/lib/tapioca/gemfile.rb:5 +# source://tapioca//lib/tapioca/gemfile.rb#5 class Tapioca::Gemfile - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:69 + # source://tapioca//lib/tapioca/gemfile.rb#69 sig { params(exclude: T::Array[::String]).void } def initialize(exclude); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:60 + # source://tapioca//lib/tapioca/gemfile.rb#60 sig { returns(::Bundler::Definition) } def definition; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:63 + # source://tapioca//lib/tapioca/gemfile.rb#63 sig { returns(T::Array[::Tapioca::Gemfile::GemSpec]) } def dependencies; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:80 + # source://tapioca//lib/tapioca/gemfile.rb#80 sig { params(gem_name: ::String).returns(T.nilable(::Tapioca::Gemfile::GemSpec)) } def gem(gem_name); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:66 + # source://tapioca//lib/tapioca/gemfile.rb#66 sig { returns(T::Array[::String]) } def missing_specs; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:85 + # source://tapioca//lib/tapioca/gemfile.rb#85 sig { void } def require_bundle; end private - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:131 + # source://tapioca//lib/tapioca/gemfile.rb#131 sig { returns(::String) } def dir; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:92 + # source://tapioca//lib/tapioca/gemfile.rb#92 sig { returns(::File) } def gemfile; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:126 + # source://tapioca//lib/tapioca/gemfile.rb#126 sig { returns(T::Array[::Symbol]) } def groups; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:95 + # source://tapioca//lib/tapioca/gemfile.rb#95 sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) } def load_dependencies; end # @return [File] # - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:92 + # source://tapioca//lib/tapioca/gemfile.rb#92 def lockfile; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:106 + # source://tapioca//lib/tapioca/gemfile.rb#106 sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) } def materialize_deps; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:121 + # source://tapioca//lib/tapioca/gemfile.rb#121 sig { returns(::Bundler::Runtime) } def runtime; end end @@ -1924,121 +1903,278 @@ end # makes sure even gems marked as `require: false` are required during # `Bundler.require`. # -# source://tapioca-0.9.4/lib/tapioca/gemfile.rb:18 +# source://tapioca//lib/tapioca/gemfile.rb#18 module Tapioca::Gemfile::AutoRequireHook requires_ancestor { Bundler::Dependency } - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:39 + # source://tapioca//lib/tapioca/gemfile.rb#39 sig { returns(T.untyped) } def autorequire; end class << self - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:30 + # source://tapioca//lib/tapioca/gemfile.rb#30 sig { params(exclude: T::Array[::String]).returns(T::Array[::String]) } def exclude=(exclude); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:33 + # source://tapioca//lib/tapioca/gemfile.rb#33 sig { params(name: T.untyped).returns(T::Boolean) } def excluded?(name); end end end -# source://tapioca-0.9.4/lib/tapioca/gemfile.rb:135 +# source://tapioca//lib/tapioca/gemfile.rb#135 class Tapioca::Gemfile::GemSpec include ::Tapioca::GemHelper - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:154 + # source://tapioca//lib/tapioca/gemfile.rb#174 sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } def initialize(spec); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:179 + # source://tapioca//lib/tapioca/gemfile.rb#184 + sig { params(other: ::BasicObject).returns(T::Boolean) } + def ==(other); end + + # source://tapioca//lib/tapioca/gemfile.rb#204 sig { params(path: ::String).returns(T::Boolean) } def contains_path?(path); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:198 + # source://tapioca//lib/tapioca/gemfile.rb#223 sig { returns(T::Boolean) } def export_rbi_files?; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:193 + # source://tapioca//lib/tapioca/gemfile.rb#218 sig { returns(T::Array[::String]) } def exported_rbi_files; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:203 + # source://tapioca//lib/tapioca/gemfile.rb#228 sig { returns(::RBI::MergeTree) } def exported_rbi_tree; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:151 + # source://tapioca//lib/tapioca/gemfile.rb#171 sig { returns(T::Array[::Pathname]) } def files; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:148 + # source://tapioca//lib/tapioca/gemfile.rb#168 sig { returns(::String) } def full_gem_path; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:164 + # source://tapioca//lib/tapioca/gemfile.rb#189 sig { params(gemfile_dir: ::String).returns(T::Boolean) } def ignore?(gemfile_dir); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:169 + # source://tapioca//lib/tapioca/gemfile.rb#194 sig { returns(::String) } def name; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:188 + # source://tapioca//lib/tapioca/gemfile.rb#213 sig { void } def parse_yard_docs; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:174 + # source://tapioca//lib/tapioca/gemfile.rb#199 sig { returns(::String) } def rbi_file_name; end + # source://tapioca//lib/tapioca/gemfile.rb#240 + sig { params(file: ::Pathname).returns(::Pathname) } + def relative_path_for(file); end + # @return [String] # - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:148 + # source://tapioca//lib/tapioca/gemfile.rb#168 def version; end private - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:217 + # source://tapioca//lib/tapioca/gemfile.rb#251 sig { returns(T::Array[::Pathname]) } def collect_files; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:232 + # source://tapioca//lib/tapioca/gemfile.rb#266 sig { returns(T.nilable(T::Boolean)) } def default_gem?; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:290 + # source://tapioca//lib/tapioca/gemfile.rb#324 sig { returns(T::Boolean) } def gem_ignored?; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:269 + # source://tapioca//lib/tapioca/gemfile.rb#303 sig { params(path: ::String).returns(T::Boolean) } def has_parent_gemspec?(path); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:237 + # source://tapioca//lib/tapioca/gemfile.rb#271 sig { returns(::Regexp) } def require_paths_prefix_matcher; end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:248 + # source://tapioca//lib/tapioca/gemfile.rb#282 sig { params(file: ::String).returns(::Pathname) } def resolve_to_ruby_lib_dir(file); end - # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:262 + # source://tapioca//lib/tapioca/gemfile.rb#296 sig { returns(::String) } def version_string; end + + class << self + # source://tapioca//lib/tapioca/gemfile.rb#143 + sig { returns(T::Hash[::String, ::Tapioca::Gemfile::GemSpec]) } + def spec_lookup_by_file_path; end + end end -# source://tapioca-0.9.4/lib/tapioca/gemfile.rb:139 +# source://tapioca//lib/tapioca/gemfile.rb#155 Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) -# source://tapioca-0.9.4/lib/tapioca/gemfile.rb:8 +# source://tapioca//lib/tapioca/gemfile.rb#8 Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } -# source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:5 +# source://tapioca//lib/tapioca/loaders/loader.rb#5 +module Tapioca::Loaders; end + +# source://tapioca//lib/tapioca/loaders/dsl.rb#6 +class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader + # source://tapioca//lib/tapioca/loaders/dsl.rb#30 + sig { params(tapioca_path: ::String, eager_load: T::Boolean, app_root: ::String).void } + def initialize(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#20 + sig { override.void } + def load; end + + protected + + # source://tapioca//lib/tapioca/loaders/dsl.rb#75 + sig { void } + def abort_if_pending_migrations!; end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#62 + sig { void } + def load_application; end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#44 + sig { void } + def load_dsl_compilers; end + + # source://tapioca//lib/tapioca/loaders/dsl.rb#39 + sig { void } + def load_dsl_extensions; end + + class << self + # source://tapioca//lib/tapioca/loaders/dsl.rb#13 + sig { params(tapioca_path: ::String, eager_load: T::Boolean, app_root: ::String).void } + def load_application(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil)); end + end +end + +# source://tapioca//lib/tapioca/loaders/gem.rb#6 +class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader + # source://tapioca//lib/tapioca/loaders/gem.rb#46 + sig do + params( + bundle: ::Tapioca::Gemfile, + prerequire: T.nilable(::String), + postrequire: ::String, + default_command: ::String + ).void + end + def initialize(bundle:, prerequire:, postrequire:, default_command:); end + + # source://tapioca//lib/tapioca/loaders/gem.rb#32 + sig { override.void } + def load; end + + protected + + # source://tapioca//lib/tapioca/loaders/gem.rb#76 + sig { params(file: ::String, error: ::LoadError).void } + def explain_failed_require(file, error); end + + # source://tapioca//lib/tapioca/loaders/gem.rb#56 + sig { void } + def require_gem_file; end + + class << self + # source://tapioca//lib/tapioca/loaders/gem.rb#20 + sig do + params( + bundle: ::Tapioca::Gemfile, + prerequire: T.nilable(::String), + postrequire: ::String, + default_command: ::String + ).void + end + def load_application(bundle:, prerequire:, postrequire:, default_command:); end + end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/loaders/loader.rb#6 +class Tapioca::Loaders::Loader + include ::Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + include ::Tapioca::CliHelper + include ::Tapioca::GemHelper + extend ::Thor::Base::ClassMethods + extend ::Thor::Invocation::ClassMethods + + abstract! + + # source://sorbet-runtime/0.5.10611/lib/types/private/abstract/declare.rb#37 + def initialize(*args, &blk); end + + # @abstract + # + # source://tapioca//lib/tapioca/loaders/loader.rb#17 + sig { abstract.void } + def load; end + + private + + # source://tapioca//lib/tapioca/loaders/loader.rb#112 + sig { void } + def eager_load_rails_app; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#24 + sig do + params( + gemfile: ::Tapioca::Gemfile, + initialize_file: T.nilable(::String), + require_file: T.nilable(::String) + ).void + end + def load_bundle(gemfile, initialize_file, require_file); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#37 + sig { params(environment_load: T::Boolean, eager_load: T::Boolean, app_root: ::String).void } + def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil)); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#60 + sig { void } + def load_rails_engines; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#83 + sig { returns(T::Array[T.untyped]) } + def rails_engines; end + + # source://tapioca//lib/tapioca/loaders/loader.rb#138 + sig { params(file: T.nilable(::String)).void } + def require_helper(file); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#97 + sig { params(path: ::String).void } + def safe_require(path); end + + # source://tapioca//lib/tapioca/loaders/loader.rb#104 + sig { void } + def silence_deprecations; end +end + +# source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#5 module Tapioca::RBIFilesHelper requires_ancestor { Tapioca::SorbetHelper } requires_ancestor { Thor::Shell } - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:48 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#48 sig do params( index: ::RBI::Index, @@ -2048,19 +2184,19 @@ module Tapioca::RBIFilesHelper end def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:13 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#13 sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void } def index_rbi(index, kind, file); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:25 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#25 sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void } def index_rbis(index, kind, dir, number_of_workers:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:65 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#65 sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) } def location_to_payload_url(loc, path_prefix:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:86 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#86 sig do params( command: ::String, @@ -2075,19 +2211,19 @@ module Tapioca::RBIFilesHelper private - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:208 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#209 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) } def extract_empty_scopes(nodes); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:213 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#214 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } def extract_methods_and_attrs(nodes); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:220 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#224 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) } def extract_mixins(nodes); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:227 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#234 sig do params( nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] @@ -2095,7 +2231,7 @@ module Tapioca::RBIFilesHelper end def extract_nodes_with_sigs(nodes); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:201 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#202 sig do params( nodes: T::Array[::RBI::Node], @@ -2105,86 +2241,90 @@ module Tapioca::RBIFilesHelper end def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:259 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#266 sig { params(path: ::String).returns(::String) } def gem_name_from_rbi_path(path); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:155 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#155 sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void } def parse_and_index_files(index, files, number_of_workers:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:170 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#171 sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) } def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:232 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#239 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void } def update_gem_rbis_strictnesses(errors, gem_dir); end end -# source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:5 +# source://tapioca//lib/tapioca/rbi_formatter.rb#5 class Tapioca::RBIFormatter < ::RBI::Formatter - # source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:22 + # source://tapioca//lib/tapioca/rbi_formatter.rb#22 sig { params(file: ::RBI::File).void } def write_empty_body_comment!(file); end - # source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:15 + # source://tapioca//lib/tapioca/rbi_formatter.rb#15 sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void } def write_header!(file, command, reason: T.unsafe(nil)); end end -# source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:5 +# source://tapioca//lib/tapioca/helpers/rbi_helper.rb#5 module Tapioca::RBIHelper include ::Tapioca::SorbetHelper extend ::Tapioca::SorbetHelper extend ::Tapioca::RBIHelper - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:42 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#91 + sig { params(type: ::String).returns(::String) } + def as_nilable_type(type); end + + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_block_param(name, type:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:32 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#62 sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } def create_kw_opt_param(name, type:, default:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:27 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#57 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_kw_param(name, type:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:37 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#67 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_kw_rest_param(name, type:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:17 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#47 sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } def create_opt_param(name, type:, default:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:12 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#42 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_param(name, type:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:22 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#52 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_rest_param(name, type:); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:47 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#77 sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) } def create_typed_param(param, type); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:52 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#82 sig { params(sig_string: ::String).returns(::String) } def sanitize_signature_types(sig_string); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:95 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 sig { params(name: ::String).returns(T::Boolean) } def valid_method_name?(name); end - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:109 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#114 sig { params(name: ::String).returns(T::Boolean) } def valid_parameter_name?(name); end class << self - # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:69 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#23 sig do params( type: ::String, @@ -2198,100 +2338,100 @@ module Tapioca::RBIHelper end end -# source://tapioca-0.9.4/lib/tapioca/repo_index.rb:5 +# source://tapioca//lib/tapioca/repo_index.rb#5 class Tapioca::RepoIndex - # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:22 + # source://tapioca//lib/tapioca/repo_index.rb#26 sig { void } def initialize; end - # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:27 + # source://tapioca//lib/tapioca/repo_index.rb#31 sig { params(gem_name: ::String).void } def <<(gem_name); end - # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:32 + # source://tapioca//lib/tapioca/repo_index.rb#36 sig { returns(T::Enumerable[::String]) } def gems; end - # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:37 + # source://tapioca//lib/tapioca/repo_index.rb#41 sig { params(gem_name: ::String).returns(T::Boolean) } def has_gem?(gem_name); end class << self - # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:15 + # source://tapioca//lib/tapioca/repo_index.rb#18 sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) } def from_hash(hash); end - # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:10 + # source://tapioca//lib/tapioca/repo_index.rb#13 sig { params(json: ::String).returns(Tapioca::RepoIndex) } def from_json(json); end end end -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:5 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#5 module Tapioca::Runtime; end -# source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:6 +# source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#6 class Tapioca::Runtime::DynamicMixinCompiler include ::Tapioca::Runtime::Reflection - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:20 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#20 sig { params(constant: ::Module).void } def initialize(constant); end # @return [Array] # - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 def class_attribute_predicates; end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 sig { returns(T::Array[::Symbol]) } def class_attribute_readers; end # @return [Array] # - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 def class_attribute_writers; end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:137 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#137 sig { params(tree: ::RBI::Tree).void } def compile_class_attributes(tree); end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:180 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#180 sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) } def compile_mixes_in_class_methods(tree); end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:11 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 sig { returns(T::Array[::Module]) } def dynamic_extends; end # @return [Array] # - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:11 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 def dynamic_includes; end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:132 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#132 sig { returns(T::Boolean) } def empty_attributes?; end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:222 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#222 sig { params(qualified_mixin_name: ::String).returns(T::Boolean) } def filtered_mixin?(qualified_mixin_name); end # @return [Array] # - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 def instance_attribute_predicates; end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 sig { returns(T::Array[::Symbol]) } def instance_attribute_readers; end # @return [Array] # - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 def instance_attribute_writers; end - # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:215 + # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#215 sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) } def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end end @@ -2314,14 +2454,14 @@ end # variable to type variable serializers. This allows us to associate type variables # to the constant names that represent them, easily. # -# source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:23 +# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#23 module Tapioca::Runtime::GenericTypeRegistry class << self - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:64 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 sig { params(instance: ::Object).returns(T::Boolean) } def generic_type_instance?(instance); end - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:69 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#85 sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) } def lookup_type_variables(constant); end @@ -2337,7 +2477,7 @@ module Tapioca::Runtime::GenericTypeRegistry # # This method returns the created or cached clone of the constant. # - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:49 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#65 sig { params(constant: T.untyped, types: T.untyped).returns(::Module) } def register_type(constant, types); end @@ -2351,100 +2491,67 @@ module Tapioca::Runtime::GenericTypeRegistry # Finally, the original `type_variable` is returned from this method, so that the caller # can return it from the original methods as well. # - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:88 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#104 sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void } def register_type_variable(constant, type_variable); end private - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:97 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#113 sig { params(constant: ::Module, name: ::String).returns(::Module) } def create_generic_type(constant, name); end - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:135 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#155 sig { params(constant: ::Class).returns(::Class) } def create_safe_subclass(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:162 + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#182 sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) } def lookup_or_initialize_type_variables(constant); end end end -# source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:6 -class Tapioca::Runtime::Loader - include ::Tapioca::GemHelper - include ::Thor::Base - include ::Thor::Invocation - include ::Thor::Shell - extend ::Thor::Base::ClassMethods - extend ::Thor::Invocation::ClassMethods - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:14 - sig do - params( - gemfile: ::Tapioca::Gemfile, - initialize_file: T.nilable(::String), - require_file: T.nilable(::String) - ).void - end - def load_bundle(gemfile, initialize_file, require_file); end - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:27 - sig { params(environment_load: T::Boolean, eager_load: T::Boolean).void } - def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil)); end - - private - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:88 - sig { void } - def eager_load_rails_app; end - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:114 - sig { void } - def load_rails_engines; end - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:59 - sig { returns(T::Array[T.untyped]) } - def rails_engines; end - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:49 - sig { params(file: T.nilable(::String)).void } - def require_helper(file); end - - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:73 - sig { params(path: ::String).void } - def safe_require(path); end +# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#34 +class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#38 + sig { params(raw_type: ::Module, underlying_type: ::Module).void } + def initialize(raw_type, underlying_type); end - # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:80 - sig { void } - def silence_deprecations; end + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45 + sig { params(obj: T.untyped).returns(T::Boolean) } + def valid?(obj); end end module Tapioca::Runtime::Reflection extend ::Tapioca::Runtime::Reflection - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:60 + # source://tapioca//lib/tapioca/runtime/reflection.rb#66 sig { params(constant: ::Module).returns(T::Array[::Module]) } def ancestors_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:75 + # source://tapioca//lib/tapioca/runtime/reflection.rb#81 sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) } def are_equal?(object, other); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:172 + # source://tapioca//lib/tapioca/runtime/reflection.rb#178 sig { params(singleton_class: ::Module).returns(T.nilable(::Module)) } def attached_class_of(singleton_class); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:39 + # source://tapioca//lib/tapioca/runtime/reflection.rb#45 sig { params(object: ::BasicObject).returns(::Class) } def class_of(object); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:32 + # @param constant [BasicObject] + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#27 + def constant_defined?(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#38 sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) } def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:44 + # source://tapioca//lib/tapioca/runtime/reflection.rb#50 sig { params(constant: ::Module).returns(T::Array[::Symbol]) } def constants_of(constant); end @@ -2462,7 +2569,7 @@ module Tapioca::Runtime::Reflection # class D < C; end # descendants_of(C) # => [B, A, D] # - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:150 + # source://tapioca//lib/tapioca/runtime/reflection.rb#156 sig do type_parameters(:U) .params( @@ -2471,39 +2578,43 @@ module Tapioca::Runtime::Reflection end def descendants_of(klass); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:95 + # source://tapioca//lib/tapioca/runtime/reflection.rb#188 + sig { params(constant: ::Module).returns(T::Set[::String]) } + def file_candidates_for(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#101 sig { params(constant: ::Module).returns(T::Array[::Module]) } def inherited_ancestors_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:128 + # source://tapioca//lib/tapioca/runtime/reflection.rb#134 sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } def method_of(constant, method); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:49 + # source://tapioca//lib/tapioca/runtime/reflection.rb#55 sig { params(constant: ::Module).returns(T.nilable(::String)) } def name_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:123 + # source://tapioca//lib/tapioca/runtime/reflection.rb#129 sig { params(type: ::T::Types::Base).returns(::String) } def name_of_type(type); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:70 + # source://tapioca//lib/tapioca/runtime/reflection.rb#76 sig { params(object: ::BasicObject).returns(::Integer) } def object_id_of(object); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:90 + # source://tapioca//lib/tapioca/runtime/reflection.rb#96 sig { params(constant: ::Module).returns(T::Array[::Symbol]) } def private_instance_methods_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:85 + # source://tapioca//lib/tapioca/runtime/reflection.rb#91 sig { params(constant: ::Module).returns(T::Array[::Symbol]) } def protected_instance_methods_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:80 + # source://tapioca//lib/tapioca/runtime/reflection.rb#86 sig { params(constant: ::Module).returns(T::Array[::Symbol]) } def public_instance_methods_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:104 + # source://tapioca//lib/tapioca/runtime/reflection.rb#110 sig { params(constant: ::Module).returns(T.nilable(::String)) } def qualified_name_of(constant); end @@ -2511,77 +2622,116 @@ module Tapioca::Runtime::Reflection # by searching for the label "". If none is found, it returns the location # labeled "
", which is the original call site. # - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:162 + # source://tapioca//lib/tapioca/runtime/reflection.rb#168 sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) } def resolve_loc(locations); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:116 + # source://tapioca//lib/tapioca/runtime/reflection.rb#122 sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } def signature_of(method); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:55 + # source://tapioca//lib/tapioca/runtime/reflection.rb#61 sig { params(constant: ::Module).returns(::Class) } def singleton_class_of(constant); end - # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:65 + # source://tapioca//lib/tapioca/runtime/reflection.rb#71 sig { params(constant: ::Class).returns(T.nilable(::Class)) } def superclass_of(constant); end + + private + + # source://tapioca//lib/tapioca/runtime/reflection.rb#227 + sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) } + def child_module_for_parent_with_name(parent, name); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#238 + sig { params(method: ::UnboundMethod).returns(T::Boolean) } + def method_defined_by_forwardable_module?(method); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#213 + sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + def methods_for(constant); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#197 + sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + def relevant_methods_for(constant); end end -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:14 +# source://tapioca//lib/tapioca/runtime/reflection.rb#14 Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:10 +# source://tapioca//lib/tapioca/runtime/reflection.rb#10 Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:11 +# source://tapioca//lib/tapioca/runtime/reflection.rb#11 Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:17 +# source://tapioca//lib/tapioca/runtime/reflection.rb#17 Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:21 +# source://tapioca//lib/tapioca/runtime/reflection.rb#21 Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:12 +# source://tapioca//lib/tapioca/runtime/reflection.rb#12 Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:16 +# source://tapioca//lib/tapioca/runtime/reflection.rb#16 Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:20 +# source://tapioca//lib/tapioca/runtime/reflection.rb#20 Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:19 +# source://tapioca//lib/tapioca/runtime/reflection.rb#19 Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:18 +# source://tapioca//lib/tapioca/runtime/reflection.rb#18 Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:23 +# source://tapioca//lib/tapioca/runtime/reflection.rb#24 Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:13 +# source://tapioca//lib/tapioca/runtime/reflection.rb#13 Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:15 +# source://tapioca//lib/tapioca/runtime/reflection.rb#15 Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:6 -module Tapioca::Runtime::Trackers; end +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#6 +module Tapioca::Runtime::Trackers + class << self + # source://tapioca//lib/tapioca/runtime/trackers.rb#34 + sig { void } + def disable_all!; end + + # source://tapioca//lib/tapioca/runtime/trackers.rb#39 + sig { params(tracker: ::Tapioca::Runtime::Trackers::Tracker).void } + def register_tracker(tracker); end + + # source://tapioca//lib/tapioca/runtime/trackers.rb#21 + sig do + type_parameters(:Return) + .params( + blk: T.proc.returns(T.type_parameter(:Return)) + ).returns(T.type_parameter(:Return)) + end + def with_trackers_enabled(&blk); end + end +end -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:7 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#7 module Tapioca::Runtime::Trackers::Autoload + extend ::Tapioca::Runtime::Trackers::Tracker + class << self - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:18 + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#19 sig { void } def eager_load_all!; end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:30 + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#31 sig { params(constant_name: ::String).void } def register(constant_name); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:39 + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#42 sig do type_parameters(:Result) .params( @@ -2592,7 +2742,7 @@ module Tapioca::Runtime::Trackers::Autoload end end -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:10 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#11 Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc) # Registers a TracePoint immediately upon load to track points at which @@ -2600,27 +2750,33 @@ Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc) # correspondence between classes/modules and files, as this information isn't # available in the ruby runtime without extra accounting. module Tapioca::Runtime::Trackers::ConstantDefinition + extend ::Tapioca::Runtime::Trackers::Tracker extend ::Tapioca::Runtime::Reflection class << self - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/constant_definition.rb:52 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#61 def build_constant_location(tp, locations); end + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#55 + def disable!; end + # Returns the files in which this class or module was opened. Doesn't know # about situations where the class was opened prior to +require+ing, # or where metaprogramming was used via +eval+, etc. # - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/constant_definition.rb:62 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#71 def files_for(klass); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/constant_definition.rb:66 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#75 def locations_for(klass); end end end module Tapioca::Runtime::Trackers::Mixin + extend ::Tapioca::Runtime::Trackers::Tracker + class << self - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:52 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#56 sig do params( mixin: ::Module @@ -2628,11 +2784,24 @@ module Tapioca::Runtime::Trackers::Mixin end def constants_with_mixin(mixin); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:42 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#61 + sig do + params( + mixin: ::Module, + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, + constant: ::Module + ).returns(T.nilable(::String)) + end + def mixin_location(mixin, mixin_type, constant); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#35 sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void } def register(constant, mixin, mixin_type); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:27 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#43 + def resolve_to_attached_class(constant, mixin, mixin_type); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#30 sig do type_parameters(:Result) .params( @@ -2640,6 +2809,27 @@ module Tapioca::Runtime::Trackers::Mixin ).returns(T.type_parameter(:Result)) end def with_disabled_registration(&block); end + + private + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#76 + sig do + params( + mixin: ::Module + ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) + end + def find_or_initialize_mixin_lookup(mixin); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#68 + sig do + params( + constant: ::Module, + mixin: ::Module, + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, + location: ::String + ).void + end + def register_with_location(constant, mixin, mixin_type, location); end end end @@ -2651,106 +2841,131 @@ class Tapioca::Runtime::Trackers::Mixin::Type < ::T::Enum end end -# source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:7 +# source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#7 module Tapioca::Runtime::Trackers::RequiredAncestor + extend ::Tapioca::Runtime::Trackers::Tracker + class << self - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:13 - sig { params(requiring: ::T::Helpers, block: T.proc.returns(::Module)).void } + # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#15 + sig { params(requiring: ::T::Helpers, block: T.proc.void).void } def register(requiring, block); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:19 - sig { params(mod: ::Module).returns(T::Array[T.proc.returns(::Module)]) } + # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#23 + sig { params(mod: ::Module).returns(T::Array[T.proc.void]) } def required_ancestors_blocks_by(mod); end - # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:24 - sig { params(mod: ::Module).returns(T::Array[T.nilable(::Module)]) } + # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#28 + sig { params(mod: ::Module).returns(T::Array[T.untyped]) } def required_ancestors_by(mod); end end end -# source://tapioca-0.9.4/lib/tapioca.rb:39 +# @abstract Subclasses must implement the `abstract` methods below. +module Tapioca::Runtime::Trackers::Tracker + abstract! + + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#26 + sig { void } + def disable!; end + + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#30 + def enabled?; end + + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#34 + def with_disabled_tracker(&block); end + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#17 + sig { params(base: T.all(::Module, ::Tapioca::Runtime::Trackers::Tracker)).void } + def extended(base); end + end +end + +# source://tapioca//lib/tapioca.rb#33 Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:38 +# source://tapioca//lib/tapioca.rb#32 Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:5 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 module Tapioca::SorbetHelper - # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:29 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#31 sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) } def sorbet(*sorbet_args); end - # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:34 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#36 sig { returns(::String) } def sorbet_path; end - # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:41 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#43 sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) } def sorbet_supports?(feature, version: T.unsafe(nil)); end end -# source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:22 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#22 Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) -# source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:13 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#13 Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname) -# source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:18 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:8 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#8 Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) -# source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:20 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#20 Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:5 +# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#5 module Tapioca::Static; end -# source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:6 +# source://tapioca//lib/tapioca/static/requires_compiler.rb#6 class Tapioca::Static::RequiresCompiler - # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:10 + # source://tapioca//lib/tapioca/static/requires_compiler.rb#10 sig { params(sorbet_path: ::String).void } def initialize(sorbet_path); end - # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:15 + # source://tapioca//lib/tapioca/static/requires_compiler.rb#15 sig { returns(::String) } def compile; end private - # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:29 + # source://tapioca//lib/tapioca/static/requires_compiler.rb#29 sig { params(config: ::Spoom::Sorbet::Config).returns(T::Array[::String]) } def collect_files(config); end - # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:44 + # source://tapioca//lib/tapioca/static/requires_compiler.rb#44 sig { params(file_path: ::String).returns(T::Enumerable[::String]) } def collect_requires(file_path); end - # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:52 + # source://tapioca//lib/tapioca/static/requires_compiler.rb#51 sig { params(config: ::Spoom::Sorbet::Config, file_path: ::Pathname).returns(T::Boolean) } def file_ignored_by_sorbet?(config, file_path); end - # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:81 + # source://tapioca//lib/tapioca/static/requires_compiler.rb#80 sig { params(path: ::Pathname).returns(T::Array[::String]) } def path_parts(path); end end -# source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:6 +# source://tapioca//lib/tapioca/static/symbol_loader.rb#6 module Tapioca::Static::SymbolLoader extend ::Tapioca::SorbetHelper extend ::Tapioca::Runtime::Reflection class << self - # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:23 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#23 sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } def engine_symbols(gem); end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:40 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#40 sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } def gem_symbols(gem); end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:13 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#13 sig { returns(T::Set[::String]) } def payload_symbols; end @@ -2758,60 +2973,63 @@ module Tapioca::Static::SymbolLoader # @return [Array] # - # source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:250 + # source://sorbet-runtime/0.5.10611/lib/types/private/methods/_methods.rb#250 def engines(*args, &blk); end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:59 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#59 sig { params(input: ::String, table_type: ::String).returns(::String) } def symbol_table_json_from(input, table_type: T.unsafe(nil)); end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:64 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#64 sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) } def symbols_from_paths(paths); end end end -# source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:6 +# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#6 class Tapioca::Static::SymbolTableParser - # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:24 + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#30 sig { void } def initialize; end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:57 + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#65 sig { params(name: ::String).returns(::String) } def fully_qualified_name(name); end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:30 + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#36 sig { params(object: T::Hash[::String, T.untyped]).void } def parse_object(object); end - # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:21 + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#27 sig { returns(T::Set[::String]) } def symbols; end class << self - # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:10 + # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#15 sig { params(json_string: ::String).returns(T::Set[::String]) } def parse_json(json_string); end end end -# source://tapioca-0.9.4/lib/tapioca.rb:41 +# source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 +Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) + +# source://tapioca//lib/tapioca.rb#35 Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca.rb:40 +# source://tapioca//lib/tapioca.rb#34 Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:98 +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#122 class Tapioca::TypeVariable < ::T::Types::TypeVariable # @return [TypeVariable] a new instance of TypeVariable # - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:99 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#123 def initialize(name, variance); end # Returns the value of attribute name. # - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:104 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#128 def name; end end @@ -2821,9 +3039,9 @@ end # need to do any matching of constants to type variables to bind their names, Ruby will # do that automatically for us and we get the `name` method for free from `Module`. # -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:112 +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#136 class Tapioca::TypeVariableModule < ::Module - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:134 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#158 sig do params( context: ::Module, @@ -2837,21 +3055,29 @@ class Tapioca::TypeVariableModule < ::Module end def initialize(context, type, variance, fixed, lower, upper, bounds_proc); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:184 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#212 sig { returns(::Tapioca::TypeVariable) } def coerce_to_type_variable; end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:149 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#192 + sig { returns(T::Boolean) } + def fixed?; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#173 sig { returns(T.nilable(::String)) } def name; end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:168 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#197 sig { returns(::String) } def serialize; end private - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:194 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#246 + sig { returns(T::Hash[::Symbol, T.untyped]) } + def bounds; end + + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#222 sig do params( fixed: T.untyped, @@ -2861,7 +3087,7 @@ class Tapioca::TypeVariableModule < ::Module end def build_bounds_proc(fixed, lower, upper); end - # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:208 + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#236 sig do type_parameters(:Result) .params( @@ -2871,7 +3097,7 @@ class Tapioca::TypeVariableModule < ::Module def with_bound_name_pre_3_0(&block); end end -# source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:115 +# source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#139 class Tapioca::TypeVariableModule::Type < ::T::Enum enums do Member = new @@ -2879,5 +3105,51 @@ class Tapioca::TypeVariableModule::Type < ::T::Enum end end -# source://tapioca-0.9.4/lib/tapioca/version.rb:5 +# source://tapioca//lib/tapioca/version.rb#5 Tapioca::VERSION = T.let(T.unsafe(nil), String) + +# source://tapioca//lib/tapioca/helpers/source_uri.rb#6 +module URI + include ::URI::RFC2396_REGEXP +end + +# source://tapioca//lib/tapioca/helpers/source_uri.rb#7 +class URI::Source < ::URI::File + # source://tapioca//lib/tapioca/helpers/source_uri.rb#58 + sig { params(v: T.nilable(::String)).returns(T::Boolean) } + def check_host(v); end + + # source://uri/0.10.1/uri/generic.rb#243 + def gem_name; end + + # source://tapioca//lib/tapioca/helpers/source_uri.rb#25 + sig { returns(T.nilable(::String)) } + def gem_version; end + + # source://uri/0.10.1/uri/generic.rb#283 + def line_number; end + + # source://tapioca//lib/tapioca/helpers/source_uri.rb#51 + sig { params(v: T.nilable(::String)).void } + def set_path(v); end + + # source://tapioca//lib/tapioca/helpers/source_uri.rb#70 + sig { returns(::String) } + def to_s; end + + class << self + # source://tapioca//lib/tapioca/helpers/source_uri.rb#38 + sig do + params( + gem_name: ::String, + gem_version: T.nilable(::String), + path: ::String, + line_number: T.nilable(::String) + ).returns(::URI::Source) + end + def build(gem_name:, gem_version:, path:, line_number:); end + end +end + +# source://tapioca//lib/tapioca/helpers/source_uri.rb#10 +URI::Source::COMPONENT = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi b/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi similarity index 53% rename from sorbet/rbi/gems/unicode-display_width@2.2.0.rbi rename to sorbet/rbi/gems/unicode-display_width@2.3.0.rbi index b428bf8f..5de4da8e 100644 --- a/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +++ b/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi @@ -4,45 +4,45 @@ # This is an autogenerated file for types exported from the `unicode-display_width` gem. # Please instead update this file by running `bin/tapioca gem unicode-display_width`. -# source://unicode-display_width-2.2.0/lib/unicode/display_width/constants.rb:3 +# source://unicode-display_width//lib/unicode/display_width/constants.rb#3 module Unicode; end -# source://unicode-display_width-2.2.0/lib/unicode/display_width/constants.rb:4 +# source://unicode-display_width//lib/unicode/display_width/constants.rb#4 class Unicode::DisplayWidth # @return [DisplayWidth] a new instance of DisplayWidth # - # source://unicode-display_width-2.2.0/lib/unicode/display_width.rb:46 + # source://unicode-display_width//lib/unicode/display_width.rb#46 def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end - # source://unicode-display_width-2.2.0/lib/unicode/display_width.rb:52 + # source://unicode-display_width//lib/unicode/display_width.rb#52 def get_config(**kwargs); end - # source://unicode-display_width-2.2.0/lib/unicode/display_width.rb:60 + # source://unicode-display_width//lib/unicode/display_width.rb#60 def of(string, **kwargs); end class << self - # source://unicode-display_width-2.2.0/lib/unicode/display_width.rb:28 + # source://unicode-display_width//lib/unicode/display_width.rb#28 def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end - # source://unicode-display_width-2.2.0/lib/unicode/display_width.rb:10 + # source://unicode-display_width//lib/unicode/display_width.rb#10 def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end end end -# source://unicode-display_width-2.2.0/lib/unicode/display_width/constants.rb:7 +# source://unicode-display_width//lib/unicode/display_width/constants.rb#7 Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String) -# source://unicode-display_width-2.2.0/lib/unicode/display_width.rb:8 +# source://unicode-display_width//lib/unicode/display_width.rb#8 Unicode::DisplayWidth::DEPTHS = T.let(T.unsafe(nil), Array) -# source://unicode-display_width-2.2.0/lib/unicode/display_width/index.rb:11 +# source://unicode-display_width//lib/unicode/display_width/index.rb#11 Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array) -# source://unicode-display_width-2.2.0/lib/unicode/display_width/constants.rb:8 +# source://unicode-display_width//lib/unicode/display_width/constants.rb#8 Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String) -# source://unicode-display_width-2.2.0/lib/unicode/display_width/constants.rb:6 +# source://unicode-display_width//lib/unicode/display_width/constants.rb#6 Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String) -# source://unicode-display_width-2.2.0/lib/unicode/display_width/constants.rb:5 +# source://unicode-display_width//lib/unicode/display_width/constants.rb#5 Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/unparser@0.6.5.rbi b/sorbet/rbi/gems/unparser@0.6.7.rbi similarity index 53% rename from sorbet/rbi/gems/unparser@0.6.5.rbi rename to sorbet/rbi/gems/unparser@0.6.7.rbi index 26e00a92..6e87a2ea 100644 --- a/sorbet/rbi/gems/unparser@0.6.5.rbi +++ b/sorbet/rbi/gems/unparser@0.6.7.rbi @@ -6,7 +6,7 @@ # Library namespace # -# source://unparser-0.6.5/lib/unparser/equalizer.rb:3 +# source://unparser//lib/unparser/equalizer.rb#3 module Unparser class << self # Construct a parser buffer from string @@ -14,7 +14,7 @@ module Unparser # @param source [String] # @return [Parser::Source::Buffer] # - # source://unparser-0.6.5/lib/unparser.rb:147 + # source://unparser//lib/unparser.rb#147 def buffer(source, identification = T.unsafe(nil)); end # Parse string into AST @@ -22,7 +22,7 @@ module Unparser # @param source [String] # @return [Parser::AST::Node, nil] # - # source://unparser-0.6.5/lib/unparser.rb:105 + # source://unparser//lib/unparser.rb#105 def parse(source); end # Parse string into either syntax error or AST @@ -30,7 +30,7 @@ module Unparser # @param source [String] # @return [Either] # - # source://unparser-0.6.5/lib/unparser.rb:114 + # source://unparser//lib/unparser.rb#114 def parse_either(source); end # Parse string into AST, with comments @@ -38,7 +38,7 @@ module Unparser # @param source [String] # @return [Parser::AST::Node] # - # source://unparser-0.6.5/lib/unparser.rb:125 + # source://unparser//lib/unparser.rb#125 def parse_with_comments(source); end # Parser instance that produces AST unparser understands @@ -46,7 +46,7 @@ module Unparser # @api private # @return [Parser::Base] # - # source://unparser-0.6.5/lib/unparser.rb:134 + # source://unparser//lib/unparser.rb#134 def parser; end # Unparse an AST (and, optionally, comments) into a string @@ -58,7 +58,7 @@ module Unparser # if the node passed is invalid # @return [String] # - # source://unparser-0.6.5/lib/unparser.rb:60 + # source://unparser//lib/unparser.rb#60 def unparse(node, comment_array = T.unsafe(nil)); end # Unparse capturing errors @@ -68,7 +68,7 @@ module Unparser # @param node [Parser::AST::Node, nil] # @return [Either] # - # source://unparser-0.6.5/lib/unparser.rb:96 + # source://unparser//lib/unparser.rb#96 def unparse_either(node); end # Unparse with validation @@ -77,14 +77,14 @@ module Unparser # @param comment_array [Array] # @return [Either] # - # source://unparser-0.6.5/lib/unparser.rb:78 + # source://unparser//lib/unparser.rb#78 def unparse_validate(node, comment_array = T.unsafe(nil)); end end end # Namespace for AST processing tools # -# source://unparser-0.6.5/lib/unparser/ast.rb:5 +# source://unparser//lib/unparser/ast.rb#5 module Unparser::AST class << self # Return local variables that get assigned in scope @@ -93,7 +93,7 @@ module Unparser::AST # @param node [Parser::AST::Node] # @return [Set] # - # source://unparser-0.6.5/lib/unparser/ast.rb:57 + # source://unparser//lib/unparser/ast.rb#57 def local_variable_assignments(node); end # Return local variables read @@ -102,7 +102,7 @@ module Unparser::AST # @param node [Parser::AST::Node] # @return [Set] # - # source://unparser-0.6.5/lib/unparser/ast.rb:72 + # source://unparser//lib/unparser/ast.rb#72 def local_variable_reads(node); end # Test for local variable inherited scope reset @@ -111,7 +111,7 @@ module Unparser::AST # @param node [Parser::AST::Node] # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/ast.rb:33 + # source://unparser//lib/unparser/ast.rb#33 def not_close_scope?(node); end # Test for local variable scope reset @@ -120,22 +120,22 @@ module Unparser::AST # @param node [Parser::AST::Node] # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/ast.rb:45 + # source://unparser//lib/unparser/ast.rb#45 def not_reset_scope?(node); end end end # Nodes that assign a local variable # -# source://unparser-0.6.5/lib/unparser/ast.rb:14 +# source://unparser//lib/unparser/ast.rb#14 Unparser::AST::ASSIGN_NODES = T.let(T.unsafe(nil), Set) -# source://unparser-0.6.5/lib/unparser/ast.rb:11 +# source://unparser//lib/unparser/ast.rb#11 Unparser::AST::CLOSE_NODES = T.let(T.unsafe(nil), Array) # AST enumerator # -# source://unparser-0.6.5/lib/unparser/ast.rb:80 +# source://unparser//lib/unparser/ast.rb#80 class Unparser::AST::Enumerator include ::Enumerable include ::Unparser::Equalizer::Methods @@ -150,7 +150,7 @@ class Unparser::AST::Enumerator # @return [Enumerator] if no block given # @return [self] otherwise # - # source://unparser-0.6.5/lib/unparser/ast.rb:106 + # source://unparser//lib/unparser/ast.rb#106 def each(&block); end # Return nodes selected by type @@ -159,7 +159,7 @@ class Unparser::AST::Enumerator # @param type [Symbol] # @return [Enumerable] # - # source://unparser-0.6.5/lib/unparser/ast.rb:130 + # source://unparser//lib/unparser/ast.rb#130 def type(type); end # Return nodes selected by types @@ -168,7 +168,7 @@ class Unparser::AST::Enumerator # @param types [Enumerable] # @return [Enumerable] # - # source://unparser-0.6.5/lib/unparser/ast.rb:118 + # source://unparser//lib/unparser/ast.rb#118 def types(types); end class << self @@ -179,7 +179,7 @@ class Unparser::AST::Enumerator # @param controller [#call(node)] # @return [Enumerator] # - # source://unparser-0.6.5/lib/unparser/ast.rb:92 + # source://unparser//lib/unparser/ast.rb#92 def new(node, controller = T.unsafe(nil)); end private @@ -190,7 +190,7 @@ class Unparser::AST::Enumerator # @param enumerable [Enumerable] # @return [Set] # - # source://unparser-0.6.5/lib/unparser/ast.rb:142 + # source://unparser//lib/unparser/ast.rb#142 def set(enumerable); end # Return nodes of type @@ -200,20 +200,20 @@ class Unparser::AST::Enumerator # @param type [Symbol] # @return [Enumerable>] ] # otherwise # - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:121 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#121 def each(node, &block); end private - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:127 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#127 def current; end - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:156 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#156 def define(name); end - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:141 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#141 def enter(node); end - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:152 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#152 def leave(node); end - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:168 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#168 def pop; end - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:164 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#164 def push_inherit; end - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:160 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#160 def push_reset; end # @yield [node, current.dup, before] # - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:131 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#131 def visit(node, &block); end class << self @@ -325,20 +325,20 @@ class Unparser::AST::LocalVariableScopeEnumerator # @param node [Parser::AST::Node] # @return [self] # - # source://unparser-0.6.5/lib/unparser/ast/local_variable_scope.rb:106 + # source://unparser//lib/unparser/ast/local_variable_scope.rb#106 def each(node, &block); end end end -# source://unparser-0.6.5/lib/unparser/ast.rb:9 +# source://unparser//lib/unparser/ast.rb#9 Unparser::AST::RESET_NODES = T.let(T.unsafe(nil), Array) -# source://unparser-0.6.5/lib/unparser/ast.rb:7 +# source://unparser//lib/unparser/ast.rb#7 Unparser::AST::TAUTOLOGY = T.let(T.unsafe(nil), Proc) # Controlled AST walker walking the AST in deeth first search with pre order # -# source://unparser-0.6.5/lib/unparser/ast.rb:164 +# source://unparser//lib/unparser/ast.rb#164 class Unparser::AST::Walker include ::Unparser::Equalizer::Methods @@ -348,7 +348,7 @@ class Unparser::AST::Walker # @param node [Parser::AST::Node] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/ast.rb:188 + # source://unparser//lib/unparser/ast.rb#188 def call(node); end class << self @@ -358,7 +358,7 @@ class Unparser::AST::Walker # @param node [Parser::AST::Node] # @return [self] # - # source://unparser-0.6.5/lib/unparser/ast.rb:175 + # source://unparser//lib/unparser/ast.rb#175 def call(node, controller = T.unsafe(nil), &block); end end end @@ -367,7 +367,7 @@ end # # Original code before vendoring and reduction from: https://github.com/dkubb/abstract_type. # -# source://unparser-0.6.5/lib/unparser/abstract_type.rb:7 +# source://unparser//lib/unparser/abstract_type.rb#7 module Unparser::AbstractType mixes_in_class_methods ::Unparser::AbstractType::AbstractMethodDeclarations @@ -383,7 +383,7 @@ module Unparser::AbstractType # @param abstract_class [Class] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:35 + # source://unparser//lib/unparser/abstract_type.rb#35 def create_new_method(abstract_class); end # Hook called when module is included @@ -392,12 +392,12 @@ module Unparser::AbstractType # @param descendant [Module] the module or class including AbstractType # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:17 + # source://unparser//lib/unparser/abstract_type.rb#17 def included(descendant); end end end -# source://unparser-0.6.5/lib/unparser/abstract_type.rb:47 +# source://unparser//lib/unparser/abstract_type.rb#47 module Unparser::AbstractType::AbstractMethodDeclarations # Create abstract instance methods # @@ -412,7 +412,7 @@ module Unparser::AbstractType::AbstractMethodDeclarations # @param names [Array<#to_s>] # @return [self] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:64 + # source://unparser//lib/unparser/abstract_type.rb#64 def abstract_method(*names); end # Create abstract singleton methods @@ -428,7 +428,7 @@ module Unparser::AbstractType::AbstractMethodDeclarations # @param names [Array<#to_s>] # @return [self] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:84 + # source://unparser//lib/unparser/abstract_type.rb#84 def abstract_singleton_method(*names); end private @@ -439,7 +439,7 @@ module Unparser::AbstractType::AbstractMethodDeclarations # @param name [#to_s] the name of the method to create # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:113 + # source://unparser//lib/unparser/abstract_type.rb#113 def create_abstract_instance_method(name); end # Create abstract singleton method @@ -448,7 +448,7 @@ module Unparser::AbstractType::AbstractMethodDeclarations # @param name [#to_s] the name of the method to create # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:99 + # source://unparser//lib/unparser/abstract_type.rb#99 def create_abstract_singleton_method(name); end end @@ -456,7 +456,7 @@ end # # Original code before vendoring and reduction from: https://github.com/dkubb/adamantium. # -# source://unparser-0.6.5/lib/unparser/adamantium.rb:7 +# source://unparser//lib/unparser/adamantium.rb#7 module Unparser::Adamantium include ::Unparser::Adamantium::InstanceMethods @@ -468,32 +468,32 @@ module Unparser::Adamantium # ModuleMethods # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:141 + # source://unparser//lib/unparser/adamantium.rb#141 def included(descendant); end end end # Methods mixed in to adamantium classes # -# source://unparser-0.6.5/lib/unparser/adamantium.rb:70 +# source://unparser//lib/unparser/adamantium.rb#70 module Unparser::Adamantium::ClassMethods # Instantiate a new frozen object # # @api public # @return [Object] # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:77 + # source://unparser//lib/unparser/adamantium.rb#77 def new(*_arg0); end end -# source://unparser-0.6.5/lib/unparser/adamantium.rb:8 +# source://unparser//lib/unparser/adamantium.rb#8 module Unparser::Adamantium::InstanceMethods # A noop #dup for immutable objects # # @api public # @return [self] # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:14 + # source://unparser//lib/unparser/adamantium.rb#14 def dup; end # Freeze the object @@ -501,25 +501,25 @@ module Unparser::Adamantium::InstanceMethods # @api public # @return [Object] # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:23 + # source://unparser//lib/unparser/adamantium.rb#23 def freeze; end private - # source://unparser-0.6.5/lib/unparser/adamantium.rb:30 + # source://unparser//lib/unparser/adamantium.rb#30 def memoized_method_cache; end end # Storage for memoized methods # -# source://unparser-0.6.5/lib/unparser/adamantium.rb:37 +# source://unparser//lib/unparser/adamantium.rb#37 class Unparser::Adamantium::Memory # Initialize the memory storage for memoized methods # # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:44 + # source://unparser//lib/unparser/adamantium.rb#44 def initialize(values); end # Fetch the value from memory, or evaluate if it does not exist @@ -528,13 +528,13 @@ class Unparser::Adamantium::Memory # @param name [Symbol] # @yieldreturn [Object] the value to memoize # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:58 + # source://unparser//lib/unparser/adamantium.rb#58 def fetch(name); end end # Build the memoized method # -# source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:6 +# source://unparser//lib/unparser/adamantium/method_builder.rb#6 class Unparser::Adamantium::MethodBuilder # Initialize an object to build a memoized method # @@ -543,7 +543,7 @@ class Unparser::Adamantium::MethodBuilder # @param method_name [Symbol] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:47 + # source://unparser//lib/unparser/adamantium/method_builder.rb#47 def initialize(descendant, method_name); end # Build a new memoized method @@ -553,30 +553,30 @@ class Unparser::Adamantium::MethodBuilder # method_builder.call # => creates new method # @return [UnboundMethod] # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:63 + # source://unparser//lib/unparser/adamantium/method_builder.rb#63 def call; end private - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:72 + # source://unparser//lib/unparser/adamantium/method_builder.rb#72 def assert_arity(arity); end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:83 + # source://unparser//lib/unparser/adamantium/method_builder.rb#83 def create_memoized_method; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:78 + # source://unparser//lib/unparser/adamantium/method_builder.rb#78 def remove_original_method; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:97 + # source://unparser//lib/unparser/adamantium/method_builder.rb#97 def set_method_visibility; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:101 + # source://unparser//lib/unparser/adamantium/method_builder.rb#101 def visibility; end end # Raised when a block is passed to a memoized method # -# source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:25 +# source://unparser//lib/unparser/adamantium/method_builder.rb#25 class Unparser::Adamantium::MethodBuilder::BlockNotAllowedError < ::ArgumentError # Initialize a block not allowed exception # @@ -585,13 +585,13 @@ class Unparser::Adamantium::MethodBuilder::BlockNotAllowedError < ::ArgumentErro # @param method [Symbol] # @return [BlockNotAllowedError] a new instance of BlockNotAllowedError # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:33 + # source://unparser//lib/unparser/adamantium/method_builder.rb#33 def initialize(descendant, method); end end # Raised when the method arity is invalid # -# source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:9 +# source://unparser//lib/unparser/adamantium/method_builder.rb#9 class Unparser::Adamantium::MethodBuilder::InvalidArityError < ::ArgumentError # Initialize an invalid arity exception # @@ -601,13 +601,13 @@ class Unparser::Adamantium::MethodBuilder::InvalidArityError < ::ArgumentError # @param arity [Integer] # @return [InvalidArityError] a new instance of InvalidArityError # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:18 + # source://unparser//lib/unparser/adamantium/method_builder.rb#18 def initialize(descendant, method, arity); end end # Methods mixed in to adamantium modules # -# source://unparser-0.6.5/lib/unparser/adamantium.rb:84 +# source://unparser//lib/unparser/adamantium.rb#84 module Unparser::Adamantium::ModuleMethods # Memoize a list of methods # @@ -615,7 +615,7 @@ module Unparser::Adamantium::ModuleMethods # @param methods [Array<#to_s>] a list of methods to memoize # @return [self] # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:94 + # source://unparser//lib/unparser/adamantium.rb#94 def memoize(*methods); end # Test if method is memoized @@ -623,7 +623,7 @@ module Unparser::Adamantium::ModuleMethods # @param name [Symbol] # @return [Bool] # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:104 + # source://unparser//lib/unparser/adamantium.rb#104 def memoized?(method_name); end # Return unmemoized instance method @@ -633,21 +633,21 @@ module Unparser::Adamantium::ModuleMethods # @raise [NameError] raised if the method is unknown # @return [UnboundMethod] the memoized method # - # source://unparser-0.6.5/lib/unparser/adamantium.rb:119 + # source://unparser//lib/unparser/adamantium.rb#119 def unmemoized_instance_method(method_name); end private - # source://unparser-0.6.5/lib/unparser/adamantium.rb:127 + # source://unparser//lib/unparser/adamantium.rb#127 def memoize_method(method_name); end - # source://unparser-0.6.5/lib/unparser/adamantium.rb:135 + # source://unparser//lib/unparser/adamantium.rb#135 def memoized_methods; end end # Original code before vendoring and reduction from: https://github.com/mbj/anima. # -# source://unparser-0.6.5/lib/unparser/anima.rb:5 +# source://unparser//lib/unparser/anima.rb#5 class Unparser::Anima < ::Module include ::Unparser::Equalizer::Methods include ::Unparser::Adamantium @@ -660,7 +660,7 @@ class Unparser::Anima < ::Module # # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/anima.rb:18 + # source://unparser//lib/unparser/anima.rb#18 def initialize(*names); end # Return new anima with attributes added @@ -670,21 +670,21 @@ class Unparser::Anima < ::Module # anima.add(:bar) # equals Anima.new(:foo, :bar) # @return [Anima] # - # source://unparser-0.6.5/lib/unparser/anima.rb:31 + # source://unparser//lib/unparser/anima.rb#31 def add(*names); end # Return attribute names # # @return [Enumerable] # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def attribute_names(&block); end # Return names # # @return [AttributeSet] # - # source://unparser-0.6.5/lib/unparser/anima.rb:11 + # source://unparser//lib/unparser/anima.rb#11 def attributes; end # Return attributes hash for instance @@ -692,7 +692,7 @@ class Unparser::Anima < ::Module # @param object [Object] # @return [Hash] # - # source://unparser-0.6.5/lib/unparser/anima.rb:52 + # source://unparser//lib/unparser/anima.rb#52 def attributes_hash(object); end # Initialize instance @@ -701,7 +701,7 @@ class Unparser::Anima < ::Module # @param attribute_hash [Hash] # @return [self] # - # source://unparser-0.6.5/lib/unparser/anima.rb:73 + # source://unparser//lib/unparser/anima.rb#73 def initialize_instance(object, attribute_hash); end # Return new anima with attributes removed @@ -711,7 +711,7 @@ class Unparser::Anima < ::Module # anima.remove(:bar) # equals Anima.new(:foo) # @return [Anima] # - # source://unparser-0.6.5/lib/unparser/anima.rb:43 + # source://unparser//lib/unparser/anima.rb#43 def remove(*names); end private @@ -723,7 +723,7 @@ class Unparser::Anima < ::Module # @raise [Error] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/anima.rb:164 + # source://unparser//lib/unparser/anima.rb#164 def assert_known_attributes(klass, attribute_hash); end # Infect the instance with anima @@ -731,7 +731,7 @@ class Unparser::Anima < ::Module # @param scope [Class, Module] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/anima.rb:137 + # source://unparser//lib/unparser/anima.rb#137 def included(descendant); end # Return new instance @@ -739,13 +739,13 @@ class Unparser::Anima < ::Module # @param attributes [Enumerable] # @return [Anima] # - # source://unparser-0.6.5/lib/unparser/anima.rb:180 + # source://unparser//lib/unparser/anima.rb#180 def new(attributes); end end # An attribute # -# source://unparser-0.6.5/lib/unparser/anima/attribute.rb:6 +# source://unparser//lib/unparser/anima/attribute.rb#6 class Unparser::Anima::Attribute include ::Unparser::Equalizer::Methods include ::Unparser::Adamantium @@ -758,7 +758,7 @@ class Unparser::Anima::Attribute # @param name [Symbol] # @return [Attribute] a new instance of Attribute # - # source://unparser-0.6.5/lib/unparser/anima/attribute.rb:12 + # source://unparser//lib/unparser/anima/attribute.rb#12 def initialize(name); end # Get attribute value from object @@ -766,14 +766,14 @@ class Unparser::Anima::Attribute # @param object [Object] # @return [Object] # - # source://unparser-0.6.5/lib/unparser/anima/attribute.rb:42 + # source://unparser//lib/unparser/anima/attribute.rb#42 def get(object); end # Return instance variable name # # @return [Symbol] # - # source://unparser-0.6.5/lib/unparser/anima/attribute.rb:25 + # source://unparser//lib/unparser/anima/attribute.rb#25 def instance_variable_name; end # Load attribute @@ -782,14 +782,14 @@ class Unparser::Anima::Attribute # @param attributes [Hash] # @return [self] # - # source://unparser-0.6.5/lib/unparser/anima/attribute.rb:33 + # source://unparser//lib/unparser/anima/attribute.rb#33 def load(object, attributes); end # Return attribute name # # @return [Symbol] # - # source://unparser-0.6.5/lib/unparser/anima/attribute.rb:20 + # source://unparser//lib/unparser/anima/attribute.rb#20 def name; end # Set attribute value in object @@ -798,13 +798,13 @@ class Unparser::Anima::Attribute # @param value [Object] # @return [self] # - # source://unparser-0.6.5/lib/unparser/anima/attribute.rb:52 + # source://unparser//lib/unparser/anima/attribute.rb#52 def set(object, value); end end # Abstract base class for anima errors # -# source://unparser-0.6.5/lib/unparser/anima/error.rb:6 +# source://unparser//lib/unparser/anima/error.rb#6 class Unparser::Anima::Error < ::RuntimeError # Initialize object # @@ -813,16 +813,16 @@ class Unparser::Anima::Error < ::RuntimeError # @param unknown [Enumerable] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/anima/error.rb:18 + # source://unparser//lib/unparser/anima/error.rb#18 def initialize(klass, missing, unknown); end end -# source://unparser-0.6.5/lib/unparser/anima/error.rb:7 +# source://unparser//lib/unparser/anima/error.rb#7 Unparser::Anima::Error::FORMAT = T.let(T.unsafe(nil), String) # Static instance methods for anima infected classes # -# source://unparser-0.6.5/lib/unparser/anima.rb:82 +# source://unparser//lib/unparser/anima.rb#82 module Unparser::Anima::InstanceMethods # Initialize an anima infected object # @@ -830,7 +830,7 @@ module Unparser::Anima::InstanceMethods # @param attributes [#to_h] a hash that matches anima defined attributes # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/anima.rb:91 + # source://unparser//lib/unparser/anima.rb#91 def initialize(attributes); end # Return a hash representation of an anima infected object @@ -840,7 +840,7 @@ module Unparser::Anima::InstanceMethods # anima.to_h # => { :foo => : bar } # @return [Hash] # - # source://unparser-0.6.5/lib/unparser/anima.rb:104 + # source://unparser//lib/unparser/anima.rb#104 def to_h; end # Return updated instance @@ -858,20 +858,20 @@ module Unparser::Anima::InstanceMethods # @param attributes [Hash] # @return [Anima] # - # source://unparser-0.6.5/lib/unparser/anima.rb:125 + # source://unparser//lib/unparser/anima.rb#125 def with(attributes); end end # Buffer used to emit into # -# source://unparser-0.6.5/lib/unparser/buffer.rb:6 +# source://unparser//lib/unparser/buffer.rb#6 class Unparser::Buffer # Initialize object # # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:16 + # source://unparser//lib/unparser/buffer.rb#16 def initialize; end # Append string @@ -880,7 +880,7 @@ class Unparser::Buffer # @param string [String] # @return [self] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:29 + # source://unparser//lib/unparser/buffer.rb#29 def append(string); end # Append a string without an indentation prefix @@ -889,23 +889,15 @@ class Unparser::Buffer # @param string [String] # @return [self] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:45 + # source://unparser//lib/unparser/buffer.rb#45 def append_without_prefix(string); end - # Capture the content written to the buffer within the block - # - # @api private - # @return [String] - # - # source://unparser-0.6.5/lib/unparser/buffer.rb:116 - def capture_content; end - # Return content of buffer # # @api private # @return [String] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:106 + # source://unparser//lib/unparser/buffer.rb#104 def content; end # Test for a fresh line @@ -913,7 +905,7 @@ class Unparser::Buffer # @api private # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:96 + # source://unparser//lib/unparser/buffer.rb#94 def fresh_line?; end # Increase indent @@ -921,7 +913,7 @@ class Unparser::Buffer # @api private # @return [self] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:56 + # source://unparser//lib/unparser/buffer.rb#55 def indent; end # Write newline @@ -929,10 +921,10 @@ class Unparser::Buffer # @api private # @return [self] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:78 + # source://unparser//lib/unparser/buffer.rb#77 def nl; end - # source://unparser-0.6.5/lib/unparser/buffer.rb:83 + # source://unparser//lib/unparser/buffer.rb#81 def root_indent; end # Decrease indent @@ -940,7 +932,7 @@ class Unparser::Buffer # @api private # @return [self] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:67 + # source://unparser//lib/unparser/buffer.rb#66 def unindent; end # Write raw fragment to buffer @@ -950,34 +942,34 @@ class Unparser::Buffer # @param fragment [String] # @return [self] # - # source://unparser-0.6.5/lib/unparser/buffer.rb:129 + # source://unparser//lib/unparser/buffer.rb#115 def write(fragment); end private - # source://unparser-0.6.5/lib/unparser/buffer.rb:138 + # source://unparser//lib/unparser/buffer.rb#124 def prefix; end end -# source://unparser-0.6.5/lib/unparser/buffer.rb:136 +# source://unparser//lib/unparser/buffer.rb#122 Unparser::Buffer::INDENT_SPACE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/buffer.rb:8 +# source://unparser//lib/unparser/buffer.rb#8 Unparser::Buffer::NL = T.let(T.unsafe(nil), String) # Unparser specific AST builder defaulting to modern AST format # -# source://unparser-0.6.5/lib/unparser.rb:23 +# source://unparser//lib/unparser.rb#23 class Unparser::Builder < ::Parser::Builders::Default # @return [Builder] a new instance of Builder # - # source://unparser-0.6.5/lib/unparser.rb:26 + # source://unparser//lib/unparser.rb#26 def initialize; end end # Unparser CLI implementation # -# source://unparser-0.6.5/lib/unparser/cli.rb:5 +# source://unparser//lib/unparser/cli.rb#5 class Unparser::CLI # Initialize object # @@ -985,7 +977,7 @@ class Unparser::CLI # @param arguments [Array] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/cli.rb:74 + # source://unparser//lib/unparser/cli.rb#74 def initialize(arguments); end # Add options @@ -995,7 +987,7 @@ class Unparser::CLI # @param builder [OptionParser] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/cli.rb:102 + # source://unparser//lib/unparser/cli.rb#102 def add_options(builder); end # Return exit status @@ -1003,18 +995,18 @@ class Unparser::CLI # @api private # @return [Integer] # - # source://unparser-0.6.5/lib/unparser/cli.rb:132 + # source://unparser//lib/unparser/cli.rb#132 def exit_status; end private - # source://unparser-0.6.5/lib/unparser/cli.rb:155 + # source://unparser//lib/unparser/cli.rb#155 def effective_targets; end - # source://unparser-0.6.5/lib/unparser/cli.rb:143 + # source://unparser//lib/unparser/cli.rb#143 def process_target(target); end - # source://unparser-0.6.5/lib/unparser/cli.rb:170 + # source://unparser//lib/unparser/cli.rb#170 def targets(file_name); end class << self @@ -1024,31 +1016,31 @@ class Unparser::CLI # @param arguments [Array] # @return [Integer] the exit status # - # source://unparser-0.6.5/lib/unparser/cli.rb:63 + # source://unparser//lib/unparser/cli.rb#63 def run(*arguments); end end end -# source://unparser-0.6.5/lib/unparser/cli.rb:8 +# source://unparser//lib/unparser/cli.rb#8 Unparser::CLI::EXIT_FAILURE = T.let(T.unsafe(nil), Integer) -# source://unparser-0.6.5/lib/unparser/cli.rb:7 +# source://unparser//lib/unparser/cli.rb#7 Unparser::CLI::EXIT_SUCCESS = T.let(T.unsafe(nil), Integer) -# source://unparser-0.6.5/lib/unparser/cli.rb:10 +# source://unparser//lib/unparser/cli.rb#10 class Unparser::CLI::Target include ::Unparser::AbstractType extend ::Unparser::AbstractType::AbstractMethodDeclarations class << self - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:36 + # source://unparser//lib/unparser/abstract_type.rb#36 def new(*args, &block); end end end # Path target # -# source://unparser-0.6.5/lib/unparser/cli.rb:14 +# source://unparser//lib/unparser/cli.rb#14 class Unparser::CLI::Target::Path < ::Unparser::CLI::Target include ::Unparser::Equalizer::Methods @@ -1056,20 +1048,20 @@ class Unparser::CLI::Target::Path < ::Unparser::CLI::Target # # @return [Validation] # - # source://unparser-0.6.5/lib/unparser/cli.rb:27 + # source://unparser//lib/unparser/cli.rb#27 def literal_validation; end # Validation for this target # # @return [Validation] # - # source://unparser-0.6.5/lib/unparser/cli.rb:20 + # source://unparser//lib/unparser/cli.rb#20 def validation; end end # String target # -# source://unparser-0.6.5/lib/unparser/cli.rb:33 +# source://unparser//lib/unparser/cli.rb#33 class Unparser::CLI::Target::String include ::Unparser::Equalizer::Methods @@ -1077,20 +1069,20 @@ class Unparser::CLI::Target::String # # @return [Validation] # - # source://unparser-0.6.5/lib/unparser/cli.rb:46 + # source://unparser//lib/unparser/cli.rb#46 def literal_validation; end # Validation for this target # # @return [Validation] # - # source://unparser-0.6.5/lib/unparser/cli.rb:39 + # source://unparser//lib/unparser/cli.rb#39 def validation; end end # Class to colorize strings # -# source://unparser-0.6.5/lib/unparser/color.rb:5 +# source://unparser//lib/unparser/color.rb#5 class Unparser::Color include ::Unparser::Equalizer::Methods include ::Unparser::Adamantium @@ -1103,22 +1095,22 @@ class Unparser::Color # @param text [String] # @return [String] # - # source://unparser-0.6.5/lib/unparser/color.rb:13 + # source://unparser//lib/unparser/color.rb#13 def format(text); end end -# source://unparser-0.6.5/lib/unparser/color.rb:36 +# source://unparser//lib/unparser/color.rb#39 Unparser::Color::GREEN = T.let(T.unsafe(nil), Unparser::Color) -# source://unparser-0.6.5/lib/unparser/color.rb:17 +# source://unparser//lib/unparser/color.rb#17 Unparser::Color::NONE = T.let(T.unsafe(nil), T.untyped) -# source://unparser-0.6.5/lib/unparser/color.rb:35 +# source://unparser//lib/unparser/color.rb#38 Unparser::Color::RED = T.let(T.unsafe(nil), Unparser::Color) # Holds the comments that remain to be emitted # -# source://unparser-0.6.5/lib/unparser/comments.rb:6 +# source://unparser//lib/unparser/comments.rb#6 class Unparser::Comments # Initialize object # @@ -1126,7 +1118,7 @@ class Unparser::Comments # @param comments [Array] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/comments.rb:30 + # source://unparser//lib/unparser/comments.rb#30 def initialize(comments); end # Consume part or all of the node @@ -1136,7 +1128,7 @@ class Unparser::Comments # @param source_part [Symbol] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/comments.rb:44 + # source://unparser//lib/unparser/comments.rb#44 def consume(node, source_part = T.unsafe(nil)); end # Proxy to singleton @@ -1148,7 +1140,7 @@ class Unparser::Comments # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/comments.rb:18 + # source://unparser//lib/unparser/comments.rb#18 def source_range(*arguments); end # Take all remaining comments @@ -1156,7 +1148,7 @@ class Unparser::Comments # @api private # @return [Array] # - # source://unparser-0.6.5/lib/unparser/comments.rb:68 + # source://unparser//lib/unparser/comments.rb#68 def take_all; end # Take comments appear in the source before the specified part of the node @@ -1166,7 +1158,7 @@ class Unparser::Comments # @param source_part [Symbol] # @return [Array] # - # source://unparser-0.6.5/lib/unparser/comments.rb:81 + # source://unparser//lib/unparser/comments.rb#81 def take_before(node, source_part); end # Take end-of-line comments @@ -1174,18 +1166,18 @@ class Unparser::Comments # @api private # @return [Array] # - # source://unparser-0.6.5/lib/unparser/comments.rb:55 + # source://unparser//lib/unparser/comments.rb#55 def take_eol_comments; end private - # source://unparser-0.6.5/lib/unparser/comments.rb:119 + # source://unparser//lib/unparser/comments.rb#119 def take_up_to_line(line); end - # source://unparser-0.6.5/lib/unparser/comments.rb:114 + # source://unparser//lib/unparser/comments.rb#114 def take_while; end - # source://unparser-0.6.5/lib/unparser/comments.rb:123 + # source://unparser//lib/unparser/comments.rb#123 def unshift_documents(comments); end class << self @@ -1201,7 +1193,7 @@ class Unparser::Comments # @return [Parser::Source::Range] if present # @return [nil] otherwise # - # source://unparser-0.6.5/lib/unparser/comments.rb:107 + # source://unparser//lib/unparser/comments.rb#107 def source_range(node, part); end end end @@ -1210,7 +1202,7 @@ end # # Original code before vendoring and reduction from: https://github.com/mbj/concord. # -# source://unparser-0.6.5/lib/unparser/concord.rb:7 +# source://unparser//lib/unparser/concord.rb#7 class Unparser::Concord < ::Module include ::Unparser::Equalizer::Methods include ::Unparser::Adamantium @@ -1224,7 +1216,7 @@ class Unparser::Concord < ::Module # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/concord.rb:30 + # source://unparser//lib/unparser/concord.rb#30 def initialize(*names); end # Return names @@ -1232,7 +1224,7 @@ class Unparser::Concord < ::Module # @api private # @return [Enumerable] # - # source://unparser-0.6.5/lib/unparser/concord.rb:19 + # source://unparser//lib/unparser/concord.rb#19 def names; end private @@ -1242,7 +1234,7 @@ class Unparser::Concord < ::Module # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/concord.rb:48 + # source://unparser//lib/unparser/concord.rb#48 def define_equalizer; end # Define initialize method @@ -1250,7 +1242,7 @@ class Unparser::Concord < ::Module # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/concord.rb:72 + # source://unparser//lib/unparser/concord.rb#72 def define_initialize; end # Define readers @@ -1258,7 +1250,7 @@ class Unparser::Concord < ::Module # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/concord.rb:58 + # source://unparser//lib/unparser/concord.rb#58 def define_readers; end # Return instance variable names @@ -1266,18 +1258,18 @@ class Unparser::Concord < ::Module # @api private # @return [String] # - # source://unparser-0.6.5/lib/unparser/concord.rb:92 + # source://unparser//lib/unparser/concord.rb#92 def instance_variable_names; end end # The maximum number of objects the hosting class is composed of # -# source://unparser-0.6.5/lib/unparser/concord.rb:11 +# source://unparser//lib/unparser/concord.rb#11 Unparser::Concord::MAX_NR_OF_OBJECTS = T.let(T.unsafe(nil), Integer) # Mixin for public attribute readers # -# source://unparser-0.6.5/lib/unparser/concord.rb:97 +# source://unparser//lib/unparser/concord.rb#97 class Unparser::Concord::Public < ::Unparser::Concord # Hook called when module is included # @@ -1285,178 +1277,178 @@ class Unparser::Concord::Public < ::Unparser::Concord # @param descendant [Class, Module] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/concord.rb:107 + # source://unparser//lib/unparser/concord.rb#107 def included(descendant); end end # All unparser constants maybe included in other libraries. # -# source://unparser-0.6.5/lib/unparser/constants.rb:5 +# source://unparser//lib/unparser/constants.rb#5 module Unparser::Constants; end # All binary operators of the ruby language # -# source://unparser-0.6.5/lib/unparser/constants.rb:13 +# source://unparser//lib/unparser/constants.rb#13 Unparser::Constants::BINARY_OPERATORS = T.let(T.unsafe(nil), Set) -# source://unparser-0.6.5/lib/unparser/constants.rb:63 +# source://unparser//lib/unparser/constants.rb#63 Unparser::Constants::KEYWORDS = T.let(T.unsafe(nil), Set) -# source://unparser-0.6.5/lib/unparser/constants.rb:45 +# source://unparser//lib/unparser/constants.rb#45 Unparser::Constants::K_ALIAS = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:44 +# source://unparser//lib/unparser/constants.rb#44 Unparser::Constants::K_AND = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:23 +# source://unparser//lib/unparser/constants.rb#23 Unparser::Constants::K_BEGIN = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:37 +# source://unparser//lib/unparser/constants.rb#37 Unparser::Constants::K_BREAK = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:24 +# source://unparser//lib/unparser/constants.rb#24 Unparser::Constants::K_CASE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:25 +# source://unparser//lib/unparser/constants.rb#25 Unparser::Constants::K_CLASS = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:21 +# source://unparser//lib/unparser/constants.rb#21 Unparser::Constants::K_DEF = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:28 +# source://unparser//lib/unparser/constants.rb#28 Unparser::Constants::K_DEFINE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:33 +# source://unparser//lib/unparser/constants.rb#33 Unparser::Constants::K_DEFINED = T.let(T.unsafe(nil), String) # Keywords # -# source://unparser-0.6.5/lib/unparser/constants.rb:20 +# source://unparser//lib/unparser/constants.rb#20 Unparser::Constants::K_DO = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:59 +# source://unparser//lib/unparser/constants.rb#59 Unparser::Constants::K_EEND = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:46 +# source://unparser//lib/unparser/constants.rb#46 Unparser::Constants::K_ELSE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:47 +# source://unparser//lib/unparser/constants.rb#47 Unparser::Constants::K_ELSIF = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:58 +# source://unparser//lib/unparser/constants.rb#58 Unparser::Constants::K_ENCODING = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:22 +# source://unparser//lib/unparser/constants.rb#22 Unparser::Constants::K_END = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:27 +# source://unparser//lib/unparser/constants.rb#27 Unparser::Constants::K_ENSURE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:41 +# source://unparser//lib/unparser/constants.rb#41 Unparser::Constants::K_FALSE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:60 +# source://unparser//lib/unparser/constants.rb#60 Unparser::Constants::K_FILE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:48 +# source://unparser//lib/unparser/constants.rb#48 Unparser::Constants::K_FOR = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:43 +# source://unparser//lib/unparser/constants.rb#43 Unparser::Constants::K_IF = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:51 +# source://unparser//lib/unparser/constants.rb#51 Unparser::Constants::K_IN = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:29 +# source://unparser//lib/unparser/constants.rb#29 Unparser::Constants::K_MODULE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:40 +# source://unparser//lib/unparser/constants.rb#40 Unparser::Constants::K_NEXT = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:49 +# source://unparser//lib/unparser/constants.rb#49 Unparser::Constants::K_NIL = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:50 +# source://unparser//lib/unparser/constants.rb#50 Unparser::Constants::K_NOT = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:52 +# source://unparser//lib/unparser/constants.rb#52 Unparser::Constants::K_OR = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:35 +# source://unparser//lib/unparser/constants.rb#35 Unparser::Constants::K_POSTEXE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:34 +# source://unparser//lib/unparser/constants.rb#34 Unparser::Constants::K_PREEXE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:39 +# source://unparser//lib/unparser/constants.rb#39 Unparser::Constants::K_REDO = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:30 +# source://unparser//lib/unparser/constants.rb#30 Unparser::Constants::K_RESCUE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:38 +# source://unparser//lib/unparser/constants.rb#38 Unparser::Constants::K_RETRY = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:31 +# source://unparser//lib/unparser/constants.rb#31 Unparser::Constants::K_RETURN = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:26 +# source://unparser//lib/unparser/constants.rb#26 Unparser::Constants::K_SELF = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:36 +# source://unparser//lib/unparser/constants.rb#36 Unparser::Constants::K_SUPER = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:61 +# source://unparser//lib/unparser/constants.rb#61 Unparser::Constants::K_THEN = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:42 +# source://unparser//lib/unparser/constants.rb#42 Unparser::Constants::K_TRUE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:32 +# source://unparser//lib/unparser/constants.rb#32 Unparser::Constants::K_UNDEF = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:53 +# source://unparser//lib/unparser/constants.rb#53 Unparser::Constants::K_UNLESS = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:56 +# source://unparser//lib/unparser/constants.rb#56 Unparser::Constants::K_UNTIL = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:54 +# source://unparser//lib/unparser/constants.rb#54 Unparser::Constants::K_WHEN = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:55 +# source://unparser//lib/unparser/constants.rb#55 Unparser::Constants::K_WHILE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/constants.rb:57 +# source://unparser//lib/unparser/constants.rb#57 Unparser::Constants::K_YIELD = T.let(T.unsafe(nil), String) # All unary operators of the ruby language # -# source://unparser-0.6.5/lib/unparser/constants.rb:8 +# source://unparser//lib/unparser/constants.rb#8 Unparser::Constants::UNARY_OPERATORS = T.let(T.unsafe(nil), Set) # DSL to help defining emitters # -# source://unparser-0.6.5/lib/unparser/dsl.rb:5 +# source://unparser//lib/unparser/dsl.rb#5 module Unparser::DSL private - # source://unparser-0.6.5/lib/unparser/dsl.rb:32 + # source://unparser//lib/unparser/dsl.rb#32 def children(*names); end - # source://unparser-0.6.5/lib/unparser/dsl.rb:17 + # source://unparser//lib/unparser/dsl.rb#17 def define_child(name, index); end - # source://unparser-0.6.5/lib/unparser/dsl.rb:24 + # source://unparser//lib/unparser/dsl.rb#24 def define_group(name, range); end - # source://unparser-0.6.5/lib/unparser/dsl.rb:9 + # source://unparser//lib/unparser/dsl.rb#9 def define_remaining_children(names); end end # Class to create diffs from source code # -# source://unparser-0.6.5/lib/unparser/diff.rb:5 +# source://unparser//lib/unparser/diff.rb#5 class Unparser::Diff include ::Unparser::Equalizer::Methods include ::Unparser::Adamantium @@ -1469,7 +1461,7 @@ class Unparser::Diff # @return [String] if there is a diff # @return [nil] otherwise # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def colorized_diff(&block); end # Unified source diff between old and new @@ -1477,21 +1469,21 @@ class Unparser::Diff # @return [String] if there is exactly one diff # @return [nil] otherwise # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def diff(&block); end private - # source://unparser-0.6.5/lib/unparser/diff.rb:62 + # source://unparser//lib/unparser/diff.rb#62 def diffs; end - # source://unparser-0.6.5/lib/unparser/diff.rb:66 + # source://unparser//lib/unparser/diff.rb#66 def hunks; end - # source://unparser-0.6.5/lib/unparser/diff.rb:81 + # source://unparser//lib/unparser/diff.rb#81 def max_length; end - # source://unparser-0.6.5/lib/unparser/diff.rb:72 + # source://unparser//lib/unparser/diff.rb#72 def minimized_hunk; end class << self @@ -1501,12 +1493,12 @@ class Unparser::Diff # @param new [String] # @return [Diff] # - # source://unparser-0.6.5/lib/unparser/diff.rb:46 + # source://unparser//lib/unparser/diff.rb#46 def build(old, new); end private - # source://unparser-0.6.5/lib/unparser/diff.rb:85 + # source://unparser//lib/unparser/diff.rb#85 def colorize_line(line); end # Break up source into lines @@ -1514,29 +1506,29 @@ class Unparser::Diff # @param source [String] # @return [Array] # - # source://unparser-0.6.5/lib/unparser/diff.rb:55 + # source://unparser//lib/unparser/diff.rb#55 def lines(source); end end end -# source://unparser-0.6.5/lib/unparser/diff.rb:8 +# source://unparser//lib/unparser/diff.rb#8 Unparser::Diff::ADDITION = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/diff.rb:9 +# source://unparser//lib/unparser/diff.rb#9 Unparser::Diff::DELETION = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/diff.rb:10 +# source://unparser//lib/unparser/diff.rb#10 Unparser::Diff::NEWLINE = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser.rb:34 +# source://unparser//lib/unparser.rb#34 Unparser::EMPTY_ARRAY = T.let(T.unsafe(nil), Array) -# source://unparser-0.6.5/lib/unparser.rb:33 +# source://unparser//lib/unparser.rb#33 Unparser::EMPTY_STRING = T.let(T.unsafe(nil), String) # RequireBLock # -# source://unparser-0.6.5/lib/unparser/either.rb:21 +# source://unparser//lib/unparser/either.rb#21 class Unparser::Either include ::Unparser::RequireBlock include ::Unparser::Equalizer::Methods @@ -1549,14 +1541,14 @@ class Unparser::Either # # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/either.rb:42 + # source://unparser//lib/unparser/either.rb#42 def left?; end # Test for right constructor # # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/either.rb:49 + # source://unparser//lib/unparser/either.rb#49 def right?; end class << self @@ -1565,18 +1557,18 @@ class Unparser::Either # @param exception [Class] # @return [Either] # - # source://unparser-0.6.5/lib/unparser/either.rb:33 + # source://unparser//lib/unparser/either.rb#33 def wrap_error(*exceptions); end end end -# source://unparser-0.6.5/lib/unparser/either.rb:56 +# source://unparser//lib/unparser/either.rb#56 class Unparser::Either::Left < ::Unparser::Either # Evaluate applicative block # # @return [Either::Left] # - # source://unparser-0.6.5/lib/unparser/either.rb:64 + # source://unparser//lib/unparser/either.rb#64 def bind(&block); end # Evaluate left side of branch @@ -1584,48 +1576,48 @@ class Unparser::Either::Left < ::Unparser::Either # @param left [#call] # @param _right [#call] # - # source://unparser-0.6.5/lib/unparser/either.rb:98 + # source://unparser//lib/unparser/either.rb#98 def either(left, _right); end # Evaluate functor block # # @return [Either::Left] # - # source://unparser-0.6.5/lib/unparser/either.rb:57 + # source://unparser//lib/unparser/either.rb#57 def fmap(&block); end # Unwrap value from left # # @return [Object] # - # source://unparser-0.6.5/lib/unparser/either.rb:71 + # source://unparser//lib/unparser/either.rb#71 def from_left; end # Unwrap value from right # # @return [Object] # - # source://unparser-0.6.5/lib/unparser/either.rb:79 + # source://unparser//lib/unparser/either.rb#79 def from_right; end # Map over left value # # @return [Either::Right] # - # source://unparser-0.6.5/lib/unparser/either.rb:90 + # source://unparser//lib/unparser/either.rb#90 def lmap; end end # Left # -# source://unparser-0.6.5/lib/unparser/either.rb:106 +# source://unparser//lib/unparser/either.rb#106 class Unparser::Either::Right < ::Unparser::Either # Evaluate applicative block # # @return [Either] # @yield [value] # - # source://unparser-0.6.5/lib/unparser/either.rb:114 + # source://unparser//lib/unparser/either.rb#114 def bind; end # Evaluate right side of branch @@ -1633,41 +1625,41 @@ class Unparser::Either::Right < ::Unparser::Either # @param _left [#call] # @param right [#call] # - # source://unparser-0.6.5/lib/unparser/either.rb:148 + # source://unparser//lib/unparser/either.rb#148 def either(_left, right); end # Evaluate functor block # # @return [Either::Right] # - # source://unparser-0.6.5/lib/unparser/either.rb:107 + # source://unparser//lib/unparser/either.rb#107 def fmap; end # Unwrap value from left # # @return [Object] # - # source://unparser-0.6.5/lib/unparser/either.rb:122 + # source://unparser//lib/unparser/either.rb#122 def from_left; end # Unwrap value from right # # @return [Object] # - # source://unparser-0.6.5/lib/unparser/either.rb:133 + # source://unparser//lib/unparser/either.rb#133 def from_right; end # Map over left value # # @return [Either::Right] # - # source://unparser-0.6.5/lib/unparser/either.rb:140 + # source://unparser//lib/unparser/either.rb#140 def lmap(&block); end end # Emitter base class # -# source://unparser-0.6.5/lib/unparser/emitter.rb:7 +# source://unparser//lib/unparser/emitter.rb#7 class Unparser::Emitter include ::Unparser::NodeHelpers include ::Unparser::Generation @@ -1682,10 +1674,10 @@ class Unparser::Emitter extend ::Unparser::Adamantium::ClassMethods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def buffer; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def comments; end # Dispatch node write as statement @@ -1693,25 +1685,25 @@ class Unparser::Emitter # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:114 + # source://unparser//lib/unparser/abstract_type.rb#114 def dispatch(*_arg0); end - # source://unparser-0.6.5/lib/unparser/emitter.rb:59 + # source://unparser//lib/unparser/emitter.rb#59 def emit_mlhs; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def local_variable_scope; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def node; end # LocalVariableRoot # - # source://unparser-0.6.5/lib/unparser/emitter.rb:38 + # source://unparser//lib/unparser/emitter.rb#38 def node_type; end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end # Return emitter @@ -1720,10 +1712,10 @@ class Unparser::Emitter # @api private # @return [Emitter] # - # source://unparser-0.6.5/lib/unparser/emitter.rb:70 + # source://unparser//lib/unparser/emitter.rb#70 def emitter(buffer:, comments:, node:, local_variable_scope:); end - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:36 + # source://unparser//lib/unparser/abstract_type.rb#36 def new(*args, &block); end private @@ -1734,295 +1726,295 @@ class Unparser::Emitter # @param types [Symbol] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/emitter.rb:50 + # source://unparser//lib/unparser/emitter.rb#50 def handle(*types); end end end # Emitter for alias nodes # -# source://unparser-0.6.5/lib/unparser/emitter/alias.rb:6 +# source://unparser//lib/unparser/emitter/alias.rb#6 class Unparser::Emitter::Alias < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/alias.rb:14 + # source://unparser//lib/unparser/emitter/alias.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def source; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Arguments emitter # -# source://unparser-0.6.5/lib/unparser/emitter/args.rb:6 +# source://unparser//lib/unparser/emitter/args.rb#6 class Unparser::Emitter::Args < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/args.rb:7 + # source://unparser//lib/unparser/emitter/args.rb#7 def emit_block_arguments; end - # source://unparser-0.6.5/lib/unparser/emitter/args.rb:15 + # source://unparser//lib/unparser/emitter/args.rb#15 def emit_def_arguments; end - # source://unparser-0.6.5/lib/unparser/emitter/args.rb:19 + # source://unparser//lib/unparser/emitter/args.rb#19 def emit_lambda_arguments; end private - # source://unparser-0.6.5/lib/unparser/emitter/args.rb:26 + # source://unparser//lib/unparser/emitter/args.rb#26 def emit_shadowargs; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def normal_arguments(&block); end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def shadowargs(&block); end end # Argument emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:82 +# source://unparser//lib/unparser/emitter/argument.rb#84 class Unparser::Emitter::Argument < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:89 + # source://unparser//lib/unparser/emitter/argument.rb#91 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Array literal emitter # -# source://unparser-0.6.5/lib/unparser/emitter/array.rb:6 +# source://unparser//lib/unparser/emitter/array.rb#6 class Unparser::Emitter::Array < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/array.rb:9 + # source://unparser//lib/unparser/emitter/array.rb#9 def emit_heredoc_reminders; end private - # source://unparser-0.6.5/lib/unparser/emitter/array.rb:15 + # source://unparser//lib/unparser/emitter/array.rb#15 def dispatch; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def emitters(&block); end end # Emitter for array patterns # -# source://unparser-0.6.5/lib/unparser/emitter/array_pattern.rb:6 +# source://unparser//lib/unparser/emitter/array_pattern.rb#6 class Unparser::Emitter::ArrayPattern < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/array_pattern.rb:13 + # source://unparser//lib/unparser/emitter/array_pattern.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/array_pattern.rb:20 + # source://unparser//lib/unparser/emitter/array_pattern.rb#20 def emit_member(node); end end # Base class for assignment emitters # -# source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:7 +# source://unparser//lib/unparser/emitter/assignment.rb#7 class Unparser::Emitter::Assignment < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:14 + # source://unparser//lib/unparser/emitter/assignment.rb#14 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:114 + # source://unparser//lib/unparser/abstract_type.rb#114 def emit_left(*_arg0); end - # source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:10 + # source://unparser//lib/unparser/emitter/assignment.rb#10 def symbol_name; end private - # source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:22 + # source://unparser//lib/unparser/emitter/assignment.rb#22 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:27 + # source://unparser//lib/unparser/emitter/assignment.rb#27 def emit_right; end end -# source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:8 +# source://unparser//lib/unparser/emitter/assignment.rb#8 Unparser::Emitter::Assignment::BINARY_OPERATOR = T.let(T.unsafe(nil), Array) # Constant assignment emitter # -# source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:57 +# source://unparser//lib/unparser/emitter/assignment.rb#57 class Unparser::Emitter::Assignment::Constant < ::Unparser::Emitter::Assignment private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def base; end - # source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:65 + # source://unparser//lib/unparser/emitter/assignment.rb#65 def emit_left; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def right; end end # Variable assignment emitter # -# source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:42 +# source://unparser//lib/unparser/emitter/assignment.rb#42 class Unparser::Emitter::Assignment::Variable < ::Unparser::Emitter::Assignment private - # source://unparser-0.6.5/lib/unparser/emitter/assignment.rb:50 + # source://unparser//lib/unparser/emitter/assignment.rb#50 def emit_left; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def right; end end # Emitter for begin nodes # -# source://unparser-0.6.5/lib/unparser/emitter/begin.rb:7 +# source://unparser//lib/unparser/emitter/begin.rb#7 class Unparser::Emitter::Begin < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/begin.rb:11 + # source://unparser//lib/unparser/emitter/begin.rb#11 def emit_heredoc_reminders; end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/begin.rb:19 + # source://unparser//lib/unparser/emitter/begin.rb#19 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Non send binary operator / keyword emitter # -# source://unparser-0.6.5/lib/unparser/emitter/binary.rb:6 +# source://unparser//lib/unparser/emitter/binary.rb#6 class Unparser::Emitter::Binary < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/binary.rb:11 + # source://unparser//lib/unparser/emitter/binary.rb#11 def dispatch; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def writer(&block); end end # Base class for and and or op-assign # -# source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:7 +# source://unparser//lib/unparser/emitter/op_assign.rb#7 class Unparser::Emitter::BinaryAssign < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:17 + # source://unparser//lib/unparser/emitter/op_assign.rb#17 def emit_heredoc_reminders; end private - # source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:24 + # source://unparser//lib/unparser/emitter/op_assign.rb#24 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def expression; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end -# source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:10 +# source://unparser//lib/unparser/emitter/op_assign.rb#10 Unparser::Emitter::BinaryAssign::MAP = T.let(T.unsafe(nil), Hash) # Block emitter # -# source://unparser-0.6.5/lib/unparser/emitter/block.rb:7 +# source://unparser//lib/unparser/emitter/block.rb#7 class Unparser::Emitter::Block < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def arguments; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:14 + # source://unparser//lib/unparser/emitter/block.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:75 + # source://unparser//lib/unparser/emitter/block.rb#75 def emit_block_arguments; end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:67 + # source://unparser//lib/unparser/emitter/block.rb#67 def emit_lambda_arguments; end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:61 + # source://unparser//lib/unparser/emitter/block.rb#61 def emit_send_target; end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:49 + # source://unparser//lib/unparser/emitter/block.rb#49 def emit_target; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:24 + # source://unparser//lib/unparser/emitter/block.rb#24 def need_do?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:71 + # source://unparser//lib/unparser/emitter/block.rb#71 def numblock?; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def target_writer(&block); end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:36 + # source://unparser//lib/unparser/emitter/block.rb#36 def write_close; end - # source://unparser-0.6.5/lib/unparser/emitter/block.rb:28 + # source://unparser//lib/unparser/emitter/block.rb#28 def write_open; end end # Block pass node emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:121 +# source://unparser//lib/unparser/emitter/argument.rb#123 class Unparser::Emitter::BlockPass < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:128 + # source://unparser//lib/unparser/emitter/argument.rb#130 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for toplevel constant reference nodes # -# source://unparser-0.6.5/lib/unparser/emitter/cbase.rb:6 +# source://unparser//lib/unparser/emitter/cbase.rb#6 class Unparser::Emitter::CBase < ::Unparser::Emitter private @@ -2031,1445 +2023,1442 @@ class Unparser::Emitter::CBase < ::Unparser::Emitter # @api private # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/emitter/cbase.rb:17 + # source://unparser//lib/unparser/emitter/cbase.rb#17 def dispatch; end end # Emitter for case nodes # -# source://unparser-0.6.5/lib/unparser/emitter/case.rb:6 +# source://unparser//lib/unparser/emitter/case.rb#6 class Unparser::Emitter::Case < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def condition; end - # source://unparser-0.6.5/lib/unparser/emitter/case.rb:14 + # source://unparser//lib/unparser/emitter/case.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/case.rb:35 + # source://unparser//lib/unparser/emitter/case.rb#35 def emit_condition; end - # source://unparser-0.6.5/lib/unparser/emitter/case.rb:22 + # source://unparser//lib/unparser/emitter/case.rb#22 def emit_else; end - # source://unparser-0.6.5/lib/unparser/emitter/case.rb:30 + # source://unparser//lib/unparser/emitter/case.rb#30 def emit_whens; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def whens(&block); end end # Emitter for case guards # -# source://unparser-0.6.5/lib/unparser/emitter/case_guard.rb:6 +# source://unparser//lib/unparser/emitter/case_guard.rb#6 class Unparser::Emitter::CaseGuard < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def condition; end - # source://unparser-0.6.5/lib/unparser/emitter/case_guard.rb:19 + # source://unparser//lib/unparser/emitter/case_guard.rb#19 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/case_guard.rb:10 +# source://unparser//lib/unparser/emitter/case_guard.rb#10 Unparser::Emitter::CaseGuard::MAP = T.let(T.unsafe(nil), Hash) # Emitter for case matches # -# source://unparser-0.6.5/lib/unparser/emitter/case_match.rb:6 +# source://unparser//lib/unparser/emitter/case_match.rb#6 class Unparser::Emitter::CaseMatch < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/case_match.rb:20 + # source://unparser//lib/unparser/emitter/case_match.rb#20 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/case_match.rb:16 + # source://unparser//lib/unparser/emitter/case_match.rb#16 def else_branch; end - # source://unparser-0.6.5/lib/unparser/emitter/case_match.rb:30 + # source://unparser//lib/unparser/emitter/case_match.rb#30 def emit_else_branch; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def patterns(&block); end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Emitter for class nodes # -# source://unparser-0.6.5/lib/unparser/emitter/class.rb:6 +# source://unparser//lib/unparser/emitter/class.rb#6 class Unparser::Emitter::Class < ::Unparser::Emitter include ::Unparser::Emitter::LocalVariableRoot - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def local_variable_scope(&block); end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/class.rb:15 + # source://unparser//lib/unparser/emitter/class.rb#15 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/class.rb:23 + # source://unparser//lib/unparser/emitter/class.rb#23 def emit_superclass; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def superclass; end end # Emitter for constant access # -# source://unparser-0.6.5/lib/unparser/emitter/variable.rb:21 +# source://unparser//lib/unparser/emitter/variable.rb#21 class Unparser::Emitter::Const < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/variable.rb:28 + # source://unparser//lib/unparser/emitter/variable.rb#28 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/variable.rb:33 + # source://unparser//lib/unparser/emitter/variable.rb#33 def emit_scope; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def scope; end end # Emitter for const pattern node # -# source://unparser-0.6.5/lib/unparser/emitter/const_pattern.rb:6 +# source://unparser//lib/unparser/emitter/const_pattern.rb#6 class Unparser::Emitter::ConstPattern < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def const; end - # source://unparser-0.6.5/lib/unparser/emitter/const_pattern.rb:14 + # source://unparser//lib/unparser/emitter/const_pattern.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def pattern; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Dynamic string emitter # -# source://unparser-0.6.5/lib/unparser/emitter/dstr.rb:6 +# source://unparser//lib/unparser/emitter/dstr.rb#6 class Unparser::Emitter::DStr < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/dstr.rb:10 + # source://unparser//lib/unparser/emitter/dstr.rb#10 def emit_heredoc_reminders; end private - # source://unparser-0.6.5/lib/unparser/emitter/dstr.rb:16 + # source://unparser//lib/unparser/emitter/dstr.rb#16 def dispatch; end end # Dynamic symbol literal emitter # -# source://unparser-0.6.5/lib/unparser/emitter/dsym.rb:6 +# source://unparser//lib/unparser/emitter/dsym.rb#6 class Unparser::Emitter::DSym < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/dsym.rb:11 + # source://unparser//lib/unparser/emitter/dsym.rb#11 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/dsym.rb:34 + # source://unparser//lib/unparser/emitter/dsym.rb#34 def emit_begin_child(component); end - # source://unparser-0.6.5/lib/unparser/emitter/dsym.rb:24 + # source://unparser//lib/unparser/emitter/dsym.rb#24 def emit_str_child(value); end end # Emitter for def node # -# source://unparser-0.6.5/lib/unparser/emitter/def.rb:6 +# source://unparser//lib/unparser/emitter/def.rb#6 class Unparser::Emitter::Def < ::Unparser::Emitter include ::Unparser::Emitter::LocalVariableRoot - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def local_variable_scope(&block); end private - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:114 + # source://unparser//lib/unparser/abstract_type.rb#114 def body(*_arg0); end - # source://unparser-0.6.5/lib/unparser/emitter/def.rb:17 + # source://unparser//lib/unparser/emitter/def.rb#17 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/def.rb:25 + # source://unparser//lib/unparser/emitter/def.rb#25 def emit_arguments; end - # source://unparser-0.6.5/lib/unparser/abstract_type.rb:114 + # source://unparser//lib/unparser/abstract_type.rb#114 def emit_name(*_arg0); end end # Instance def emitter # -# source://unparser-0.6.5/lib/unparser/emitter/def.rb:34 +# source://unparser//lib/unparser/emitter/def.rb#34 class Unparser::Emitter::Def::Instance < ::Unparser::Emitter::Def private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def arguments; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/def.rb:41 + # source://unparser//lib/unparser/emitter/def.rb#41 def emit_name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for defines on singleton # -# source://unparser-0.6.5/lib/unparser/emitter/def.rb:48 +# source://unparser//lib/unparser/emitter/def.rb#48 class Unparser::Emitter::Def::Singleton < ::Unparser::Emitter::Def private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def arguments; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/def.rb:56 + # source://unparser//lib/unparser/emitter/def.rb#56 def emit_name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def subject; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/def.rb:63 + # source://unparser//lib/unparser/emitter/def.rb#63 def subject_without_parens?; end end # Emitter for defined? nodes # -# source://unparser-0.6.5/lib/unparser/emitter/defined.rb:6 +# source://unparser//lib/unparser/emitter/defined.rb#6 class Unparser::Emitter::Defined < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/defined.rb:13 + # source://unparser//lib/unparser/emitter/defined.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def subject; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/find_pattern.rb:6 +# source://unparser//lib/unparser/emitter/find_pattern.rb#6 class Unparser::Emitter::FindPattern < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/find_pattern.rb:11 + # source://unparser//lib/unparser/emitter/find_pattern.rb#11 def dispatch; end end # Emitter for flip flops # -# source://unparser-0.6.5/lib/unparser/emitter/flipflop.rb:6 +# source://unparser//lib/unparser/emitter/flipflop.rb#6 class Unparser::Emitter::FlipFlop < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/flipflop.rb:17 + # source://unparser//lib/unparser/emitter/flipflop.rb#17 def symbol_name; end private - # source://unparser-0.6.5/lib/unparser/emitter/flipflop.rb:27 + # source://unparser//lib/unparser/emitter/flipflop.rb#27 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def left; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def right; end end -# source://unparser-0.6.5/lib/unparser/emitter/flipflop.rb:7 +# source://unparser//lib/unparser/emitter/flipflop.rb#7 Unparser::Emitter::FlipFlop::MAP = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/emitter/flipflop.rb:12 +# source://unparser//lib/unparser/emitter/flipflop.rb#12 Unparser::Emitter::FlipFlop::SYMBOLS = T.let(T.unsafe(nil), Hash) # Emiter for float literals # -# source://unparser-0.6.5/lib/unparser/emitter/float.rb:6 +# source://unparser//lib/unparser/emitter/float.rb#6 class Unparser::Emitter::Float < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/float.rb:16 + # source://unparser//lib/unparser/emitter/float.rb#16 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def value; end end -# source://unparser-0.6.5/lib/unparser/emitter/float.rb:11 +# source://unparser//lib/unparser/emitter/float.rb#11 Unparser::Emitter::Float::INFINITY = T.let(T.unsafe(nil), Float) -# source://unparser-0.6.5/lib/unparser/emitter/float.rb:12 +# source://unparser//lib/unparser/emitter/float.rb#12 Unparser::Emitter::Float::NEG_INFINITY = T.let(T.unsafe(nil), Float) # Emitter control flow modifiers # -# source://unparser-0.6.5/lib/unparser/emitter/flow_modifier.rb:6 +# source://unparser//lib/unparser/emitter/flow_modifier.rb#6 class Unparser::Emitter::FlowModifier < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/flow_modifier.rb:17 + # source://unparser//lib/unparser/emitter/flow_modifier.rb#17 def emit_heredoc_reminders; end private - # source://unparser-0.6.5/lib/unparser/emitter/flow_modifier.rb:25 + # source://unparser//lib/unparser/emitter/flow_modifier.rb#25 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/flow_modifier.rb:36 + # source://unparser//lib/unparser/emitter/flow_modifier.rb#36 def emit_arguments; end end -# source://unparser-0.6.5/lib/unparser/emitter/flow_modifier.rb:7 +# source://unparser//lib/unparser/emitter/flow_modifier.rb#7 Unparser::Emitter::FlowModifier::MAP = T.let(T.unsafe(nil), Hash) # Emitter for for nodes # -# source://unparser-0.6.5/lib/unparser/emitter/for.rb:6 +# source://unparser//lib/unparser/emitter/for.rb#6 class Unparser::Emitter::For < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def assignment; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def condition; end - # source://unparser-0.6.5/lib/unparser/emitter/for.rb:13 + # source://unparser//lib/unparser/emitter/for.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/for.rb:20 + # source://unparser//lib/unparser/emitter/for.rb#20 def emit_condition; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 + def remaining_children; end +end + +# Emitter for forwarding arguments +# +# source://unparser//lib/unparser/emitter/argument.rb#6 +class Unparser::Emitter::ForwardArg < ::Unparser::Emitter + private + + # source://unparser//lib/unparser/emitter/argument.rb#20 + def dispatch; end + + # source://unparser//lib/unparser/dsl.rb#18 + def name; end + + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end +# source://unparser//lib/unparser/emitter/argument.rb#7 +Unparser::Emitter::ForwardArg::MAP = T.let(T.unsafe(nil), Hash) + # Emitter for Hash literals # -# source://unparser-0.6.5/lib/unparser/emitter/hash.rb:6 +# source://unparser//lib/unparser/emitter/hash.rb#6 class Unparser::Emitter::Hash < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/hash.rb:17 + # source://unparser//lib/unparser/emitter/hash.rb#9 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/emitter/hash.rb:9 - def emit_last_argument_hash; end - private - # source://unparser-0.6.5/lib/unparser/emitter/hash.rb:23 + # source://unparser//lib/unparser/emitter/hash.rb#15 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/hash.rb:39 + # source://unparser//lib/unparser/emitter/hash.rb#31 def emit_hash_body; end - # source://unparser-0.6.5/lib/unparser/emitter/hash.rb:35 + # source://unparser//lib/unparser/emitter/hash.rb#27 def emit_heredoc_reminder_member(node); end end # Emitter for hash patterns # -# source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:6 +# source://unparser//lib/unparser/emitter/hash_pattern.rb#6 class Unparser::Emitter::HashPattern < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:10 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#10 def emit_const_pattern; end private - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:18 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#18 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:24 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#24 def emit_hash_body; end - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:41 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#41 def emit_match_var(node); end - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:28 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#28 def emit_member(node); end - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:46 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#46 def emit_pair(node); end - # source://unparser-0.6.5/lib/unparser/emitter/hash_pattern.rb:62 + # source://unparser//lib/unparser/emitter/hash_pattern.rb#62 def write_symbol_body(symbol); end end # Base class for pre and postexe emitters # -# source://unparser-0.6.5/lib/unparser/emitter/hookexe.rb:6 +# source://unparser//lib/unparser/emitter/hookexe.rb#6 class Unparser::Emitter::Hookexe < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/hookexe.rb:19 + # source://unparser//lib/unparser/emitter/hookexe.rb#19 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/hookexe.rb:8 +# source://unparser//lib/unparser/emitter/hookexe.rb#8 Unparser::Emitter::Hookexe::MAP = T.let(T.unsafe(nil), Hash) # Emitter if nodes # -# source://unparser-0.6.5/lib/unparser/emitter/if.rb:6 +# source://unparser//lib/unparser/emitter/if.rb#6 class Unparser::Emitter::If < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:11 + # source://unparser//lib/unparser/emitter/if.rb#11 def emit_ternary; end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def condition; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:21 + # source://unparser//lib/unparser/emitter/if.rb#21 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def else_branch; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:59 + # source://unparser//lib/unparser/emitter/if.rb#59 def emit_condition; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:71 + # source://unparser//lib/unparser/emitter/if.rb#71 def emit_else_branch; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:63 + # source://unparser//lib/unparser/emitter/if.rb#63 def emit_if_branch; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:43 + # source://unparser//lib/unparser/emitter/if.rb#43 def emit_normal; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:37 + # source://unparser//lib/unparser/emitter/if.rb#37 def emit_postcondition; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def if_branch; end - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:55 + # source://unparser//lib/unparser/emitter/if.rb#55 def keyword; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:29 + # source://unparser//lib/unparser/emitter/if.rb#29 def postcondition?; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/if.rb:51 + # source://unparser//lib/unparser/emitter/if.rb#51 def unless?; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/in_match.rb:6 +# source://unparser//lib/unparser/emitter/in_match.rb#6 class Unparser::Emitter::InMatch < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/in_match.rb:14 + # source://unparser//lib/unparser/emitter/in_match.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def pattern; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/in_pattern.rb:6 +# source://unparser//lib/unparser/emitter/in_pattern.rb#6 class Unparser::Emitter::InPattern < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def branch; end - # source://unparser-0.6.5/lib/unparser/emitter/in_pattern.rb:14 + # source://unparser//lib/unparser/emitter/in_pattern.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def else_branch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def unless_guard; end end # Emitter for send to index references # -# source://unparser-0.6.5/lib/unparser/emitter/index.rb:6 +# source://unparser//lib/unparser/emitter/index.rb#6 class Unparser::Emitter::Index < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:10 + # source://unparser//lib/unparser/emitter/index.rb#10 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:15 + # source://unparser//lib/unparser/emitter/index.rb#15 def emit_receiver; end end # Emitter for assign to index nodes # -# source://unparser-0.6.5/lib/unparser/emitter/index.rb:34 +# source://unparser//lib/unparser/emitter/index.rb#34 class Unparser::Emitter::Index::Assign < ::Unparser::Emitter::Index - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:47 + # source://unparser//lib/unparser/emitter/index.rb#47 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:43 + # source://unparser//lib/unparser/emitter/index.rb#43 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:54 + # source://unparser//lib/unparser/emitter/index.rb#54 def emit_mlhs; end private - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:61 + # source://unparser//lib/unparser/emitter/index.rb#61 def emit_operation(indices); end end -# source://unparser-0.6.5/lib/unparser/emitter/index.rb:39 +# source://unparser//lib/unparser/emitter/index.rb#39 Unparser::Emitter::Index::Assign::NO_VALUE_PARENT = T.let(T.unsafe(nil), Set) -# source://unparser-0.6.5/lib/unparser/emitter/index.rb:38 +# source://unparser//lib/unparser/emitter/index.rb#38 Unparser::Emitter::Index::Assign::VALUE_RANGE = T.let(T.unsafe(nil), Range) -# source://unparser-0.6.5/lib/unparser/emitter/index.rb:19 +# source://unparser//lib/unparser/emitter/index.rb#19 class Unparser::Emitter::Index::Reference < ::Unparser::Emitter::Index private - # source://unparser-0.6.5/lib/unparser/emitter/index.rb:26 + # source://unparser//lib/unparser/emitter/index.rb#26 def emit_operation; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def indices(&block); end end # Emitter for explicit begins # -# source://unparser-0.6.5/lib/unparser/emitter/kwbegin.rb:6 +# source://unparser//lib/unparser/emitter/kwbegin.rb#6 class Unparser::Emitter::KWBegin < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/kwbegin.rb:11 + # source://unparser//lib/unparser/emitter/kwbegin.rb#11 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/kwbegin.rb:25 + # source://unparser//lib/unparser/emitter/kwbegin.rb#25 def emit_multiple_body; end end # Optional keyword argument emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:39 +# source://unparser//lib/unparser/emitter/argument.rb#41 class Unparser::Emitter::KeywordOptional < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:46 + # source://unparser//lib/unparser/emitter/argument.rb#48 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def value; end end # Emitter for splats # -# source://unparser-0.6.5/lib/unparser/emitter/splat.rb:6 +# source://unparser//lib/unparser/emitter/splat.rb#6 class Unparser::Emitter::KwSplat < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/splat.rb:13 + # source://unparser//lib/unparser/emitter/splat.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def subject; end end # Keyword argument emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:54 +# source://unparser//lib/unparser/emitter/argument.rb#56 class Unparser::Emitter::Kwarg < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:61 + # source://unparser//lib/unparser/emitter/argument.rb#63 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/kwargs.rb:5 +# source://unparser//lib/unparser/emitter/kwargs.rb#5 class Unparser::Emitter::Kwargs < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/kwargs.rb:8 + # source://unparser//lib/unparser/emitter/kwargs.rb#8 def dispatch; end end # Emitter for lambda nodes # -# source://unparser-0.6.5/lib/unparser/emitter/lambda.rb:6 +# source://unparser//lib/unparser/emitter/lambda.rb#6 class Unparser::Emitter::Lambda < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/lambda.rb:11 + # source://unparser//lib/unparser/emitter/lambda.rb#11 def dispatch; end end -# source://unparser-0.6.5/lib/unparser/emitter.rb:20 +# source://unparser//lib/unparser/emitter.rb#20 module Unparser::Emitter::LocalVariableRoot # Return local variable root # # @api private # @return [Parser::AST::Node] # - # source://unparser-0.6.5/lib/unparser/emitter.rb:27 + # source://unparser//lib/unparser/emitter.rb#27 def local_variable_scope; end class << self # @private # - # source://unparser-0.6.5/lib/unparser/emitter.rb:31 + # source://unparser//lib/unparser/emitter.rb#31 def included(descendant); end end end # Emitter for multiple assignment nodes # -# source://unparser-0.6.5/lib/unparser/emitter/masgn.rb:6 +# source://unparser//lib/unparser/emitter/masgn.rb#6 class Unparser::Emitter::MASGN < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/masgn.rb:13 + # source://unparser//lib/unparser/emitter/masgn.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def source; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Emitter for multiple assignment left hand side # -# source://unparser-0.6.5/lib/unparser/emitter/mlhs.rb:6 +# source://unparser//lib/unparser/emitter/mlhs.rb#6 class Unparser::Emitter::MLHS < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/mlhs.rb:15 + # source://unparser//lib/unparser/emitter/mlhs.rb#15 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/mlhs.rb:31 + # source://unparser//lib/unparser/emitter/mlhs.rb#31 def emit_many; end - # source://unparser-0.6.5/lib/unparser/emitter/mlhs.rb:23 + # source://unparser//lib/unparser/emitter/mlhs.rb#23 def emit_one_child_mlhs; end end -# source://unparser-0.6.5/lib/unparser/emitter/mlhs.rb:9 +# source://unparser//lib/unparser/emitter/mlhs.rb#9 Unparser::Emitter::MLHS::NO_COMMA = T.let(T.unsafe(nil), Array) # Base class for special match node emitters # -# source://unparser-0.6.5/lib/unparser/emitter/match.rb:8 +# source://unparser//lib/unparser/emitter/match.rb#8 class Unparser::Emitter::Match < ::Unparser::Emitter; end # Emitter for match current line # -# source://unparser-0.6.5/lib/unparser/emitter/match.rb:25 +# source://unparser//lib/unparser/emitter/match.rb#25 class Unparser::Emitter::Match::CurrentLine < ::Unparser::Emitter::Match private - # source://unparser-0.6.5/lib/unparser/emitter/match.rb:32 + # source://unparser//lib/unparser/emitter/match.rb#32 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def regexp; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for match with local variable assignment # -# source://unparser-0.6.5/lib/unparser/emitter/match.rb:9 +# source://unparser//lib/unparser/emitter/match.rb#9 class Unparser::Emitter::Match::Lvasgn < ::Unparser::Emitter::Match private - # source://unparser-0.6.5/lib/unparser/emitter/match.rb:16 + # source://unparser//lib/unparser/emitter/match.rb#16 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def lvasgn; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def regexp; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/match_alt.rb:6 +# source://unparser//lib/unparser/emitter/match_alt.rb#6 class Unparser::Emitter::MatchAlt < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/match_alt.rb:14 + # source://unparser//lib/unparser/emitter/match_alt.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def left; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def right; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/match_as.rb:6 +# source://unparser//lib/unparser/emitter/match_as.rb#6 class Unparser::Emitter::MatchAs < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/match_as.rb:14 + # source://unparser//lib/unparser/emitter/match_as.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def left; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def right; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/match_pattern.rb:6 +# source://unparser//lib/unparser/emitter/match_pattern.rb#6 class Unparser::Emitter::MatchPattern < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/match_pattern.rb:23 + # source://unparser//lib/unparser/emitter/match_pattern.rb#23 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def pattern; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Modern ast format emits `match_pattern` # node on single line pre 3.0, but 3.0+ uses `match_pattern_p` # -# source://unparser-0.6.5/lib/unparser/emitter/match_pattern.rb:14 +# source://unparser//lib/unparser/emitter/match_pattern.rb#14 Unparser::Emitter::MatchPattern::SYMBOL = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/emitter/match_pattern_p.rb:5 +# source://unparser//lib/unparser/emitter/match_pattern_p.rb#5 class Unparser::Emitter::MatchPatternP < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/match_pattern_p.rb:13 + # source://unparser//lib/unparser/emitter/match_pattern_p.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def pattern; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Emiter for match rest nodes # -# source://unparser-0.6.5/lib/unparser/emitter/match_rest.rb:6 +# source://unparser//lib/unparser/emitter/match_rest.rb#6 class Unparser::Emitter::MatchRest < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/match_rest.rb:11 + # source://unparser//lib/unparser/emitter/match_rest.rb#11 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/match_rest.rb:16 + # source://unparser//lib/unparser/emitter/match_rest.rb#16 def emit_array_pattern; end - # source://unparser-0.6.5/lib/unparser/emitter/match_rest.rb:21 + # source://unparser//lib/unparser/emitter/match_rest.rb#21 def emit_hash_pattern; end private - # source://unparser-0.6.5/lib/unparser/emitter/match_rest.rb:28 + # source://unparser//lib/unparser/emitter/match_rest.rb#28 def emit_match_var; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def match_var; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for in pattern nodes # -# source://unparser-0.6.5/lib/unparser/emitter/match_var.rb:6 +# source://unparser//lib/unparser/emitter/match_var.rb#6 class Unparser::Emitter::MatchVar < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/match_var.rb:14 + # source://unparser//lib/unparser/emitter/match_var.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for module nodes # -# source://unparser-0.6.5/lib/unparser/emitter/module.rb:6 +# source://unparser//lib/unparser/emitter/module.rb#6 class Unparser::Emitter::Module < ::Unparser::Emitter include ::Unparser::Emitter::LocalVariableRoot - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def local_variable_scope(&block); end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/module.rb:15 - def dispatch; end - - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 - def name; end - - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 - def remaining_children; end -end - -# Emitter for block and kwrestarg arguments -# -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:6 -class Unparser::Emitter::Morearg < ::Unparser::Emitter - private - - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:18 + # source://unparser//lib/unparser/emitter/module.rb#15 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:7 -Unparser::Emitter::Morearg::MAP = T.let(T.unsafe(nil), Hash) - -# source://unparser-0.6.5/lib/unparser/emitter.rb:18 +# source://unparser//lib/unparser/emitter.rb#18 Unparser::Emitter::NO_INDENT = T.let(T.unsafe(nil), Array) # Emitter for nth_ref nodes (regexp captures) # -# source://unparser-0.6.5/lib/unparser/emitter/variable.rb:42 +# source://unparser//lib/unparser/emitter/variable.rb#42 class Unparser::Emitter::NthRef < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/variable.rb:50 + # source://unparser//lib/unparser/emitter/variable.rb#50 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/variable.rb:43 +# source://unparser//lib/unparser/emitter/variable.rb#43 Unparser::Emitter::NthRef::PREFIX = T.let(T.unsafe(nil), String) # Emitter for op assign # -# source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:33 +# source://unparser//lib/unparser/emitter/op_assign.rb#33 class Unparser::Emitter::OpAssign < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:40 + # source://unparser//lib/unparser/emitter/op_assign.rb#40 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/op_assign.rb:46 + # source://unparser//lib/unparser/emitter/op_assign.rb#46 def emit_operator; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def operator; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def value; end end # Optional argument emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:25 +# source://unparser//lib/unparser/emitter/argument.rb#27 class Unparser::Emitter::Optarg < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:32 + # source://unparser//lib/unparser/emitter/argument.rb#34 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def value; end end # Emitter for key value pairs in hash literals or kwargs # -# source://unparser-0.6.5/lib/unparser/emitter/pair.rb:6 +# source://unparser//lib/unparser/emitter/pair.rb#6 class Unparser::Emitter::Pair < ::Unparser::Emitter private # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/pair.rb:28 + # source://unparser//lib/unparser/emitter/pair.rb#28 def colon?(key); end - # source://unparser-0.6.5/lib/unparser/emitter/pair.rb:17 + # source://unparser//lib/unparser/emitter/pair.rb#17 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def key; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def value; end end -# source://unparser-0.6.5/lib/unparser/emitter/pair.rb:7 +# source://unparser//lib/unparser/emitter/pair.rb#7 Unparser::Emitter::Pair::BAREWORD = T.let(T.unsafe(nil), Regexp) # Emitter for pin nodes # -# source://unparser-0.6.5/lib/unparser/emitter/pin.rb:6 +# source://unparser//lib/unparser/emitter/pin.rb#6 class Unparser::Emitter::Pin < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/pin.rb:13 + # source://unparser//lib/unparser/emitter/pin.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def target; end end # Emitter for postconditions # -# source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:7 +# source://unparser//lib/unparser/emitter/repetition.rb#7 class Unparser::Emitter::Post < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def condition; end - # source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:19 + # source://unparser//lib/unparser/emitter/repetition.rb#19 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:10 +# source://unparser//lib/unparser/emitter/repetition.rb#10 Unparser::Emitter::Post::MAP = T.let(T.unsafe(nil), Hash) # Base class for primitive emitters # -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:6 +# source://unparser//lib/unparser/emitter/primitive.rb#6 class Unparser::Emitter::Primitive < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def value; end end # Emitter for complex literals # -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:24 +# source://unparser//lib/unparser/emitter/primitive.rb#24 class Unparser::Emitter::Primitive::Complex < ::Unparser::Emitter::Primitive private - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:39 + # source://unparser//lib/unparser/emitter/primitive.rb#39 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:44 + # source://unparser//lib/unparser/emitter/primitive.rb#44 def emit_imaginary; end - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:48 + # source://unparser//lib/unparser/emitter/primitive.rb#48 def imaginary_node; end end -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:30 +# source://unparser//lib/unparser/emitter/primitive.rb#30 Unparser::Emitter::Primitive::Complex::MAP = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:28 +# source://unparser//lib/unparser/emitter/primitive.rb#28 Unparser::Emitter::Primitive::Complex::RATIONAL_FORMAT = T.let(T.unsafe(nil), String) # Emitter for primitives based on Object#inspect # -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:11 +# source://unparser//lib/unparser/emitter/primitive.rb#11 class Unparser::Emitter::Primitive::Inspect < ::Unparser::Emitter::Primitive private - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:17 + # source://unparser//lib/unparser/emitter/primitive.rb#17 def dispatch; end end # Emiter for numeric literals # -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:80 +# source://unparser//lib/unparser/emitter/primitive.rb#80 class Unparser::Emitter::Primitive::Numeric < ::Unparser::Emitter::Primitive private - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:86 + # source://unparser//lib/unparser/emitter/primitive.rb#86 def dispatch; end end # Emitter for rational literals # -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:56 +# source://unparser//lib/unparser/emitter/primitive.rb#56 class Unparser::Emitter::Primitive::Rational < ::Unparser::Emitter::Primitive private - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:65 + # source://unparser//lib/unparser/emitter/primitive.rb#65 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:73 + # source://unparser//lib/unparser/emitter/primitive.rb#73 def write_rational(value); end end -# source://unparser-0.6.5/lib/unparser/emitter/primitive.rb:60 +# source://unparser//lib/unparser/emitter/primitive.rb#60 Unparser::Emitter::Primitive::Rational::RATIONAL_FORMAT = T.let(T.unsafe(nil), String) # Progarg emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:96 +# source://unparser//lib/unparser/emitter/argument.rb#98 class Unparser::Emitter::Procarg < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:103 + # source://unparser//lib/unparser/emitter/argument.rb#105 def dispatch; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:113 + # source://unparser//lib/unparser/emitter/argument.rb#115 def needs_parens?; end end -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:99 +# source://unparser//lib/unparser/emitter/argument.rb#101 Unparser::Emitter::Procarg::PARENS = T.let(T.unsafe(nil), Array) # Registry for node emitters # -# source://unparser-0.6.5/lib/unparser/emitter.rb:16 +# source://unparser//lib/unparser/emitter.rb#16 Unparser::Emitter::REGISTRY = T.let(T.unsafe(nil), Hash) # Range emitters # -# source://unparser-0.6.5/lib/unparser/emitter/range.rb:6 +# source://unparser//lib/unparser/emitter/range.rb#6 class Unparser::Emitter::Range < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/range.rb:17 + # source://unparser//lib/unparser/emitter/range.rb#17 def symbol_name; end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def begin_node; end - # source://unparser-0.6.5/lib/unparser/emitter/range.rb:27 + # source://unparser//lib/unparser/emitter/range.rb#27 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def end_node; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/range.rb:12 +# source://unparser//lib/unparser/emitter/range.rb#12 Unparser::Emitter::Range::SYMBOLS = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/emitter/range.rb:7 +# source://unparser//lib/unparser/emitter/range.rb#7 Unparser::Emitter::Range::TOKENS = T.let(T.unsafe(nil), Hash) # Emitter for regexp literals # -# source://unparser-0.6.5/lib/unparser/emitter/regexp.rb:6 +# source://unparser//lib/unparser/emitter/regexp.rb#6 class Unparser::Emitter::Regexp < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def body(&block); end - # source://unparser-0.6.5/lib/unparser/emitter/regexp.rb:13 + # source://unparser//lib/unparser/emitter/regexp.rb#13 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/regexp.rb:24 + # source://unparser//lib/unparser/emitter/regexp.rb#24 def emit_body(node); end - # source://unparser-0.6.5/lib/unparser/emitter/regexp.rb:20 + # source://unparser//lib/unparser/emitter/regexp.rb#20 def emit_options; end end # Emitter for while and until nodes # -# source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:27 +# source://unparser//lib/unparser/emitter/repetition.rb#27 class Unparser::Emitter::Repetition < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def condition; end - # source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:39 + # source://unparser//lib/unparser/emitter/repetition.rb#39 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:51 + # source://unparser//lib/unparser/emitter/repetition.rb#51 def emit_keyword; end - # source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:55 + # source://unparser//lib/unparser/emitter/repetition.rb#55 def emit_normal; end - # source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:66 + # source://unparser//lib/unparser/emitter/repetition.rb#66 def emit_postcontrol; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:47 + # source://unparser//lib/unparser/emitter/repetition.rb#47 def postcontrol?; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/emitter/repetition.rb:28 +# source://unparser//lib/unparser/emitter/repetition.rb#28 Unparser::Emitter::Repetition::MAP = T.let(T.unsafe(nil), Hash) # Emitter for rescue nodes # -# source://unparser-0.6.5/lib/unparser/emitter/rescue.rb:6 +# source://unparser//lib/unparser/emitter/rescue.rb#6 class Unparser::Emitter::Rescue < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/rescue.rb:11 + # source://unparser//lib/unparser/emitter/rescue.rb#11 def dispatch; end end # Rest argument emitter # -# source://unparser-0.6.5/lib/unparser/emitter/argument.rb:68 +# source://unparser//lib/unparser/emitter/argument.rb#70 class Unparser::Emitter::Restarg < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/argument.rb:75 + # source://unparser//lib/unparser/emitter/argument.rb#77 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Root emitter a special case # -# source://unparser-0.6.5/lib/unparser/emitter/root.rb:6 +# source://unparser//lib/unparser/emitter/root.rb#6 class Unparser::Emitter::Root < ::Unparser::Emitter include ::Unparser::Emitter::LocalVariableRoot - # source://unparser-0.6.5/lib/unparser/emitter/root.rb:14 + # source://unparser//lib/unparser/emitter/root.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def local_variable_scope(&block); end end -# source://unparser-0.6.5/lib/unparser/emitter/root.rb:10 +# source://unparser//lib/unparser/emitter/root.rb#10 Unparser::Emitter::Root::END_NL = T.let(T.unsafe(nil), Array) # Emitter for sclass nodes # -# source://unparser-0.6.5/lib/unparser/emitter/class.rb:33 +# source://unparser//lib/unparser/emitter/class.rb#33 class Unparser::Emitter::SClass < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/emitter/class.rb:40 + # source://unparser//lib/unparser/emitter/class.rb#40 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def object; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for send # -# source://unparser-0.6.5/lib/unparser/emitter/send.rb:6 +# source://unparser//lib/unparser/emitter/send.rb#6 class Unparser::Emitter::Send < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/send.rb:13 + # source://unparser//lib/unparser/emitter/send.rb#13 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/emitter/send.rb:9 + # source://unparser//lib/unparser/emitter/send.rb#9 def emit_mlhs; end private - # source://unparser-0.6.5/lib/unparser/emitter/send.rb:19 + # source://unparser//lib/unparser/emitter/send.rb#19 def dispatch; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def writer(&block); end end # Emitter for simple nodes that generate a single token # -# source://unparser-0.6.5/lib/unparser/emitter/simple.rb:6 +# source://unparser//lib/unparser/emitter/simple.rb#6 class Unparser::Emitter::Simple < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/simple.rb:28 + # source://unparser//lib/unparser/emitter/simple.rb#28 def dispatch; end end -# source://unparser-0.6.5/lib/unparser/emitter/simple.rb:7 +# source://unparser//lib/unparser/emitter/simple.rb#7 Unparser::Emitter::Simple::MAP = T.let(T.unsafe(nil), Hash) # Emitter for splats # -# source://unparser-0.6.5/lib/unparser/emitter/splat.rb:20 +# source://unparser//lib/unparser/emitter/splat.rb#20 class Unparser::Emitter::Splat < ::Unparser::Emitter - # source://unparser-0.6.5/lib/unparser/emitter/splat.rb:25 + # source://unparser//lib/unparser/emitter/splat.rb#25 def emit_mlhs; end private - # source://unparser-0.6.5/lib/unparser/emitter/splat.rb:32 + # source://unparser//lib/unparser/emitter/splat.rb#32 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def subject; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def subject_emitter(&block); end end # Emitter for super nodes # -# source://unparser-0.6.5/lib/unparser/emitter/super.rb:7 +# source://unparser//lib/unparser/emitter/super.rb#7 class Unparser::Emitter::Super < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/super.rb:12 + # source://unparser//lib/unparser/emitter/super.rb#12 def dispatch; end end # Emitter for undef nodes # -# source://unparser-0.6.5/lib/unparser/emitter/undef.rb:6 +# source://unparser//lib/unparser/emitter/undef.rb#6 class Unparser::Emitter::Undef < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/undef.rb:11 + # source://unparser//lib/unparser/emitter/undef.rb#11 def dispatch; end end # Emitter for various variable accesses # -# source://unparser-0.6.5/lib/unparser/emitter/variable.rb:7 +# source://unparser//lib/unparser/emitter/variable.rb#7 class Unparser::Emitter::Variable < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/variable.rb:14 + # source://unparser//lib/unparser/emitter/variable.rb#14 def dispatch; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def name; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end # Emitter for when nodes # -# source://unparser-0.6.5/lib/unparser/emitter/case.rb:44 +# source://unparser//lib/unparser/emitter/case.rb#44 class Unparser::Emitter::When < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def captures(&block); end - # source://unparser-0.6.5/lib/unparser/emitter/case.rb:51 + # source://unparser//lib/unparser/emitter/case.rb#51 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/case.rb:57 + # source://unparser//lib/unparser/emitter/case.rb#57 def emit_captures; end end # Dynamic execute string literal emitter # -# source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:6 +# source://unparser//lib/unparser/emitter/xstr.rb#6 class Unparser::Emitter::XStr < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:12 + # source://unparser//lib/unparser/emitter/xstr.rb#12 def dispatch; end - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:65 + # source://unparser//lib/unparser/emitter/xstr.rb#65 def emit_begin(component); end - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:24 + # source://unparser//lib/unparser/emitter/xstr.rb#24 def emit_heredoc; end - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:51 + # source://unparser//lib/unparser/emitter/xstr.rb#51 def emit_string(value); end - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:39 + # source://unparser//lib/unparser/emitter/xstr.rb#39 def emit_xstr; end - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:55 + # source://unparser//lib/unparser/emitter/xstr.rb#55 def escape_xstr(input); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/emitter/xstr.rb:20 + # source://unparser//lib/unparser/emitter/xstr.rb#20 def heredoc?; end end # Emitter for yield node # -# source://unparser-0.6.5/lib/unparser/emitter/yield.rb:7 +# source://unparser//lib/unparser/emitter/yield.rb#7 class Unparser::Emitter::Yield < ::Unparser::Emitter private - # source://unparser-0.6.5/lib/unparser/emitter/yield.rb:12 + # source://unparser//lib/unparser/emitter/yield.rb#12 def dispatch; end end @@ -3477,7 +3466,7 @@ end # # Original code before vendoring and reduction from: https://github.com/dkubb/equalizer. # -# source://unparser-0.6.5/lib/unparser/equalizer.rb:19 +# source://unparser//lib/unparser/equalizer.rb#19 class Unparser::Equalizer < ::Module # Initialize an Equalizer with the given keys # @@ -3489,30 +3478,30 @@ class Unparser::Equalizer < ::Module # @param keys [Array] # @return [undefined] # - # source://unparser-0.6.5/lib/unparser/equalizer.rb:20 + # source://unparser//lib/unparser/equalizer.rb#20 def initialize(*keys); end private - # source://unparser-0.6.5/lib/unparser/equalizer.rb:39 + # source://unparser//lib/unparser/equalizer.rb#39 def define_cmp_method; end - # source://unparser-0.6.5/lib/unparser/equalizer.rb:49 + # source://unparser//lib/unparser/equalizer.rb#49 def define_hash_method; end - # source://unparser-0.6.5/lib/unparser/equalizer.rb:56 + # source://unparser//lib/unparser/equalizer.rb#56 def define_inspect_method; end - # source://unparser-0.6.5/lib/unparser/equalizer.rb:33 + # source://unparser//lib/unparser/equalizer.rb#33 def define_methods; end - # source://unparser-0.6.5/lib/unparser/equalizer.rb:29 + # source://unparser//lib/unparser/equalizer.rb#29 def included(descendant); end end # The comparison methods # -# source://unparser-0.6.5/lib/unparser/equalizer.rb:66 +# source://unparser//lib/unparser/equalizer.rb#66 module Unparser::Equalizer::Methods # Compare the object with other object for equivalency # @@ -3522,7 +3511,7 @@ module Unparser::Equalizer::Methods # @param other [Object] the other object to compare with # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/equalizer.rb:93 + # source://unparser//lib/unparser/equalizer.rb#93 def ==(other); end # Compare the object with other object for equality @@ -3533,151 +3522,151 @@ module Unparser::Equalizer::Methods # @param other [Object] the other object to compare with # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/equalizer.rb:78 + # source://unparser//lib/unparser/equalizer.rb#78 def eql?(other); end end -# source://unparser-0.6.5/lib/unparser/generation.rb:5 +# source://unparser//lib/unparser/generation.rb#5 module Unparser::Generation - # source://unparser-0.6.5/lib/unparser/generation.rb:10 + # source://unparser//lib/unparser/generation.rb#10 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/generation.rb:12 + # source://unparser//lib/unparser/generation.rb#12 def symbol_name; end - # source://unparser-0.6.5/lib/unparser/generation.rb:14 + # source://unparser//lib/unparser/generation.rb#14 def write_to_buffer; end private - # source://unparser-0.6.5/lib/unparser/generation.rb:247 + # source://unparser//lib/unparser/generation.rb#247 def children; end - # source://unparser-0.6.5/lib/unparser/generation.rb:239 + # source://unparser//lib/unparser/generation.rb#239 def conditional_parentheses(flag, &block); end - # source://unparser-0.6.5/lib/unparser/generation.rb:21 + # source://unparser//lib/unparser/generation.rb#21 def delimited(nodes, delimiter = T.unsafe(nil), &block); end - # source://unparser-0.6.5/lib/unparser/generation.rb:123 + # source://unparser//lib/unparser/generation.rb#123 def emit_body(node, indent: T.unsafe(nil)); end - # source://unparser-0.6.5/lib/unparser/generation.rb:196 + # source://unparser//lib/unparser/generation.rb#196 def emit_body_ensure_rescue(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:145 + # source://unparser//lib/unparser/generation.rb#145 def emit_body_inner(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:158 + # source://unparser//lib/unparser/generation.rb#158 def emit_body_member(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:180 + # source://unparser//lib/unparser/generation.rb#180 def emit_body_rescue(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:77 + # source://unparser//lib/unparser/generation.rb#77 def emit_comments(comments); end - # source://unparser-0.6.5/lib/unparser/generation.rb:69 + # source://unparser//lib/unparser/generation.rb#69 def emit_comments_before(source_part = T.unsafe(nil)); end - # source://unparser-0.6.5/lib/unparser/generation.rb:166 + # source://unparser//lib/unparser/generation.rb#166 def emit_ensure(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:60 + # source://unparser//lib/unparser/generation.rb#60 def emit_eof_comments; end - # source://unparser-0.6.5/lib/unparser/generation.rb:54 + # source://unparser//lib/unparser/generation.rb#54 def emit_eol_comments; end - # source://unparser-0.6.5/lib/unparser/generation.rb:27 + # source://unparser//lib/unparser/generation.rb#27 def emit_join(nodes, emit_node, emit_delimiter); end - # source://unparser-0.6.5/lib/unparser/generation.rb:115 + # source://unparser//lib/unparser/generation.rb#115 def emit_optional_body(node, indent: T.unsafe(nil)); end - # source://unparser-0.6.5/lib/unparser/generation.rb:188 + # source://unparser//lib/unparser/generation.rb#188 def emit_optional_body_ensure_rescue(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:206 + # source://unparser//lib/unparser/generation.rb#206 def emit_rescue_postcontrol(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:212 + # source://unparser//lib/unparser/generation.rb#212 def emit_rescue_regular(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:220 + # source://unparser//lib/unparser/generation.rb#220 def emitter(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:235 + # source://unparser//lib/unparser/generation.rb#235 def first_child; end - # source://unparser-0.6.5/lib/unparser/generation.rb:106 + # source://unparser//lib/unparser/generation.rb#106 def indented; end - # source://unparser-0.6.5/lib/unparser/generation.rb:93 + # source://unparser//lib/unparser/generation.rb#93 def k_end; end - # source://unparser-0.6.5/lib/unparser/generation.rb:39 + # source://unparser//lib/unparser/generation.rb#39 def nl; end - # source://unparser-0.6.5/lib/unparser/generation.rb:100 + # source://unparser//lib/unparser/generation.rb#100 def parentheses(open = T.unsafe(nil), close = T.unsafe(nil)); end - # source://unparser-0.6.5/lib/unparser/generation.rb:224 + # source://unparser//lib/unparser/generation.rb#224 def visit(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:228 + # source://unparser//lib/unparser/generation.rb#228 def visit_deep(node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:44 + # source://unparser//lib/unparser/generation.rb#44 def with_comments; end - # source://unparser-0.6.5/lib/unparser/generation.rb:89 + # source://unparser//lib/unparser/generation.rb#89 def write(*strings); end - # source://unparser-0.6.5/lib/unparser/generation.rb:216 + # source://unparser//lib/unparser/generation.rb#216 def writer_with(klass, node); end - # source://unparser-0.6.5/lib/unparser/generation.rb:50 + # source://unparser//lib/unparser/generation.rb#50 def ws; end end -# source://unparser-0.6.5/lib/unparser/generation.rb:6 +# source://unparser//lib/unparser/generation.rb#6 Unparser::Generation::EXTRA_NL = T.let(T.unsafe(nil), Array) # Error raised when unparser encounters an invalid AST # -# source://unparser-0.6.5/lib/unparser.rb:39 +# source://unparser//lib/unparser.rb#39 class Unparser::InvalidNodeError < ::RuntimeError # @return [InvalidNodeError] a new instance of InvalidNodeError # - # source://unparser-0.6.5/lib/unparser.rb:42 + # source://unparser//lib/unparser.rb#42 def initialize(message, node); end # Returns the value of attribute node. # - # source://unparser-0.6.5/lib/unparser.rb:40 + # source://unparser//lib/unparser.rb#40 def node; end end -# source://unparser-0.6.5/lib/unparser/node_details.rb:4 +# source://unparser//lib/unparser/node_details.rb#4 module Unparser::NodeDetails include ::Unparser::NodeHelpers include ::Unparser::Constants private - # source://unparser-0.6.5/lib/unparser/node_details.rb:17 + # source://unparser//lib/unparser/node_details.rb#17 def children; end class << self # @private # - # source://unparser-0.6.5/lib/unparser/node_details.rb:7 + # source://unparser//lib/unparser/node_details.rb#7 def included(descendant); end end end -# source://unparser-0.6.5/lib/unparser/node_details/send.rb:5 +# source://unparser//lib/unparser/node_details/send.rb#5 class Unparser::NodeDetails::Send include ::Unparser::NodeHelpers include ::Unparser::Constants @@ -3689,64 +3678,64 @@ class Unparser::NodeDetails::Send extend ::Unparser::Adamantium::ClassMethods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def arguments(&block); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/node_details/send.rb:36 + # source://unparser//lib/unparser/node_details/send.rb#36 def arguments?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def assignment?(&block); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/node_details/send.rb:32 + # source://unparser//lib/unparser/node_details/send.rb#32 def assignment_operator?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/node_details/send.rb:21 + # source://unparser//lib/unparser/node_details/send.rb#21 def binary_syntax_allowed?; end - # source://unparser-0.6.5/lib/unparser/node_details/send.rb:40 + # source://unparser//lib/unparser/node_details/send.rb#40 def non_assignment_selector; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def receiver; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def selector; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/node_details/send.rb:17 + # source://unparser//lib/unparser/node_details/send.rb#17 def selector_binary_operator?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/node_details/send.rb:28 + # source://unparser//lib/unparser/node_details/send.rb#28 def selector_unary_operator?; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def string_selector(&block); end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end end -# source://unparser-0.6.5/lib/unparser/node_details/send.rb:8 +# source://unparser//lib/unparser/node_details/send.rb#8 Unparser::NodeDetails::Send::ASSIGN_SUFFIX = T.let(T.unsafe(nil), String) -# source://unparser-0.6.5/lib/unparser/node_details/send.rb:9 +# source://unparser//lib/unparser/node_details/send.rb#9 Unparser::NodeDetails::Send::NON_ASSIGN_RANGE = T.let(T.unsafe(nil), Range) -# source://unparser-0.6.5/lib/unparser/node_helpers.rb:4 +# source://unparser//lib/unparser/node_helpers.rb#4 module Unparser::NodeHelpers # Helper for building nodes # @@ -3755,12 +3744,12 @@ module Unparser::NodeHelpers # @param children [Array] # @return [Parser::AST::Node] # - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:26 + # source://unparser//lib/unparser/node_helpers.rb#26 def n(type, children = T.unsafe(nil)); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:30 + # source://unparser//lib/unparser/node_helpers.rb#30 def n?(type, node); end # Helper for building nodes @@ -3770,100 +3759,100 @@ module Unparser::NodeHelpers # @param children [Parser::AST::Node] # @return [Parser::AST::Node] # - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:14 + # source://unparser//lib/unparser/node_helpers.rb#14 def s(type, *children); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:71 + # source://unparser//lib/unparser/node_helpers.rb#71 def unwrap_single_begin(node); end private - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_arg?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_args?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_array?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_array_pattern?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_begin?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_block?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_cbase?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_const?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_dstr?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_empty_else?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_ensure?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_hash?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_hash_pattern?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_if?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_in_pattern?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_int?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_kwarg?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_kwargs?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_kwsplat?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_lambda?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_match_rest?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_pair?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_rescue?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_send?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_shadowarg?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_splat?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_str?(node); end - # source://unparser-0.6.5/lib/unparser/node_helpers.rb:65 + # source://unparser//lib/unparser/node_helpers.rb#65 def n_sym?(node); end end -# source://unparser-0.6.5/lib/unparser/either.rb:4 +# source://unparser//lib/unparser/either.rb#4 module Unparser::RequireBlock private @@ -3872,16 +3861,16 @@ module Unparser::RequireBlock # @raise [MissingBlockError] if no block is given # @return [self] # - # source://unparser-0.6.5/lib/unparser/either.rb:14 + # source://unparser//lib/unparser/either.rb#14 def require_block; end end -# source://unparser-0.6.5/lib/unparser/emitter.rb:4 +# source://unparser//lib/unparser/emitter.rb#4 class Unparser::UnknownNodeError < ::ArgumentError; end # Validation of unparser results # -# source://unparser-0.6.5/lib/unparser/validation.rb:5 +# source://unparser//lib/unparser/validation.rb#5 class Unparser::Validation include ::Unparser::Anima::InstanceMethods include ::Unparser::Equalizer::Methods @@ -3890,19 +3879,19 @@ class Unparser::Validation extend ::Unparser::Adamantium::ModuleMethods extend ::Unparser::Adamantium::ClassMethods - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def generated_node; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def generated_source; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def identification; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def original_node; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def original_source; end # Return error report @@ -3910,7 +3899,7 @@ class Unparser::Validation # @api private # @return [String] # - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def report(&block); end # Test if source could be unparsed successfully @@ -3918,22 +3907,22 @@ class Unparser::Validation # @api private # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/validation.rb:20 + # source://unparser//lib/unparser/validation.rb#20 def success?; end private - # source://unparser-0.6.5/lib/unparser/validation.rb:106 + # source://unparser//lib/unparser/validation.rb#106 def make_report(label, attribute_name); end - # source://unparser-0.6.5/lib/unparser/validation.rb:118 + # source://unparser//lib/unparser/validation.rb#118 def node_diff_report; end - # source://unparser-0.6.5/lib/unparser/validation.rb:110 + # source://unparser//lib/unparser/validation.rb#110 def report_exception(exception); end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end # Create validator from node @@ -3941,7 +3930,7 @@ class Unparser::Validation # @param original_node [Parser::AST::Node] # @return [Validator] # - # source://unparser-0.6.5/lib/unparser/validation.rb:79 + # source://unparser//lib/unparser/validation.rb#79 def from_node(original_node); end # Create validator from file @@ -3949,7 +3938,7 @@ class Unparser::Validation # @param path [Pathname] # @return [Validator] # - # source://unparser-0.6.5/lib/unparser/validation.rb:100 + # source://unparser//lib/unparser/validation.rb#100 def from_path(path); end # Create validator from string @@ -3957,33 +3946,33 @@ class Unparser::Validation # @param original_source [String] # @return [Validator] # - # source://unparser-0.6.5/lib/unparser/validation.rb:53 + # source://unparser//lib/unparser/validation.rb#53 def from_string(original_source); end private - # source://unparser-0.6.5/lib/unparser/validation.rb:133 + # source://unparser//lib/unparser/validation.rb#133 def const_unit(_value); end end end -# source://unparser-0.6.5/lib/unparser/validation.rb:136 +# source://unparser//lib/unparser/validation.rb#136 class Unparser::Validation::Literal < ::Unparser::Validation - # source://unparser-0.6.5/lib/unparser/validation.rb:141 + # source://unparser//lib/unparser/validation.rb#141 def report; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/validation.rb:137 + # source://unparser//lib/unparser/validation.rb#137 def success?; end private - # source://unparser-0.6.5/lib/unparser/validation.rb:156 + # source://unparser//lib/unparser/validation.rb#156 def source_diff_report; end end -# source://unparser-0.6.5/lib/unparser/writer.rb:4 +# source://unparser//lib/unparser/writer.rb#4 module Unparser::Writer include ::Unparser::NodeHelpers include ::Unparser::Generation @@ -3995,12 +3984,12 @@ module Unparser::Writer class << self # @private # - # source://unparser-0.6.5/lib/unparser/writer.rb:7 + # source://unparser//lib/unparser/writer.rb#7 def included(descendant); end end end -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:5 +# source://unparser//lib/unparser/writer/binary.rb#5 class Unparser::Writer::Binary include ::Unparser::Adamantium include ::Unparser::Adamantium::InstanceMethods @@ -4013,81 +4002,81 @@ class Unparser::Writer::Binary extend ::Unparser::Adamantium::ClassMethods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def buffer; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def comments; end - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:54 + # source://unparser//lib/unparser/writer/binary.rb#54 def dispatch; end - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:46 + # source://unparser//lib/unparser/writer/binary.rb#46 def emit_operator; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def local_variable_scope; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def node; end - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:50 + # source://unparser//lib/unparser/writer/binary.rb#50 def symbol_name; end private - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:62 + # source://unparser//lib/unparser/writer/binary.rb#62 def effective_symbol; end - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:74 + # source://unparser//lib/unparser/writer/binary.rb#74 def emit_with(map); end - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:80 + # source://unparser//lib/unparser/writer/binary.rb#80 def keyword_symbol; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def left; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def left_emitter(&block); end - # source://unparser-0.6.5/lib/unparser/writer/binary.rb:84 + # source://unparser//lib/unparser/writer/binary.rb#84 def operator_symbol; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def right; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def right_emitter(&block); end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end end end -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:22 +# source://unparser//lib/unparser/writer/binary.rb#22 Unparser::Writer::Binary::KEYWORD_SYMBOLS = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:16 +# source://unparser//lib/unparser/writer/binary.rb#16 Unparser::Writer::Binary::KEYWORD_TOKENS = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:34 +# source://unparser//lib/unparser/writer/binary.rb#34 Unparser::Writer::Binary::MAP = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:42 +# source://unparser//lib/unparser/writer/binary.rb#42 Unparser::Writer::Binary::NEED_KEYWORD = T.let(T.unsafe(nil), Array) -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:28 +# source://unparser//lib/unparser/writer/binary.rb#28 Unparser::Writer::Binary::OPERATOR_SYMBOLS = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/writer/binary.rb:10 +# source://unparser//lib/unparser/writer/binary.rb#10 Unparser::Writer::Binary::OPERATOR_TOKENS = T.let(T.unsafe(nil), Hash) -# source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:5 +# source://unparser//lib/unparser/writer/dynamic_string.rb#5 class Unparser::Writer::DynamicString include ::Unparser::Adamantium include ::Unparser::Adamantium::InstanceMethods @@ -4100,134 +4089,131 @@ class Unparser::Writer::DynamicString extend ::Unparser::Adamantium::ClassMethods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def buffer; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def comments; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:32 + # source://unparser//lib/unparser/writer/dynamic_string.rb#32 def dispatch; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:25 + # source://unparser//lib/unparser/writer/dynamic_string.rb#25 def emit_heredoc_reminder; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def local_variable_scope; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def node; end private # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:171 + # source://unparser//lib/unparser/writer/dynamic_string.rb#159 def breakpoint?(child, current); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:63 + # source://unparser//lib/unparser/writer/dynamic_string.rb#63 def classify(node); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:71 + # source://unparser//lib/unparser/writer/dynamic_string.rb#71 def classify_str(node); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:205 + # source://unparser//lib/unparser/writer/dynamic_string.rb#193 def emit_body(children); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:161 + # source://unparser//lib/unparser/writer/dynamic_string.rb#149 def emit_dstr; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:144 + # source://unparser//lib/unparser/writer/dynamic_string.rb#132 def emit_dynamic(child); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:157 + # source://unparser//lib/unparser/writer/dynamic_string.rb#145 def emit_dynamic_component(node); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:54 + # source://unparser//lib/unparser/writer/dynamic_string.rb#54 def emit_heredoc_body; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:59 + # source://unparser//lib/unparser/writer/dynamic_string.rb#59 def emit_heredoc_footer; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:50 + # source://unparser//lib/unparser/writer/dynamic_string.rb#50 def emit_heredoc_header; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:128 + # source://unparser//lib/unparser/writer/dynamic_string.rb#116 def emit_normal_heredoc_body; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:197 + # source://unparser//lib/unparser/writer/dynamic_string.rb#185 def emit_segment(children, index); end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:116 - def emit_squiggly_heredoc_body; end - - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:140 + # source://unparser//lib/unparser/writer/dynamic_string.rb#128 def escape_dynamic(string); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:46 + # source://unparser//lib/unparser/writer/dynamic_string.rb#46 def heredoc?; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:42 + # source://unparser//lib/unparser/writer/dynamic_string.rb#42 def heredoc_header; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:95 + # source://unparser//lib/unparser/writer/dynamic_string.rb#95 def heredoc_pattern?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:105 + # source://unparser//lib/unparser/writer/dynamic_string.rb#105 def heredoc_pattern_2?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:99 + # source://unparser//lib/unparser/writer/dynamic_string.rb#99 def heredoc_pattern_3?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:111 + # source://unparser//lib/unparser/writer/dynamic_string.rb#111 def nl_last_child?; end - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:181 + # source://unparser//lib/unparser/writer/dynamic_string.rb#169 def segments; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:87 + # source://unparser//lib/unparser/writer/dynamic_string.rb#87 def str_empty?(node); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:83 + # source://unparser//lib/unparser/writer/dynamic_string.rb#83 def str_nl?(node); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:91 + # source://unparser//lib/unparser/writer/dynamic_string.rb#91 def str_ws?(node); end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end end end -# source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:21 +# source://unparser//lib/unparser/writer/dynamic_string.rb#21 Unparser::Writer::DynamicString::FLAT_INTERPOLATION = T.let(T.unsafe(nil), Set) -# source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:8 +# source://unparser//lib/unparser/writer/dynamic_string.rb#8 Unparser::Writer::DynamicString::PATTERNS_2 = T.let(T.unsafe(nil), Array) -# source://unparser-0.6.5/lib/unparser/writer/dynamic_string.rb:14 +# source://unparser//lib/unparser/writer/dynamic_string.rb#14 Unparser::Writer::DynamicString::PATTERNS_3 = T.let(T.unsafe(nil), Array) # Writer for rescue bodies # -# source://unparser-0.6.5/lib/unparser/writer/resbody.rb:6 +# source://unparser//lib/unparser/writer/resbody.rb#6 class Unparser::Writer::Resbody include ::Unparser::NodeHelpers include ::Unparser::Generation @@ -4236,51 +4222,51 @@ class Unparser::Writer::Resbody include ::Unparser::Equalizer::Methods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def buffer; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def comments; end - # source://unparser-0.6.5/lib/unparser/writer/resbody.rb:11 + # source://unparser//lib/unparser/writer/resbody.rb#11 def emit_postcontrol; end - # source://unparser-0.6.5/lib/unparser/writer/resbody.rb:16 + # source://unparser//lib/unparser/writer/resbody.rb#16 def emit_regular; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def local_variable_scope; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def node; end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def assignment; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/writer/resbody.rb:32 + # source://unparser//lib/unparser/writer/resbody.rb#32 def emit_assignment; end - # source://unparser-0.6.5/lib/unparser/writer/resbody.rb:25 + # source://unparser//lib/unparser/writer/resbody.rb#25 def emit_exception; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def exception; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end end end -# source://unparser-0.6.5/lib/unparser/writer/rescue.rb:5 +# source://unparser//lib/unparser/writer/rescue.rb#5 class Unparser::Writer::Rescue include ::Unparser::Adamantium include ::Unparser::Adamantium::InstanceMethods @@ -4293,56 +4279,56 @@ class Unparser::Writer::Rescue extend ::Unparser::Adamantium::ClassMethods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def buffer; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def comments; end - # source://unparser-0.6.5/lib/unparser/writer/rescue.rb:23 + # source://unparser//lib/unparser/writer/rescue.rb#23 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/writer/rescue.rb:27 + # source://unparser//lib/unparser/writer/rescue.rb#27 def emit_postcontrol; end - # source://unparser-0.6.5/lib/unparser/writer/rescue.rb:12 + # source://unparser//lib/unparser/writer/rescue.rb#12 def emit_regular; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def local_variable_scope; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def node; end private - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def body; end - # source://unparser-0.6.5/lib/unparser/writer/rescue.rb:34 + # source://unparser//lib/unparser/writer/rescue.rb#34 def else_node; end - # source://unparser-0.6.5/lib/unparser/writer/rescue.rb:38 + # source://unparser//lib/unparser/writer/rescue.rb#38 def emit_rescue_body(node); end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def rescue_bodies(&block); end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def rescue_body; end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end end end # Writer for send # -# source://unparser-0.6.5/lib/unparser/writer/send.rb:6 +# source://unparser//lib/unparser/writer/send.rb#6 class Unparser::Writer::Send include ::Unparser::NodeHelpers include ::Unparser::Generation @@ -4356,174 +4342,174 @@ class Unparser::Writer::Send extend ::Unparser::Adamantium::ClassMethods extend ::Unparser::DSL - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def buffer; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def comments; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:21 + # source://unparser//lib/unparser/writer/send.rb#21 def dispatch; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:33 + # source://unparser//lib/unparser/writer/send.rb#33 def emit_heredoc_reminders; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:25 + # source://unparser//lib/unparser/writer/send.rb#25 def emit_mlhs; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:29 + # source://unparser//lib/unparser/writer/send.rb#29 def emit_selector; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def local_variable_scope; end - # source://unparser-0.6.5/lib/unparser/anima.rb:146 + # source://unparser//lib/unparser/anima.rb#146 def node; end private - # source://unparser-0.6.5/lib/unparser/writer/send.rb:73 + # source://unparser//lib/unparser/writer/send.rb#73 def arguments; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/send.rb:85 + # source://unparser//lib/unparser/writer/send.rb#85 def avoid_clash?; end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def details(&block); end - # source://unparser-0.6.5/lib/unparser/adamantium/method_builder.rb:87 + # source://unparser//lib/unparser/adamantium/method_builder.rb#87 def effective_writer(&block); end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:45 + # source://unparser//lib/unparser/writer/send.rb#45 def effective_writer_class; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:65 + # source://unparser//lib/unparser/writer/send.rb#65 def emit_arguments; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:81 + # source://unparser//lib/unparser/writer/send.rb#81 def emit_heredoc_reminder(argument); end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:77 + # source://unparser//lib/unparser/writer/send.rb#77 def emit_normal_arguments; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:61 + # source://unparser//lib/unparser/writer/send.rb#61 def emit_operator; end - # source://unparser-0.6.5/lib/unparser/writer/send.rb:106 + # source://unparser//lib/unparser/writer/send.rb#106 def emit_send_regular(node); end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/send.rb:89 + # source://unparser//lib/unparser/writer/send.rb#89 def local_variable_clash?; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/send.rb:93 + # source://unparser//lib/unparser/writer/send.rb#93 def parses_as_constant?; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def receiver; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def selector; end # @return [Boolean] # - # source://unparser-0.6.5/lib/unparser/writer/send.rb:57 + # source://unparser//lib/unparser/writer/send.rb#57 def write_as_attribute_assignment?; end class << self - # source://unparser-0.6.5/lib/unparser/anima.rb:140 + # source://unparser//lib/unparser/anima.rb#140 def anima; end end end # Writer for send as attribute assignment # -# source://unparser-0.6.5/lib/unparser/writer/send/attribute_assignment.rb:7 +# source://unparser//lib/unparser/writer/send/attribute_assignment.rb#7 class Unparser::Writer::Send::AttributeAssignment < ::Unparser::Writer::Send - # source://unparser-0.6.5/lib/unparser/writer/send/attribute_assignment.rb:10 + # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#10 def dispatch; end - # source://unparser-0.6.5/lib/unparser/writer/send/attribute_assignment.rb:22 + # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#22 def emit_send_mlhs; end private - # source://unparser-0.6.5/lib/unparser/writer/send/attribute_assignment.rb:34 + # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#34 def emit_attribute; end - # source://unparser-0.6.5/lib/unparser/writer/send/attribute_assignment.rb:29 + # source://unparser//lib/unparser/writer/send/attribute_assignment.rb#29 def emit_receiver; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def first_argument; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def receiver; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:11 + # source://unparser//lib/unparser/dsl.rb#11 def remaining_children; end - # source://unparser-0.6.5/lib/unparser/dsl.rb:18 + # source://unparser//lib/unparser/dsl.rb#18 def selector; end end # Writer for binary sends # -# source://unparser-0.6.5/lib/unparser/writer/send/binary.rb:7 +# source://unparser//lib/unparser/writer/send/binary.rb#7 class Unparser::Writer::Send::Binary < ::Unparser::Writer::Send - # source://unparser-0.6.5/lib/unparser/writer/send/binary.rb:8 + # source://unparser//lib/unparser/writer/send/binary.rb#8 def dispatch; end private - # source://unparser-0.6.5/lib/unparser/writer/send/binary.rb:16 + # source://unparser//lib/unparser/writer/send/binary.rb#16 def emit_operator; end - # source://unparser-0.6.5/lib/unparser/writer/send/binary.rb:20 + # source://unparser//lib/unparser/writer/send/binary.rb#20 def emit_right; end end -# source://unparser-0.6.5/lib/unparser/writer/send.rb:9 +# source://unparser//lib/unparser/writer/send.rb#9 Unparser::Writer::Send::INDEX_ASSIGN = T.let(T.unsafe(nil), Symbol) -# source://unparser-0.6.5/lib/unparser/writer/send.rb:10 +# source://unparser//lib/unparser/writer/send.rb#10 Unparser::Writer::Send::INDEX_REFERENCE = T.let(T.unsafe(nil), Symbol) -# source://unparser-0.6.5/lib/unparser/writer/send.rb:12 +# source://unparser//lib/unparser/writer/send.rb#12 Unparser::Writer::Send::OPERATORS = T.let(T.unsafe(nil), Hash) # Writer for "regular" receiver.selector(arguments...) case # -# source://unparser-0.6.5/lib/unparser/writer/send/regular.rb:7 +# source://unparser//lib/unparser/writer/send/regular.rb#7 class Unparser::Writer::Send::Regular < ::Unparser::Writer::Send - # source://unparser-0.6.5/lib/unparser/writer/send/regular.rb:8 + # source://unparser//lib/unparser/writer/send/regular.rb#8 def dispatch; end - # source://unparser-0.6.5/lib/unparser/writer/send/regular.rb:18 + # source://unparser//lib/unparser/writer/send/regular.rb#18 def emit_arguments_without_heredoc_body; end - # source://unparser-0.6.5/lib/unparser/writer/send/regular.rb:22 + # source://unparser//lib/unparser/writer/send/regular.rb#22 def emit_receiver; end - # source://unparser-0.6.5/lib/unparser/writer/send/regular.rb:14 + # source://unparser//lib/unparser/writer/send/regular.rb#14 def emit_send_mlhs; end end # Writer for unary sends # -# source://unparser-0.6.5/lib/unparser/writer/send/unary.rb:7 +# source://unparser//lib/unparser/writer/send/unary.rb#7 class Unparser::Writer::Send::Unary < ::Unparser::Writer::Send - # source://unparser-0.6.5/lib/unparser/writer/send/unary.rb:15 + # source://unparser//lib/unparser/writer/send/unary.rb#15 def dispatch; end end -# source://unparser-0.6.5/lib/unparser/writer/send/unary.rb:8 +# source://unparser//lib/unparser/writer/send/unary.rb#8 Unparser::Writer::Send::Unary::MAP = T.let(T.unsafe(nil), Hash)