From 8ac70335bdceae2f354f9960991e1e591f62fde5 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 17 Jan 2022 19:38:54 +0000 Subject: [PATCH] Update RBI files for rubocop-rails. --- ...ls@2.13.1.rbi => rubocop-rails@2.13.2.rbi} | 20 +++++++++++++++++-- .../sorbet/rbi/hidden-definitions/hidden.rbi | 1 - 2 files changed, 18 insertions(+), 3 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rails@2.13.1.rbi => rubocop-rails@2.13.2.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.2.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.2.rbi index ee2e0c2424..d0902566ab 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.2.rbi @@ -109,6 +109,14 @@ class RuboCop::Cop::IndexMethod::Captures < ::Struct end RuboCop::Cop::IndexMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +module RuboCop::Cop::MigrationsHelper + extend ::RuboCop::AST::NodePattern::Macros + + def in_migration?(node); end + def migration_class?(param0 = T.unsafe(nil)); end +end + module RuboCop::Cop::Rails; end class RuboCop::Cop::Rails::ActionFilter < ::RuboCop::Cop::Base @@ -398,6 +406,7 @@ class RuboCop::Cop::Rails::CompactBlank < ::RuboCop::Cop::Base def offense_range(node); end def preferred_method(node); end def use_hash_value_block_argument?(arguments, receiver_in_block); end + def use_single_value_block_argument?(arguments, receiver_in_block); end end RuboCop::Cop::Rails::CompactBlank::MSG = T.let(T.unsafe(nil), String) @@ -947,6 +956,7 @@ class RuboCop::Cop::Rails::InverseOf < ::RuboCop::Cop::Base private + def ignore_scopes?; end def message(options); end end @@ -1254,8 +1264,11 @@ class RuboCop::Cop::Rails::ReadWriteAttribute < ::RuboCop::Cop::Base private - def message(node); end + def build_message(node); end + def multi_line_message(node); end + def node_replacement(node); end def read_attribute_replacement(node); end + def single_line_message(node); end def within_shadowing_method?(node); end def write_attribute_replacement(node); end end @@ -1464,6 +1477,8 @@ RuboCop::Cop::Rails::RequireDependency::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::RequireDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Rails::ReversibleMigration < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + def change_table_call(param0 = T.unsafe(nil)); end def drop_table_call(param0 = T.unsafe(nil)); end def irreversible_schema_statement_call(param0 = T.unsafe(nil)); end @@ -1494,8 +1509,9 @@ end RuboCop::Cop::Rails::ReversibleMigration::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + def change_method?(param0 = T.unsafe(nil)); end - def migration_class?(param0 = T.unsafe(nil)); end def on_class(node); end def up_and_down_methods?(param0 = T.unsafe(nil)); end end diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index 5fa01e2f6c..a2ab719a59 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -5099,7 +5099,6 @@ class RuboCop::AST::NodePattern::Parser end module RuboCop::AST::NodePattern::Sets - SET_BLANK_EMPTY = ::T.let(nil, ::T.untyped) SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) SET_CHANGE_COLUMN_EXECUTE = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)