Update RBI files for rubocop-performance.
This commit is contained in:
parent
6ca30b1224
commit
a7da26a291
@ -4,18 +4,13 @@
|
||||
|
||||
# typed: true
|
||||
|
||||
module RuboCop
|
||||
end
|
||||
|
||||
module RuboCop::Cop
|
||||
end
|
||||
|
||||
module RuboCop::Cop::Performance
|
||||
end
|
||||
module RuboCop; end
|
||||
module RuboCop::Cop; end
|
||||
module RuboCop::Cop::Performance; end
|
||||
|
||||
class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def ancestors_include_candidate?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -26,13 +21,12 @@ class RuboCop::Cop::Performance::AncestorsInclude < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::AncestorsInclude::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::AncestorsInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def endless_range?(param0 = T.unsafe(nil)); end
|
||||
def endless_range_slice?(param0 = T.unsafe(nil)); end
|
||||
@ -44,13 +38,11 @@ class RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice < ::RuboCop::Cop::B
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::ArraySemiInfiniteRangeSlice::SLICE_METHODS = T.let(T.unsafe(nil), Set)
|
||||
|
||||
class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -61,13 +53,12 @@ class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop:
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::BindCall < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def bind_with_call_method?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -80,22 +71,20 @@ class RuboCop::Cop::Performance::BindCall < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::BindCall::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::BindCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::BlockGivenWithExplicitBlock < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def reassigns_block_arg?(param0 = T.unsafe(nil), param1); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::BlockGivenWithExplicitBlock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::Caller < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def caller_with_scope_method?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -107,13 +96,12 @@ class RuboCop::Cop::Performance::Caller < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Caller::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Caller::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::Alignment)
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::Alignment
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_case(case_node); end
|
||||
|
||||
@ -135,11 +123,10 @@ class RuboCop::Cop::Performance::CaseWhenSplat < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::CaseWhenSplat::ARRAY_MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::CaseWhenSplat::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::Casecmp < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def downcase_downcase(param0 = T.unsafe(nil)); end
|
||||
def downcase_eq(param0 = T.unsafe(nil)); end
|
||||
@ -154,28 +141,21 @@ class RuboCop::Cop::Performance::Casecmp < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Casecmp::CASE_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::Casecmp::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Casecmp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::ChainArrayAllocation < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
|
||||
def chain_array_allocation?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::ChainArrayAllocation::ALWAYS_RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::ChainArrayAllocation::HAS_MUTATION_ALTERNATIVE = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::ChainArrayAllocation::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::ChainArrayAllocation::RETURNS_NEW_ARRAY_WHEN_NO_BLOCK = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::ChainArrayAllocation::RETURN_NEW_ARRAY_WHEN_ARGS = T.let(T.unsafe(nil), Set)
|
||||
|
||||
class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base
|
||||
@ -197,24 +177,17 @@ class RuboCop::Cop::Performance::CollectionLiteralInLoop < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::ARRAY_METHODS = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::ENUMERABLE_METHOD_NAMES = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::HASH_METHODS = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::LOOP_TYPES = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::CollectionLiteralInLoop::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::CompareWithBlock < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def compare?(param0 = T.unsafe(nil)); end
|
||||
def on_block(node); end
|
||||
@ -230,7 +203,7 @@ end
|
||||
RuboCop::Cop::Performance::CompareWithBlock::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_regexp(node); end
|
||||
def regexp_escape?(param0 = T.unsafe(nil)); end
|
||||
@ -244,8 +217,8 @@ end
|
||||
RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def count_candidate?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -258,41 +231,36 @@ class RuboCop::Cop::Performance::Count < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Count::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Count::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::DeletePrefix < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RegexpMetacharacter)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
include ::RuboCop::Cop::RegexpMetacharacter
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def delete_prefix_candidate?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::DeletePrefix::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::DeletePrefix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
RuboCop::Cop::Performance::DeletePrefix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::DeleteSuffix < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RegexpMetacharacter)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
include ::RuboCop::Cop::RegexpMetacharacter
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def delete_suffix_candidate?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::DeleteSuffix::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::DeleteSuffix::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
RuboCop::Cop::Performance::DeleteSuffix::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def detect_candidate?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -309,19 +277,14 @@ class RuboCop::Cop::Performance::Detect < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Detect::CANDIDATE_METHODS = T.let(T.unsafe(nil), Set)
|
||||
|
||||
RuboCop::Cop::Performance::Detect::INDEX_MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Detect::INDEX_REVERSE_MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Detect::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Detect::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::Detect::REVERSE_MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::DoubleStartEndWith < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def check_with_active_support_aliases(param0 = T.unsafe(nil)); end
|
||||
def on_or(node); end
|
||||
@ -339,8 +302,8 @@ end
|
||||
RuboCop::Cop::Performance::DoubleStartEndWith::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RegexpMetacharacter)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RegexpMetacharacter
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_match_with_lvasgn(node); end
|
||||
def on_send(node); end
|
||||
@ -348,7 +311,6 @@ class RuboCop::Cop::Performance::EndWith < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::EndWith::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::EndWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base
|
||||
@ -366,12 +328,11 @@ class RuboCop::Cop::Performance::FixedSize < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::FixedSize::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::FixedSize::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def flat_map_candidate?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -385,13 +346,11 @@ class RuboCop::Cop::Performance::FlatMap < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::FlatMap::FLATTEN_MULTIPLE_LEVELS = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::FlatMap::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::FlatMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::InefficientHashSearch < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def inefficient_include?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -409,8 +368,8 @@ end
|
||||
RuboCop::Cop::Performance::InefficientHashSearch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::IoReadlines < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def readlines_on_class?(param0 = T.unsafe(nil)); end
|
||||
@ -427,25 +386,23 @@ class RuboCop::Cop::Performance::IoReadlines < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::IoReadlines::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::IoReadlines::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def map_compact(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
|
||||
private
|
||||
|
||||
def compact_method_range(compact_node); end
|
||||
def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end
|
||||
def remove_compact_method(corrector, compact_node); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::MapCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::MethodObjectAsBlock < ::RuboCop::Cop::Base
|
||||
@ -461,22 +418,20 @@ class RuboCop::Cop::Performance::OpenStruct < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::OpenStruct::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::OpenStruct::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::RangeInclude < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def range_include(param0 = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RangeInclude::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RangeInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def blockarg_assigned?(param0, param1); end
|
||||
def blockarg_calls(param0, param1); end
|
||||
@ -492,18 +447,14 @@ class RuboCop::Cop::Performance::RedundantBlockCall < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RedundantBlockCall::CLOSE_PAREN = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantBlockCall::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantBlockCall::OPEN_PAREN = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def on_block(node); end
|
||||
|
||||
@ -517,15 +468,12 @@ class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::C
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::IS_A_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def match_call?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -537,11 +485,10 @@ class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RedundantMatch::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantMatch::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantMerge < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def modifier_flow_control?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -567,7 +514,7 @@ end
|
||||
RuboCop::Cop::Performance::RedundantMerge::AREF_ASGN = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector
|
||||
extend(::RuboCop::AST::NodePattern::Macros)
|
||||
extend ::RuboCop::AST::NodePattern::Macros
|
||||
|
||||
def initialize(node, receiver); end
|
||||
|
||||
@ -584,15 +531,13 @@ class RuboCop::Cop::Performance::RedundantMerge::EachWithObjectInspector
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RedundantMerge::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantMerge::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantMerge::WITH_MODIFIER_CORRECTION = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantSortBlock < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
include(::RuboCop::Cop::SortBlock)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
include ::RuboCop::Cop::SortBlock
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_block(node); end
|
||||
|
||||
@ -604,7 +549,7 @@ end
|
||||
RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def split_call_with_regexp?(param0 = T.unsafe(nil)); end
|
||||
@ -616,16 +561,13 @@ class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def redundant_chars_call?(param0 = T.unsafe(nil)); end
|
||||
@ -641,11 +583,10 @@ class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RedundantStringChars::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RedundantStringChars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::RegexpMatch < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def last_matches(param0); end
|
||||
def match_method?(param0 = T.unsafe(nil)); end
|
||||
@ -678,14 +619,12 @@ class RuboCop::Cop::Performance::RegexpMatch < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::RegexpMatch::MATCH_NODE_PATTERN = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RegexpMatch::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::RegexpMatch::TYPES_IMPLEMENTING_MATCH = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def reverse_each?(param0 = T.unsafe(nil)); end
|
||||
@ -697,12 +636,11 @@ class RuboCop::Cop::Performance::ReverseEach < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::ReverseEach::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::ReverseEach::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def reverse_first_candidate?(param0 = T.unsafe(nil)); end
|
||||
@ -716,12 +654,11 @@ class RuboCop::Cop::Performance::ReverseFirst < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::ReverseFirst::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::ReverseFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::TargetRubyVersion
|
||||
|
||||
def bad_method?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -733,11 +670,10 @@ class RuboCop::Cop::Performance::SelectMap < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::SelectMap::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::SelectMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def array?(param0 = T.unsafe(nil)); end
|
||||
def count?(param0 = T.unsafe(nil)); end
|
||||
@ -746,13 +682,12 @@ class RuboCop::Cop::Performance::Size < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Size::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Size::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::SortReverse < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
include(::RuboCop::Cop::SortBlock)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
include ::RuboCop::Cop::SortBlock
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_block(node); end
|
||||
|
||||
@ -764,7 +699,7 @@ end
|
||||
RuboCop::Cop::Performance::SortReverse::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def squeeze_candidate?(param0 = T.unsafe(nil)); end
|
||||
@ -775,14 +710,12 @@ class RuboCop::Cop::Performance::Squeeze < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Squeeze::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Squeeze::PREFERRED_METHODS = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
RuboCop::Cop::Performance::Squeeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RegexpMetacharacter)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RegexpMetacharacter
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_match_with_lvasgn(node); end
|
||||
def on_send(node); end
|
||||
@ -790,11 +723,10 @@ class RuboCop::Cop::Performance::StartWith < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_match_with_lvasgn(node); end
|
||||
def on_send(node); end
|
||||
@ -806,12 +738,11 @@ class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::StringInclude::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::StringInclude::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def string_replacement?(param0 = T.unsafe(nil)); end
|
||||
@ -834,20 +765,15 @@ class RuboCop::Cop::Performance::StringReplacement < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::StringReplacement::BANG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::StringReplacement::DELETE = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::StringReplacement::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
RuboCop::Cop::Performance::StringReplacement::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::StringReplacement::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Performance::StringReplacement::TR = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def acc_plus_elem?(param0 = T.unsafe(nil), param1, param2); end
|
||||
def elem_plus_acc?(param0 = T.unsafe(nil), param1, param2); end
|
||||
@ -878,13 +804,11 @@ class RuboCop::Cop::Performance::Sum < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::Sum::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Sum::MSG_IF_NO_INIT_VALUE = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::Sum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_block(node); end
|
||||
def on_send(node); end
|
||||
@ -897,13 +821,11 @@ class RuboCop::Cop::Performance::TimesMap < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::TimesMap::MESSAGE = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::TimesMap::MESSAGE_ONLY_IF = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::TimesMap::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::UnfreezeString < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def dup_string?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
@ -915,22 +837,19 @@ class RuboCop::Cop::Performance::UnfreezeString < ::RuboCop::Cop::Base
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::UnfreezeString::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::UnfreezeString::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Performance::UriDefaultParser < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
extend ::RuboCop::Cop::AutoCorrector
|
||||
|
||||
def on_send(node); end
|
||||
def uri_parser_new?(param0 = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Performance::UriDefaultParser::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Performance::UriDefaultParser::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
module RuboCop::Cop::RegexpMetacharacter
|
||||
|
||||
private
|
||||
|
||||
def drop_end_metacharacter(regexp_string); end
|
||||
@ -945,8 +864,8 @@ module RuboCop::Cop::RegexpMetacharacter
|
||||
end
|
||||
|
||||
module RuboCop::Cop::SortBlock
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::AST::NodePattern::Macros)
|
||||
include ::RuboCop::Cop::RangeHelp
|
||||
extend ::RuboCop::AST::NodePattern::Macros
|
||||
|
||||
def replaceable_body?(param0 = T.unsafe(nil), param1, param2); end
|
||||
def sort_with_block?(param0 = T.unsafe(nil)); end
|
||||
@ -957,11 +876,9 @@ module RuboCop::Cop::SortBlock
|
||||
end
|
||||
|
||||
RuboCop::NodePattern = RuboCop::AST::NodePattern
|
||||
|
||||
module RuboCop::Performance
|
||||
end
|
||||
|
||||
module RuboCop::Performance; end
|
||||
RuboCop::Performance::CONFIG = T.let(T.unsafe(nil), Hash)
|
||||
RuboCop::Performance::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
||||
|
||||
module RuboCop::Performance::Inject
|
||||
class << self
|
||||
@ -969,6 +886,8 @@ module RuboCop::Performance::Inject
|
||||
end
|
||||
end
|
||||
|
||||
RuboCop::Performance::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
||||
|
||||
module RuboCop::Performance::Version
|
||||
class << self
|
||||
def document_version; end
|
||||
@ -976,7 +895,5 @@ module RuboCop::Performance::Version
|
||||
end
|
||||
|
||||
RuboCop::Performance::Version::STRING = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
|
||||
|
||||
RuboCop::Token = RuboCop::AST::Token
|
||||
Loading…
x
Reference in New Issue
Block a user