Merge pull request #16770 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-ast-1.31.0

build(deps-dev): bump rubocop-ast from 1.30.0 to 1.31.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2024-02-29 17:26:16 +00:00 committed by GitHub
commit afcf059100
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 65 additions and 56 deletions

View File

@ -97,8 +97,9 @@ GEM
rubocop-ast (>= 1.30.0, < 2.0) rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0) rubocop-ast (1.31.0)
parser (>= 3.2.1.0) parser (>= 3.3.0.4)
prism (>= 0.24.0)
rubocop-capybara (2.20.0) rubocop-capybara (2.20.0)
rubocop (~> 1.41) rubocop (~> 1.41)
rubocop-factory_bot (2.25.1) rubocop-factory_bot (2.25.1)

View File

@ -4437,7 +4437,7 @@ class RuboCop::AST::NodePattern::LexerRex
# The current location in the parse. # The current location in the parse.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#104 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#103
def location; end def location; end
# The StringScanner for this lexer. # The StringScanner for this lexer.
@ -4452,22 +4452,22 @@ class RuboCop::AST::NodePattern::LexerRex
# Lex the next token. # Lex the next token.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#113 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#112
def next_token; end def next_token; end
# Parse the given string. # Parse the given string.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#84 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#83
def parse(str); end def parse(str); end
# Read in and parse the file at +path+. # Read in and parse the file at +path+.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#94 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#93
def parse_file(path); end def parse_file(path); end
# The current scanner class. Must be overridden in subclasses. # The current scanner class. Must be overridden in subclasses.
# #
# source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#77 # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#76
def scanner_class; end def scanner_class; end
# The StringScanner for this lexer. # The StringScanner for this lexer.
@ -5907,38 +5907,38 @@ end
class RuboCop::AST::ProcessedSource class RuboCop::AST::ProcessedSource
# @return [ProcessedSource] a new instance of ProcessedSource # @return [ProcessedSource] a new instance of ProcessedSource
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#26 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29
def initialize(source, ruby_version, path = T.unsafe(nil)); end def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#63 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#72
def [](*args); end def [](*args); end
# Returns the value of attribute ast. # Returns the value of attribute ast.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def ast; end def ast; end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#50
def ast_with_comments; end def ast_with_comments; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#102 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#111
def blank?; end def blank?; end
# Returns the value of attribute buffer. # Returns the value of attribute buffer.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def buffer; end def buffer; end
# Raw source checksum for tracking infinite loops. # Raw source checksum for tracking infinite loops.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#74 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#83
def checksum; end def checksum; end
# @return [Comment, nil] the comment at that line, if any. # @return [Comment, nil] the comment at that line, if any.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#116
def comment_at_line(line); end def comment_at_line(line); end
# Consider using `each_comment_in_lines` instead # Consider using `each_comment_in_lines` instead
@ -5946,170 +5946,178 @@ class RuboCop::AST::ProcessedSource
# @deprecated use contains_comment? # @deprecated use contains_comment?
# @return [Boolean] if any of the lines in the given `source_range` has a comment. # @return [Boolean] if any of the lines in the given `source_range` has a comment.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
def commented?(source_range); end def commented?(source_range); end
# Returns the value of attribute comments. # Returns the value of attribute comments.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def comments; end def comments; end
# Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use. # Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
# #
# @deprecated Use `each_comment_in_lines` # @deprecated Use `each_comment_in_lines`
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#137 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#146
def comments_before_line(line); end def comments_before_line(line); end
# Consider using `each_comment_in_lines` instead # Consider using `each_comment_in_lines` instead
# #
# @return [Boolean] if any of the lines in the given `source_range` has a comment. # @return [Boolean] if any of the lines in the given `source_range` has a comment.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#138
def contains_comment?(source_range); end def contains_comment?(source_range); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#160
def current_line(token); end def current_line(token); end
# Returns the value of attribute diagnostics. # Returns the value of attribute diagnostics.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def diagnostics; end def diagnostics; end
# @deprecated Use `comments.each` # @deprecated Use `comments.each`
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#79 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#88
def each_comment(&block); end def each_comment(&block); end
# Enumerates on the comments contained with the given `line_range` # Enumerates on the comments contained with the given `line_range`
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#126
def each_comment_in_lines(line_range); end def each_comment_in_lines(line_range); end
# @deprecated Use `tokens.each` # @deprecated Use `tokens.each`
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98
def each_token(&block); end def each_token(&block); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
def file_path; end def file_path; end
# @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find` # @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#93
def find_comment(&block); end def find_comment(&block); end
# @deprecated Use `tokens.find` # @deprecated Use `tokens.find`
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#103
def find_token(&block); end def find_token(&block); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#172 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#181
def first_token_of(range_or_node); end def first_token_of(range_or_node); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#155 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#164
def following_line(token); end def following_line(token); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#185
def last_token_of(range_or_node); end def last_token_of(range_or_node); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#159 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#168
def line_indentation(line_number); end def line_indentation(line_number); end
# @return [Boolean] if the given line number has a comment. # @return [Boolean] if the given line number has a comment.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#121
def line_with_comment?(line); end def line_with_comment?(line); end
# Returns the source lines, line break characters removed, excluding a # Returns the source lines, line break characters removed, excluding a
# possible __END__ and everything that comes after. # possible __END__ and everything that comes after.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#49 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#58
def lines; end def lines; end
# source://rubocop-md/1.2.2/lib/rubocop/markdown/rubocop_ext.rb#95 # source://rubocop-md/1.2.2/lib/rubocop/markdown/rubocop_ext.rb#95
def parse(src, *args); end def parse(src, *args); end
# Returns the value of attribute parser_engine.
#
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def parser_engine; end
# Returns the value of attribute parser_error. # Returns the value of attribute parser_error.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def parser_error; end def parser_error; end
# Returns the value of attribute path. # Returns the value of attribute path.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def path; end def path; end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#156
def preceding_line(token); end def preceding_line(token); end
# Returns the value of attribute raw_source. # Returns the value of attribute raw_source.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def raw_source; end def raw_source; end
# Returns the value of attribute ruby_version. # Returns the value of attribute ruby_version.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def ruby_version; end def ruby_version; end
# The tokens list is always sorted by token position, except for cases when heredoc # 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 # is passed as a method argument. In this case tokens are interleaved by
# heredoc contents' tokens. # heredoc contents' tokens.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#183 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#192
def sorted_tokens; end def sorted_tokens; end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#141 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#150
def start_with?(string); end def start_with?(string); end
# Returns the value of attribute tokens. # Returns the value of attribute tokens.
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def tokens; end def tokens; end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#166 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#175
def tokens_within(range_or_node); end def tokens_within(range_or_node); end
# @return [Boolean] # @return [Boolean]
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#67 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#76
def valid_syntax?; end def valid_syntax?; end
private private
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#190 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#199
def comment_index; end def comment_index; end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#278 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#306
def create_parser(ruby_version); end def create_parser(ruby_version, parser_engine); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#294 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#322
def first_token_index(range_or_node); end def first_token_index(range_or_node); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#299 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#327
def last_token_index(range_or_node); end def last_token_index(range_or_node); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#230 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#239
def parser_class(ruby_version); end def parser_class(ruby_version, parser_engine); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#304 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#332
def source_range(range_or_node); end def source_range(range_or_node); end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#213 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#222
def tokenize(parser); end def tokenize(parser); end
class << self class << self
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24
def from_file(path, ruby_version); end def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
end end
end end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array) RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
# @api private # @api private
# #
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13 # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13

View File

@ -89,7 +89,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-retry-0.6.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-retry-0.6.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-sorbet-1.9.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec-sorbet-1.9.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec_junit_formatter-0.6.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rspec_junit_formatter-0.6.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.30.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.31.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.5.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.60.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.60.2/lib")