brew/Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi

283 lines
8.1 KiB
Plaintext
Raw Normal View History

# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-sorbet` gem.
# Please instead update this file by running `tapioca sync`.
# typed: true
module RuboCop
end
module RuboCop::Cop
end
module RuboCop::Cop::Sorbet
end
class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < ::RuboCop::Cop::Cop
def allow_incompatible?(param0); end
def allow_incompatible_override?(param0 = T.unsafe(nil)); end
def not_nil?(node); end
def on_send(node); end
def sig?(param0); end
end
class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < ::RuboCop::Cop::Cop
def autocorrect(node); end
def binding_unaliased_type?(param0 = T.unsafe(nil)); end
def dynamic_type_creation_with_block?(param0 = T.unsafe(nil)); end
def generic_parameter_decl?(param0 = T.unsafe(nil)); end
def method_needing_aliasing_on_t?(param0); end
def not_dynamic_type_creation_with_block?(node); end
def not_generic_parameter_decl?(node); end
def not_nil?(node); end
def not_t_let?(node); end
def on_casgn(node); end
def t_let?(param0 = T.unsafe(nil)); end
def using_deprecated_type_alias_syntax?(param0 = T.unsafe(nil)); end
def using_type_alias?(param0 = T.unsafe(nil)); end
end
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
include(::RuboCop::Cop::RangeHelp)
def offending_node(param0); end
def on_signature(node); end
end
class RuboCop::Cop::Sorbet::ConstantsFromStrings < ::RuboCop::Cop::Cop
def constant_from_string?(param0 = T.unsafe(nil)); end
def on_send(node); end
end
class RuboCop::Cop::Sorbet::EnforceSigilOrder < ::RuboCop::Cop::Sorbet::ValidSigil
include(::RuboCop::Cop::RangeHelp)
def autocorrect(_node); end
def investigate(processed_source); end
protected
def check_magic_comments_order(tokens); end
def extract_magic_comments(processed_source); end
end
RuboCop::Cop::Sorbet::EnforceSigilOrder::CODING_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Sorbet::EnforceSigilOrder::FROZEN_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Sorbet::EnforceSigilOrder::INDENT_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Sorbet::EnforceSigilOrder::MAGIC_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Sorbet::EnforceSigilOrder::PREFERRED_ORDER = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::SignatureCop
2021-03-15 07:11:16 +00:00
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
def accessor?(param0 = T.unsafe(nil)); end
def autocorrect(node); end
2021-03-15 07:11:16 +00:00
def on_block(node); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
2021-03-15 07:11:16 +00:00
def scope(node); end
private
def check_node(node); end
def param_type_placeholder; end
def return_type_placeholder; end
end
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
def initialize(indent, param_placeholder, return_placeholder); end
def params; end
2021-03-15 07:11:16 +00:00
def params=(_arg0); end
def returns; end
2021-03-15 07:11:16 +00:00
def returns=(_arg0); end
def to_autocorrect; end
private
def generate_params; end
def generate_return; end
end
class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
def minimum_strictness; end
end
2021-03-15 07:11:16 +00:00
class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)
def autocorrect(node); end
def extend_t_helpers?(param0 = T.unsafe(nil)); end
def extend_t_sig?(param0 = T.unsafe(nil)); end
def on_send(node); end
end
RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < ::RuboCop::Cop::Cop
2021-03-15 07:11:16 +00:00
def initialize(*_arg0); end
def not_lit_const_include?(param0 = T.unsafe(nil)); end
def on_send(node); end
def used_names; end
2021-03-15 07:11:16 +00:00
def used_names=(_arg0); end
end
RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop
def not_lit_const_superclass?(param0 = T.unsafe(nil)); end
def on_class(node); end
end
RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < ::RuboCop::Cop::Cop
def on_class(node); end
def subclass_of_t_struct?(param0 = T.unsafe(nil)); end
def t_nilable_untyped(param0 = T.unsafe(nil)); end
def t_struct(param0 = T.unsafe(nil)); end
def t_untyped(param0 = T.unsafe(nil)); end
def untyped_props(param0); end
end
RuboCop::Cop::Sorbet::ForbidUntypedStructProps::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Sorbet::HasSigil < ::RuboCop::Cop::Sorbet::ValidSigil
def require_sigil_on_all_files?; end
end
class RuboCop::Cop::Sorbet::IgnoreSigil < ::RuboCop::Cop::Sorbet::HasSigil
def minimum_strictness; end
end
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Sorbet::SignatureCop
def on_signature(node); end
private
def check_order_for_kwoptargs(parameters); end
end
2021-03-15 07:11:16 +00:00
class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop
def abstract?(param0); end
def autocorrect(node); end
def more_than_one_ancestor(param0 = T.unsafe(nil)); end
def on_class(node); end
def on_module(node); end
def requires_ancestors(param0); end
private
def new_ra_line(indent_count); end
def process_node(node); end
end
RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Sorbet::ParametersOrderingInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
def on_signature(node); end
def signature_params(param0); end
private
def check_for_inconsistent_param_ordering(sig_params_order, parameters); end
def extract_parameters(sig_params); end
end
class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::SignatureCop
def autocorrect(node); end
def on_signature(node); end
def root_call(param0); end
private
def call_chain(sig_child_node); end
def can_autocorrect?; end
2021-03-15 07:11:16 +00:00
def node_reparsed_with_modern_features(node); end
end
RuboCop::Cop::Sorbet::SignatureBuildOrder::ORDER = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Sorbet::SignatureCop < ::RuboCop::Cop::Cop
def on_block(node); end
def on_signature(_); end
def signature?(param0 = T.unsafe(nil)); end
end
2021-03-15 07:11:16 +00:00
class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_class(node); end
def on_module(node); end
protected
def convert_newlines(source); end
def process_node(node); end
end
RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Sorbet::StrictSigil < ::RuboCop::Cop::Sorbet::HasSigil
def minimum_strictness; end
end
class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil
def minimum_strictness; end
end
class RuboCop::Cop::Sorbet::TrueSigil < ::RuboCop::Cop::Sorbet::HasSigil
def minimum_strictness; end
end
class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop
def autocorrect(_node); end
def investigate(processed_source); end
protected
def check_sigil_present(sigil); end
def check_strictness_level(sigil, strictness); end
def check_strictness_not_empty(sigil, strictness); end
def check_strictness_valid(sigil, strictness); end
def extract_sigil(processed_source); end
def extract_strictness(sigil); end
def minimum_strictness; end
def require_sigil_on_all_files?; end
def suggested_strictness; end
def suggested_strictness_level(minimum_strictness, suggested_strictness); end
end
RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
RuboCop::NodePattern = RuboCop::AST::NodePattern
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
module RuboCop::Sorbet
end
RuboCop::Sorbet::CONFIG = T.let(T.unsafe(nil), Hash)
class RuboCop::Sorbet::Error < ::StandardError
end
module RuboCop::Sorbet::Inject
class << self
def defaults!; end
end
end
RuboCop::Sorbet::VERSION = T.let(T.unsafe(nil), String)
RuboCop::Token = RuboCop::AST::Token