Merge pull request #11306 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.11.1
build(deps): bump rubocop-performance from 1.11.0 to 1.11.1 in /Library/Homebrew
This commit is contained in:
commit
4f4fb49481
@ -65,7 +65,7 @@ GEM
|
|||||||
parser
|
parser
|
||||||
rainbow (~> 3.0)
|
rainbow (~> 3.0)
|
||||||
sorbet-runtime (>= 0.5)
|
sorbet-runtime (>= 0.5)
|
||||||
parser (3.0.1.0)
|
parser (3.0.1.1)
|
||||||
ast (~> 2.4.1)
|
ast (~> 2.4.1)
|
||||||
patchelf (1.3.0)
|
patchelf (1.3.0)
|
||||||
elftools (>= 1.1.3)
|
elftools (>= 1.1.3)
|
||||||
@ -120,7 +120,7 @@ GEM
|
|||||||
unicode-display_width (>= 1.4.0, < 3.0)
|
unicode-display_width (>= 1.4.0, < 3.0)
|
||||||
rubocop-ast (1.4.1)
|
rubocop-ast (1.4.1)
|
||||||
parser (>= 2.7.1.5)
|
parser (>= 2.7.1.5)
|
||||||
rubocop-performance (1.11.0)
|
rubocop-performance (1.11.1)
|
||||||
rubocop (>= 1.7.0, < 2.0)
|
rubocop (>= 1.7.0, < 2.0)
|
||||||
rubocop-ast (>= 0.4.0)
|
rubocop-ast (>= 0.4.0)
|
||||||
rubocop-rails (2.9.1)
|
rubocop-rails (2.9.1)
|
||||||
|
|||||||
@ -1236,6 +1236,7 @@ class Parser::Source::Comment
|
|||||||
|
|
||||||
class << self
|
class << self
|
||||||
def associate(ast, comments); end
|
def associate(ast, comments); end
|
||||||
|
def associate_by_identity(ast, comments); end
|
||||||
def associate_locations(ast, comments); end
|
def associate_locations(ast, comments); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1244,6 +1245,7 @@ class Parser::Source::Comment::Associator
|
|||||||
def initialize(ast, comments); end
|
def initialize(ast, comments); end
|
||||||
|
|
||||||
def associate; end
|
def associate; end
|
||||||
|
def associate_by_identity; end
|
||||||
def associate_locations; end
|
def associate_locations; end
|
||||||
def skip_directives; end
|
def skip_directives; end
|
||||||
def skip_directives=(_arg0); end
|
def skip_directives=(_arg0); end
|
||||||
@ -437,6 +437,10 @@ class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base
|
|||||||
|
|
||||||
def map_compact(param0 = T.unsafe(nil)); end
|
def map_compact(param0 = T.unsafe(nil)); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def compact_method_range(compact_node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -51,7 +51,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/method_source-1.0.0/l
|
|||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mustache-1.1.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/mustache-1.1.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel-1.20.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel-1.20.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel_tests-3.7.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parallel_tests-3.7.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parser-3.0.1.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parser-3.0.1.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rainbow-3.0.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rainbow-3.0.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-runtime-0.5.6274/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/sorbet-runtime-0.5.6274/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parlour-6.0.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parlour-6.0.0/lib"
|
||||||
@ -80,7 +80,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.4.1/lib
|
|||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.0.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.0.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.13.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.13.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.11.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.11.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.9.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.9.1/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.1/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.1/lib"
|
||||||
|
|||||||
@ -56,7 +56,19 @@ module RuboCop
|
|||||||
add_offense(range) do |corrector|
|
add_offense(range) do |corrector|
|
||||||
corrector.replace(map_node.loc.selector, 'filter_map')
|
corrector.replace(map_node.loc.selector, 'filter_map')
|
||||||
corrector.remove(compact_loc.dot)
|
corrector.remove(compact_loc.dot)
|
||||||
corrector.remove(compact_loc.selector)
|
corrector.remove(compact_method_range(node))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def compact_method_range(compact_node)
|
||||||
|
compact_method_range = compact_node.loc.selector
|
||||||
|
|
||||||
|
if compact_node.multiline?
|
||||||
|
range_by_whole_lines(compact_method_range, include_final_newline: true)
|
||||||
|
else
|
||||||
|
compact_method_range
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -4,7 +4,7 @@ module RuboCop
|
|||||||
module Performance
|
module Performance
|
||||||
# This module holds the RuboCop Performance version information.
|
# This module holds the RuboCop Performance version information.
|
||||||
module Version
|
module Version
|
||||||
STRING = '1.11.0'
|
STRING = '1.11.1'
|
||||||
|
|
||||||
def self.document_version
|
def self.document_version
|
||||||
STRING.match('\d+\.\d+').to_s
|
STRING.match('\d+\.\d+').to_s
|
||||||
Loading…
x
Reference in New Issue
Block a user