Update RBI files for rubocop-rails.

This commit is contained in:
BrewTestBot 2021-12-27 20:04:00 +00:00
parent 0a6e953d77
commit a57c3b06a1
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
2 changed files with 118 additions and 4 deletions

View File

@ -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)

View File

@ -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