Merge pull request #14291 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rails-2.17.4
build(deps): bump rubocop-rails from 2.17.3 to 2.17.4 in /Library/Homebrew
This commit is contained in:
commit
53025d1105
@ -147,7 +147,7 @@ GEM
|
|||||||
rubocop-performance (1.15.1)
|
rubocop-performance (1.15.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.17.3)
|
rubocop-rails (2.17.4)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
rack (>= 1.1)
|
rack (>= 1.1)
|
||||||
rubocop (>= 1.33.0, < 2.0)
|
rubocop (>= 1.33.0, < 2.0)
|
||||||
|
|||||||
@ -1787,9 +1787,11 @@ class RuboCop::Cop::Rails::RootPathnameMethods < ::RuboCop::Cop::Base
|
|||||||
|
|
||||||
def build_path_glob_replacement(path, method); end
|
def build_path_glob_replacement(path, method); end
|
||||||
def build_path_replacement(path, method, args); end
|
def build_path_replacement(path, method, args); end
|
||||||
|
def enforce_double_quotes?; end
|
||||||
def evidence(node); end
|
def evidence(node); end
|
||||||
def include_interpolation?(arguments); end
|
def include_interpolation?(arguments); end
|
||||||
def join_arguments(arguments); end
|
def join_arguments(arguments); end
|
||||||
|
def string_literals_config; end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Rails::RootPathnameMethods::DIR_METHODS = T.let(T.unsafe(nil), Set)
|
RuboCop::Cop::Rails::RootPathnameMethods::DIR_METHODS = T.let(T.unsafe(nil), Set)
|
||||||
@ -2018,6 +2020,7 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base
|
|||||||
def method_send?(node); end
|
def method_send?(node); end
|
||||||
def need_check_localtime?(chain); end
|
def need_check_localtime?(chain); end
|
||||||
def not_danger_chain?(chain); end
|
def not_danger_chain?(chain); end
|
||||||
|
def offset_option_provided?(node); end
|
||||||
def offset_provided?(node); end
|
def offset_provided?(node); end
|
||||||
def remove_redundant_in_time_zone(corrector, node); end
|
def remove_redundant_in_time_zone(corrector, node); end
|
||||||
def safe_method(method_name, node); end
|
def safe_method(method_name, node); end
|
||||||
@ -2127,6 +2130,7 @@ class RuboCop::Cop::Rails::UniqueValidationWithoutIndex < ::RuboCop::Cop::Base
|
|||||||
def class_node(node); end
|
def class_node(node); end
|
||||||
def column_names(node); end
|
def column_names(node); end
|
||||||
def column_names_from_scope(node); end
|
def column_names_from_scope(node); end
|
||||||
|
def condition_hash_part?(pairs, keys:); end
|
||||||
def condition_part?(node); end
|
def condition_part?(node); end
|
||||||
def find_schema_information(node); end
|
def find_schema_information(node); end
|
||||||
def find_scope(pairs); end
|
def find_scope(pairs); end
|
||||||
@ -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/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-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-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-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/rubocop-sorbet-0.6.11/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-macho-3.0.0/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)
|
def followed_by_render?(flash_node)
|
||||||
flash_assigment_node = find_ancestor(flash_node, type: :send)
|
flash_assigment_node = find_ancestor(flash_node, type: :send)
|
||||||
context = flash_assigment_node
|
context = flash_assigment_node
|
||||||
if (if_node = context.each_ancestor(:if).first)
|
if (node = context.each_ancestor(:if, :rescue).first)
|
||||||
context = if_node
|
context = node
|
||||||
elsif context.right_siblings.empty?
|
elsif context.right_siblings.empty?
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
context = context.right_siblings
|
context = context.right_siblings
|
||||||
|
|
||||||
context.compact.any? do |node|
|
context.compact.any? do |render_candidate|
|
||||||
render?(node)
|
render?(render_candidate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ module RuboCop
|
|||||||
class I18nLocaleTexts < Base
|
class I18nLocaleTexts < Base
|
||||||
MSG = 'Move locale texts to the locale files in the `config/locales` directory.'
|
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
|
def_node_search :validation_message, <<~PATTERN
|
||||||
(pair (sym :message) $str)
|
(pair (sym :message) $str)
|
||||||
@ -94,7 +94,7 @@ module RuboCop
|
|||||||
add_offense(text_node)
|
add_offense(text_node)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
when :redirect_to
|
when :redirect_to, :redirect_back
|
||||||
text_node = redirect_to_flash(node).to_a.last
|
text_node = redirect_to_flash(node).to_a.last
|
||||||
when :[]=
|
when :[]=
|
||||||
text_node = flash_assignment?(node)
|
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