From a57c3b06a1aa4a7b2bc0bd6832a776123e2b6bf0 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 27 Dec 2021 20:04:00 +0000 Subject: [PATCH] Update RBI files for rubocop-rails. --- ...ls@2.12.4.rbi => rubocop-rails@2.13.0.rbi} | 119 +++++++++++++++++- .../sorbet/rbi/hidden-definitions/hidden.rbi | 3 + 2 files changed, 118 insertions(+), 4 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rails@2.12.4.rbi => rubocop-rails@2.13.0.rbi} (93%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.12.4.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.0.rbi similarity index 93% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.12.4.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.0.rbi index 94bc79edb3..2c4b733e65 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.12.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.0.rbi @@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-rails` gem. # Please instead update this file by running `bin/tapioca gem rubocop-rails`. -# typed: true - module RuboCop; end module RuboCop::Cop; end @@ -25,6 +25,17 @@ end RuboCop::Cop::ActiveRecordHelper::WHERE_METHODS = T.let(T.unsafe(nil), Array) +module RuboCop::Cop::ActiveRecordMigrationsHelper + extend ::RuboCop::AST::NodePattern::Macros + + def create_table_with_block?(param0 = T.unsafe(nil)); end +end + +RuboCop::Cop::ActiveRecordMigrationsHelper::MYSQL_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::ActiveRecordMigrationsHelper::POSTGRES_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::ActiveRecordMigrationsHelper::RAILS_ABSTRACT_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::ActiveRecordMigrationsHelper::RAILS_ABSTRACT_SCHEMA_DEFINITIONS_HELPERS = T.let(T.unsafe(nil), Array) + module RuboCop::Cop::EnforceSuperclass def on_class(node); end def on_send(node); end @@ -372,6 +383,26 @@ RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_ALTER_METHODS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_TRANSFORMATIONS = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Rails::CompactBlank < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + def on_send(node); end + def reject_with_block?(param0 = T.unsafe(nil)); end + def reject_with_block_pass?(param0 = T.unsafe(nil)); end + + private + + def bad_method?(node); end + def offense_range(node); end + def preferred_method(node); end + def use_hash_value_block_argument?(arguments, receiver_in_block); end +end + +RuboCop::Cop::Rails::CompactBlank::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::CompactBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Rails::ContentTag < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -394,7 +425,8 @@ RuboCop::Cop::Rails::ContentTag::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::ContentTag::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Rails::CreateTableWithTimestamps < ::RuboCop::Cop::Base - def create_table_with_block?(param0 = T.unsafe(nil)); end + include ::RuboCop::Cop::ActiveRecordMigrationsHelper + def create_table_with_timestamps_proc?(param0 = T.unsafe(nil)); end def created_at_or_updated_at_included?(param0); end def on_send(node); end @@ -480,6 +512,23 @@ end RuboCop::Cop::Rails::DelegateAllowBlank::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::DelegateAllowBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Rails::DurationArithmetic < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + def duration?(param0 = T.unsafe(nil)); end + def duration_arithmetic_argument?(param0 = T.unsafe(nil)); end + def on_send(node); end + def time_current?(param0 = T.unsafe(nil)); end + + private + + def corrected_source(operator, duration); end +end + +RuboCop::Cop::Rails::DurationArithmetic::DURATIONS = T.let(T.unsafe(nil), Set) +RuboCop::Cop::Rails::DurationArithmetic::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::DurationArithmetic::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Rails::DynamicFindBy < ::RuboCop::Cop::Base include ::RuboCop::Cop::ActiveRecordHelper extend ::RuboCop::Cop::AutoCorrector @@ -1248,6 +1297,29 @@ end RuboCop::Cop::Rails::RedundantForeignKey::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::RedundantForeignKey::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRailsVersion + + def any_belongs_to?(param0 = T.unsafe(nil), association:); end + def belongs_to?(param0 = T.unsafe(nil), key:, fk:); end + def belongs_to_with_a_matching_fk?(param0 = T.unsafe(nil), param1); end + def belongs_to_without_fk?(param0 = T.unsafe(nil), param1); end + def on_send(node); end + def optional?(param0 = T.unsafe(nil)); end + def optional_option?(param0 = T.unsafe(nil)); end + def presence_validation?(param0 = T.unsafe(nil)); end + + private + + def belongs_to_for(model_class_node, key); end + def remove_presence_validation(corrector, node, options, presence); end +end + +RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Rails::RedundantReceiverInWithOptions < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -1422,6 +1494,22 @@ end RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Rails::RootJoinChain < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + + def join?(param0 = T.unsafe(nil)); end + def on_send(node); end + def rails_root?(param0 = T.unsafe(nil)); end + + private + + def evidence(node); end +end + +RuboCop::Cop::Rails::RootJoinChain::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::RootJoinChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + class RuboCop::Cop::Rails::SafeNavigation < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -1497,6 +1585,30 @@ RuboCop::Cop::Rails::SaveBang::MODIFY_PERSIST_METHODS = T.let(T.unsafe(nil), Arr RuboCop::Cop::Rails::SaveBang::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::SaveBang::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Rails::SchemaComment < ::RuboCop::Cop::Base + include ::RuboCop::Cop::ActiveRecordMigrationsHelper + + def add_column?(param0 = T.unsafe(nil)); end + def add_column_with_comment?(param0 = T.unsafe(nil)); end + def comment_present?(param0 = T.unsafe(nil)); end + def create_table?(param0 = T.unsafe(nil)); end + def create_table_with_comment?(param0 = T.unsafe(nil)); end + def on_send(node); end + def t_column?(param0 = T.unsafe(nil)); end + def t_column_with_comment?(param0 = T.unsafe(nil)); end + + private + + def add_column_without_comment?(node); end + def create_table_column_call_without_comment?(node); end + def create_table_without_comment?(node); end +end + +RuboCop::Cop::Rails::SchemaComment::COLUMN_MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::SchemaComment::CREATE_TABLE_COLUMN_METHODS = T.let(T.unsafe(nil), Set) +RuboCop::Cop::Rails::SchemaComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Rails::SchemaComment::TABLE_MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Rails::ScopeArgs < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector @@ -1613,7 +1725,6 @@ class RuboCop::Cop::Rails::UniqBeforePluck < ::RuboCop::Cop::Base def dot_method_begin_pos(method, node); end def dot_method_with_whitespace(method, node); end - def style_parameter_name; end end RuboCop::Cop::Rails::UniqBeforePluck::MSG = T.let(T.unsafe(nil), String) diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index ac6082d1ea..c60865352f 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -5128,9 +5128,12 @@ 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_REMOVE_BELONGS_TO_REMOVE_REFERENCE = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped) SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped) + SET_ROOT_PUBLIC_PATH = ::T.let(nil, ::T.untyped) SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped) SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped) end