srb/tapioca: update rbi of recently bumped gems
This commit is contained in:
parent
1a6467eeea
commit
9658f011f2
@ -265,7 +265,6 @@ class RuboCop::AST::DefNode < ::RuboCop::AST::Node
|
|||||||
def arguments; end
|
def arguments; end
|
||||||
def body; end
|
def body; end
|
||||||
def method_name; end
|
def method_name; end
|
||||||
def node_parts; end
|
|
||||||
def receiver; end
|
def receiver; end
|
||||||
def void_context?; end
|
def void_context?; end
|
||||||
end
|
end
|
||||||
@ -530,6 +529,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|||||||
def chained?; end
|
def chained?; end
|
||||||
def child_nodes; end
|
def child_nodes; end
|
||||||
def class_constructor?(node = _); end
|
def class_constructor?(node = _); end
|
||||||
|
def class_definition?(node = _); end
|
||||||
def class_type?; end
|
def class_type?; end
|
||||||
def complete!; end
|
def complete!; end
|
||||||
def complete?; end
|
def complete?; end
|
||||||
@ -570,6 +570,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|||||||
def forward_arg_type?; end
|
def forward_arg_type?; end
|
||||||
def forward_args_type?; end
|
def forward_args_type?; end
|
||||||
def forwarded_args_type?; end
|
def forwarded_args_type?; end
|
||||||
|
def global_const?(node = _, param1); end
|
||||||
def guard_clause?; end
|
def guard_clause?; end
|
||||||
def gvar_type?; end
|
def gvar_type?; end
|
||||||
def gvasgn_type?; end
|
def gvasgn_type?; end
|
||||||
@ -615,6 +616,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|||||||
def match_with_lvasgn_type?; end
|
def match_with_lvasgn_type?; end
|
||||||
def match_with_trailing_comma_type?; end
|
def match_with_trailing_comma_type?; end
|
||||||
def mlhs_type?; end
|
def mlhs_type?; end
|
||||||
|
def module_definition?(node = _); end
|
||||||
def module_type?; end
|
def module_type?; end
|
||||||
def mrasgn_type?; end
|
def mrasgn_type?; end
|
||||||
def multiline?; end
|
def multiline?; end
|
||||||
@ -679,6 +681,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
|||||||
def splat_type?; end
|
def splat_type?; end
|
||||||
def str_content(node = _); end
|
def str_content(node = _); end
|
||||||
def str_type?; end
|
def str_type?; end
|
||||||
|
def struct_constructor?(node = _); end
|
||||||
def super_type?; end
|
def super_type?; end
|
||||||
def sym_type?; end
|
def sym_type?; end
|
||||||
def true_type?; end
|
def true_type?; end
|
||||||
@ -779,6 +782,12 @@ module RuboCop::AST::NodePattern::Macros
|
|||||||
def def_node_search(method_name, pattern_str, **keyword_defaults); end
|
def def_node_search(method_name, pattern_str, **keyword_defaults); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RuboCop::AST::NodePattern::Matcher
|
||||||
|
def initialize(&block); end
|
||||||
|
|
||||||
|
def ===(compare); end
|
||||||
|
end
|
||||||
|
|
||||||
module RuboCop::AST::NumericNode
|
module RuboCop::AST::NumericNode
|
||||||
def sign?; end
|
def sign?; end
|
||||||
end
|
end
|
||||||
@ -849,6 +858,7 @@ class RuboCop::AST::ProcessedSource
|
|||||||
def commented?(source_range); end
|
def commented?(source_range); end
|
||||||
def comments; end
|
def comments; end
|
||||||
def comments_before_line(line); end
|
def comments_before_line(line); end
|
||||||
|
def contains_comment?(source_range); end
|
||||||
def current_line(token); end
|
def current_line(token); end
|
||||||
def diagnostics; end
|
def diagnostics; end
|
||||||
def each_comment; end
|
def each_comment; end
|
||||||
@ -858,6 +868,7 @@ class RuboCop::AST::ProcessedSource
|
|||||||
def find_token; end
|
def find_token; end
|
||||||
def following_line(token); end
|
def following_line(token); end
|
||||||
def line_indentation(line_number); end
|
def line_indentation(line_number); end
|
||||||
|
def line_with_comment?(line); end
|
||||||
def lines; end
|
def lines; end
|
||||||
def parser_error; end
|
def parser_error; end
|
||||||
def path; end
|
def path; end
|
||||||
@ -1034,6 +1045,7 @@ module RuboCop::AST::Traversal
|
|||||||
def on_ensure(node); end
|
def on_ensure(node); end
|
||||||
def on_erange(node); end
|
def on_erange(node); end
|
||||||
def on_false(node); end
|
def on_false(node); end
|
||||||
|
def on_find_pattern(node); end
|
||||||
def on_float(node); end
|
def on_float(node); end
|
||||||
def on_for(node); end
|
def on_for(node); end
|
||||||
def on_forward_arg(node); end
|
def on_forward_arg(node); end
|
||||||
@ -1199,10 +1211,14 @@ RuboCop::AST::NodePattern::Compiler::META = T.let(T.unsafe(nil), Regexp)
|
|||||||
|
|
||||||
RuboCop::AST::NodePattern::Compiler::METHOD_NAME = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::Compiler::METHOD_NAME = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Compiler::MULTIPLE_CUR_PLACEHOLDER = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Compiler::NODE = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::Compiler::NODE = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Compiler::NUMBER = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::Compiler::NUMBER = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
RuboCop::AST::NodePattern::Compiler::ONLY_SEPARATOR = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Compiler::PARAM = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::Compiler::PARAM = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
RuboCop::AST::NodePattern::Compiler::PARAM_CONST = T.let(T.unsafe(nil), Regexp)
|
RuboCop::AST::NodePattern::Compiler::PARAM_CONST = T.let(T.unsafe(nil), Regexp)
|
||||||
@ -26,6 +26,10 @@ class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop:
|
|||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def big_decimal_with_numeric_argument?(node = _); end
|
def big_decimal_with_numeric_argument?(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def specifies_precision?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -50,12 +50,9 @@ module RuboCop::Cop::RSpec
|
|||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(let); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
def investigate(_processed_source); end
|
|
||||||
|
|
||||||
private
|
def on_new_investigation; end
|
||||||
|
|
||||||
def token_aligner; end
|
|
||||||
|
|
||||||
def self.autocorrect_incompatible_with; end
|
def self.autocorrect_incompatible_with; end
|
||||||
end
|
end
|
||||||
@ -63,12 +60,9 @@ end
|
|||||||
RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::AlignLeftLetBrace::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::AlignRightLetBrace < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::AlignRightLetBrace < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(let); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
def investigate(_processed_source); end
|
|
||||||
|
|
||||||
private
|
def on_new_investigation; end
|
||||||
|
|
||||||
def token_aligner; end
|
|
||||||
|
|
||||||
def self.autocorrect_incompatible_with; end
|
def self.autocorrect_incompatible_with; end
|
||||||
end
|
end
|
||||||
@ -105,7 +99,8 @@ end
|
|||||||
RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def eql_type_with_identity(node = _); end
|
def eql_type_with_identity(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
end
|
end
|
||||||
@ -123,8 +118,9 @@ module RuboCop::Cop::RSpec::Capybara
|
|||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Cop
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def as_is_matcher(node = _); end
|
def as_is_matcher(node = _); end
|
||||||
def autocorrect(node); end
|
|
||||||
def expectation_set_on_current_path(node = _); end
|
def expectation_set_on_current_path(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
def regexp_str_matcher(node = _); end
|
def regexp_str_matcher(node = _); end
|
||||||
@ -132,6 +128,7 @@ class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RS
|
|||||||
private
|
private
|
||||||
|
|
||||||
def add_ignore_query_options(corrector, node); end
|
def add_ignore_query_options(corrector, node); end
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end
|
def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end
|
||||||
def rewrite_expectation(corrector, node, to_symbol, matcher_node); end
|
def rewrite_expectation(corrector, node, to_symbol, matcher_node); end
|
||||||
end
|
end
|
||||||
@ -139,8 +136,10 @@ end
|
|||||||
RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def feature_method(node = _); end
|
def feature_method(node = _); end
|
||||||
|
def message(range); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
def spec?(node = _); end
|
def spec?(node = _); end
|
||||||
|
|
||||||
@ -174,7 +173,8 @@ RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil
|
|||||||
RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ContextMethod < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def context_method(node = _); end
|
def context_method(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::Cop < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::RSpec::Cop < ::RuboCop::Cop::Base
|
||||||
include(::RuboCop::RSpec::Language)
|
include(::RuboCop::RSpec::Language)
|
||||||
include(::RuboCop::RSpec::Language::NodePattern)
|
include(::RuboCop::RSpec::Language::NodePattern)
|
||||||
|
|
||||||
@ -251,8 +251,8 @@ RuboCop::Cop::RSpec::DescribeSymbol::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def common_instance_exec_closure?(node = _); end
|
def common_instance_exec_closure?(node = _); end
|
||||||
def contains_described_class?(node0); end
|
def contains_described_class?(node0); end
|
||||||
def described_constant(node = _); end
|
def described_constant(node = _); end
|
||||||
@ -262,6 +262,7 @@ class RuboCop::Cop::RSpec::DescribedClass < ::RuboCop::Cop::RSpec::Cop
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, match); end
|
||||||
def collapse_namespace(namespace, const); end
|
def collapse_namespace(namespace, const); end
|
||||||
def const_name(node); end
|
def const_name(node); end
|
||||||
def find_usage(node, &block); end
|
def find_usage(node, &block); end
|
||||||
@ -288,14 +289,10 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::MethodPreference)
|
include(::RuboCop::Cop::MethodPreference)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
def rspec_method?(node = _); end
|
def rspec_method?(node = _); end
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def message(node); end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -314,8 +311,8 @@ RuboCop::Cop::RSpec::EmptyExampleGroup::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::EmptyHook < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def empty_hook?(node = _); end
|
def empty_hook?(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
end
|
end
|
||||||
@ -326,6 +323,7 @@ class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Cop
|
|||||||
include(::RuboCop::RSpec::FinalEndLocation)
|
include(::RuboCop::RSpec::FinalEndLocation)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
include(::RuboCop::RSpec::BlankLineSeparation)
|
include(::RuboCop::RSpec::BlankLineSeparation)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def allow_consecutive_one_liners?; end
|
def allow_consecutive_one_liners?; end
|
||||||
def allowed_one_liner?(node); end
|
def allowed_one_liner?(node); end
|
||||||
@ -341,6 +339,7 @@ class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::C
|
|||||||
include(::RuboCop::RSpec::FinalEndLocation)
|
include(::RuboCop::RSpec::FinalEndLocation)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
include(::RuboCop::RSpec::BlankLineSeparation)
|
include(::RuboCop::RSpec::BlankLineSeparation)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
end
|
end
|
||||||
@ -351,6 +350,7 @@ class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Cop
|
|||||||
include(::RuboCop::RSpec::FinalEndLocation)
|
include(::RuboCop::RSpec::FinalEndLocation)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
include(::RuboCop::RSpec::BlankLineSeparation)
|
include(::RuboCop::RSpec::BlankLineSeparation)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
end
|
end
|
||||||
@ -361,6 +361,7 @@ class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Cop
|
|||||||
include(::RuboCop::RSpec::FinalEndLocation)
|
include(::RuboCop::RSpec::FinalEndLocation)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
include(::RuboCop::RSpec::BlankLineSeparation)
|
include(::RuboCop::RSpec::BlankLineSeparation)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
end
|
end
|
||||||
@ -371,6 +372,7 @@ class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Cop
|
|||||||
include(::RuboCop::RSpec::FinalEndLocation)
|
include(::RuboCop::RSpec::FinalEndLocation)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
include(::RuboCop::RSpec::BlankLineSeparation)
|
include(::RuboCop::RSpec::BlankLineSeparation)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
@ -412,7 +414,8 @@ RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.un
|
|||||||
RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_DEFAULT_ARGUMENT = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ExampleWording < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def it_description(node = _); end
|
def it_description(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
@ -435,7 +438,8 @@ RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String)
|
|||||||
RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp)
|
RuboCop::Cop::RSpec::ExampleWording::SHOULD_PREFIX = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ExpectActual < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def expect_literal(node = _); end
|
def expect_literal(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
@ -457,17 +461,12 @@ RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Arr
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def expect_change_with_arguments(node = _); end
|
def expect_change_with_arguments(node = _); end
|
||||||
def expect_change_with_block(node = _); end
|
def expect_change_with_block(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def autocorrect_block_to_method_call(node); end
|
|
||||||
def autocorrect_method_call_to_block(node); end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String)
|
||||||
@ -505,11 +504,8 @@ module RuboCop::Cop::RSpec::ExplicitHelper
|
|||||||
private
|
private
|
||||||
|
|
||||||
def allowed_explicit_matchers; end
|
def allowed_explicit_matchers; end
|
||||||
def autocorrect_explicit(node); end
|
|
||||||
def autocorrect_explicit_block(node); end
|
|
||||||
def autocorrect_explicit_send(node); end
|
|
||||||
def check_explicit(node); end
|
def check_explicit(node); end
|
||||||
def corrector_explicit(to_node, actual, matcher, block_child); end
|
def corrector_explicit(corrector, to_node, actual, matcher, block_child); end
|
||||||
def message_explicit(matcher); end
|
def message_explicit(matcher); end
|
||||||
def move_predicate(corrector, actual, matcher, block_child); end
|
def move_predicate(corrector, actual, matcher, block_child); end
|
||||||
def predicate_matcher_name?(name); end
|
def predicate_matcher_name?(name); end
|
||||||
@ -525,8 +521,9 @@ module RuboCop::Cop::RSpec::FactoryBot
|
|||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Cop
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def association?(node = _); end
|
def association?(node = _); end
|
||||||
def autocorrect(node); end
|
|
||||||
def factory_attributes(node = _); end
|
def factory_attributes(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
def value_matcher(node = _); end
|
def value_matcher(node = _); end
|
||||||
@ -534,8 +531,9 @@ class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::C
|
|||||||
private
|
private
|
||||||
|
|
||||||
def attribute_defining_method?(method_name); end
|
def attribute_defining_method?(method_name); end
|
||||||
def autocorrect_replacing_parens(node); end
|
def autocorrect(corrector, node); end
|
||||||
def autocorrect_without_parens(node); end
|
def autocorrect_replacing_parens(corrector, node); end
|
||||||
|
def autocorrect_without_parens(corrector, node); end
|
||||||
def braces(node); end
|
def braces(node); end
|
||||||
def offensive_receiver?(receiver, node); end
|
def offensive_receiver?(receiver, node); end
|
||||||
def proc?(attribute); end
|
def proc?(attribute); end
|
||||||
@ -548,8 +546,8 @@ RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsaf
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def factory_call(node = _); end
|
def factory_call(node = _); end
|
||||||
def factory_list_call(node = _); end
|
def factory_list_call(node = _); end
|
||||||
def n_times_block_without_arg?(node = _); end
|
def n_times_block_without_arg?(node = _); end
|
||||||
@ -602,7 +600,8 @@ class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector < ::RuboCop::C
|
|||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def class_name(node = _); end
|
def class_name(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
@ -655,8 +654,8 @@ RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::HookArgument < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
def scoped_hook(node = _); end
|
def scoped_hook(node = _); end
|
||||||
def unscoped_hook(node = _); end
|
def unscoped_hook(node = _); end
|
||||||
@ -677,12 +676,14 @@ RuboCop::Cop::RSpec::HookArgument::HOOKS = T.let(T.unsafe(nil), String)
|
|||||||
RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::HookArgument::IMPLICIT_MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::HooksBeforeExamples < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def example_or_group?(node = _); end
|
def example_or_group?(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node, first_example); end
|
||||||
def check_hooks(node); end
|
def check_hooks(node); end
|
||||||
def find_first_example(node); end
|
def find_first_example(node); end
|
||||||
def multiline_block?(block); end
|
def multiline_block?(block); end
|
||||||
@ -707,8 +708,8 @@ RuboCop::Cop::RSpec::ImplicitBlockExpectation::MSG = T.let(T.unsafe(nil), String
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ImplicitExpect < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def implicit_expect(node = _); end
|
def implicit_expect(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
@ -726,14 +727,15 @@ RuboCop::Cop::RSpec::ImplicitExpect::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ImplicitSubject < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def implicit_subject?(node = _); end
|
def implicit_subject?(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def allowed_by_style?(example); end
|
def allowed_by_style?(example); end
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
def valid_usage?(node); end
|
def valid_usage?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -749,7 +751,6 @@ module RuboCop::Cop::RSpec::InflectedHelper
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def autocorrect_inflected(node); end
|
|
||||||
def boolean_matcher?(node); end
|
def boolean_matcher?(node); end
|
||||||
def check_inflected(node); end
|
def check_inflected(node); end
|
||||||
def message_inflected(predicate); end
|
def message_inflected(predicate); end
|
||||||
@ -763,10 +764,15 @@ end
|
|||||||
RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def have_received_usage(node0); end
|
def have_received_usage(node0); end
|
||||||
def null_double(node0); end
|
def null_double(node0); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -794,7 +800,6 @@ class RuboCop::Cop::RSpec::InvalidPredicateMatcher < ::RuboCop::Cop::RSpec::Cop
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def message(predicate); end
|
|
||||||
def predicate?(name); end
|
def predicate?(name); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -802,8 +807,8 @@ RuboCop::Cop::RSpec::InvalidPredicateMatcher::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ItBehavesLike < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def example_inclusion_offense(node = _, param1); end
|
def example_inclusion_offense(node = _, param1); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
@ -828,12 +833,14 @@ end
|
|||||||
RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def check_previous_nodes(node); end
|
def check_previous_nodes(node); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
def find_first_offending_node(node); end
|
def find_first_offending_node(node); end
|
||||||
def in_spec_block?(node); end
|
def in_spec_block?(node); end
|
||||||
def offending?(node); end
|
def offending?(node); end
|
||||||
@ -858,12 +865,14 @@ RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil),
|
|||||||
RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_MODULE = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::LetBeforeExamples < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def example_or_group?(node = _); end
|
def example_or_group?(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node, first_example); end
|
||||||
def check_let_declarations(node); end
|
def check_let_declarations(node); end
|
||||||
def find_first_example(node); end
|
def find_first_example(node); end
|
||||||
def multiline_block?(block); end
|
def multiline_block?(block); end
|
||||||
@ -886,7 +895,6 @@ end
|
|||||||
RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::LetSetup::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::MessageChain < ::RuboCop::Cop::RSpec::Cop
|
||||||
def message(node); end
|
|
||||||
def message_chain(node = _); end
|
def message_chain(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
end
|
end
|
||||||
@ -965,15 +973,16 @@ RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, subject); end
|
||||||
def named_subject?(node); end
|
def named_subject?(node); end
|
||||||
def remove_autocorrect(node); end
|
def remove_autocorrect(corrector, node); end
|
||||||
def rename_autocorrect(node); end
|
def rename_autocorrect(corrector, node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -1010,8 +1019,8 @@ RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::NotToNot < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def not_to_not_offense(node = _, param1); end
|
def not_to_not_offense(node = _, param1); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
@ -1057,6 +1066,7 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Cop
|
|||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
include(::RuboCop::Cop::RSpec::InflectedHelper)
|
include(::RuboCop::Cop::RSpec::InflectedHelper)
|
||||||
include(::RuboCop::Cop::RSpec::ExplicitHelper)
|
include(::RuboCop::Cop::RSpec::ExplicitHelper)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
@ -1069,13 +1079,15 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Cop
|
|||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
def receive_counts(node = _); end
|
def receive_counts(node = _); end
|
||||||
def stub?(node0); end
|
def stub?(node0); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node, range); end
|
||||||
def matcher_for(method, count); end
|
def matcher_for(method, count); end
|
||||||
def message_for(node, source); end
|
def message_for(node, source); end
|
||||||
def range(node, offending_node); end
|
def range(node, offending_node); end
|
||||||
@ -1084,9 +1096,14 @@ end
|
|||||||
RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ReceiveCounts::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ReceiveNever < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def method_on_stub?(node0); end
|
def method_on_stub?(node0); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -1149,9 +1166,9 @@ RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil),
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def and_return_value(node0); end
|
def and_return_value(node0); end
|
||||||
def autocorrect(node); end
|
|
||||||
def contains_stub?(node0); end
|
def contains_stub?(node0); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
@ -1200,7 +1217,8 @@ RuboCop::Cop::RSpec::ReturnFromStub::MSG_AND_RETURN = T.let(T.unsafe(nil), Strin
|
|||||||
RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ReturnFromStub::MSG_BLOCK = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -1220,7 +1238,8 @@ end
|
|||||||
RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def context?(node0); end
|
def context?(node0); end
|
||||||
def examples?(node0); end
|
def examples?(node0); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
@ -1229,7 +1248,6 @@ class RuboCop::Cop::RSpec::SharedContext < ::RuboCop::Cop::RSpec::Cop
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def add_shared_item_offense(node, message); end
|
|
||||||
def context_with_only_examples(node); end
|
def context_with_only_examples(node); end
|
||||||
def examples_with_only_context(node); end
|
def examples_with_only_context(node); end
|
||||||
end
|
end
|
||||||
@ -1239,7 +1257,8 @@ RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = T.let(T.unsafe(nil), String)
|
|||||||
RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::SharedContext::MSG_EXAMPLES = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::SharedExamples < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
def shared_examples(node = _); end
|
def shared_examples(node = _); end
|
||||||
end
|
end
|
||||||
@ -1260,17 +1279,18 @@ end
|
|||||||
RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::RSpec::SharedExamples::Checker::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::Cop
|
||||||
def autocorrect(node); end
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def message_chain(node = _); end
|
def message_chain(node = _); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
def single_key_hash?(node = _); end
|
def single_key_hash?(node = _); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node, method, arg); end
|
||||||
def autocorrect_array_arg(corrector, arg); end
|
def autocorrect_array_arg(corrector, arg); end
|
||||||
def autocorrect_hash_arg(corrector, arg); end
|
def autocorrect_hash_arg(corrector, arg); end
|
||||||
def key_to_arg(node); end
|
def key_to_arg(node); end
|
||||||
def message(node); end
|
|
||||||
def replacement(method); end
|
def replacement(method); end
|
||||||
def single_element_array?(node); end
|
def single_element_array?(node); end
|
||||||
def valid_usage?(node); end
|
def valid_usage?(node); end
|
||||||
@ -1360,8 +1380,8 @@ RuboCop::Cop::RSpec::VoidExpect::MSG = T.let(T.unsafe(nil), String)
|
|||||||
|
|
||||||
class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Cop
|
class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Cop
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def block_arg(node = _); end
|
def block_arg(node = _); end
|
||||||
def block_call?(node = _, param1); end
|
def block_call?(node = _, param1); end
|
||||||
def method_on_stub?(node0); end
|
def method_on_stub?(node0); end
|
||||||
@ -1369,6 +1389,7 @@ class RuboCop::Cop::RSpec::Yield < ::RuboCop::Cop::RSpec::Cop
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node, range); end
|
||||||
def block_range(node); end
|
def block_range(node); end
|
||||||
def calling_block?(node, block); end
|
def calling_block?(node, block); end
|
||||||
def convert_block_to_yield(node); end
|
def convert_block_to_yield(node); end
|
||||||
@ -1407,7 +1428,6 @@ module RuboCop::RSpec::BlankLineSeparation
|
|||||||
include(::RuboCop::RSpec::FinalEndLocation)
|
include(::RuboCop::RSpec::FinalEndLocation)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def last_child?(node); end
|
def last_child?(node); end
|
||||||
def missing_separating_line(node); end
|
def missing_separating_line(node); end
|
||||||
def offending_loc(last_line); end
|
def offending_loc(last_line); end
|
||||||
@ -289,6 +289,8 @@ class RuboCop::ConfigLoader
|
|||||||
def self.merge(base_hash, derived_hash); end
|
def self.merge(base_hash, derived_hash); end
|
||||||
def self.merge_with_default(config, config_file, unset_nil: _); end
|
def self.merge_with_default(config, config_file, unset_nil: _); end
|
||||||
def self.possible_new_cops?(config); end
|
def self.possible_new_cops?(config); end
|
||||||
|
def self.project_root; end
|
||||||
|
def self.project_root=(_); end
|
||||||
def self.warn_on_pending_cops(pending_cops); end
|
def self.warn_on_pending_cops(pending_cops); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -363,6 +365,7 @@ class RuboCop::ConfigStore
|
|||||||
def for(file_or_dir); end
|
def for(file_or_dir); end
|
||||||
def for_dir(dir); end
|
def for_dir(dir); end
|
||||||
def for_file(file); end
|
def for_file(file); end
|
||||||
|
def for_pwd; end
|
||||||
def force_default_config!; end
|
def force_default_config!; end
|
||||||
def options_config=(options_config); end
|
def options_config=(options_config); end
|
||||||
end
|
end
|
||||||
@ -549,6 +552,8 @@ class RuboCop::Cop::Base
|
|||||||
def complete_investigation; end
|
def complete_investigation; end
|
||||||
def correct(range); end
|
def correct(range); end
|
||||||
def correction_strategy; end
|
def correction_strategy; end
|
||||||
|
def current_offense_locations; end
|
||||||
|
def currently_disabled_lines; end
|
||||||
def custom_severity; end
|
def custom_severity; end
|
||||||
def default_severity; end
|
def default_severity; end
|
||||||
def disable_uncorrectable(range); end
|
def disable_uncorrectable(range); end
|
||||||
@ -749,6 +754,7 @@ class RuboCop::Cop::Commissioner
|
|||||||
def on_ensure(node); end
|
def on_ensure(node); end
|
||||||
def on_erange(node); end
|
def on_erange(node); end
|
||||||
def on_false(node); end
|
def on_false(node); end
|
||||||
|
def on_find_pattern(node); end
|
||||||
def on_float(node); end
|
def on_float(node); end
|
||||||
def on_for(node); end
|
def on_for(node); end
|
||||||
def on_forward_arg(node); end
|
def on_forward_arg(node); end
|
||||||
@ -1602,9 +1608,10 @@ end
|
|||||||
RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Layout::CaseIndentation::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Cop
|
||||||
|
include(::RuboCop::Cop::VisibilityHelp)
|
||||||
|
|
||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def on_class(class_node); end
|
def on_class(class_node); end
|
||||||
def visibility_block?(node = _); end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
@ -1616,14 +1623,8 @@ class RuboCop::Cop::Layout::ClassStructure < ::RuboCop::Cop::Cop
|
|||||||
def end_position_for(node); end
|
def end_position_for(node); end
|
||||||
def expected_order; end
|
def expected_order; end
|
||||||
def find_category(node); end
|
def find_category(node); end
|
||||||
def find_visibility_end(node); end
|
|
||||||
def find_visibility_start(node); end
|
|
||||||
def humanize_node(node); end
|
def humanize_node(node); end
|
||||||
def ignore?(classification); end
|
def ignore?(classification); end
|
||||||
def left_siblings_of(node); end
|
|
||||||
def node_visibility(node); end
|
|
||||||
def right_siblings_of(node); end
|
|
||||||
def siblings_of(node); end
|
|
||||||
def source_range_with_comment(node); end
|
def source_range_with_comment(node); end
|
||||||
def start_line_position(node); end
|
def start_line_position(node); end
|
||||||
def walk_over_nested_class_definition(class_node); end
|
def walk_over_nested_class_definition(class_node); end
|
||||||
@ -1633,8 +1634,6 @@ RuboCop::Cop::Layout::ClassStructure::HUMANIZED_NODE_TYPE = T.let(T.unsafe(nil),
|
|||||||
|
|
||||||
RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Layout::ClassStructure::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
RuboCop::Cop::Layout::ClassStructure::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
class RuboCop::Cop::Layout::ClosingHeredocIndentation < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Layout::ClosingHeredocIndentation < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::Heredoc)
|
include(::RuboCop::Cop::Heredoc)
|
||||||
|
|
||||||
@ -2625,8 +2624,10 @@ class RuboCop::Cop::Layout::MultilineBlockLayout < ::RuboCop::Cop::Cop
|
|||||||
def autocorrect_arguments(corrector, node); end
|
def autocorrect_arguments(corrector, node); end
|
||||||
def autocorrect_body(corrector, node, block_body); end
|
def autocorrect_body(corrector, node, block_body); end
|
||||||
def block_arg_string(node, args); end
|
def block_arg_string(node, args); end
|
||||||
|
def characters_needed_for_space_and_pipes(node); end
|
||||||
def include_trailing_comma?(args); end
|
def include_trailing_comma?(args); end
|
||||||
def line_break_necessary_in_args?(node); end
|
def line_break_necessary_in_args?(node); end
|
||||||
|
def needed_length_for_args(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Layout::MultilineBlockLayout::ARG_MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Layout::MultilineBlockLayout::ARG_MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -2964,30 +2965,26 @@ RuboCop::Cop::Layout::SpaceAroundKeyword::NAMESPACE_OPERATOR = T.let(T.unsafe(ni
|
|||||||
|
|
||||||
RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Layout::SpaceAroundKeyword::SAFE_NAVIGATION = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Layout::SpaceAroundMethodCallOperator < ::RuboCop::Cop::Base
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
include(::RuboCop::Cop::SurroundingSpace)
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def on_const(node); end
|
def on_const(node); end
|
||||||
def on_csend(node); end
|
def on_csend(node); end
|
||||||
def on_send(node); end
|
def on_send(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def check_and_add_offense(node, add_left_offense = _); end
|
def check_space(begin_pos, end_pos); end
|
||||||
def dot_or_safe_navigation_operator?(node); end
|
def check_space_after_dot(node); end
|
||||||
def left_token_for_auto_correction(node, operator); end
|
def check_space_after_double_colon(node); end
|
||||||
def next_token(current_token); end
|
def check_space_before_dot(node); end
|
||||||
def operator_token(node); end
|
|
||||||
def previous_token(current_token); end
|
|
||||||
def right_token_for_auto_correction(operator); end
|
|
||||||
def valid_left_token?(left, operator); end
|
|
||||||
def valid_right_token?(right, operator); end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
RuboCop::Cop::Layout::SpaceAroundMethodCallOperator::SPACES_REGEXP = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Layout::SpaceAroundOperators < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::PrecedingFollowingAlignment)
|
include(::RuboCop::Cop::PrecedingFollowingAlignment)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
@ -3570,7 +3567,9 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::DeprecatedOpenSSLConstant::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor < ::RuboCop::Cop::Base
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def on_def(node); end
|
def on_def(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -3593,6 +3592,12 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::DuplicateCaseCondition::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Lint::DuplicateElsifCondition < ::RuboCop::Cop::Base
|
||||||
|
def on_if(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Lint::DuplicateElsifCondition::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Lint::DuplicateHashKey < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::Duplication)
|
include(::RuboCop::Cop::Duplication)
|
||||||
|
|
||||||
@ -3852,6 +3857,8 @@ end
|
|||||||
RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Cop
|
||||||
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
|
|
||||||
def message(node); end
|
def message(node); end
|
||||||
def on_case(case_node); end
|
def on_case(case_node); end
|
||||||
def on_if(node); end
|
def on_if(node); end
|
||||||
@ -3870,6 +3877,7 @@ class RuboCop::Cop::Lint::LiteralAsCondition < ::RuboCop::Cop::Cop
|
|||||||
def condition(node); end
|
def condition(node); end
|
||||||
def handle_node(node); end
|
def handle_node(node); end
|
||||||
def primitive_array?(node); end
|
def primitive_array?(node); end
|
||||||
|
def when_conditions_range(when_node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -3950,7 +3958,6 @@ class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Cop
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def find_nested_defs(node, &block); end
|
|
||||||
def scoping_method_call?(child); end
|
def scoping_method_call?(child); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -3988,14 +3995,21 @@ RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String)
|
|||||||
class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Cop
|
||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def loop_variable(node = _); end
|
def loop_variable(node = _); end
|
||||||
|
def method_require?(node = _); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
|
def on_block_pass(node); end
|
||||||
def unsorted_dir_block?(node = _); end
|
def unsorted_dir_block?(node = _); end
|
||||||
def unsorted_dir_each?(node = _); end
|
def unsorted_dir_each?(node = _); end
|
||||||
|
def unsorted_dir_each_pass?(node = _); end
|
||||||
|
def unsorted_dir_glob_pass?(node = _); end
|
||||||
def var_is_required?(node0, param1); end
|
def var_is_required?(node0, param1); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def correct_block_pass(node); end
|
||||||
|
def last_arg_range(node); end
|
||||||
def unsorted_dir_loop?(node); end
|
def unsorted_dir_loop?(node); end
|
||||||
|
def unsorted_dir_pass?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -5087,12 +5101,15 @@ class RuboCop::Cop::MultilineLiteralBraceCorrector
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def content_if_comment_present(corrector, node); end
|
||||||
def correct_next_line_brace(corrector); end
|
def correct_next_line_brace(corrector); end
|
||||||
def correct_same_line_brace(corrector); end
|
def correct_same_line_brace(corrector); end
|
||||||
def last_element_range_with_trailing_comma(node); end
|
def last_element_range_with_trailing_comma(node); end
|
||||||
def last_element_trailing_comma_range(node); end
|
def last_element_trailing_comma_range(node); end
|
||||||
def node; end
|
def node; end
|
||||||
def processed_source; end
|
def processed_source; end
|
||||||
|
def remove_trailing_content_of_comment(corrector, range); end
|
||||||
|
def select_content_to_be_inserted_after_last_element(corrector, node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
module RuboCop::Cop::MultilineLiteralBraceLayout
|
module RuboCop::Cop::MultilineLiteralBraceLayout
|
||||||
@ -5873,10 +5890,12 @@ RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.
|
|||||||
|
|
||||||
class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
include(::RuboCop::Cop::VisibilityHelp)
|
||||||
|
|
||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def on_class(node); end
|
def on_class(node); end
|
||||||
def on_module(node); end
|
def on_module(node); end
|
||||||
|
def on_sclass(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
@ -5887,6 +5906,7 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Cop
|
|||||||
def group_accessors(node, accessors); end
|
def group_accessors(node, accessors); end
|
||||||
def grouped_style?; end
|
def grouped_style?; end
|
||||||
def message(send_node); end
|
def message(send_node); end
|
||||||
|
def previous_line_comment?(node); end
|
||||||
def separate_accessors(node); end
|
def separate_accessors(node); end
|
||||||
def separated_style?; end
|
def separated_style?; end
|
||||||
def sibling_accessors(send_node); end
|
def sibling_accessors(send_node); end
|
||||||
@ -5964,6 +5984,19 @@ module RuboCop::Cop::Style::AnnotationComment
|
|||||||
def split_comment(comment); end
|
def split_comment(comment); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RuboCop::Cop::Style::ArrayCoercion < ::RuboCop::Cop::Base
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
|
def array_splat?(node = _); end
|
||||||
|
def on_array(node); end
|
||||||
|
def on_if(node); end
|
||||||
|
def unless_array?(node = _); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::ArrayCoercion::CHECK_MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Cop
|
||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def join_candidate?(node = _); end
|
def join_candidate?(node = _); end
|
||||||
@ -6038,19 +6071,25 @@ end
|
|||||||
RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::BeginBlock::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::BisectedAttrAccessor < ::RuboCop::Cop::Cop
|
||||||
|
include(::RuboCop::Cop::VisibilityHelp)
|
||||||
|
|
||||||
def autocorrect(node); end
|
def autocorrect(node); end
|
||||||
def on_class(class_node); end
|
def on_class(class_node); end
|
||||||
def on_module(class_node); end
|
def on_module(class_node); end
|
||||||
|
def on_sclass(class_node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def accessor_macroses(class_node); end
|
def accessor_macroses(class_node, visibility); end
|
||||||
def accessor_names(class_node); end
|
def accessor_names(class_node, visibility); end
|
||||||
def attr_reader?(send_node); end
|
def attr_reader?(send_node); end
|
||||||
|
def attr_reader_replacement(macro, node, rest_args); end
|
||||||
|
def attr_within_visibility_scope?(node, visibility); end
|
||||||
def attr_writer?(send_node); end
|
def attr_writer?(send_node); end
|
||||||
def check(macro, reader_names, writer_names); end
|
def check(macro, reader_names, writer_names); end
|
||||||
def indent(node); end
|
def indent(node); end
|
||||||
def replacement(macro, node); end
|
def replacement(macro, node); end
|
||||||
|
def rest_args(args, reader_names, writer_names); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -6136,6 +6175,31 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Cop
|
||||||
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
|
|
||||||
|
def autocorrect(node); end
|
||||||
|
def on_if(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def branch_conditions(node); end
|
||||||
|
def collect_conditions(node, target, conditions); end
|
||||||
|
def condition_from_binary_op(lhs, rhs, target); end
|
||||||
|
def condition_from_send_node(node, target); end
|
||||||
|
def const_reference?(node); end
|
||||||
|
def correction_range(node); end
|
||||||
|
def deparenthesize(node); end
|
||||||
|
def find_target(node); end
|
||||||
|
def find_target_in_equality_node(node); end
|
||||||
|
def find_target_in_match_node(node); end
|
||||||
|
def find_target_in_send_node(node); end
|
||||||
|
def indent(node); end
|
||||||
|
def should_check?(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::CaseLikeIf::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::CharacterLiteral < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::CharacterLiteral < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::StringHelp)
|
include(::RuboCop::Cop::StringHelp)
|
||||||
|
|
||||||
@ -6303,8 +6367,12 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array)
|
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENT_REGEXES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array)
|
RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::CommentedKeyword::KEYWORD_REGEXES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::ConditionalAssignment < ::RuboCop::Cop::Cop
|
||||||
@ -6791,6 +6859,8 @@ class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Cop
|
|||||||
def scientific?(node); end
|
def scientific?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
|
||||||
@ -6806,6 +6876,8 @@ class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Cop
|
|||||||
def offense_condition?(node); end
|
def offense_condition?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::FloatDivision::MESSAGES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::For < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::For < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
@ -6930,6 +7002,19 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::GuardClause::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Style::HashAsLastArrayItem < ::RuboCop::Cop::Base
|
||||||
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
|
def on_hash(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def braces_style?; end
|
||||||
|
def check_braces(node); end
|
||||||
|
def check_no_braces(node); end
|
||||||
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::Lint::UnusedArgument)
|
include(::RuboCop::Cop::Lint::UnusedArgument)
|
||||||
|
|
||||||
@ -6950,6 +7035,18 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Style::HashLikeCase < ::RuboCop::Cop::Base
|
||||||
|
def hash_like_case?(node = _); end
|
||||||
|
def on_case(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def min_branches_count; end
|
||||||
|
def nodes_of_same_type?(nodes); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
@ -7055,12 +7152,12 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Cop
|
|||||||
private
|
private
|
||||||
|
|
||||||
def another_statement_on_same_line?(node); end
|
def another_statement_on_same_line?(node); end
|
||||||
def eligible_node?(node); end
|
|
||||||
def first_line_comment(node); end
|
def first_line_comment(node); end
|
||||||
def ignored_patterns; end
|
def ignored_patterns; end
|
||||||
def line_length_enabled_at_line?(line); end
|
def line_length_enabled_at_line?(line); end
|
||||||
def named_capture_in_condition?(node); end
|
def named_capture_in_condition?(node); end
|
||||||
def non_eligible_if?(node); end
|
def non_eligible_node?(node); end
|
||||||
|
def non_simple_if_unless?(node); end
|
||||||
def parenthesize?(node); end
|
def parenthesize?(node); end
|
||||||
def to_modifier_form(node); end
|
def to_modifier_form(node); end
|
||||||
def to_normal_form(node); end
|
def to_normal_form(node); end
|
||||||
@ -7071,8 +7168,6 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Cop
|
|||||||
def too_long_single_line?(node); end
|
def too_long_single_line?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Style::IfUnlessModifier::ASSIGNMENT_TYPES = T.let(T.unsafe(nil), Array)
|
|
||||||
|
|
||||||
RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String)
|
||||||
@ -8310,6 +8405,14 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Style::RedundantFileExtensionInRequire < ::RuboCop::Cop::Cop
|
||||||
|
def autocorrect(node); end
|
||||||
|
def on_send(node); end
|
||||||
|
def require_call?(node = _); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Style::RedundantFileExtensionInRequire::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Cop
|
||||||
include(::RuboCop::Cop::FrozenStringLiteral)
|
include(::RuboCop::Cop::FrozenStringLiteral)
|
||||||
|
|
||||||
@ -9147,19 +9250,14 @@ class RuboCop::Cop::Style::TrailingCommaInHashLiteral < ::RuboCop::Cop::Cop
|
|||||||
def on_hash(node); end
|
def on_hash(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::Style::TrailingMethodEndStatement < ::RuboCop::Cop::Cop
|
class RuboCop::Cop::Style::TrailingMethodEndStatement < ::RuboCop::Cop::Base
|
||||||
include(::RuboCop::Cop::Alignment)
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
def autocorrect(node); end
|
|
||||||
def on_def(node); end
|
def on_def(node); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def body_and_end_on_same_line?(node); end
|
def body_and_end_on_same_line?(node); end
|
||||||
def break_line_before_end(node, corrector); end
|
|
||||||
def end_token(node); end
|
|
||||||
def remove_semicolon(node, corrector); end
|
|
||||||
def token_before_end(node); end
|
|
||||||
def trailing_end?(node); end
|
def trailing_end?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -9978,6 +10076,23 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol)
|
RuboCop::Cop::VariableForce::ZERO_ARITY_SUPER_TYPE = T.let(T.unsafe(nil), Symbol)
|
||||||
|
|
||||||
|
module RuboCop::Cop::VisibilityHelp
|
||||||
|
extend(::RuboCop::AST::NodePattern::Macros)
|
||||||
|
|
||||||
|
def visibility_block?(node = _); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def find_visibility_end(node); end
|
||||||
|
def find_visibility_start(node); end
|
||||||
|
def left_siblings_of(node); end
|
||||||
|
def node_visibility(node); end
|
||||||
|
def right_siblings_of(node); end
|
||||||
|
def siblings_of(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
class RuboCop::Error < ::StandardError
|
class RuboCop::Error < ::StandardError
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -10000,15 +10115,15 @@ module RuboCop::Ext::ProcessedSource
|
|||||||
end
|
end
|
||||||
|
|
||||||
module RuboCop::FileFinder
|
module RuboCop::FileFinder
|
||||||
def find_file_upwards(filename, start_dir); end
|
def find_file_upwards(filename, start_dir, stop_dir = _); end
|
||||||
def find_files_upwards(filename, start_dir); end
|
def find_last_file_upwards(filename, start_dir, stop_dir = _); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def traverse_files_upwards(filename, start_dir); end
|
def traverse_files_upwards(filename, start_dir, stop_dir); end
|
||||||
|
|
||||||
def self.root_level=(level); end
|
def self.root_level=(level); end
|
||||||
def self.root_level?(path); end
|
def self.root_level?(path, stop_dir); end
|
||||||
end
|
end
|
||||||
|
|
||||||
module RuboCop::Formatter
|
module RuboCop::Formatter
|
||||||
@ -10488,13 +10603,10 @@ module RuboCop::PathUtil
|
|||||||
def smart_path(path); end
|
def smart_path(path); end
|
||||||
|
|
||||||
def self.absolute?(path); end
|
def self.absolute?(path); end
|
||||||
def self.chdir(dir, &block); end
|
|
||||||
def self.hidden_dir?(path); end
|
def self.hidden_dir?(path); end
|
||||||
def self.hidden_file_in_not_hidden_dir?(pattern, path); end
|
def self.hidden_file_in_not_hidden_dir?(pattern, path); end
|
||||||
def self.match_path?(pattern, path); end
|
def self.match_path?(pattern, path); end
|
||||||
def self.pwd; end
|
|
||||||
def self.relative_path(path, base_dir = _); end
|
def self.relative_path(path, base_dir = _); end
|
||||||
def self.reset_pwd; end
|
|
||||||
def self.smart_path(path); end
|
def self.smart_path(path); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -10569,7 +10681,7 @@ class RuboCop::Runner
|
|||||||
def check_for_infinite_loop(processed_source, offenses); end
|
def check_for_infinite_loop(processed_source, offenses); end
|
||||||
def check_for_redundant_disables?(source); end
|
def check_for_redundant_disables?(source); end
|
||||||
def considered_failure?(offense); end
|
def considered_failure?(offense); end
|
||||||
def do_inspection_loop(file, processed_source); end
|
def do_inspection_loop(file); end
|
||||||
def each_inspected_file(files); end
|
def each_inspected_file(files); end
|
||||||
def file_finished(file, offenses); end
|
def file_finished(file, offenses); end
|
||||||
def file_offense_cache(file); end
|
def file_offense_cache(file); end
|
||||||
@ -1,5 +1,5 @@
|
|||||||
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
||||||
# tapioca sync
|
# tapioca sync --exclude json
|
||||||
|
|
||||||
# typed: true
|
# typed: true
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user