brew vendor-gems: commit updates.
This commit is contained in:
parent
9e73df4958
commit
62b3ee1dcb
@ -106,7 +106,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.3.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.40.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.15.1/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.17.3/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.17.4/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.16.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.6.11/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-3.0.0/lib")
|
||||
|
||||
@ -69,15 +69,15 @@ module RuboCop
|
||||
def followed_by_render?(flash_node)
|
||||
flash_assigment_node = find_ancestor(flash_node, type: :send)
|
||||
context = flash_assigment_node
|
||||
if (if_node = context.each_ancestor(:if).first)
|
||||
context = if_node
|
||||
if (node = context.each_ancestor(:if, :rescue).first)
|
||||
context = node
|
||||
elsif context.right_siblings.empty?
|
||||
return true
|
||||
end
|
||||
context = context.right_siblings
|
||||
|
||||
context.compact.any? do |node|
|
||||
render?(node)
|
||||
context.compact.any? do |render_candidate|
|
||||
render?(render_candidate)
|
||||
end
|
||||
end
|
||||
|
||||
@ -69,7 +69,7 @@ module RuboCop
|
||||
class I18nLocaleTexts < Base
|
||||
MSG = 'Move locale texts to the locale files in the `config/locales` directory.'
|
||||
|
||||
RESTRICT_ON_SEND = %i[validates redirect_to []= mail].freeze
|
||||
RESTRICT_ON_SEND = %i[validates redirect_to redirect_back []= mail].freeze
|
||||
|
||||
def_node_search :validation_message, <<~PATTERN
|
||||
(pair (sym :message) $str)
|
||||
@ -94,7 +94,7 @@ module RuboCop
|
||||
add_offense(text_node)
|
||||
end
|
||||
return
|
||||
when :redirect_to
|
||||
when :redirect_to, :redirect_back
|
||||
text_node = redirect_to_flash(node).to_a.last
|
||||
when :[]=
|
||||
text_node = flash_assignment?(node)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user