Merge pull request #13479 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rails-2.15.1
build(deps): bump rubocop-rails from 2.15.0 to 2.15.1 in /Library/Homebrew
This commit is contained in:
commit
9cdba1353a
@ -137,7 +137,7 @@ GEM
|
||||
rubocop-performance (1.14.2)
|
||||
rubocop (>= 1.7.0, < 2.0)
|
||||
rubocop-ast (>= 0.4.0)
|
||||
rubocop-rails (2.15.0)
|
||||
rubocop-rails (2.15.1)
|
||||
activesupport (>= 4.2.0)
|
||||
rack (>= 1.1)
|
||||
rubocop (>= 1.7.0, < 2.0)
|
||||
|
||||
@ -53,6 +53,8 @@ module RuboCop::Cop::EnforceSuperclass
|
||||
end
|
||||
end
|
||||
|
||||
RuboCop::Cop::IgnoredPattern = RuboCop::Cop::AllowedPattern
|
||||
|
||||
module RuboCop::Cop::IndexMethod
|
||||
def on_block(node); end
|
||||
def on_csend(node); end
|
||||
@ -1902,7 +1904,7 @@ RuboCop::Cop::Rails::TimeZone::TIMEZONE_SPECIFIER = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
class RuboCop::Cop::Rails::TimeZoneAssignment < ::RuboCop::Cop::Base
|
||||
def on_send(node); end
|
||||
def time_zone_assignement?(param0 = T.unsafe(nil)); end
|
||||
def time_zone_assignment?(param0 = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Rails::TimeZoneAssignment::MSG = T.let(T.unsafe(nil), String)
|
||||
@ -1913,6 +1915,7 @@ class RuboCop::Cop::Rails::ToFormattedS < ::RuboCop::Cop::Base
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRailsVersion
|
||||
|
||||
def on_csend(node); end
|
||||
def on_send(node); end
|
||||
end
|
||||
|
||||
@ -2167,8 +2170,8 @@ end
|
||||
class RuboCop::Rails::SchemaLoader::Schema
|
||||
def initialize(ast); end
|
||||
|
||||
def add_indicies; end
|
||||
def add_indicies_by(table_name:); end
|
||||
def add_indices; end
|
||||
def add_indices_by(table_name:); end
|
||||
def table_by(name:); end
|
||||
def tables; end
|
||||
|
||||
@ -86,7 +86,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.2.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.30.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.14.2/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.15.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.15.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.11.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.10/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-3.0.0/lib"
|
||||
|
||||
@ -160,7 +160,7 @@ Rails/AttributeDefaultBlockValue:
|
||||
Enabled: pending
|
||||
VersionAdded: '2.9'
|
||||
Include:
|
||||
- 'models/**/*'
|
||||
- 'app/models/**/*'
|
||||
|
||||
Rails/BelongsTo:
|
||||
Description: >-
|
||||
@ -119,7 +119,7 @@ module RuboCop
|
||||
def autocorrect(corrector, node)
|
||||
receiver = node.receiver
|
||||
|
||||
if receiver.receiver.method?(:messages)
|
||||
if receiver.receiver.send_type? && receiver.receiver.method?(:messages)
|
||||
corrector.remove(receiver.receiver.loc.dot)
|
||||
corrector.remove(receiver.receiver.loc.selector)
|
||||
end
|
||||
@ -53,7 +53,7 @@ module RuboCop
|
||||
end
|
||||
|
||||
def new_key(key_node, scope_node)
|
||||
"'#{scopes(scope_node).map(&:value).join('.')}.#{key_node.value}'"
|
||||
"'#{scopes(scope_node).map(&:value).join('.')}.#{key_node.value}'".squeeze('.')
|
||||
end
|
||||
|
||||
def scopes(scope_node)
|
||||
@ -20,8 +20,7 @@ module RuboCop
|
||||
class EnumHash < Base
|
||||
extend AutoCorrector
|
||||
|
||||
MSG = 'Enum defined as an array found in `%<enum>s` enum declaration. '\
|
||||
'Use hash syntax instead.'
|
||||
MSG = 'Enum defined as an array found in `%<enum>s` enum declaration. Use hash syntax instead.'
|
||||
RESTRICT_ON_SEND = %i[enum].freeze
|
||||
|
||||
def_node_matcher :enum?, <<~PATTERN
|
||||
@ -23,8 +23,7 @@ module RuboCop
|
||||
class OrderById < Base
|
||||
include RangeHelp
|
||||
|
||||
MSG = 'Do not use the `id` column for ordering. '\
|
||||
'Use a timestamp column to order chronologically.'
|
||||
MSG = 'Do not use the `id` column for ordering. Use a timestamp column to order chronologically.'
|
||||
RESTRICT_ON_SEND = %i[order].freeze
|
||||
|
||||
def_node_matcher :order_by_id?, <<~PATTERN
|
||||
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