diff --git a/Library/Homebrew/sorbet/files.yaml b/Library/Homebrew/sorbet/files.yaml index 444006e5f3..f6a6896dc1 100644 --- a/Library/Homebrew/sorbet/files.yaml +++ b/Library/Homebrew/sorbet/files.yaml @@ -951,7 +951,6 @@ strict: - ./extend/os/tap.rb - ./extend/os/utils/analytics.rb - ./language/haskell.rb - - ./language/python_virtualenv_constants.rb - ./os/global.rb - ./os/linux/diagnostic.rb - ./requirements.rb diff --git a/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.5.rbi b/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.6.rbi similarity index 58% rename from Library/Homebrew/sorbet/rbi/gems/codecov@0.2.5.rbi rename to Library/Homebrew/sorbet/rbi/gems/codecov@0.2.6.rbi index e33729f223..5ace243e13 100644 --- a/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.5.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.6.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `codecov` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true diff --git a/Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.6.rbi b/Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.7.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.6.rbi rename to Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.7.rbi index 179aa4844a..ccc5561508 100644 --- a/Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.6.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/concurrent-ruby@1.1.7.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `concurrent-ruby` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true @@ -1337,10 +1337,12 @@ class Concurrent::RubyThreadLocalVar < ::Concurrent::AbstractThreadLocalVar def get_default; end def get_threadlocal_array(thread = T.unsafe(nil)); end + def next_index; end def set_threadlocal_array(array, thread = T.unsafe(nil)); end def value_for(thread); end class << self + def semi_sync(&block); end def thread_finalizer(id); end def thread_local_finalizer(index); end end @@ -1362,6 +1364,7 @@ class Concurrent::RubyThreadPoolExecutor < ::Concurrent::RubyExecutorService def remaining_capacity; end def remove_busy_worker(worker); end def scheduled_task_count; end + def synchronous; end def worker_died(worker); end def worker_not_old_enough(worker); end def worker_task_completed; end diff --git a/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.0.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.0.2.rbi similarity index 59% rename from Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.0.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.0.2.rbi index a305c3b76a..c6bb522c19 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.0.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rdiscount@2.2.0.2.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rdiscount` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.42.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.43.1.rbi similarity index 90% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.42.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.43.1.rbi index 3698d4acd4..b0b2237921 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.42.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.43.1.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-rspec` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true @@ -13,28 +13,25 @@ end module RuboCop::Cop::Layout end -class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Cop +class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base include(::RuboCop::Cop::PrecedingFollowingAlignment) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(range); end - def investigate(processed_source); end + def on_new_investigation; end private def align_column(asgn_token); end def align_equal_sign(corrector, token, align_to); end def align_equal_signs(range, corrector); end - def aligned_comments?(comment_token); end + def aligned_locations(locs); end def aligned_tok?(token); end - def aligned_with_next_comment?(index); end - def aligned_with_previous_comment?(index); end def all_relevant_assignment_lines(line_number); end def allow_for_trailing_comments?; end def check_assignment(token); end def check_other(token1, token2, ast); end def check_tokens(ast, token1, token2); end - def comment_column(index); end def extra_space_range(token1, token2); end def force_equal_sign_alignment?; end def ignored_range?(ast, start_pos); end @@ -52,7 +49,7 @@ RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), Strin module RuboCop::Cop::RSpec end -class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base extend(::RuboCop::Cop::AutoCorrector) def on_new_investigation; end @@ -64,7 +61,7 @@ end 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::Base extend(::RuboCop::Cop::AutoCorrector) def on_new_investigation; end @@ -76,14 +73,14 @@ end RuboCop::Cop::RSpec::AlignRightLetBrace::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::AnyInstance < ::RuboCop::Cop::RSpec::Base def disallowed_stub(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::RSpec::AnyInstance::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base def find_arg_usage(node0); end def hook(node = T.unsafe(nil)); end def on_block(node); end @@ -98,114 +95,7 @@ RuboCop::Cop::RSpec::AroundBlock::MSG_NO_ARG = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Cop - def be_without_args(node = T.unsafe(nil)); end - def on_send(node); end -end - -RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Cop - extend(::RuboCop::Cop::AutoCorrector) - - def eql_type_with_identity(node = T.unsafe(nil)); end - def on_send(node); end -end - -RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Cop - def before_or_after_all(node = T.unsafe(nil)); end - def on_send(node); end -end - -RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String) - -module RuboCop::Cop::RSpec::Capybara -end - -class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Cop - extend(::RuboCop::Cop::AutoCorrector) - - def as_is_matcher(node = T.unsafe(nil)); end - def expectation_set_on_current_path(node = T.unsafe(nil)); end - def on_send(node); end - def regexp_str_matcher(node = T.unsafe(nil)); end - - private - - 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 rewrite_expectation(corrector, node, to_symbol, matcher_node); end -end - -RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Cop - extend(::RuboCop::Cop::AutoCorrector) - - def feature_method(node = T.unsafe(nil)); end - def message(range); end - def on_block(node); end - def spec?(node = T.unsafe(nil)); end - - private - - def enabled?(method_name); end - def enabled_methods; end - def inside_spec?(node); end - def root_node?(node); end - def root_with_siblings?(node); end -end - -RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash) - -RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::RSpec::Cop - def on_send(node); end - def visible_false?(node = T.unsafe(nil)); end - def visible_true?(node = T.unsafe(nil)); end - - private - - def capybara_matcher?(method_name); end -end - -RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array) - -RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = 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 - extend(::RuboCop::Cop::AutoCorrector) - - def context_method(node = T.unsafe(nil)); end - def on_block(node); end - - private - - def method_name?(description); end -end - -RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Cop - def context_wording(node = T.unsafe(nil)); end - def on_block(node); end - - private - - def bad_prefix?(description); end - def joined_prefixes; end - def prefixes; end -end - -RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::RSpec::Cop < ::RuboCop::Cop::Base +class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base include(::RuboCop::RSpec::Language) include(::RuboCop::RSpec::Language::NodePattern) @@ -224,41 +114,152 @@ class RuboCop::Cop::RSpec::Cop < ::RuboCop::Cop::Base end end -RuboCop::Cop::RSpec::Cop::DEFAULT_CONFIGURATION = T.let(T.unsafe(nil), Hash) +RuboCop::Cop::RSpec::Base::DEFAULT_CONFIGURATION = T.let(T.unsafe(nil), Hash) -RuboCop::Cop::RSpec::Cop::DEFAULT_PATTERN_RE = T.let(T.unsafe(nil), Regexp) +RuboCop::Cop::RSpec::Base::DEFAULT_PATTERN_RE = T.let(T.unsafe(nil), Regexp) -class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Cop - include(::RuboCop::RSpec::TopLevelDescribe) +class RuboCop::Cop::RSpec::Be < ::RuboCop::Cop::RSpec::Base + def be_without_args(node = T.unsafe(nil)); end + def on_send(node); end +end - def describe_with_rails_metadata?(node = T.unsafe(nil)); end - def on_top_level_describe(node, _); end - def rails_metadata?(node = T.unsafe(nil)); end - def valid_describe?(node = T.unsafe(nil)); end +RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base + extend(::RuboCop::Cop::AutoCorrector) + + def eql_type_with_identity(node = T.unsafe(nil)); end + def on_send(node); end +end + +RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base + def before_or_after_all(node = T.unsafe(nil)); end + def on_send(node); end +end + +RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String) + +module RuboCop::Cop::RSpec::Capybara +end + +class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RSpec::Base + extend(::RuboCop::Cop::AutoCorrector) + + def as_is_matcher(node = T.unsafe(nil)); end + def expectation_set_on_current_path(node = T.unsafe(nil)); end + def on_send(node); end + def regexp_str_matcher(node = T.unsafe(nil)); end private - def string_constant_describe?(described_value); 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 rewrite_expectation(corrector, node, to_symbol, matcher_node); end +end + +RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base + extend(::RuboCop::Cop::AutoCorrector) + + def capybara_speak(node = T.unsafe(nil)); end + def feature_method(node = T.unsafe(nil)); end + def message(range); end + def on_block(node); end + def spec?(node = T.unsafe(nil)); end + + private + + def enabled?(method_name); end + def enabled_methods; end + def inside_spec?(node); end + def root_node?(node); end + def root_with_siblings?(node); end +end + +RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash) + +RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::RSpec::Capybara::VisibilityMatcher < ::RuboCop::Cop::RSpec::Base + def on_send(node); end + def visible_false?(node = T.unsafe(nil)); end + def visible_true?(node = T.unsafe(nil)); end + + private + + def capybara_matcher?(method_name); end +end + +RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::RSpec::Capybara::VisibilityMatcher::MSG_FALSE = 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::Base + extend(::RuboCop::Cop::AutoCorrector) + + def context_method(node = T.unsafe(nil)); end + def on_block(node); end + + private + + def method_name?(description); end +end + +RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base + def context_wording(node = T.unsafe(nil)); end + def on_block(node); end + + private + + def bad_prefix?(description); end + def joined_prefixes; end + def prefixes; end +end + +RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::RSpec::Cop = RuboCop::Cop::RSpec::Base + +class RuboCop::Cop::RSpec::DescribeClass < ::RuboCop::Cop::RSpec::Base + include(::RuboCop::RSpec::TopLevelGroup) + + def example_group_with_rails_metadata?(node = T.unsafe(nil)); end + def not_a_const_described(node = T.unsafe(nil)); end + def on_top_level_group(top_level_node); end + def rails_metadata?(node = T.unsafe(nil)); end + + private + + def string_constant?(described); end end RuboCop::Cop::RSpec::DescribeClass::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Cop - include(::RuboCop::RSpec::TopLevelDescribe) +class RuboCop::Cop::RSpec::DescribeMethod < ::RuboCop::Cop::RSpec::Base + include(::RuboCop::RSpec::TopLevelGroup) - def on_top_level_describe(_node, _); end + def on_top_level_group(node); end + def second_argument(node = T.unsafe(nil)); end end RuboCop::Cop::RSpec::DescribeMethod::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::DescribeSymbol < ::RuboCop::Cop::RSpec::Base def describe_symbol?(node = T.unsafe(nil)); end def on_send(node); end end 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -289,14 +290,14 @@ RuboCop::Cop::RSpec::DescribedClass::DESCRIBED_CLASS = T.let(T.unsafe(nil), Stri RuboCop::Cop::RSpec::DescribedClass::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < ::RuboCop::Cop::RSpec::Base def find_rspec_blocks(node0); end def on_module(node); end end RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::MethodPreference) extend(::RuboCop::Cop::AutoCorrector) @@ -306,8 +307,12 @@ end RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Cop - def contains_example?(node0); end +class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base + def example_group_body(node = T.unsafe(nil)); end + def example_or_group_or_include?(node = T.unsafe(nil)); end + def examples?(node = T.unsafe(nil)); end + def examples_directly_or_in_block?(node = T.unsafe(nil)); end + def examples_inside_block?(node = T.unsafe(nil)); end def on_block(node); end private @@ -318,7 +323,7 @@ end 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::Base include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::AutoCorrector) @@ -328,10 +333,10 @@ end RuboCop::Cop::RSpec::EmptyHook::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::EmptyLineAfterExample < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::FinalEndLocation) include(::RuboCop::Cop::RangeHelp) - include(::RuboCop::RSpec::BlankLineSeparation) + include(::RuboCop::RSpec::EmptyLineSeparation) extend(::RuboCop::Cop::AutoCorrector) def allow_consecutive_one_liners?; end @@ -344,10 +349,10 @@ end RuboCop::Cop::RSpec::EmptyLineAfterExample::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::FinalEndLocation) include(::RuboCop::Cop::RangeHelp) - include(::RuboCop::RSpec::BlankLineSeparation) + include(::RuboCop::RSpec::EmptyLineSeparation) extend(::RuboCop::Cop::AutoCorrector) def on_block(node); end @@ -355,10 +360,10 @@ end RuboCop::Cop::RSpec::EmptyLineAfterExampleGroup::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::FinalEndLocation) include(::RuboCop::Cop::RangeHelp) - include(::RuboCop::RSpec::BlankLineSeparation) + include(::RuboCop::RSpec::EmptyLineSeparation) extend(::RuboCop::Cop::AutoCorrector) def on_block(node); end @@ -366,10 +371,10 @@ end RuboCop::Cop::RSpec::EmptyLineAfterFinalLet::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::EmptyLineAfterHook < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::FinalEndLocation) include(::RuboCop::Cop::RangeHelp) - include(::RuboCop::RSpec::BlankLineSeparation) + include(::RuboCop::RSpec::EmptyLineSeparation) extend(::RuboCop::Cop::AutoCorrector) def on_block(node); end @@ -377,10 +382,10 @@ end RuboCop::Cop::RSpec::EmptyLineAfterHook::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::FinalEndLocation) include(::RuboCop::Cop::RangeHelp) - include(::RuboCop::RSpec::BlankLineSeparation) + include(::RuboCop::RSpec::EmptyLineSeparation) extend(::RuboCop::Cop::AutoCorrector) def on_block(node); end @@ -392,7 +397,7 @@ end RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::CodeLength) @@ -406,7 +411,7 @@ end RuboCop::Cop::RSpec::ExampleLength::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ExampleWithoutDescription < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def example_description(node = T.unsafe(nil)); end @@ -422,7 +427,7 @@ RuboCop::Cop::RSpec::ExampleWithoutDescription::MSG_ADD_DESCRIPTION = T.let(T.un 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::Base extend(::RuboCop::Cop::AutoCorrector) def it_description(node = T.unsafe(nil)); end @@ -446,7 +451,7 @@ RuboCop::Cop::RSpec::ExampleWording::MSG_SHOULD = T.let(T.unsafe(nil), String) 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::Base extend(::RuboCop::Cop::AutoCorrector) def expect_literal(node = T.unsafe(nil)); end @@ -468,7 +473,7 @@ RuboCop::Cop::RSpec::ExpectActual::SIMPLE_LITERALS = T.let(T.unsafe(nil), Array) RuboCop::Cop::RSpec::ExpectActual::SUPPORTED_MATCHERS = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ExpectChange < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -482,7 +487,7 @@ RuboCop::Cop::RSpec::ExpectChange::MSG_BLOCK = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::ExpectChange::MSG_CALL = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ExpectInHook < ::RuboCop::Cop::RSpec::Base def expectation(node0); end def on_block(node); end @@ -493,7 +498,7 @@ end RuboCop::Cop::RSpec::ExpectInHook::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ExpectOutput < ::RuboCop::Cop::RSpec::Base def on_gvasgn(node); end private @@ -529,7 +534,7 @@ RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) module RuboCop::Cop::RSpec::FactoryBot end -class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::RSpec::Base extend(::RuboCop::Cop::AutoCorrector) def association?(node = T.unsafe(nil)); end @@ -553,7 +558,7 @@ end RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -568,7 +573,7 @@ class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Cop def contains_only_factory?(node); end end -class RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector +module RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector private @@ -577,7 +582,9 @@ class RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector def format_receiver(receiver); end end -class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector < ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector +class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector + include(::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector) + def initialize(node); end def call(corrector); end @@ -597,7 +604,9 @@ RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(ni RuboCop::Cop::RSpec::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector < ::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector +class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector + include(::RuboCop::Cop::RSpec::FactoryBot::CreateList::Corrector) + def initialize(node); end def call(corrector); end @@ -608,7 +617,7 @@ class RuboCop::Cop::RSpec::FactoryBot::CreateList::TimesCorrector < ::RuboCop::C def node; end end -class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < ::RuboCop::Cop::RSpec::Base extend(::RuboCop::Cop::AutoCorrector) def class_name(node = T.unsafe(nil)); end @@ -623,23 +632,24 @@ RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.u RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Cop - include(::RuboCop::RSpec::TopLevelDescribe) +class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base + include(::RuboCop::RSpec::TopLevelGroup) - def const_described?(node0); end - def on_top_level_describe(node, args); end + def const_described(node = T.unsafe(nil)); end + def on_top_level_group(node); end def routing_metadata?(node0); end private def camel_to_snake_case(string); end def custom_transform; end + def ensure_correct_file_path(send_node, described_class, arguments); end def expected_path(constant); end def filename_ends_with?(glob); end - def glob_for(_); end + def glob_for(described_class, method_name); end def glob_for_spec_suffix_only?; end def ignore_methods?; end - def name_glob(name); end + def name_glob(method_name); end def relevant_rubocop_rspec_file?(_file); end def routing_spec?(args); end def spec_suffix_only?; end @@ -647,7 +657,8 @@ end RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base + def focusable_selector?(node = T.unsafe(nil)); end def focused_block?(node = T.unsafe(nil)); end def metadata(node = T.unsafe(nil)); end def on_send(node); end @@ -657,14 +668,13 @@ class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Cop def focus_metadata(node, &block); end end -RuboCop::Cop::RSpec::Focus::FOCUSABLE_SELECTORS = T.let(T.unsafe(nil), String) - 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) + def hook?(node = T.unsafe(nil)); end def on_block(node); end def scoped_hook(node = T.unsafe(nil)); end def unscoped_hook(node = T.unsafe(nil)); end @@ -680,11 +690,9 @@ end RuboCop::Cop::RSpec::HookArgument::EXPLICIT_MSG = T.let(T.unsafe(nil), String) -RuboCop::Cop::RSpec::HookArgument::HOOKS = 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::Base extend(::RuboCop::Cop::AutoCorrector) def example_or_group?(node = T.unsafe(nil)); end @@ -700,7 +708,7 @@ end RuboCop::Cop::RSpec::HooksBeforeExamples::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ImplicitBlockExpectation < ::RuboCop::Cop::RSpec::Base def implicit_expect(node = T.unsafe(nil)); end def lambda?(node = T.unsafe(nil)); end def lambda_subject?(node = T.unsafe(nil)); end @@ -715,7 +723,7 @@ end 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -734,7 +742,7 @@ RuboCop::Cop::RSpec::ImplicitExpect::ENFORCED_REPLACEMENTS = T.let(T.unsafe(nil) 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -772,7 +780,7 @@ end 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::Base extend(::RuboCop::Cop::AutoCorrector) def have_received_usage(node0); end @@ -786,7 +794,7 @@ end RuboCop::Cop::RSpec::InstanceSpy::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::InstanceVariable < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::TopLevelGroup) def custom_matcher?(node = T.unsafe(nil)); end @@ -803,7 +811,7 @@ end RuboCop::Cop::RSpec::InstanceVariable::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::InvalidPredicateMatcher < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::InvalidPredicateMatcher < ::RuboCop::Cop::RSpec::Base def invalid_predicate_matcher?(node = T.unsafe(nil)); end def on_send(node); end @@ -814,7 +822,7 @@ end 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -828,7 +836,7 @@ end RuboCop::Cop::RSpec::ItBehavesLike::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::IteratedExpectation < ::RuboCop::Cop::RSpec::Base def each?(node = T.unsafe(nil)); end def expectation?(node = T.unsafe(nil), param1); end def on_block(node); end @@ -841,7 +849,7 @@ end 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::Base extend(::RuboCop::Cop::AutoCorrector) def check_previous_nodes(node); end @@ -849,15 +857,15 @@ class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Cop private - def autocorrect(corrector, node); end - def find_first_offending_node(node); end + def autocorrect(corrector, node, sibling); end def in_spec_block?(node); end def offending?(node); end + def offending_node(node); end end RuboCop::Cop::RSpec::LeadingSubject::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::LeakyConstantDeclaration < ::RuboCop::Cop::RSpec::Base def on_casgn(node); end def on_class(node); end def on_module(node); end @@ -873,7 +881,7 @@ RuboCop::Cop::RSpec::LeakyConstantDeclaration::MSG_CONST = T.let(T.unsafe(nil), 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::Base extend(::RuboCop::Cop::AutoCorrector) def example_or_group?(node = T.unsafe(nil)); end @@ -889,7 +897,7 @@ end RuboCop::Cop::RSpec::LetBeforeExamples::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::LetSetup < ::RuboCop::Cop::RSpec::Base def example_or_shared_group_or_including?(node = T.unsafe(nil)); end def let_bang(node = T.unsafe(nil)); end def method_called?(node0, param1); end @@ -903,14 +911,14 @@ end 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::Base def message_chain(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::RSpec::MessageChain::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::MessageExpectation < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def message_expectation(node = T.unsafe(nil)); end @@ -926,7 +934,7 @@ RuboCop::Cop::RSpec::MessageExpectation::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::MessageExpectation::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::MessageSpies < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def message_expectation(node = T.unsafe(nil)); end @@ -946,26 +954,25 @@ RuboCop::Cop::RSpec::MessageSpies::MSG_RECEIVE = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::MessageSpies::SUPPORTED_STYLES = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::MissingExampleGroupArgument < ::RuboCop::Cop::RSpec::Base def on_block(node); end end RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Cop - include(::RuboCop::RSpec::TopLevelDescribe) +class RuboCop::Cop::RSpec::MultipleDescribes < ::RuboCop::Cop::RSpec::Base + include(::RuboCop::RSpec::TopLevelGroup) - def on_top_level_describe(node, _args); end + def on_top_level_group(node); end end RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableMax) - def aggregate_failures?(node = T.unsafe(nil)); end + def aggregate_failures?(node = T.unsafe(nil), param1); end def aggregate_failures_block?(node = T.unsafe(nil)); end - def aggregate_failures_present?(node = T.unsafe(nil)); end def expect?(node = T.unsafe(nil)); end def on_block(node); end @@ -978,9 +985,32 @@ class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Cop def max_expectations; end end +RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc) + RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Cop +RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc) + +class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base + include(::RuboCop::Cop::ConfigurableMax) + include(::RuboCop::RSpec::Variable) + + def on_block(node); end + def on_new_investigation; end + + private + + def all_helpers(node); end + def allow_subject?; end + def example_group_memoized_helpers; end + def helpers(node); end + def max; end + def variable_nodes(node); end +end + +RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::RSpec::MultipleSubjects < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::AutoCorrector) @@ -996,7 +1026,7 @@ end RuboCop::Cop::RSpec::MultipleSubjects::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base def ignored_shared_example?(node); end def on_block(node); end def rspec_block?(node = T.unsafe(nil)); end @@ -1006,11 +1036,11 @@ end RuboCop::Cop::RSpec::NamedSubject::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableMax) - include(::RuboCop::RSpec::TopLevelDescribe) + include(::RuboCop::RSpec::TopLevelGroup) - def on_top_level_describe(node, _args); end + def on_top_level_group(node); end private @@ -1026,7 +1056,7 @@ RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), St 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -1040,7 +1070,7 @@ end RuboCop::Cop::RSpec::NotToNot::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::OverwritingSetup < ::RuboCop::Cop::RSpec::Base def first_argument_name(node = T.unsafe(nil)); end def on_block(node); end def setup?(node = T.unsafe(nil)); end @@ -1053,7 +1083,7 @@ end RuboCop::Cop::RSpec::OverwritingSetup::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::Pending < ::RuboCop::Cop::RSpec::Base def on_send(node); end def pending_block?(node = T.unsafe(nil)); end def skip_or_pending?(node = T.unsafe(nil)); end @@ -1071,13 +1101,12 @@ RuboCop::Cop::RSpec::Pending::PENDING = T.let(T.unsafe(nil), RuboCop::RSpec::Lan RuboCop::Cop::RSpec::Pending::SKIPPABLE = T.let(T.unsafe(nil), RuboCop::RSpec::Language::SelectorSet) -class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RSpec::InflectedHelper) include(::RuboCop::Cop::RSpec::ExplicitHelper) extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def on_send(node); end @@ -1087,7 +1116,7 @@ class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Cop def block_loc(send_node); end end -class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ReceiveCounts < ::RuboCop::Cop::RSpec::Base extend(::RuboCop::Cop::AutoCorrector) def on_send(node); end @@ -1104,7 +1133,7 @@ end 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::Base extend(::RuboCop::Cop::AutoCorrector) def method_on_stub?(node0); end @@ -1117,7 +1146,7 @@ end RuboCop::Cop::RSpec::ReceiveNever::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::RepeatedDescription < ::RuboCop::Cop::RSpec::Base def on_block(node); end private @@ -1128,7 +1157,7 @@ end RuboCop::Cop::RSpec::RepeatedDescription::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::RepeatedExample < ::RuboCop::Cop::RSpec::Base def on_block(node); end private @@ -1139,7 +1168,7 @@ end RuboCop::Cop::RSpec::RepeatedExample::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < ::RuboCop::Cop::RSpec::Base def body(node = T.unsafe(nil)); end def const_arg(node = T.unsafe(nil)); end def metadata(node = T.unsafe(nil)); end @@ -1157,7 +1186,7 @@ end RuboCop::Cop::RSpec::RepeatedExampleGroupBody::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < ::RuboCop::Cop::RSpec::Base def doc_string_and_metadata(node = T.unsafe(nil)); end def empty_description?(node = T.unsafe(nil)); end def on_begin(node); end @@ -1173,7 +1202,7 @@ end RuboCop::Cop::RSpec::RepeatedExampleGroupDescription::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ReturnFromStub < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) extend(::RuboCop::Cop::AutoCorrector) @@ -1225,7 +1254,7 @@ 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) -class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ScatteredLet < ::RuboCop::Cop::RSpec::Base extend(::RuboCop::Cop::AutoCorrector) def on_block(node); end @@ -1238,7 +1267,7 @@ end RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base def lines_msg(numbers); end def on_block(node); end def repeated_hooks(node); end @@ -1246,7 +1275,7 @@ end 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::Base extend(::RuboCop::Cop::AutoCorrector) def context?(node0); end @@ -1265,7 +1294,7 @@ RuboCop::Cop::RSpec::SharedContext::MSG_CONTEXT = 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::Base extend(::RuboCop::Cop::AutoCorrector) def on_send(node); end @@ -1287,7 +1316,7 @@ end 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::Base extend(::RuboCop::Cop::AutoCorrector) def message_chain(node = T.unsafe(nil)); end @@ -1307,7 +1336,7 @@ end RuboCop::Cop::RSpec::SingleArgumentMessageChain::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base include(::RuboCop::RSpec::TopLevelGroup) def message_expectation?(node = T.unsafe(nil), param1); end @@ -1323,7 +1352,7 @@ end RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base def block_with_args?(node); end def empty_exception_matcher?(node); end def empty_raise_error_or_exception(node = T.unsafe(nil)); end @@ -1332,7 +1361,7 @@ end RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::VariableDefinition < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::RSpec::Variable) @@ -1347,10 +1376,11 @@ end RuboCop::Cop::RSpec::VariableDefinition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::VariableName < ::RuboCop::Cop::RSpec::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::ConfigurableFormatting) include(::RuboCop::Cop::ConfigurableNaming) + include(::RuboCop::Cop::IgnoredPattern) include(::RuboCop::RSpec::Variable) def on_send(node); end @@ -1362,7 +1392,7 @@ end RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base def on_send(node); end def unverified_double(node = T.unsafe(nil)); end @@ -1373,7 +1403,7 @@ end RuboCop::Cop::RSpec::VerifiedDoubles::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Cop +class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base def expect?(node = T.unsafe(nil)); end def expect_block?(node = T.unsafe(nil)); end def on_block(node); end @@ -1387,7 +1417,7 @@ end 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::Base include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::AutoCorrector) @@ -1433,15 +1463,6 @@ class RuboCop::RSpec::AlignLetBrace def token; end end -module RuboCop::RSpec::BlankLineSeparation - include(::RuboCop::RSpec::FinalEndLocation) - include(::RuboCop::Cop::RangeHelp) - - def last_child?(node); end - def missing_separating_line(node); end - def offending_loc(last_line); end -end - RuboCop::RSpec::CONFIG = T.let(T.unsafe(nil), Hash) class RuboCop::RSpec::Concept @@ -1483,6 +1504,16 @@ class RuboCop::RSpec::Corrector::MoveNode def source(node); end end +module RuboCop::RSpec::EmptyLineSeparation + include(::RuboCop::RSpec::FinalEndLocation) + include(::RuboCop::Cop::RangeHelp) + + def last_child?(node); end + def missing_separating_line(node); end + def missing_separating_line_offense(node); end + def offending_loc(last_line); end +end + class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept def definition; end def doc_string; end @@ -1605,14 +1636,14 @@ module RuboCop::RSpec::Language::NodePattern def example_group?(node = T.unsafe(nil)); end def example_group_with_body?(node = T.unsafe(nil)); end def hook?(node = T.unsafe(nil)); end + def include?(node = T.unsafe(nil)); end def let?(node = T.unsafe(nil)); end + def rspec?(node = T.unsafe(nil)); end def shared_group?(node = T.unsafe(nil)); end def spec_group?(node = T.unsafe(nil)); end def subject?(node = T.unsafe(nil)); end end -RuboCop::RSpec::Language::RSPEC = T.let(T.unsafe(nil), String) - module RuboCop::RSpec::Language::Runners end @@ -1629,6 +1660,7 @@ class RuboCop::RSpec::Language::SelectorSet def include?(selector); end def node_pattern; end def node_pattern_union; end + def send_or_block_or_block_pass_pattern; end def send_pattern; end protected @@ -1673,14 +1705,16 @@ module RuboCop::RSpec::TopLevelGroup extend(::RuboCop::AST::NodePattern::Macros) def example_or_shared_group?(node = T.unsafe(nil)); end - def on_block(node); end + def on_new_investigation; end + def top_level_groups; end private + def on_top_level_example_group; end + def on_top_level_group; end def root_node; end def top_level_group?(node); end - def top_level_groups; end - def top_level_nodes; end + def top_level_nodes(node); end end module RuboCop::RSpec::Variable diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@0.88.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@0.89.1.rbi similarity index 91% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@0.88.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@0.89.1.rbi index f96d50aef1..1a6680058f 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@0.88.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@0.89.1.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true @@ -224,9 +224,11 @@ class RuboCop::Config def each(*args, &block); end def each_key(*args, &block); end def enabled_new_cops?; end + def fetch(*args, &block); end def file_to_exclude?(file); end def file_to_include?(file); end def for_all_cops; end + def for_badge(badge); end def for_cop(cop); end def for_department(department_name); end def internal?; end @@ -350,7 +352,7 @@ class RuboCop::ConfigLoaderResolver def inherited_file(path, inherit_from, file); end def remote_file?(uri); end def should_union?(base_hash, key, inherit_mode); end - def transform(config); end + def transform(config, &block); end def warn_on_duplicate_setting(base_hash, derived_hash, key, **opts); end end @@ -559,6 +561,7 @@ RuboCop::Cop::Badge::InvalidBadge::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Base include(::RuboCop::AST::Sexp) include(::RuboCop::PathUtil) + include(::RuboCop::TokensUtil) include(::RuboCop::Cop::Util) include(::RuboCop::Cop::IgnoredNode) include(::RuboCop::Cop::AutocorrectLogic) @@ -755,13 +758,17 @@ module RuboCop::Cop::CodeLength private + def build_code_length_calculator(node); end def check_code_length(node); end def count_as_one; end def count_comments?; end def irrelevant_line(source_line); end def max_length; end + def message(length, max_length); end end +RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Commissioner include(::RuboCop::AST::Traversal) @@ -1256,16 +1263,21 @@ end RuboCop::Cop::Gemspec::OrderedDependencies::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Cop + include(::RuboCop::Cop::RangeHelp) + def investigate(processed_source); end def required_ruby_version(node0); end + def string_version?(node = T.unsafe(nil)); end private def extract_ruby_version(required_ruby_version); end - def message(required_ruby_version, target_ruby_version); end + def not_equal_message(required_ruby_version, target_ruby_version); end end -RuboCop::Cop::Gemspec::RequiredRubyVersion::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Gemspec::RequiredRubyVersion::MISSING_MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Gemspec::RequiredRubyVersion::NOT_EQUAL_MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Gemspec::RubyVersionGlobalsUsage < ::RuboCop::Cop::Cop def gem_specification?(node0); end @@ -1401,7 +1413,6 @@ module RuboCop::Cop::HashAlignmentStyles::ValueAlignment end module RuboCop::Cop::HashTransformMethod - def autocorrect(node); end def on_block(node); end def on_csend(node); end def on_send(node); end @@ -2200,28 +2211,25 @@ RuboCop::Cop::Layout::EndOfLine::MSG_DETECTED = T.let(T.unsafe(nil), String) RuboCop::Cop::Layout::EndOfLine::MSG_MISSING = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Cop +class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base include(::RuboCop::Cop::PrecedingFollowingAlignment) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(range); end - def investigate(processed_source); end + def on_new_investigation; end private def align_column(asgn_token); end def align_equal_sign(corrector, token, align_to); end def align_equal_signs(range, corrector); end - def aligned_comments?(comment_token); end + def aligned_locations(locs); end def aligned_tok?(token); end - def aligned_with_next_comment?(index); end - def aligned_with_previous_comment?(index); end def all_relevant_assignment_lines(line_number); end def allow_for_trailing_comments?; end def check_assignment(token); end def check_other(token1, token2, ast); end def check_tokens(ast, token1, token2); end - def comment_column(index); end def extra_space_range(token1, token2); end def force_equal_sign_alignment?; end def ignored_range?(ast, start_pos); end @@ -3457,6 +3465,7 @@ class RuboCop::Cop::LineBreakCorrector extend(::RuboCop::Cop::Alignment) extend(::RuboCop::Cop::TrailingBody) extend(::RuboCop::PathUtil) + extend(::RuboCop::TokensUtil) extend(::RuboCop::Cop::Util) class << self @@ -3493,7 +3502,7 @@ end module RuboCop::Cop::Lint end -class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::AmbiguousBlockAssociation < ::RuboCop::Cop::Base def on_csend(node); end def on_send(node); end @@ -3506,18 +3515,17 @@ end RuboCop::Cop::Lint::AmbiguousBlockAssociation::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::ParserDiagnostic) +class RuboCop::Cop::Lint::AmbiguousOperator < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end + def on_new_investigation; end private - def alternative_message(diagnostic); end def find_offense_node_by(diagnostic); end + def message(diagnostic); end def offense_node(node); end def offense_position?(node, diagnostic); end - def relevant_diagnostic?(diagnostic); end def unary_operator?(node, diagnostic); end end @@ -3525,21 +3533,19 @@ RuboCop::Cop::Lint::AmbiguousOperator::AMBIGUITIES = T.let(T.unsafe(nil), Hash) RuboCop::Cop::Lint::AmbiguousOperator::MSG_FORMAT = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::ParserDiagnostic) +class RuboCop::Cop::Lint::AmbiguousRegexpLiteral < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end + def on_new_investigation; end private - def alternative_message(_diagnostic); end def find_offense_node_by(diagnostic); end - def relevant_diagnostic?(diagnostic); end end RuboCop::Cop::Lint::AmbiguousRegexpLiteral::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base include(::RuboCop::Cop::SafeAssignment) def on_if(node); end @@ -3561,23 +3567,39 @@ RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITHOUT_SAFE_ASSIGNMENT_ALLOWED = RuboCop::Cop::Lint::AssignmentInCondition::MSG_WITH_SAFE_ASSIGNMENT_ALLOWED = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::BigDecimalNew < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::BigDecimalNew < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def big_decimal_new(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Lint::BigDecimalNew::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands < ::RuboCop::Cop::Base + def on_and(node); end + def on_or(node); end + def on_send(node); end +end + +RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MATH_OPERATORS = T.let(T.unsafe(nil), Set) + +RuboCop::Cop::Lint::BinaryOperatorWithIdenticalOperands::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Lint::BooleanSymbol < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def boolean_symbol?(node = T.unsafe(nil)); end def on_sym(node); end + + private + + def autocorrect(corrector, node); end end RuboCop::Cop::Lint::BooleanSymbol::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::CircularArgumentReference < ::RuboCop::Cop::Base def on_kwoptarg(node); end def on_optarg(node); end @@ -3588,7 +3610,7 @@ end RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Base def on_const(node); end def unqualified_const?(node = T.unsafe(nil)); end @@ -3601,7 +3623,7 @@ end RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Base def binding_irb_call?(node = T.unsafe(nil)); end def debugger_call?(node = T.unsafe(nil)); end def kernel?(node = T.unsafe(nil)); end @@ -3613,10 +3635,13 @@ class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Cop def message(node); end end +RuboCop::Cop::Lint::Debugger::DEBUGGER_METHODS = T.let(T.unsafe(nil), Set) + RuboCop::Cop::Lint::Debugger::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_send(node); end private @@ -3627,6 +3652,8 @@ class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Cop def replacement_method(data); end end +RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod @@ -3642,16 +3669,17 @@ end RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) def algorithm_const(node = T.unsafe(nil)); end - def autocorrect(node); end def on_send(node); end private def algorithm_name(node); end + def autocorrect(corrector, node); end def build_cipher_arguments(node, algorithm_name); end def correction_range(node); end def message(node); end @@ -3677,7 +3705,7 @@ end RuboCop::Cop::Lint::DisjunctiveAssignmentInConstructor::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::DuplicateCaseCondition < ::RuboCop::Cop::Base def on_case(case_node); end private @@ -3693,7 +3721,7 @@ 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::Base include(::RuboCop::Cop::Duplication) def on_hash(node); end @@ -3701,7 +3729,7 @@ end RuboCop::Cop::Lint::DuplicateHashKey::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Base def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end def alias_method?(node = T.unsafe(nil)); end @@ -3727,9 +3755,23 @@ class RuboCop::Cop::Lint::DuplicateMethods < ::RuboCop::Cop::Cop def source_location(node); end end +RuboCop::Cop::Lint::DuplicateMethods::METHOD_DEF_METHODS = T.let(T.unsafe(nil), Set) + RuboCop::Cop::Lint::DuplicateMethods::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::DuplicateRescueException < ::RuboCop::Cop::Base + include(::RuboCop::Cop::RescueNode) + + def on_rescue(node); end + + private + + def rescued_exceptions(resbody); end +end + +RuboCop::Cop::Lint::DuplicateRescueException::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Lint::EachWithObjectArgument < ::RuboCop::Cop::Base def each_with_object?(node = T.unsafe(nil)); end def on_csend(node); end def on_send(node); end @@ -3737,7 +3779,7 @@ end RuboCop::Cop::Lint::EachWithObjectArgument::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ElseLayout < ::RuboCop::Cop::Base def on_if(node); end private @@ -3748,14 +3790,21 @@ end RuboCop::Cop::Lint::ElseLayout::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base + def on_if(node); end +end + +RuboCop::Cop::Lint::EmptyConditionalBody::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Lint::EmptyEnsure < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_ensure(node); end end RuboCop::Cop::Lint::EmptyEnsure::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::EmptyExpression < ::RuboCop::Cop::Base def on_begin(node); end private @@ -3765,41 +3814,42 @@ end RuboCop::Cop::Lint::EmptyExpression::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::EmptyInterpolation < ::RuboCop::Cop::Base include(::RuboCop::Cop::Interpolation) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_interpolation(begin_node); end end RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base def on_case(node); end end RuboCop::Cop::Lint::EmptyWhen::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::EnsureReturn < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_ensure(node); end end RuboCop::Cop::Lint::EnsureReturn::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::TargetRubyVersion) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def erb_new_with_non_keyword_arguments(node = T.unsafe(nil)); end def on_send(node); end private def arguments_range(node); end + def autocorrect(corrector, node); end def build_kwargs(node); end def correct_arguments?(arguments); end def override_by_legacy_args(kwargs, node); end @@ -3807,20 +3857,38 @@ end RuboCop::Cop::Lint::ErbNewArguments::MESSAGES = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::Lint::FlipFlop < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::FlipFlop < ::RuboCop::Cop::Base def on_eflipflop(node); end def on_iflipflop(node); end end RuboCop::Cop::Lint::FlipFlop::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::FloatComparison < ::RuboCop::Cop::Base + def on_send(node); end + + private + + def check_numeric_returning_method(node); end + def check_send(node); end + def float?(node); end +end + +RuboCop::Cop::Lint::FloatComparison::EQUALITY_METHODS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil), Set) + +RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Lint::FloatComparison::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Lint::FloatOutOfRange < ::RuboCop::Cop::Base def on_float(node); end end RuboCop::Cop::Lint::FloatOutOfRange::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Base def called_on_string?(node = T.unsafe(nil)); end def on_send(node); end @@ -3846,6 +3914,8 @@ class RuboCop::Cop::Lint::FormatParameterMismatch < ::RuboCop::Cop::Cop def sprintf?(node); end end +RuboCop::Cop::Lint::FormatParameterMismatch::FORMAT_METHODS = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Lint::FormatParameterMismatch::KERNEL = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::FormatParameterMismatch::MSG = T.let(T.unsafe(nil), String) @@ -3856,16 +3926,17 @@ RuboCop::Cop::Lint::FormatParameterMismatch::SHOVEL = T.let(T.unsafe(nil), Strin RuboCop::Cop::Lint::FormatParameterMismatch::STRING_TYPES = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::HeredocMethodCallPosition < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_csend(node); end def on_send(node); end private def all_on_same_line?(nodes); end + def autocorrect(corrector, node, heredoc); end def call_after_heredoc_range(heredoc); end def call_end_pos(node); end def call_line_range(node); end @@ -3882,7 +3953,7 @@ end RuboCop::Cop::Lint::HeredocMethodCallPosition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ImplicitStringConcatenation < ::RuboCop::Cop::Base def on_dstr(node); end private @@ -3901,7 +3972,7 @@ RuboCop::Cop::Lint::ImplicitStringConcatenation::FOR_METHOD = T.let(T.unsafe(nil RuboCop::Cop::Lint::ImplicitStringConcatenation::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Base def on_class(node); end def on_module(node); end def private_class_methods(node0); end @@ -3912,7 +3983,7 @@ class RuboCop::Cop::Lint::IneffectiveAccessModifier < ::RuboCop::Cop::Cop def check_node(node); end def correct_visibility?(node, modifier, ignored_methods); end def format_message(modifier); end - def ineffective_modifier(node, ignored_methods, modifier = T.unsafe(nil), &block); end + def ineffective_modifier(node, ignored_methods = T.unsafe(nil), modifier = T.unsafe(nil), &block); end def private_class_method_names(node); end end @@ -3922,10 +3993,10 @@ RuboCop::Cop::Lint::IneffectiveAccessModifier::ALTERNATIVE_PROTECTED = T.let(T.u RuboCop::Cop::Lint::IneffectiveAccessModifier::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def class_new_call?(node = T.unsafe(nil)); end def on_class(node); end def on_send(node); end @@ -3943,15 +4014,20 @@ RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash) -class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Cop - def autocorrect(node); end - def heredoc?(node); end +class RuboCop::Cop::Lint::InterpolationCheck < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_str(node); end + + private + + def autocorrect(corrector, node); end + def heredoc?(node); end end 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::Base include(::RuboCop::Cop::RangeHelp) def message(node); end @@ -3977,12 +4053,12 @@ end RuboCop::Cop::Lint::LiteralAsCondition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::LiteralInInterpolation < ::RuboCop::Cop::Base include(::RuboCop::Cop::Interpolation) include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::PercentLiteral) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_interpolation(begin_node); end private @@ -3999,21 +4075,26 @@ RuboCop::Cop::Lint::LiteralInInterpolation::COMPOSITE = T.let(T.unsafe(nil), Arr RuboCop::Cop::Lint::LiteralInInterpolation::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::Loop < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_until_post(node); end def on_while_post(node); end private + def build_break_line(node); end + def indent(node); end + def keyword_and_condition_range(node); end def register_offense(node); end end RuboCop::Cop::Lint::Loop::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::MissingCopEnableDirective < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) - def investigate(processed_source); end + def on_new_investigation; end private @@ -4024,7 +4105,34 @@ RuboCop::Cop::Lint::MissingCopEnableDirective::MSG = T.let(T.unsafe(nil), String RuboCop::Cop::Lint::MissingCopEnableDirective::MSG_BOUND = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::MixedRegexpCaptureTypes < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::MissingSuper < ::RuboCop::Cop::Base + def on_def(node); end + def on_defs(node); end + + private + + def callback_method_def?(node); end + def contains_super?(node); end + def inside_class_with_stateful_parent?(node); end + def offender?(node); end + def stateless_class?(node); end +end + +RuboCop::Cop::Lint::MissingSuper::CALLBACKS = T.let(T.unsafe(nil), Set) + +RuboCop::Cop::Lint::MissingSuper::CALLBACK_MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Lint::MissingSuper::CLASS_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Lint::MissingSuper::CONSTRUCTOR_MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Lint::MissingSuper::METHOD_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Lint::MissingSuper::OBJECT_LIFECYCLE_CALLBACKS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Lint::MissingSuper::STATELESS_CLASSES = T.let(T.unsafe(nil), Array) + +class RuboCop::Cop::Lint::MixedRegexpCaptureTypes < ::RuboCop::Cop::Base def on_regexp(node); end private @@ -4036,15 +4144,16 @@ end RuboCop::Cop::Lint::MixedRegexpCaptureTypes::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::MultipleComparison < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::MultipleComparison < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def multiple_compare?(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Lint::MultipleComparison::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base def class_or_module_or_struct_new_call?(node = T.unsafe(nil)); end def eval_call?(node = T.unsafe(nil)); end def exec_call?(node = T.unsafe(nil)); end @@ -4058,7 +4167,7 @@ end RuboCop::Cop::Lint::NestedMethodDefinition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::NestedPercentLiteral < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::NestedPercentLiteral < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::PercentLiteral) @@ -4076,7 +4185,7 @@ RuboCop::Cop::Lint::NestedPercentLiteral::PERCENT_LITERAL_TYPES = T.let(T.unsafe RuboCop::Cop::Lint::NestedPercentLiteral::REGEXES = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base def on_block(node); end def on_body_of_reduce(node = T.unsafe(nil)); end @@ -4087,8 +4196,9 @@ end RuboCop::Cop::Lint::NextWithoutAccumulator::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def loop_variable(node = T.unsafe(nil)); end def method_require?(node = T.unsafe(nil)); end def on_block(node); end @@ -4101,7 +4211,8 @@ class RuboCop::Cop::Lint::NonDeterministicRequireOrder < ::RuboCop::Cop::Cop private - def correct_block_pass(node); end + def correct_block(corrector, node); end + def correct_block_pass(corrector, node); end def last_arg_range(node); end def unsorted_dir_loop?(node); end def unsorted_dir_pass?(node); end @@ -4109,7 +4220,7 @@ end RuboCop::Cop::Lint::NonDeterministicRequireOrder::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::NonLocalExitFromIterator < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::NonLocalExitFromIterator < ::RuboCop::Cop::Base def chained_send?(node = T.unsafe(nil)); end def define_method?(node = T.unsafe(nil)); end def on_return(return_node); end @@ -4122,8 +4233,9 @@ end RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def datetime?(node = T.unsafe(nil)); end def on_send(node); end def to_method(node = T.unsafe(nil)); end @@ -4138,24 +4250,47 @@ RuboCop::Cop::Lint::NumberConversion::CONVERSION_METHOD_CLASS_MAPPING = T.let(T. RuboCop::Cop::Lint::NumberConversion::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::OrderedMagicComments < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::OrderedMagicComments < ::RuboCop::Cop::Base include(::RuboCop::Cop::FrozenStringLiteral) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(_node); end - def investigate(processed_source); end + def on_new_investigation; end private + def autocorrect(corrector, encoding_line, frozen_string_literal_line); end def magic_comment_lines; end def magic_comments; end end RuboCop::Cop::Lint::OrderedMagicComments::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::RangeHelp) +class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base + def on_match_with_lvasgn(node); end + def on_new_investigation; end + def on_nth_ref(node); end + def on_send(node); end + def on_when(node); end + + private + + def check_regexp(regexp); end + def contain_non_literal?(node); end + def regexp_captures(tree); end +end + +RuboCop::Cop::Lint::OutOfRangeRegexpRef::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_ARGUMENT_METHODS = T.let(T.unsafe(nil), Set) + +RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_CAPTURE_METHODS = T.let(T.unsafe(nil), Set) + +RuboCop::Cop::Lint::OutOfRangeRegexpRef::REGEXP_RECEIVER_METHODS = T.let(T.unsafe(nil), Set) + +class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base + include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_csend(node); end def on_send(node); end @@ -4171,16 +4306,17 @@ end RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::PercentStringArray < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::PercentLiteral) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_array(node); end def on_percent_literal(node); end private + def autocorrect(corrector, node); end def contains_quotes_or_commas?(node); end end @@ -4192,24 +4328,26 @@ RuboCop::Cop::Lint::PercentStringArray::QUOTES_AND_COMMAS = T.let(T.unsafe(nil), RuboCop::Cop::Lint::PercentStringArray::TRAILING_QUOTE = T.let(T.unsafe(nil), Regexp) -class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::PercentSymbolArray < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::PercentLiteral) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_array(node); end def on_percent_literal(node); end private + def autocorrect(corrector, node); end def contains_colons_or_commas?(node); end def non_alphanumeric_literal?(literal); end end RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def exception?(node = T.unsafe(nil)); end def exception_new_with_message?(node = T.unsafe(nil)); end def on_send(node); end @@ -4223,7 +4361,7 @@ end RuboCop::Cop::Lint::RaiseException::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RandOne < ::RuboCop::Cop::Base def on_send(node); end def rand_one?(node = T.unsafe(nil)); end @@ -4256,9 +4394,9 @@ class RuboCop::Cop::Lint::RedundantCopDisableDirective < ::RuboCop::Cop::Base def describe(cop); end def directive_count(comment); end def directive_range_in_list(range, ranges); end - def each_already_disabled(line_ranges, disabled_ranges, comments); end - def each_line_range(line_ranges, disabled_ranges, offenses, comments, cop); end - def each_redundant_disable(cop_disabled_line_ranges, offenses, comments, &block); end + def each_already_disabled(line_ranges, disabled_ranges); end + def each_line_range(line_ranges, disabled_ranges, offenses, cop); end + def each_redundant_disable(cop_disabled_line_ranges, offenses, &block); end def ends_its_line?(range); end def find_redundant(comment, offenses, cop, line_range, next_line_range); end def ignore_offense?(disabled_ranges, line_range); end @@ -4268,12 +4406,12 @@ end RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::SurroundingSpace) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(comment_and_name); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -4287,19 +4425,20 @@ end RuboCop::Cop::Lint::RedundantCopEnableDirective::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RedundantRequireStatement < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_send(node); end def unnecessary_require_statement?(node = T.unsafe(nil)); end end RuboCop::Cop::Lint::RedundantRequireStatement::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def array_new?(node = T.unsafe(nil)); end - def autocorrect(node); end def literal_expansion(node = T.unsafe(nil)); end def on_splat(node); end @@ -4307,6 +4446,7 @@ class RuboCop::Cop::Lint::RedundantSplatExpansion < ::RuboCop::Cop::Cop def array_new_inside_array_literal?(array_new_node); end def array_splat?(node); end + def autocorrect(corrector, node); end def method_argument?(node); end def part_of_an_array?(node); end def redundant_brackets?(node); end @@ -4329,26 +4469,22 @@ RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_I = T.let(T.unsafe(nil), St RuboCop::Cop::Lint::RedundantSplatExpansion::PERCENT_W = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RedundantStringCoercion < ::RuboCop::Cop::Base include(::RuboCop::Cop::Interpolation) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_interpolation(begin_node); end def to_s_without_args?(node = T.unsafe(nil)); end - - private - - def message(node); end end RuboCop::Cop::Lint::RedundantStringCoercion::MSG_DEFAULT = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::RedundantStringCoercion::MSG_SELF = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def redundant_with_index?(node = T.unsafe(nil)); end @@ -4362,10 +4498,10 @@ RuboCop::Cop::Lint::RedundantWithIndex::MSG_EACH_WITH_INDEX = T.let(T.unsafe(nil RuboCop::Cop::Lint::RedundantWithIndex::MSG_WITH_INDEX = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RedundantWithObject < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def redundant_with_object?(node = T.unsafe(nil)); end @@ -4379,14 +4515,15 @@ RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(n RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_match_current_line(node); end end RuboCop::Cop::Lint::RegexpAsCondition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RequireParentheses < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) def on_csend(node); end @@ -4400,17 +4537,18 @@ end RuboCop::Cop::Lint::RequireParentheses::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RescueException < ::RuboCop::Cop::Base def on_resbody(node); end def targets_exception?(rescue_arg_node); end end RuboCop::Cop::Lint::RescueException::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Base include(::RuboCop::Cop::RescueNode) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end + def autocorrect(corrector, node); end def on_resbody(node); end private @@ -4424,7 +4562,7 @@ RuboCop::Cop::Lint::RescueType::INVALID_TYPES = T.let(T.unsafe(nil), Array) RuboCop::Cop::Lint::RescueType::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ReturnInVoidContext < ::RuboCop::Cop::Base def on_return(return_node); end private @@ -4437,7 +4575,7 @@ end RuboCop::Cop::Lint::ReturnInVoidContext::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::SafeNavigationChain < ::RuboCop::Cop::Base include(::RuboCop::Cop::AllowedMethods) include(::RuboCop::Cop::NilMethods) @@ -4451,36 +4589,41 @@ end RuboCop::Cop::Lint::SafeNavigationChain::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::SafeNavigationConsistency < ::RuboCop::Cop::Base include(::RuboCop::Cop::AllowedMethods) include(::RuboCop::Cop::NilMethods) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def check(node); end def on_csend(node); end private + def autocorrect(corrector, node); end + def location(node, unsafe_method_call); end def top_conditional_ancestor(node); end def unsafe_method_calls(method_calls, safe_nav_receiver); end end RuboCop::Cop::Lint::SafeNavigationConsistency::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::SafeNavigationWithEmpty < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::SafeNavigationWithEmpty < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_if(node); end def safe_navigation_empty_in_conditional?(node = T.unsafe(nil)); end end RuboCop::Cop::Lint::SafeNavigationWithEmpty::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Cop - def autocorrect(node); end - def investigate(processed_source); end +class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def on_new_investigation; end private + def autocorrect(comment); end def executable?(processed_source); end def format_message_from(processed_source); end end @@ -4489,10 +4632,30 @@ RuboCop::Cop::Lint::ScriptPermission::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::ScriptPermission::SHEBANG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::SendWithMixinArgument < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::RangeHelp) +class RuboCop::Cop::Lint::SelfAssignment < ::RuboCop::Cop::Base + def on_and_asgn(node); end + def on_casgn(node); end + def on_cvasgn(node); end + def on_gvasgn(node); end + def on_ivasgn(node); end + def on_lvasgn(node); end + def on_masgn(node); end + def on_or_asgn(node); end + + private + + def multiple_self_assignment?(node); end + def rhs_matches_lhs?(rhs, lhs); end +end + +RuboCop::Cop::Lint::SelfAssignment::ASSIGNMENT_TYPE_TO_RHS_TYPE = T.let(T.unsafe(nil), Hash) + +RuboCop::Cop::Lint::SelfAssignment::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Lint::SendWithMixinArgument < ::RuboCop::Cop::Base + include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_send(node); end def send_with_mixin_argument?(node = T.unsafe(nil)); end @@ -4507,9 +4670,8 @@ RuboCop::Cop::Lint::SendWithMixinArgument::MIXIN_METHODS = T.let(T.unsafe(nil), RuboCop::Cop::Lint::SendWithMixinArgument::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base def after_leaving_scope(scope, _variable_table); end - def join_force?(force_class); end def uses_var?(node0, param1); end private @@ -4521,11 +4683,15 @@ class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Cop def node_within_block_or_conditional?(node, stop_search_node); end def reference_pos(node); end def shadowing_assignment(argument); end + + class << self + def joining_forces; end + end end RuboCop::Cop::Lint::ShadowedArgument::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ShadowedException < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ShadowedException < ::RuboCop::Cop::Base include(::RuboCop::Cop::RescueNode) include(::RuboCop::Cop::RangeHelp) @@ -4547,14 +4713,17 @@ end RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base def before_declaring_variable(variable, variable_table); end - def join_force?(force_class); end + + class << self + def joining_forces; end + end end RuboCop::Cop::Lint::ShadowingOuterLocalVariable::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::StructNewOverride < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::StructNewOverride < ::RuboCop::Cop::Base def on_send(node); end def struct_new(node = T.unsafe(nil)); end end @@ -4565,7 +4734,7 @@ RuboCop::Cop::Lint::StructNewOverride::STRUCT_MEMBER_NAME_TYPES = T.let(T.unsafe RuboCop::Cop::Lint::StructNewOverride::STRUCT_METHOD_NAMES = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::SuppressedException < ::RuboCop::Cop::Base def on_resbody(node); end private @@ -4585,34 +4754,49 @@ class RuboCop::Cop::Lint::Syntax < ::RuboCop::Cop::Base def beautify_message(message); end end -class RuboCop::Cop::Lint::ToJSON < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::ToJSON < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_def(node); end end RuboCop::Cop::Lint::ToJSON::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UnderscorePrefixedVariableName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::TopLevelReturnWithArgument < ::RuboCop::Cop::Cop + def on_return(return_node); end + + private + + def ancestors_valid?(return_node); end +end + +RuboCop::Cop::Lint::TopLevelReturnWithArgument::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Lint::UnderscorePrefixedVariableName < ::RuboCop::Cop::Base def after_leaving_scope(scope, _variable_table); end def check_variable(variable); end - def join_force?(force_class); end private def allowed_keyword_block_argument?(variable); end + + class << self + def joining_forces; end + end end RuboCop::Cop::Lint::UnderscorePrefixedVariableName::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::UnifiedInteger < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def fixnum_or_bignum_const(node = T.unsafe(nil)); end def on_const(node); end end RuboCop::Cop::Lint::UnifiedInteger::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::UnreachableCode < ::RuboCop::Cop::Base def flow_command?(node = T.unsafe(nil)); end def on_begin(node); end def on_kwbegin(node); end @@ -4626,21 +4810,43 @@ end RuboCop::Cop::Lint::UnreachableCode::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base + def break_command?(node = T.unsafe(nil)); end + def on_block(node); end + def on_for(node); end + def on_until(node); end + def on_until_post(node); end + def on_while(node); end + def on_while_post(node); end + + private + + def break_statement?(node); end + def check(node); end + def check_case(node); end + def check_if(node); end + def left_siblings_of(node); end + def loop_method?(node); end + def preceded_by_continue_statement?(break_statement); end + def statements(node); end +end + +RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String) + module RuboCop::Cop::Lint::UnusedArgument extend(::RuboCop::AST::NodePattern::Macros) def after_leaving_scope(scope, _variable_table); end - def join_force?(force_class); end private def check_argument(variable); end end -class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base include(::RuboCop::Cop::Lint::UnusedArgument) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end private @@ -4648,6 +4854,7 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Cop def allowed_block?(variable); end def allowed_keyword_argument?(variable); end def augment_message(message, variable); end + def autocorrect(corrector, node); end def check_argument(variable); end def define_method_call?(variable); end def empty_block?(variable); end @@ -4657,22 +4864,31 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Cop def message_for_normal_block(variable, all_arguments); end def message_for_underscore_prefix(variable); end def variable_type(variable); end + + class << self + def joining_forces; end + end end -class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::UnusedMethodArgument < ::RuboCop::Cop::Base include(::RuboCop::Cop::Lint::UnusedArgument) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def not_implemented?(node = T.unsafe(nil)); end private + def autocorrect(corrector, node); end def check_argument(variable); end def ignored_method?(body); end def message(variable); end + + class << self + def joining_forces; end + end end -class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::UriEscapeUnescape < ::RuboCop::Cop::Base def on_send(node); end def uri_escape_unescape?(node = T.unsafe(nil)); end end @@ -4683,23 +4899,20 @@ RuboCop::Cop::Lint::UriEscapeUnescape::ALTERNATE_METHODS_OF_URI_UNESCAPE = T.let RuboCop::Cop::Lint::UriEscapeUnescape::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UriRegexp < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Lint::UriRegexp < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_send(node); end - def uri_regexp_with_argument?(node = T.unsafe(nil)); end - def uri_regexp_without_argument?(node = T.unsafe(nil)); end - - private - - def register_offense(node, top_level: T.unsafe(nil), arg: T.unsafe(nil)); end end RuboCop::Cop::Lint::UriRegexp::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::RangeHelp) +RuboCop::Cop::Lint::UriRegexp::URI_CONSTANTS = T.let(T.unsafe(nil), Array) + +class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base + include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def class_or_instance_eval?(node = T.unsafe(nil)); end def class_or_module_or_struct_new_call?(node = T.unsafe(nil)); end def dynamic_method_definition?(node = T.unsafe(nil)); end @@ -4714,6 +4927,7 @@ class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Cop def access_modifier?(node); end def any_context_creating_methods?(child); end def any_method_definition?(child); end + def autocorrect(corrector, node); end def check_child_nodes(node, unused, cur_vis); end def check_new_visibility(node, unused, new_vis, cur_vis); end def check_node(node); end @@ -4726,11 +4940,10 @@ end RuboCop::Cop::Lint::UselessAccessModifier::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Base def after_leaving_scope(scope, _variable_table); end def check_for_unused_assignments(variable); end def collect_variable_like_names(scope); end - def join_force?(force_class); end def message_for_useless_assignment(assignment); end def message_specification(assignment, variable); end def multiple_assignment_message(variable_name); end @@ -4738,33 +4951,21 @@ class RuboCop::Cop::Lint::UselessAssignment < ::RuboCop::Cop::Cop def return_value_node_of_scope(scope); end def similar_name_message(variable); end def variable_like_method_invocation?(node); end + + class << self + def joining_forces; end + end end RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UselessComparison < ::RuboCop::Cop::Cop - def on_send(node); end - def useless_comparison?(node = T.unsafe(nil)); end -end - -RuboCop::Cop::Lint::UselessComparison::MSG = T.let(T.unsafe(nil), String) - -RuboCop::Cop::Lint::UselessComparison::OPS = T.let(T.unsafe(nil), Array) - -class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::ParserDiagnostic) - - - private - - def alternative_message(_diagnostic); end - def find_offense_node_by(diagnostic); end - def relevant_diagnostic?(diagnostic); end +class RuboCop::Cop::Lint::UselessElseWithoutRescue < ::RuboCop::Cop::Base + def on_new_investigation; end end RuboCop::Cop::Lint::UselessElseWithoutRescue::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::UselessSetterCall < ::RuboCop::Cop::Base def on_def(node); end def on_defs(node); end def setter_call_to_local_variable?(node = T.unsafe(nil)); end @@ -4791,7 +4992,7 @@ class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker def scan(node, &block); end end -class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Cop +class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base def on_begin(node); end def on_block(node); end def on_kwbegin(node); end @@ -4870,6 +5071,7 @@ end module RuboCop::Cop::MethodComplexity include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::IgnoredMethods) + include(::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount) extend(::RuboCop::AST::NodePattern::Macros) def define_method?(node = T.unsafe(nil)); end @@ -4895,9 +5097,10 @@ end module RuboCop::Cop::Metrics end -class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::AbcSize < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::IgnoredMethods) + include(::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount) include(::RuboCop::Cop::MethodComplexity) @@ -4908,10 +5111,9 @@ end RuboCop::Cop::Metrics::AbcSize::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::CodeLength) - include(::RuboCop::Cop::TooManyLines) def on_block(node); end @@ -4924,10 +5126,10 @@ end RuboCop::Cop::Metrics::BlockLength::LABEL = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::BlockNesting < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) - def investigate(processed_source); end + def on_new_investigation; end private @@ -4939,10 +5141,9 @@ end RuboCop::Cop::Metrics::BlockNesting::NESTING_BLOCKS = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::CodeLength) - include(::RuboCop::Cop::TooManyLines) def class_definition?(node = T.unsafe(nil)); end def on_casgn(node); end @@ -4953,9 +5154,10 @@ class RuboCop::Cop::Metrics::ClassLength < ::RuboCop::Cop::Cop def message(length, max_length); end end -class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::IgnoredMethods) + include(::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount) include(::RuboCop::Cop::MethodComplexity) include(::RuboCop::Cop::Metrics::Utils::IteratingBlock) @@ -4971,10 +5173,9 @@ RuboCop::Cop::Metrics::CyclomaticComplexity::COUNTED_NODES = T.let(T.unsafe(nil) RuboCop::Cop::Metrics::CyclomaticComplexity::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::CodeLength) - include(::RuboCop::Cop::TooManyLines) def on_block(node); end def on_def(node); end @@ -4987,10 +5188,9 @@ end RuboCop::Cop::Metrics::MethodLength::LABEL = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) include(::RuboCop::Cop::CodeLength) - include(::RuboCop::Cop::TooManyLines) def module_definition?(node = T.unsafe(nil)); end def on_casgn(node); end @@ -5001,7 +5201,7 @@ class RuboCop::Cop::Metrics::ModuleLength < ::RuboCop::Cop::Cop def message(length, max_length); end end -class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Cop +class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableMax) def argument_to_lambda_or_proc?(node = T.unsafe(nil)); end @@ -5012,16 +5212,11 @@ class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Cop def args_count(node); end def count_keyword_args?; end def max_params; end - def message(node); end end RuboCop::Cop::Metrics::ParameterLists::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Metrics::PerceivedComplexity < ::RuboCop::Cop::Cop - include(::RuboCop::Cop::ConfigurableMax) - include(::RuboCop::Cop::IgnoredMethods) - include(::RuboCop::Cop::MethodComplexity) - +class RuboCop::Cop::Metrics::PerceivedComplexity < ::RuboCop::Cop::Metrics::CyclomaticComplexity private @@ -5036,6 +5231,9 @@ module RuboCop::Cop::Metrics::Utils end class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator + include(::RuboCop::Cop::Metrics::Utils::IteratingBlock) + include(::RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount) + def initialize(node); end def calculate; end @@ -5045,45 +5243,54 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator private + def argument?(node); end + def assignment?(node); end + def assignment_doubled_in_ast?(node); end def branch?(node); end + def capturing_variable?(name); end def condition?(node); end + def simple_assignment?(node); end class << self def calculate(node); end end end +RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::BRANCH_NODES = T.let(T.unsafe(nil), Array) RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::CONDITION_NODES = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator include(::RuboCop::PathUtil) + include(::RuboCop::TokensUtil) include(::RuboCop::Cop::Util) extend(::RuboCop::AST::NodePattern::Macros) - def initialize(node, count_comments: T.unsafe(nil), foldable_types: T.unsafe(nil)); end + def initialize(node, processed_source, count_comments: T.unsafe(nil), foldable_types: T.unsafe(nil)); end def calculate; end - def class_definition?(node = T.unsafe(nil)); end - def module_definition?(node = T.unsafe(nil)); end private def build_foldable_checks(types); end + def classlike_code_length(node); end def classlike_node?(node); end def code_length(node); end def count_comments?; end - def each_top_level_descendant(node, *types, &block); end + def each_top_level_descendant(node, types, &block); end def extract_body(node); end def foldable_node?(node); end def heredoc_length(node); end def heredoc_node?(node); end def irrelevant_line?(source_line); end + def line_numbers_of_inner_nodes(node, *types); end + def namespace_module?(node); end def normalize_foldable_types(types); end end -RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::CLASSISH_TYPES = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::CLASSLIKE_TYPES = T.let(T.unsafe(nil), Array) RuboCop::Cop::Metrics::Utils::CodeLengthCalculator::FOLDABLE_TYPES = T.let(T.unsafe(nil), Array) @@ -5095,14 +5302,20 @@ end RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T.unsafe(nil), Set) +module RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount + def discount_for_repeated_csend?(csend_node); end + def reset_on_lvasgn(node); end + def reset_repeated_csend; end +end + module RuboCop::Cop::Migration end -class RuboCop::Cop::Migration::DepartmentName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Migration::DepartmentName < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(range); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -5235,7 +5448,7 @@ end module RuboCop::Cop::Naming end -class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::AccessorMethodName < ::RuboCop::Cop::Base def on_def(node); end def on_defs(node); end @@ -5250,10 +5463,10 @@ RuboCop::Cop::Naming::AccessorMethodName::MSG_READER = T.let(T.unsafe(nil), Stri RuboCop::Cop::Naming::AccessorMethodName::MSG_WRITER = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Naming::AsciiIdentifiers < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::AsciiIdentifiers < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) - def investigate(processed_source); end + def on_new_investigation; end private @@ -5266,7 +5479,7 @@ RuboCop::Cop::Naming::AsciiIdentifiers::CONSTANT_MSG = T.let(T.unsafe(nil), Stri RuboCop::Cop::Naming::AsciiIdentifiers::IDENTIFIER_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Naming::BinaryOperatorParameterName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::BinaryOperatorParameterName < ::RuboCop::Cop::Base def on_def(node); end def op_method_candidate?(node = T.unsafe(nil)); end @@ -5281,20 +5494,20 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), St RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array) -class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Base include(::RuboCop::Cop::UncommunicativeName) def on_block(node); end end -class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::ClassAndModuleCamelCase < ::RuboCop::Cop::Base def on_class(node); end def on_module(node); end end RuboCop::Cop::Naming::ClassAndModuleCamelCase::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base def class_or_struct_return_method?(node = T.unsafe(nil)); end def literal_receiver?(node = T.unsafe(nil)); end def on_casgn(node); end @@ -5311,10 +5524,10 @@ RuboCop::Cop::Naming::ConstantName::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Naming::ConstantName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) -class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::FileName < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) - def investigate(processed_source); end + def on_new_investigation; end private @@ -5348,7 +5561,7 @@ RuboCop::Cop::Naming::FileName::MSG_SNAKE_CASE = T.let(T.unsafe(nil), String) RuboCop::Cop::Naming::FileName::SNAKE_CASE = T.let(T.unsafe(nil), Regexp) -class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::HeredocDelimiterCase < ::RuboCop::Cop::Base include(::RuboCop::Cop::Heredoc) include(::RuboCop::Cop::ConfigurableEnforcedStyle) @@ -5363,7 +5576,7 @@ end RuboCop::Cop::Naming::HeredocDelimiterCase::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Naming::HeredocDelimiterNaming < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::HeredocDelimiterNaming < ::RuboCop::Cop::Base include(::RuboCop::Cop::Heredoc) def on_heredoc(node); end @@ -5376,7 +5589,7 @@ end RuboCop::Cop::Naming::HeredocDelimiterNaming::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::MemoizedInstanceVariableName < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def memoized?(node = T.unsafe(nil)); end @@ -5425,14 +5638,14 @@ end RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::MethodParameterName < ::RuboCop::Cop::Base include(::RuboCop::Cop::UncommunicativeName) def on_def(node); end def on_defs(node); end end -class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Cop +class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Base include(::RuboCop::Cop::AllowedMethods) def dynamic_method_define(node = T.unsafe(nil)); end @@ -5450,8 +5663,9 @@ class RuboCop::Cop::Naming::PredicateName < ::RuboCop::Cop::Cop def predicate_prefixes; end end -class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Naming::RescuedExceptionsVariableName < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_resbody(node); end private @@ -5635,10 +5849,6 @@ class RuboCop::Cop::ParenthesesCorrector end end -module RuboCop::Cop::ParserDiagnostic - def investigate(processed_source); end -end - module RuboCop::Cop::PercentArray private @@ -5666,6 +5876,7 @@ end class RuboCop::Cop::PercentLiteralCorrector include(::RuboCop::PathUtil) + include(::RuboCop::TokensUtil) include(::RuboCop::Cop::Util) def initialize(config, preferred_delimiters); end @@ -5749,12 +5960,13 @@ module RuboCop::Cop::RangeHelp def column_offset_between(base_range, range); end def directions(side); end def effective_column(range); end - def final_pos(src, pos, increment, newlines, whitespace); end + def final_pos(src, pos, increment, continuations, newlines, whitespace); end def move_pos(src, pos, step, condition, regexp); end + def move_pos_str(src, pos, step, condition, needle); end def range_between(start_pos, end_pos); end def range_by_whole_lines(range, include_final_newline: T.unsafe(nil)); end def range_with_surrounding_comma(range, side = T.unsafe(nil)); end - def range_with_surrounding_space(range:, side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil)); end + def range_with_surrounding_space(range:, side: T.unsafe(nil), newlines: T.unsafe(nil), whitespace: T.unsafe(nil), continuations: T.unsafe(nil)); end def source_range(source_buffer, line_number, column, length = T.unsafe(nil)); end end @@ -5788,7 +6000,7 @@ class RuboCop::Cop::Registry def departments; end def dismiss(cop); end def each(&block); end - def enabled(config, only = T.unsafe(nil), only_safe = T.unsafe(nil)); end + def enabled(config, only = T.unsafe(nil), only_safe: T.unsafe(nil)); end def enabled?(cop, config, only_safe); end def enabled_pending_cop?(cop_cfg, config); end def enlist(cop); end @@ -5797,7 +6009,7 @@ class RuboCop::Cop::Registry def names; end def options; end def print_warning(name, path); end - def qualified_cop_name(name, path, shall_warn = T.unsafe(nil)); end + def qualified_cop_name(name, path, warn: T.unsafe(nil)); end def select(&block); end def sort!; end def to_h; end @@ -5845,29 +6057,30 @@ end module RuboCop::Cop::Security end -class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Cop +class RuboCop::Cop::Security::Eval < ::RuboCop::Cop::Base def eval?(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Security::Eval::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Security::JSONLoad < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Security::JSONLoad < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def json_load(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Security::JSONLoad::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Security::MarshalLoad < ::RuboCop::Cop::Cop +class RuboCop::Cop::Security::MarshalLoad < ::RuboCop::Cop::Base def marshal_load(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Security::MarshalLoad::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Cop +class RuboCop::Cop::Security::Open < ::RuboCop::Cop::Base def on_send(node); end def open?(node = T.unsafe(nil)); end @@ -5883,8 +6096,9 @@ end RuboCop::Cop::Security::Open::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Security::YAMLLoad < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Security::YAMLLoad < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_send(node); end def yaml_load(node = T.unsafe(nil)); end end @@ -5961,13 +6175,16 @@ module RuboCop::Cop::StatementModifier private - def length_in_modifier_form(node, cond); end + def first_line_comment(node); end + def length_in_modifier_form(node); end def max_line_length; end def modifier_fits_on_single_line?(node); end def non_eligible_body?(body); end def non_eligible_condition?(condition); end def non_eligible_node?(node); end + def parenthesize?(node); end def single_line_as_modifier?(node); end + def to_modifier_form(node); end end module RuboCop::Cop::StringHelp @@ -5981,6 +6198,7 @@ end class RuboCop::Cop::StringLiteralCorrector extend(::RuboCop::PathUtil) + extend(::RuboCop::TokensUtil) extend(::RuboCop::Cop::Util) class << self @@ -6000,7 +6218,7 @@ end module RuboCop::Cop::Style end -class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def access_modifier_with_symbol?(node = T.unsafe(nil)); end @@ -6008,23 +6226,28 @@ class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Cop private + def access_modifier?(node); end def access_modifier_is_inlined?(node); end def access_modifier_is_not_inlined?(node); end def group_style?; end def inline_style?; end - def message(node); end + def maybe_access_modifier?(node); end + def message(range); end def offense?(node); end end +RuboCop::Cop::Style::AccessModifierDeclarations::ACCESS_MODIFIERS = T.let(T.unsafe(nil), Set) + RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::VisibilityHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_class(node); end def on_module(node); end def on_sclass(node); end @@ -6032,12 +6255,13 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Cop private def accessor?(send_node); end + def autocorrect(corrector, node); end def check(send_node); end def class_send_elements(class_node); end - def correction(node); end def group_accessors(node, accessors); end def grouped_style?; end def message(send_node); end + def preferred_accessors(node); end def previous_line_comment?(node); end def separate_accessors(node); end def separated_style?; end @@ -6050,23 +6274,24 @@ RuboCop::Cop::Style::AccessorGrouping::GROUPED_MSG = T.let(T.unsafe(nil), String RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::Alias < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def identifier(node = T.unsafe(nil)); end def on_alias(node); end def on_send(node); end private - def add_offense_for_args(node); end + def add_offense_for_args(node, &block); end def alias_keyword_possible?(node); end def alias_method_possible?(node); end + def autocorrect(corrector, node); end def bareword?(sym_node); end - def correct_alias_method_to_alias(send_node); end - def correct_alias_to_alias_method(node); end - def correct_alias_with_symbol_args(node); end + def correct_alias_method_to_alias(corrector, send_node); end + def correct_alias_to_alias_method(corrector, node); end + def correct_alias_with_symbol_args(corrector, node); end def lexical_scope_type(node); end def scope_type(node); end end @@ -6077,11 +6302,11 @@ RuboCop::Cop::Style::Alias::MSG_ALIAS_METHOD = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::Alias::MSG_SYMBOL_ARGS = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::AndOr < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_and(node); end def on_if(node); end def on_or(node); end @@ -6129,18 +6354,19 @@ 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 - def autocorrect(node); end +class RuboCop::Cop::Style::ArrayJoin < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def join_candidate?(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Style::ArrayJoin::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::AsciiComments < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::AsciiComments < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) - def investigate(processed_source); end + def on_new_investigation; end private @@ -6152,22 +6378,23 @@ end RuboCop::Cop::Style::AsciiComments::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::Attr < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def class_eval?(node = T.unsafe(nil)); end def on_send(node); end private + def autocorrect(corrector, node); end def message(node); end def replacement_method(node); end end RuboCop::Cop::Style::Attr::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::AutoResourceCleanup < ::RuboCop::Cop::Base def on_send(node); end private @@ -6179,10 +6406,10 @@ RuboCop::Cop::Style::AutoResourceCleanup::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::AutoResourceCleanup::TARGET_METHODS = T.let(T.unsafe(nil), Hash) -class RuboCop::Cop::Style::BarePercentLiterals < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::BarePercentLiterals < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_dstr(node); end def on_str(node); end @@ -6196,16 +6423,16 @@ end RuboCop::Cop::Style::BarePercentLiterals::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::BeginBlock < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::BeginBlock < ::RuboCop::Cop::Base def on_preexe(node); end end 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::Base include(::RuboCop::Cop::VisibilityHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_class(class_node); end def on_module(class_node); end def on_sclass(class_node); end @@ -6226,11 +6453,11 @@ end RuboCop::Cop::Style::BisectedAttrAccessor::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::BlockComments < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::BlockComments < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(comment); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -6244,17 +6471,18 @@ RuboCop::Cop::Style::BlockComments::END_LENGTH = T.let(T.unsafe(nil), Integer) RuboCop::Cop::Style::BlockComments::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::IgnoredMethods) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def on_send(node); end private def array_or_range?(node); end + def autocorrect(corrector, node); end def braces_for_chaining_message(node); end def braces_for_chaining_style?(node); end def braces_required_message(node); end @@ -6272,8 +6500,8 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Cop def procedural_method?(method_name); end def procedural_oneliners_may_have_braces?; end def proper_block_style?(node); end - def replace_braces_with_do_end(loc); end - def replace_do_end_with_braces(loc); end + def replace_braces_with_do_end(corrector, loc); end + def replace_do_end_with_braces(corrector, loc); end def return_value_of_scope?(node); end def return_value_used?(node); end def semantic_block_style?(node); end @@ -6304,25 +6532,29 @@ class RuboCop::Cop::Style::CaseCorrector end end -class RuboCop::Cop::Style::CaseEquality < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::CaseEquality < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def case_equality?(node = T.unsafe(nil)); end def on_send(node); end private def const?(node); end + def replacement(lhs, rhs); end end RuboCop::Cop::Style::CaseEquality::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_if(node); end private + def autocorrect(corrector, node); end def branch_conditions(node); end def collect_conditions(node, target, conditions); end def condition_from_binary_op(lhs, rhs, target); end @@ -6351,17 +6583,18 @@ end RuboCop::Cop::Style::CharacterLiteral::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_class(node); end def on_module(node); end private def add_trailing_end(corrector, node, padding); end + def autocorrect(corrector, node); end def check_compact_style(node, body); end def check_nested_style(node); end def check_style(node, body); end @@ -6383,10 +6616,10 @@ RuboCop::Cop::Style::ClassAndModuleChildren::COMPACT_MSG = T.let(T.unsafe(nil), RuboCop::Cop::Style::ClassAndModuleChildren::NESTED_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def class_check?(node = T.unsafe(nil)); end def message(node); end def on_send(node); end @@ -6394,31 +6627,30 @@ end RuboCop::Cop::Style::ClassCheck::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::ClassMethods < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_class(node); end def on_module(node); end private def check_defs(name, node); end - def message(node); end end RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ClassVars < ::RuboCop::Cop::Cop - def message(node); end +class RuboCop::Cop::Style::ClassVars < ::RuboCop::Cop::Base def on_cvasgn(node); end def on_send(node); end end RuboCop::Cop::Style::ClassVars::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::CollectionMethods < ::RuboCop::Cop::Base include(::RuboCop::Cop::MethodPreference) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def on_send(node); end @@ -6430,8 +6662,9 @@ end RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::ColonMethodCall < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def java_type_node?(node = T.unsafe(nil)); end def on_send(node); end @@ -6442,17 +6675,18 @@ end RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ColonMethodDefinition < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::ColonMethodDefinition < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_defs(node); end end RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_xstr(node); end private @@ -6460,14 +6694,14 @@ class RuboCop::Cop::Style::CommandLiteral < ::RuboCop::Cop::Cop def allow_inner_backticks?; end def allowed_backtick_literal?(node); end def allowed_percent_x_literal?(node); end + def autocorrect(corrector, node); end def backtick_literal?(node); end - def check_backtick_literal(node); end - def check_percent_x_literal(node); end + def check_backtick_literal(node, message); end + def check_percent_x_literal(node, message); end def command_delimiter; end def contains_backtick?(node); end def contains_disallowed_backtick?(node); end def default_delimiter; end - def message(node); end def node_body(node); end def preferred_delimiter; end def preferred_delimiters_config; end @@ -6477,12 +6711,12 @@ RuboCop::Cop::Style::CommandLiteral::MSG_USE_BACKTICKS = T.let(T.unsafe(nil), St RuboCop::Cop::Style::CommandLiteral::MSG_USE_PERCENT_X = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Base include(::RuboCop::Cop::Style::AnnotationComment) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(comment); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -6491,6 +6725,7 @@ class RuboCop::Cop::Style::CommentAnnotation < ::RuboCop::Cop::Cop def correct_annotation?(first_word, colon, space, note); end def first_comment_line?(comments, index); end def inline_comment?(comment); end + def register_offense(range, note, first_word); end end RuboCop::Cop::Style::CommentAnnotation::MISSING_NOTE = T.let(T.unsafe(nil), String) @@ -6595,6 +6830,7 @@ module RuboCop::Cop::Style::ConditionalAssignmentHelper def assignment_rhs_exist?(node); end def expand_elsif(node, elsif_branches = T.unsafe(nil)); end + def lhs_for_casgn(node); end def lhs_for_send(node); end def setter_method?(method_name); end end @@ -6616,7 +6852,7 @@ module RuboCop::Cop::Style::ConditionalCorrectorHelper def white_space_range(node, column); end end -class RuboCop::Cop::Style::ConstantVisibility < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ConstantVisibility < ::RuboCop::Cop::Base def on_casgn(node); end def visibility_declaration_for?(node = T.unsafe(nil), param1); end @@ -6630,11 +6866,11 @@ end RuboCop::Cop::Style::ConstantVisibility::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(token); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -6643,6 +6879,7 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Cop def insert_notice_before(processed_source); end def notice; end def notice_found?(processed_source); end + def offense_range; end def shebang_token?(processed_source, token_index); end def verify_autocorrect_notice!; end end @@ -6651,7 +6888,7 @@ RuboCop::Cop::Style::Copyright::AUTOCORRECT_EMPTY_WARNING = T.let(T.unsafe(nil), RuboCop::Cop::Style::Copyright::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base def date_time?(node = T.unsafe(nil)); end def historic_date?(node = T.unsafe(nil)); end def on_send(node); end @@ -6666,16 +6903,18 @@ RuboCop::Cop::Style::DateTime::CLASS_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::DateTime::COERCION_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::DefWithParentheses < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_def(node); end def on_defs(node); end end RuboCop::Cop::Style::DefWithParentheses::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Dir < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::Dir < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def dir_replacement?(node = T.unsafe(nil)); end def on_send(node); end @@ -6686,9 +6925,10 @@ end RuboCop::Cop::Style::Dir::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Cop - def autocorrect(comment); end - def investigate(processed_source); end +class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def on_new_investigation; end private @@ -6697,7 +6937,7 @@ end RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Base include(::RuboCop::Cop::Style::AnnotationComment) include(::RuboCop::Cop::DocumentationComment) @@ -6714,13 +6954,13 @@ class RuboCop::Cop::Style::Documentation < ::RuboCop::Cop::Cop def constant_declaration?(node); end def namespace?(node); end def nodoc(node); end - def nodoc?(comment, require_all = T.unsafe(nil)); end - def nodoc_comment?(node, require_all = T.unsafe(nil)); end + def nodoc?(comment, require_all: T.unsafe(nil)); end + def nodoc_comment?(node, require_all: T.unsafe(nil)); end end RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base include(::RuboCop::Cop::Style::AnnotationComment) include(::RuboCop::Cop::DocumentationComment) include(::RuboCop::Cop::DefNode) @@ -6737,14 +6977,15 @@ end RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::DoubleCopDisableDirective < ::RuboCop::Cop::Cop - def autocorrect(comment); end - def investigate(processed_source); end +class RuboCop::Cop::Style::DoubleCopDisableDirective < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def on_new_investigation; end end RuboCop::Cop::Style::DoubleCopDisableDirective::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def double_negative?(node = T.unsafe(nil)); end @@ -6759,24 +7000,26 @@ end RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def offending_each_range(node = T.unsafe(nil)); end def on_block(node); end end RuboCop::Cop::Style::EachForSimpleLoop::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::EachWithObject < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def each_with_object_candidate?(node = T.unsafe(nil)); end def on_block(node); end private def accumulator_param_assigned_to?(body, args); end + def autocorrect(corrector, node, return_value); end def first_argument_returned?(args, return_value); end def return_value(body); end def return_value_occupies_whole_line?(node); end @@ -6798,37 +7041,38 @@ end RuboCop::Cop::Style::EmptyBlockParameter::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(case_node); end def on_case(case_node); end private + def autocorrect(corrector, case_node); end def correct_case_when(corrector, case_node, when_nodes); end def correct_when_conditions(corrector, when_nodes); end - def keep_first_when_comment(case_node, first_when_node, corrector); end + def keep_first_when_comment(case_range, corrector); end end RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EmptyElse < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::EmptyElse < ::RuboCop::Cop::Base include(::RuboCop::Cop::OnNormalIfUnless) include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_case(node); end def on_normal_if_unless(node); end private + def autocorrect(corrector, node); end def autocorrect_forbidden?(type); end def base_node(node); end def check(node); end - def comment_in_else?(node); end - def else_line_range(loc); end + def comment_in_else?(loc); end def empty_check(node); end def empty_style?; end def missing_else_style; end @@ -6848,13 +7092,13 @@ end RuboCop::Cop::Style::EmptyLambdaParameter::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Base include(::RuboCop::Cop::FrozenStringLiteral) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) def array_node(node = T.unsafe(nil)); end def array_with_block(node = T.unsafe(nil)); end - def autocorrect(node); end def hash_node(node = T.unsafe(nil)); end def hash_with_block(node = T.unsafe(nil)); end def on_send(node); end @@ -6867,6 +7111,7 @@ class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Cop def first_argument_unparenthesized?(node); end def offense_array_node?(node); end def offense_hash_node?(node); end + def offense_message(node); end def preferred_string_literal; end def replacement_range(node); end def string_literals_config; end @@ -6878,10 +7123,10 @@ RuboCop::Cop::Style::EmptyLiteral::HASH_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::EmptyLiteral::STR_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_def(node); end def on_defs(node); end @@ -6894,18 +7139,18 @@ class RuboCop::Cop::Style::EmptyMethod < ::RuboCop::Cop::Cop def expanded?(node); end def expanded_style?; end def joint(node); end - def message(_node); end + def message(_range); end end RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::Encoding < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(range); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -6920,22 +7165,23 @@ RuboCop::Cop::Style::Encoding::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::Encoding::SHEBANG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EndBlock < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::EndBlock < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_postexe(node); end end RuboCop::Cop::Style::EndBlock::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base def eval_without_location?(node = T.unsafe(nil)); end def line_with_offset?(node = T.unsafe(nil), param1, param2); end def on_send(node); end private - def add_offense_for_different_line(node, line_node, line_diff); end - def add_offense_for_same_line(node, line_node); end + def add_offense_for_different_line(_node, line_node, line_diff); end + def add_offense_for_same_line(_node, line_node); end def message_incorrect_line(actual, sign, line_diff); end def on_with_lineno(node, code); end def special_file_keyword?(node); end @@ -6944,12 +7190,15 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Cop def with_lineno?(node); end end +RuboCop::Cop::Style::EvalWithLocation::EVAL_METHODS = T.let(T.unsafe(nil), Set) + RuboCop::Cop::Style::EvalWithLocation::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::EvalWithLocation::MSG_INCORRECT_LINE = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::EvenOdd < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::EvenOdd < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def even_odd_candidate?(node = T.unsafe(nil)); end def on_send(node); end @@ -6960,10 +7209,10 @@ end RuboCop::Cop::Style::EvenOdd::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def file_expand_path(node = T.unsafe(nil)); end def on_send(node); end def pathname_new_parent_expand_path(node = T.unsafe(nil)); end @@ -6972,6 +7221,7 @@ class RuboCop::Cop::Style::ExpandPathArguments < ::RuboCop::Cop::Cop private def arguments_range(node); end + def autocorrect(corrector, node); end def autocorrect_expand_path(corrector, current_path, default_dir); end def depth(current_path); end def inspect_offense_for_expand_path(node, current_path, default_dir); end @@ -6987,7 +7237,25 @@ RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_MSG = T.let(T.unsafe(nil), St RuboCop::Cop::Style::ExpandPathArguments::PATHNAME_NEW_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ExplicitBlockArgument < ::RuboCop::Cop::Base + include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) + + def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end + + def on_yield(node); end + def yielding_block?(node = T.unsafe(nil)); end + + private + + def add_block_argument(node, corrector); end + def block_body_range(block_node, send_node); end + def yielding_arguments?(block_args, yield_args); end +end + +RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Style::ExponentialNotation < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def on_float(node); end @@ -7003,7 +7271,7 @@ 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def any_coerce?(node = T.unsafe(nil)); end @@ -7020,11 +7288,11 @@ 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::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def on_for(node); end @@ -7039,25 +7307,28 @@ RuboCop::Cop::Style::For::PREFER_EACH = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::For::PREFER_FOR = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::FormatString < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def formatter(node = T.unsafe(nil)); end - def message(detected_style); end - def method_name(style_name); end def on_send(node); end def variable_argument?(node = T.unsafe(nil)); end private + def autocorrect(corrector, node); end def autocorrect_from_percent(corrector, node); end def autocorrect_to_percent(corrector, node); end + def message(detected_style); end + def method_name(style_name); end end +RuboCop::Cop::Style::FormatString::FORMAT_METHODS = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Style::FormatString::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) def format_string_in_typical_context?(node = T.unsafe(nil)); end @@ -7073,13 +7344,13 @@ class RuboCop::Cop::Style::FormatStringToken < ::RuboCop::Cop::Cop def unannotated_format?(node, detected_style); end end -class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::FrozenStringLiteralComment < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::FrozenStringLiteral) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end - def investigate(processed_source); end + def on_new_investigation; end private @@ -7110,7 +7381,23 @@ RuboCop::Cop::Style::FrozenStringLiteralComment::MSG_UNNECESSARY = T.let(T.unsaf RuboCop::Cop::Style::FrozenStringLiteralComment::SHEBANG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::GlobalVars < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::GlobalStdStream < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def const_to_gvar_assignment?(node = T.unsafe(nil), param1); end + def on_const(node); end + + private + + def gvar_name(const_name); end + def message(const_name); end +end + +RuboCop::Cop::Style::GlobalStdStream::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::GlobalStdStream::STD_STREAMS = T.let(T.unsafe(nil), Set) + +class RuboCop::Cop::Style::GlobalVars < ::RuboCop::Cop::Base def allowed_var?(global_var); end def check(node); end def on_gvar(node); end @@ -7122,7 +7409,7 @@ RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base include(::RuboCop::Cop::MinBodyLength) include(::RuboCop::Cop::LineLengthHelp) include(::RuboCop::Cop::StatementModifier) @@ -7133,7 +7420,7 @@ class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Cop private - def accepted_form?(node, ending = T.unsafe(nil)); end + def accepted_form?(node, ending: T.unsafe(nil)); end def accepted_if?(node, ending); end def check_ending_if(node); end def guard_clause_source(guard_clause); end @@ -7155,12 +7442,13 @@ class RuboCop::Cop::Style::HashAsLastArrayItem < ::RuboCop::Cop::Base def braces_style?; end def check_braces(node); end def check_no_braces(node); end + def last_array_item?(node); end end -class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base include(::RuboCop::Cop::Lint::UnusedArgument) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def kv_each(node = T.unsafe(nil)); end def on_block(node); end @@ -7221,9 +7509,10 @@ RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Base include(::RuboCop::Cop::HashTransformMethod) extend(::RuboCop::Cop::TargetRubyVersion) + extend(::RuboCop::Cop::AutoCorrector) def on_bad_each_with_object(node = T.unsafe(nil)); end def on_bad_hash_brackets_map(node = T.unsafe(nil)); end @@ -7235,8 +7524,9 @@ class RuboCop::Cop::Style::HashTransformKeys < ::RuboCop::Cop::Cop def new_method_name; end end -class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Base include(::RuboCop::Cop::HashTransformMethod) + extend(::RuboCop::Cop::AutoCorrector) def on_bad_each_with_object(node = T.unsafe(nil)); end def on_bad_hash_brackets_map(node = T.unsafe(nil)); end @@ -7248,7 +7538,7 @@ class RuboCop::Cop::Style::HashTransformValues < ::RuboCop::Cop::Cop def new_method_name; end end -class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Base def on_case(node); end def on_if(node); end @@ -7279,7 +7569,7 @@ class RuboCop::Cop::Style::IfCorrector end end -class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Base def on_if(node); end private @@ -7290,25 +7580,24 @@ end RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include(::RuboCop::Cop::LineLengthHelp) include(::RuboCop::Cop::StatementModifier) include(::RuboCop::Cop::IgnoredPattern) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_if(node); end private def another_statement_on_same_line?(node); end + def autocorrect(corrector, node); end def first_line_comment(node); end def ignored_patterns; end def line_length_enabled_at_line?(line); end def named_capture_in_condition?(node); end def non_eligible_node?(node); end def non_simple_if_unless?(node); end - def parenthesize?(node); end - def to_modifier_form(node); end def to_normal_form(node); end def too_long_due_to_modifier?(node); end def too_long_line_based_on_allow_uri?(line); end @@ -7321,20 +7610,20 @@ RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_MODIFIER = T.let(T.unsafe(nil), S RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base include(::RuboCop::Cop::LineLengthHelp) include(::RuboCop::Cop::StatementModifier) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_if(node); end end RuboCop::Cop::Style::IfUnlessModifierOfIfUnless::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::IfWithSemicolon < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::IfWithSemicolon < ::RuboCop::Cop::Base include(::RuboCop::Cop::OnNormalIfUnless) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_normal_if_unless(node); end private @@ -7344,17 +7633,17 @@ end RuboCop::Cop::Style::IfWithSemicolon::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ImplicitRuntimeError < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ImplicitRuntimeError < ::RuboCop::Cop::Base def implicit_runtime_error_raise_or_fail(node = T.unsafe(nil)); end def on_send(node); end end RuboCop::Cop::Style::ImplicitRuntimeError::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def after_leaving_scope(scope, _variable_table); end - def autocorrect(node); end - def join_force?(force_class); end def on_until(node); end def on_until_post(node); end def on_while(node); end @@ -7364,32 +7653,34 @@ class RuboCop::Cop::Style::InfiniteLoop < ::RuboCop::Cop::Cop def assigned_before_loop?(var, range); end def assigned_inside_loop?(var, range); end + def autocorrect(corrector, node); end def configured_indent; end def modifier_replacement(node); end def non_modifier_range(node); end def referenced_after_loop?(var, range); end - def replace_begin_end_with_modifier(node); end - def replace_source(range, replacement); end + def replace_begin_end_with_modifier(corrector, node); end + def replace_source(corrector, range, replacement); end def while_or_until(node); end + + class << self + def joining_forces; end + end end RuboCop::Cop::Style::InfiniteLoop::LEADING_SPACE = T.let(T.unsafe(nil), Regexp) RuboCop::Cop::Style::InfiniteLoop::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::InlineComment < ::RuboCop::Cop::Cop - def investigate(processed_source); end +class RuboCop::Cop::Style::InlineComment < ::RuboCop::Cop::Base + def on_new_investigation; end end RuboCop::Cop::Style::InlineComment::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end - def correct_inverse_block(node); end - def correct_inverse_method(node); end - def correct_inverse_selector(block, corrector); end def inverse_block?(node = T.unsafe(nil)); end def inverse_candidate?(node = T.unsafe(nil)); end def on_block(node); end @@ -7398,10 +7689,14 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Cop private def camel_case_constant?(node); end + def correct_inverse_block(corrector, node); end + def correct_inverse_method(corrector, node); end + def correct_inverse_selector(block, corrector); end def dot_range(loc); end def end_parentheses(node, method_call); end def inverse_blocks; end def inverse_methods; end + def message(method, inverse); end def negated?(node); end def not_to_receiver(node, method_call); end def possible_class_hierarchy_check?(lhs, rhs, method); end @@ -7441,10 +7736,10 @@ RuboCop::Cop::Style::IpAddresses::IPV6_MAX_SIZE = T.let(T.unsafe(nil), Integer) RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::Lambda < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_block(node); end def on_numblock(node); end @@ -7464,10 +7759,11 @@ RuboCop::Cop::Style::Lambda::METHOD_MESSAGE = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::Lambda::OFFENDING_SELECTORS = T.let(T.unsafe(nil), Hash) -class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end + def autocorrect(corrector, node); end def on_send(node); end private @@ -7478,14 +7774,15 @@ class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Cop def offense?(node); end end -class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(operator_range); end - def investigate(processed_source); end + def on_new_investigation; end private + def autocorrect(corrector, operator_range); end def check_token_set(index); end def eligible_next_successor?(next_successor); end def eligible_operator?(operator); end @@ -7514,10 +7811,11 @@ RuboCop::Cop::Style::LineEndConcatenation::QUOTE_DELIMITERS = T.let(T.unsafe(nil RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.unsafe(nil), Symbol) -class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::IgnoredMethods) include(::RuboCop::Cop::IgnoredPattern) + extend(::RuboCop::Cop::AutoCorrector) def initialize(*_); end @@ -7531,8 +7829,6 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Cop end module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses - def autocorrect(node); end - def message(_node = T.unsafe(nil)); end def on_csend(node); end def on_send(node); end def on_super(node); end @@ -7549,12 +7845,15 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses def call_in_literals?(node); end def call_in_logical_operators?(node); end def call_in_optional_arguments?(node); end + def call_in_single_line_inheritance?(node); end def call_with_ambiguous_arguments?(node); end def call_with_braced_block?(node); end def hash_literal?(node); end def hash_literal_in_arguments?(node); end def legitimate_call_with_parentheses?(node); end def logical_operator?(node); end + def message(_range = T.unsafe(nil)); end + def offense_range(node); end def parentheses_at_the_end_of_multiline_call?(node); end def regexp_slash_literal?(node); end def splat?(node); end @@ -7566,7 +7865,6 @@ end RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses::TRAILING_WHITESPACE_REGEX = T.let(T.unsafe(nil), Regexp) module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses - def autocorrect(node); end def message(_node = T.unsafe(nil)); end def on_csend(node); end def on_send(node); end @@ -7580,23 +7878,24 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses def included_macros_list; end end -class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Base include(::RuboCop::Cop::IgnoredMethods) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_send(node); end private def any_assignment?(node); end def ineligible_node?(node); end + def offense_range(node); end def same_name_assignment?(node); end def variable_in_mass_assignment?(variable_name, node); end end RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) def on_block(node); end @@ -7606,11 +7905,11 @@ end RuboCop::Cop::Style::MethodCalledOnDoEndBlock::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_def(node); end def on_defs(node); end @@ -7628,15 +7927,9 @@ RuboCop::Cop::Style::MethodDefParentheses::MSG_MISSING = T.let(T.unsafe(nil), St RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MethodMissingSuper < ::RuboCop::Cop::Cop - def on_def(node); end - def on_defs(node); end -end +class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) -RuboCop::Cop::Style::MethodMissingSuper::MSG = T.let(T.unsafe(nil), String) - -class RuboCop::Cop::Style::MinMax < ::RuboCop::Cop::Cop - def autocorrect(node); end def min_max_candidate(node = T.unsafe(nil)); end def on_array(node); end def on_return(node); end @@ -7650,7 +7943,7 @@ end RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base include(::RuboCop::Cop::OnNormalIfUnless) include(::RuboCop::Cop::ConfigurableEnforcedStyle) @@ -7665,7 +7958,7 @@ class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Cop def empty_else_cop_enabled?; end def empty_else_style; end def if_style?; end - def message(node); end + def message_template; end def unless_else_config; end def unless_else_cop_enabled?; end end @@ -7676,7 +7969,7 @@ RuboCop::Cop::Style::MissingElse::MSG_EMPTY = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::MissingElse::MSG_NIL = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MissingRespondToMissing < ::RuboCop::Cop::Base def on_def(node); end def on_defs(node); end @@ -7687,10 +7980,10 @@ end RuboCop::Cop::Style::MissingRespondToMissing::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_class(node); end def on_module(node); end @@ -7702,7 +7995,6 @@ class RuboCop::Cop::Style::MixinGrouping < ::RuboCop::Cop::Cop def group_mixins(node, mixins); end def grouped_style?; end def indent(node); end - def message(send_node); end def range_to_remove_for_subsequent_mixin(mixins, node); end def separate_mixins(node); end def separated_style?; end @@ -7713,7 +8005,7 @@ RuboCop::Cop::Style::MixinGrouping::MIXIN_METHODS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Style::MixinGrouping::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MixinUsage < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MixinUsage < ::RuboCop::Cop::Base def include_statement(node = T.unsafe(nil)); end def on_send(node); end def wrapped_macro_scope?(node = T.unsafe(nil)); end @@ -7727,10 +8019,10 @@ end RuboCop::Cop::Style::MixinUsage::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def extend_self_node?(node = T.unsafe(nil)); end def module_function_node?(node = T.unsafe(nil)); end def on_module(node); end @@ -7742,7 +8034,7 @@ class RuboCop::Cop::Style::ModuleFunction < ::RuboCop::Cop::Cop def check_forbidden(nodes); end def check_module_function(nodes); end def each_wrong_style(nodes, &block); end - def message(_node); end + def message(_range); end end RuboCop::Cop::Style::ModuleFunction::EXTEND_SELF_MSG = T.let(T.unsafe(nil), String) @@ -7759,29 +8051,28 @@ end RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base include(::RuboCop::Cop::LineLengthHelp) include(::RuboCop::Cop::StatementModifier) include(::RuboCop::Cop::Alignment) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_if(node); end private def configured_indentation_width; end def indented_body(body, node); end - def message(node); end def to_normal_if(node); end end RuboCop::Cop::Style::MultilineIfModifier::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MultilineIfThen < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MultilineIfThen < ::RuboCop::Cop::Base include(::RuboCop::Cop::OnNormalIfUnless) include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_normal_if_unless(node); end private @@ -7793,10 +8084,11 @@ RuboCop::Cop::Style::MultilineIfThen::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::MultilineIfThen::NON_MODIFIER_THEN = T.let(T.unsafe(nil), Regexp) -class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end + def message(_node); end def on_or_asgn(node); end private @@ -7807,9 +8099,11 @@ class RuboCop::Cop::Style::MultilineMemoization < ::RuboCop::Cop::Cop def keyword_end_str(node, node_buf); end end -RuboCop::Cop::Style::MultilineMemoization::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::MultilineMemoization::BRACES_MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Cop +RuboCop::Cop::Style::MultilineMemoization::KEYWORD_MSG = T.let(T.unsafe(nil), String) + +class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base def on_def(node); end def on_defs(node); end @@ -7825,25 +8119,29 @@ end RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Cop - def autocorrect(node); end +class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + def on_if(node); end end RuboCop::Cop::Style::MultilineTernaryOperator::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MultilineWhenThen < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) + extend(::RuboCop::Cop::AutoCorrector) + + def on_when(node); end + + private def accept_node_type?(node); end - def autocorrect(node); end - def on_when(node); end def require_then?(when_node); end end RuboCop::Cop::Style::MultilineWhenThen::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MultipleComparison < ::RuboCop::Cop::Base def on_or(node); end def simple_comparison?(node = T.unsafe(nil)); end def simple_double_comparison?(node = T.unsafe(nil)); end @@ -7861,11 +8159,11 @@ end RuboCop::Cop::Style::MultipleComparison::MSG = T.let(T.unsafe(nil), String) -class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Cop +class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base include(::RuboCop::Cop::FrozenStringLiteral) include(::RuboCop::Cop::ConfigurableEnforcedStyle) + extend(::RuboCop::Cop::AutoCorrector) - def autocorrect(node); end def on_casgn(node); end def on_or_asgn(node); end def operation_produces_immutable_object?(node = T.unsafe(nil)); end @@ -7874,6 +8172,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Cop private + def autocorrect(corrector, node); end def check(value); end def correct_splat_expansion(corrector, expr, splat_value); end def frozen_string_literal?(node); end @@ -8153,6 +8452,8 @@ class RuboCop::Cop::Style::NumericPredicate < ::RuboCop::Cop::Cop def require_parentheses?(node); end end +RuboCop::Cop::Style::NumericPredicate::COMPARISON_METHODS = T.let(T.unsafe(nil), Set) + RuboCop::Cop::Style::NumericPredicate::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::NumericPredicate::REPLACEMENTS = T.let(T.unsafe(nil), Hash) @@ -8200,6 +8501,15 @@ end RuboCop::Cop::Style::OptionalArguments::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Style::OptionalBooleanParameter < ::RuboCop::Cop::Base + def on_def(node); end + def on_defs(node); end +end + +RuboCop::Cop::Style::OptionalBooleanParameter::BOOLEAN_TYPES = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Style::OptionalBooleanParameter::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Style::OrAssignment < ::RuboCop::Cop::Cop def autocorrect(node); end def on_cvasgn(node); end @@ -8247,7 +8557,7 @@ class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter def dependency?(lhs, rhs); end def matching_calls(node0, param1, param2); end def tsort_each_child(assignment); end - def tsort_each_node; end + def tsort_each_node(&block); end def uses_var?(node0, param1); end def var_name(node = T.unsafe(nil)); end end @@ -8494,7 +8804,9 @@ class RuboCop::Cop::Style::RedundantCondition < ::RuboCop::Cop::Cop def message(node); end def offense?(node); end def range_of_offense(node); end + def require_parentheses?(node); end def use_if_branch?(else_branch); end + def without_argument_parentheses_method?(node); end end RuboCop::Cop::Style::RedundantCondition::MSG = T.let(T.unsafe(nil), String) @@ -8537,6 +8849,8 @@ RuboCop::Cop::Style::RedundantException::MSG_1 = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::RedundantException::MSG_2 = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::RedundantException::RAISE_METHODS = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Cop include(::RuboCop::Cop::FrozenStringLiteral) include(::RuboCop::Cop::RangeHelp) @@ -8808,12 +9122,16 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Cop def arg_value(node); end def base(accessor, arg); end def message(node, sorter, accessor); end + def offense_range(sort_node, ancestor); end + def sort_method?(node); end def suffix(sorter); end def suggestion(sorter, accessor, arg); end end RuboCop::Cop::Style::RedundantSort::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::RedundantSort::SORT_METHODS = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::RedundantSortBy < ::RuboCop::Cop::Cop include(::RuboCop::Cop::RangeHelp) @@ -9040,6 +9358,15 @@ RuboCop::Cop::Style::SignalException::FAIL_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Style::SingleArgumentDig < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def on_send(node); end + def single_argument_dig?(node = T.unsafe(nil)); end +end + +RuboCop::Cop::Style::SingleArgumentDig::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Style::SingleLineBlockParams < ::RuboCop::Cop::Cop def on_block(node); end @@ -9149,6 +9476,23 @@ end RuboCop::Cop::Style::StderrPuts::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def on_send(node); end + def string_concatenation?(node = T.unsafe(nil)); end + + private + + def collect_parts(node, parts); end + def find_topmost_plus_node(node); end + def plus_node?(node); end + def replacement(parts); end + def single_quoted?(str_node); end +end + +RuboCop::Cop::Style::StringConcatenation::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Style::StringHashKeys < ::RuboCop::Cop::Cop def autocorrect(node); end def on_pair(node); end @@ -9646,6 +9990,8 @@ class RuboCop::Cop::Style::ZeroLengthPredicate < ::RuboCop::Cop::Cop def replacement(node); end end +RuboCop::Cop::Style::ZeroLengthPredicate::LENGTH_METHODS = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Style::ZeroLengthPredicate::NONZERO_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::ZeroLengthPredicate::ZERO_MSG = T.let(T.unsafe(nil), String) @@ -9660,8 +10006,6 @@ module RuboCop::Cop::SurroundingSpace def empty_offense(node, range, message, command); end def empty_offenses(node, left, right, message); end def extra_space?(token, side); end - def index_of_first_token(node); end - def index_of_last_token(node); end def no_space_between?(left_bracket_token, right_bracket_token); end def no_space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end def offending_empty_no_space?(config, left_token, right_token); end @@ -9672,7 +10016,6 @@ module RuboCop::Cop::SurroundingSpace def space_between?(left_bracket_token, right_bracket_token); end def space_offense(node, token, side, message, command); end def space_offenses(node, left_token, right_token, message, start_ok: T.unsafe(nil), end_ok: T.unsafe(nil)); end - def token_table; end end RuboCop::Cop::SurroundingSpace::NO_SPACE_COMMAND = T.let(T.unsafe(nil), String) @@ -9728,19 +10071,6 @@ class RuboCop::Cop::Team end end -module RuboCop::Cop::TooManyLines - include(::RuboCop::Cop::ConfigurableMax) - include(::RuboCop::Cop::CodeLength) - - - private - - def code_length(node); end - def message(length, max_length); end -end - -RuboCop::Cop::TooManyLines::MSG = T.let(T.unsafe(nil), String) - module RuboCop::Cop::TrailingBody def body_on_first_line?(node, body); end def first_part_of(body); end @@ -9812,14 +10142,15 @@ class RuboCop::Cop::UnusedArgCorrector extend(::RuboCop::Cop::RangeHelp) class << self - def correct(processed_source, node); end - def correct_for_blockarg_type(node); end + def correct(corrector, processed_source, node); end + def correct_for_blockarg_type(corrector, node); end def processed_source; end end end module RuboCop::Cop::Util include(::RuboCop::PathUtil) + include(::RuboCop::TokensUtil) private @@ -9842,7 +10173,6 @@ module RuboCop::Cop::Util def same_line?(node1, node2); end def to_string_literal(string); end def to_supported_styles(enforced_style); end - def tokens(node); end def trim_string_interporation_escape_character(str); end class << self @@ -9863,7 +10193,6 @@ module RuboCop::Cop::Util def same_line?(node1, node2); end def to_string_literal(string); end def to_supported_styles(enforced_style); end - def tokens(node); end def trim_string_interporation_escape_character(str); end end end @@ -10563,9 +10892,9 @@ RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(ni RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) -RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter) +RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::NullPresenter) -RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter) +RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::NullPresenter) class RuboCop::Formatter::ProgressFormatter < ::RuboCop::Formatter::ClangStyleFormatter include(::RuboCop::Formatter::TextUtil) @@ -10809,16 +11138,20 @@ module RuboCop::PathUtil def absolute?(path); end def hidden_dir?(path); end + def hidden_file?(path); end def hidden_file_in_not_hidden_dir?(pattern, path); end def match_path?(pattern, path); end + def maybe_hidden_file?(path); end def relative_path(path, base_dir = T.unsafe(nil)); end def smart_path(path); end class << self def absolute?(path); end def hidden_dir?(path); end + def hidden_file?(path); end def hidden_file_in_not_hidden_dir?(pattern, path); end def match_path?(pattern, path); end + def maybe_hidden_file?(path); end def relative_path(path, base_dir = T.unsafe(nil)); end def smart_path(path); end end @@ -11048,12 +11381,31 @@ end RuboCop::Token = RuboCop::AST::Token +module RuboCop::TokensUtil + + private + + def fast_index_of_first_token(node); end + def fast_index_of_last_token(node); end + def fast_tokens(node); end + def index_of_first_token(node); end + def index_of_last_token(node); end + def sorted_tokens?(tokens); end + def tokens(node); end + + class << self + def index_of_first_token(node); end + def index_of_last_token(node); end + def tokens(node); end + end +end + class RuboCop::ValidationError < ::RuboCop::Error end module RuboCop::Version class << self - def version(debug = T.unsafe(nil)); end + def version(debug: T.unsafe(nil)); end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/simplecov@0.18.5.rbi b/Library/Homebrew/sorbet/rbi/gems/simplecov@0.19.0.rbi similarity index 59% rename from Library/Homebrew/sorbet/rbi/gems/simplecov@0.18.5.rbi rename to Library/Homebrew/sorbet/rbi/gems/simplecov@0.19.0.rbi index 1b380080bf..36cfe482f5 100644 --- a/Library/Homebrew/sorbet/rbi/gems/simplecov@0.18.5.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/simplecov@0.19.0.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `simplecov` gem. -# Please instead update this file by running `tapioca generate --exclude json`. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index ca6c39655c..d509f4aef0 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -2980,6 +2980,10 @@ end BasicObject::BasicObject = BasicObject +class BasicSocket + def read_nonblock(len, str=T.unsafe(nil), exception: T.unsafe(nil)); end +end + class Benchmark::Job def initialize(width); end end @@ -3516,6 +3520,7 @@ class Bundler::Retry end class Bundler::RubyGemsGemInstaller + def initialize(gem, options=T.unsafe(nil)); end end class Bundler::RubyGemsGemInstaller @@ -5451,22 +5456,12 @@ end class Cask::Audit def appcast?(); end -end -class Cask::Auditor - def audit_appcast?(); end + def new_cask?(); end - def audit_download?(); end + def online?(); end - def audit_new_cask?(); end - - def audit_online?(); end - - def audit_strict?(); end - - def audit_token_conflicts?(); end - - def quarantine?(); end + def strict?(); end end class Cask::Cask @@ -5559,115 +5554,6 @@ class Cask::Cask def zap(&block); end end -class Cask::Cmd::AbstractCommand - include ::Homebrew::Search::Extension - def binaries=(value); end - - def binaries?(); end - - def debug=(value); end - - def debug?(); end - - def outdated_only=(value); end - - def outdated_only?(); end - - def quarantine=(value); end - - def quarantine?(); end - - def require_sha=(value); end - - def require_sha?(); end - - def verbose=(value); end - - def verbose?(); end -end - -class Cask::Cmd::AbstractCommand - extend ::Cask::Cmd::Options::ClassMethods -end - -class Cask::Cmd::Install - def force=(value); end - - def force?(); end - - def skip_cask_deps=(value); end - - def skip_cask_deps?(); end -end - -class Cask::Cmd::InternalStanza - def inspect=(value); end - - def inspect?(); end - - def quiet=(value); end - - def quiet?(); end - - def table=(value); end - - def table?(); end - - def yaml=(value); end - - def yaml?(); end -end - -class Cask::Cmd::List - def full_name=(value); end - - def full_name?(); end - - def json=(value); end - - def json?(); end - - def one=(value); end - - def one?(); end - - def versions=(value); end - - def versions?(); end -end - -class Cask::Cmd::Outdated - def greedy=(value); end - - def greedy?(); end - - def json=(value); end - - def json?(); end - - def quiet=(value); end - - def quiet?(); end -end - -class Cask::Cmd::Style - def fix=(value); end - - def fix?(); end -end - -class Cask::Cmd::Uninstall - def force=(value); end - - def force?(); end -end - -class Cask::Cmd::Zap - def force=(value); end - - def force?(); end -end - class Cask::Config def appdir(); end @@ -5854,6 +5740,12 @@ class Cask::DSL::Version def underscores_to_hyphens(); end end +class Caveats + def empty?(*args, &block); end + + def to_s(*args, &block); end +end + class Checksum def empty?(*args, &block); end @@ -6305,6 +6197,10 @@ module Concurrent::Promises::Resolvable include ::Concurrent::Promises::InternalStates end +class Concurrent::RubyThreadPoolExecutor + DEFAULT_SYNCHRONOUS = ::T.let(nil, ::T.untyped) +end + module CopHelper def _investigate(cop, processed_source); end @@ -7049,90 +6945,35 @@ class Enumerator::Generator def initialize(*_); end end -class Errno::EAUTH - Errno = ::T.let(nil, ::T.untyped) -end +Errno::EAUTH = Errno::NOERROR -class Errno::EAUTH -end +Errno::EBADARCH = Errno::NOERROR -class Errno::EBADARCH - Errno = ::T.let(nil, ::T.untyped) -end +Errno::EBADEXEC = Errno::NOERROR -class Errno::EBADARCH -end +Errno::EBADMACHO = Errno::NOERROR -class Errno::EBADEXEC - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::EBADEXEC -end - -class Errno::EBADMACHO - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::EBADMACHO -end - -class Errno::EBADRPC - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::EBADRPC -end +Errno::EBADRPC = Errno::NOERROR Errno::ECAPMODE = Errno::NOERROR -Errno::EDEADLOCK = Errno::NOERROR +Errno::EDEADLOCK = Errno::EDEADLK -class Errno::EDEVERR - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::EDEVERR -end +Errno::EDEVERR = Errno::NOERROR Errno::EDOOFUS = Errno::NOERROR -class Errno::EFTYPE - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::EFTYPE -end +Errno::EFTYPE = Errno::NOERROR Errno::EIPSEC = Errno::NOERROR -class Errno::ELAST - Errno = ::T.let(nil, ::T.untyped) -end +Errno::ELAST = Errno::NOERROR -class Errno::ELAST -end +Errno::ENEEDAUTH = Errno::NOERROR -class Errno::ENEEDAUTH - Errno = ::T.let(nil, ::T.untyped) -end +Errno::ENOATTR = Errno::NOERROR -class Errno::ENEEDAUTH -end - -class Errno::ENOATTR - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::ENOATTR -end - -class Errno::ENOPOLICY - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::ENOPOLICY -end +Errno::ENOPOLICY = Errno::NOERROR Errno::ENOTCAPABLE = Errno::NOERROR @@ -7143,56 +6984,21 @@ end class Errno::ENOTSUP end -class Errno::EPROCLIM - Errno = ::T.let(nil, ::T.untyped) -end +Errno::EPROCLIM = Errno::NOERROR -class Errno::EPROCLIM -end +Errno::EPROCUNAVAIL = Errno::NOERROR -class Errno::EPROCUNAVAIL - Errno = ::T.let(nil, ::T.untyped) -end +Errno::EPROGMISMATCH = Errno::NOERROR -class Errno::EPROCUNAVAIL -end +Errno::EPROGUNAVAIL = Errno::NOERROR -class Errno::EPROGMISMATCH - Errno = ::T.let(nil, ::T.untyped) -end +Errno::EPWROFF = Errno::NOERROR -class Errno::EPROGMISMATCH -end +Errno::EQFULL = Errno::NOERROR -class Errno::EPROGUNAVAIL - Errno = ::T.let(nil, ::T.untyped) -end +Errno::ERPCMISMATCH = Errno::NOERROR -class Errno::EPROGUNAVAIL -end - -class Errno::EPWROFF - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::EPWROFF -end - -Errno::EQFULL = Errno::ELAST - -class Errno::ERPCMISMATCH - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::ERPCMISMATCH -end - -class Errno::ESHLIBVERS - Errno = ::T.let(nil, ::T.untyped) -end - -class Errno::ESHLIBVERS -end +Errno::ESHLIBVERS = Errno::NOERROR class Etc::Group def gid(); end @@ -7222,16 +7028,8 @@ class Etc::Group end class Etc::Passwd - def change(); end - - def change=(_); end - def dir=(_); end - def expire(); end - - def expire=(_); end - def gecos(); end def gecos=(_); end @@ -7244,10 +7042,6 @@ class Etc::Passwd def shell=(_); end - def uclass(); end - - def uclass=(_); end - def uid=(_); end end @@ -8199,6 +7993,8 @@ module Homebrew::EnvConfig def self.skip_or_later_bottles?(); end + def self.sudo_askpass(); end + def self.svn(); end def self.temp(); end @@ -8210,10 +8006,6 @@ module Homebrew::EnvConfig def self.verbose_using_dots?(); end end -module Homebrew::Search - include ::Homebrew::Search::Extension -end - module HostEnvironmentSimulatorHelper def in_its_own_process_with(*files); end end @@ -12614,6 +12406,8 @@ end module MonitorMixin def initialize(*args); end + EXCEPTION_IMMEDIATE = ::T.let(nil, ::T.untyped) + EXCEPTION_NEVER = ::T.let(nil, ::T.untyped) end class MonitorMixin::ConditionVariable @@ -13224,13 +13018,9 @@ Net::HTTPServerErrorCode = Net::HTTPServerError Net::HTTPSession = Net::HTTP -class Net::HTTPSuccess -end +Net::HTTPSuccess::EXCEPTION_TYPE = Net::HTTPError -Net::HTTPSuccessCode::EXCEPTION_TYPE = Net::HTTPError - -class Net::HTTPSuccess -end +Net::HTTPSuccessCode = Net::HTTPSuccess class Net::HTTPURITooLong HAS_BODY = ::T.let(nil, ::T.untyped) @@ -13388,16 +13178,11 @@ class Object HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped) HOMEBREW_HELP = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY_PATH = ::T.let(nil, ::T.untyped) - HOMEBREW_PATCHELF_RB = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_CASK_REGEX = ::T.let(nil, ::T.untyped) HOMEBREW_TAP_FORMULA_REGEX = ::T.let(nil, ::T.untyped) OFFICIAL_CASK_TAPS = ::T.let(nil, ::T.untyped) OFFICIAL_CMD_TAPS = ::T.let(nil, ::T.untyped) OS_VERSION = ::T.let(nil, ::T.untyped) - PYTHON_VIRTUALENV_SHA256 = ::T.let(nil, ::T.untyped) - PYTHON_VIRTUALENV_SHA256_MOJAVE = ::T.let(nil, ::T.untyped) - PYTHON_VIRTUALENV_URL = ::T.let(nil, ::T.untyped) - PYTHON_VIRTUALENV_URL_MOJAVE = ::T.let(nil, ::T.untyped) RUBY_COPYRIGHT = ::T.let(nil, ::T.untyped) RUBY_DESCRIPTION = ::T.let(nil, ::T.untyped) RUBY_ENGINE = ::T.let(nil, ::T.untyped) @@ -15413,7 +15198,7 @@ class Parser::Ruby26 end class Pathname - include ::MachOShim + include ::ELFShim def fnmatch?(*_); end def glob(*_); end @@ -15421,6 +15206,18 @@ class Pathname def make_symlink(_); end end +class PkgVersion + def major(*args, &block); end + + def major_minor(*args, &block); end + + def major_minor_patch(*args, &block); end + + def minor(*args, &block); end + + def patch(*args, &block); end +end + class Proc include ::MethodSource::SourceLocation::ProcExtensions include ::MethodSource::MethodExtensions @@ -15431,6 +15228,14 @@ class Proc def clone(); end end +module Process + def self.fork(&block); end + + def self.fork_with_simplecov(&block); end + + def self.fork_without_simplecov(); end +end + class Pry def add_sticky_local(name, &block); end @@ -19557,6 +19362,8 @@ class RuboCop::Cask::AST::Stanza def internet_plugin?(); end + def language?(); end + def manpage?(); end def mdimporter?(); end @@ -19601,6 +19408,8 @@ class RuboCop::Cask::AST::Stanza def version?(); end + def vst3_plugin?(); end + def vst_plugin?(); end def zap?(); end @@ -20871,6 +20680,8 @@ module SimpleCov::Configuration def at_exit(&block); end + def at_fork(&block); end + def branch_coverage?(); end def branch_coverage_supported?(); end @@ -20895,6 +20706,10 @@ module SimpleCov::Configuration def enable_coverage(criterion); end + def enable_for_subprocesses(value=T.unsafe(nil)); end + + def enabled_for_subprocesses?(); end + def filters(); end def filters=(filters); end @@ -20972,6 +20787,54 @@ module SimpleCov::ExitCodes SUCCESS = ::T.let(nil, ::T.untyped) end +module SimpleCov::ExitCodes::ExitCodeHandling +end + +module SimpleCov::ExitCodes::ExitCodeHandling + def self.call(result, coverage_limits:); end + + def self.coverage_checks(result, coverage_limits); end +end + +class SimpleCov::ExitCodes::MaximumCoverageDropCheck + def exit_code(); end + + def failing?(); end + + def initialize(result, maximum_coverage_drop); end + + def report(); end +end + +class SimpleCov::ExitCodes::MaximumCoverageDropCheck +end + +class SimpleCov::ExitCodes::MinimumCoverageByFileCheck + def exit_code(); end + + def failing?(); end + + def initialize(result, minimum_coverage_by_file); end + + def report(); end +end + +class SimpleCov::ExitCodes::MinimumCoverageByFileCheck +end + +class SimpleCov::ExitCodes::MinimumOverallCoverageCheck + def exit_code(); end + + def failing?(); end + + def initialize(result, minimum_coverage); end + + def report(); end +end + +class SimpleCov::ExitCodes::MinimumOverallCoverageCheck +end + module SimpleCov::ExitCodes end @@ -21207,7 +21070,7 @@ class SimpleCov::Result def groups(); end - def initialize(original_result); end + def initialize(original_result, command_name: T.unsafe(nil), created_at: T.unsafe(nil)); end def least_covered_file(*args, &block); end @@ -21219,6 +21082,8 @@ class SimpleCov::Result def source_files(); end + def time_since_creation(); end + def to_hash(); end def total_branches(*args, &block); end @@ -21412,11 +21277,12 @@ class SimpleCov::StringFilter end module SimpleCov::UselessResultsRemover - ROOT_REGX = ::T.let(nil, ::T.untyped) end module SimpleCov::UselessResultsRemover def self.call(coverage_result); end + + def self.root_regx(); end end module SimpleCov @@ -21427,7 +21293,7 @@ module SimpleCov def self.collate(result_filenames, profile=T.unsafe(nil), &block); end - def self.exit_exception(); end + def self.exit_and_report_previous_error(exit_status); end def self.exit_status_from_exception(); end @@ -21451,13 +21317,21 @@ module SimpleCov def self.pid=(pid); end - def self.process_result(result, exit_status); end + def self.previous_error?(error_exit_status); end + + def self.process_result(result); end + + def self.process_results_and_report_error(); end + + def self.ready_to_process_results?(); end def self.result(); end def self.result?(); end - def self.result_exit_status(result, covered_percent); end + def self.result_exit_status(result); end + + def self.round_coverage(coverage); end def self.run_exit_tasks!(); end @@ -21465,13 +21339,11 @@ module SimpleCov def self.running=(running); end - def self.set_exit_exception(); end - def self.start(profile=T.unsafe(nil), &block); end def self.wait_for_other_processes(); end - def self.write_last_run(covered_percent); end + def self.write_last_run(result); end end module Singleton @@ -21493,185 +21365,17 @@ module Singleton end class Socket - AF_CCITT = ::T.let(nil, ::T.untyped) - AF_CHAOS = ::T.let(nil, ::T.untyped) - AF_CNT = ::T.let(nil, ::T.untyped) - AF_COIP = ::T.let(nil, ::T.untyped) - AF_DATAKIT = ::T.let(nil, ::T.untyped) - AF_DLI = ::T.let(nil, ::T.untyped) - AF_E164 = ::T.let(nil, ::T.untyped) - AF_ECMA = ::T.let(nil, ::T.untyped) - AF_HYLINK = ::T.let(nil, ::T.untyped) - AF_IMPLINK = ::T.let(nil, ::T.untyped) - AF_ISO = ::T.let(nil, ::T.untyped) - AF_LAT = ::T.let(nil, ::T.untyped) - AF_LINK = ::T.let(nil, ::T.untyped) - AF_NATM = ::T.let(nil, ::T.untyped) - AF_NDRV = ::T.let(nil, ::T.untyped) - AF_NETBIOS = ::T.let(nil, ::T.untyped) - AF_NS = ::T.let(nil, ::T.untyped) - AF_OSI = ::T.let(nil, ::T.untyped) - AF_PPP = ::T.let(nil, ::T.untyped) - AF_PUP = ::T.let(nil, ::T.untyped) - AF_SIP = ::T.let(nil, ::T.untyped) - AF_SYSTEM = ::T.let(nil, ::T.untyped) - AI_DEFAULT = ::T.let(nil, ::T.untyped) - AI_MASK = ::T.let(nil, ::T.untyped) - AI_V4MAPPED_CFG = ::T.let(nil, ::T.untyped) - EAI_BADHINTS = ::T.let(nil, ::T.untyped) - EAI_MAX = ::T.let(nil, ::T.untyped) - EAI_PROTOCOL = ::T.let(nil, ::T.untyped) - IFF_ALTPHYS = ::T.let(nil, ::T.untyped) - IFF_LINK0 = ::T.let(nil, ::T.untyped) - IFF_LINK1 = ::T.let(nil, ::T.untyped) - IFF_LINK2 = ::T.let(nil, ::T.untyped) - IFF_OACTIVE = ::T.let(nil, ::T.untyped) - IFF_SIMPLEX = ::T.let(nil, ::T.untyped) - IPPROTO_EON = ::T.let(nil, ::T.untyped) - IPPROTO_GGP = ::T.let(nil, ::T.untyped) - IPPROTO_HELLO = ::T.let(nil, ::T.untyped) - IPPROTO_MAX = ::T.let(nil, ::T.untyped) - IPPROTO_ND = ::T.let(nil, ::T.untyped) - IPPROTO_XTP = ::T.let(nil, ::T.untyped) IPV6_DONTFRAG = ::T.let(nil, ::T.untyped) IPV6_PATHMTU = ::T.let(nil, ::T.untyped) IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped) - IPV6_USE_MIN_MTU = ::T.let(nil, ::T.untyped) - IP_PORTRANGE = ::T.let(nil, ::T.untyped) - IP_RECVDSTADDR = ::T.let(nil, ::T.untyped) - IP_RECVIF = ::T.let(nil, ::T.untyped) - LOCAL_PEERCRED = ::T.let(nil, ::T.untyped) - MSG_EOF = ::T.let(nil, ::T.untyped) - MSG_FLUSH = ::T.let(nil, ::T.untyped) - MSG_HAVEMORE = ::T.let(nil, ::T.untyped) - MSG_HOLD = ::T.let(nil, ::T.untyped) - MSG_RCVMORE = ::T.let(nil, ::T.untyped) - MSG_SEND = ::T.let(nil, ::T.untyped) - PF_CCITT = ::T.let(nil, ::T.untyped) - PF_CHAOS = ::T.let(nil, ::T.untyped) - PF_CNT = ::T.let(nil, ::T.untyped) - PF_COIP = ::T.let(nil, ::T.untyped) - PF_DATAKIT = ::T.let(nil, ::T.untyped) - PF_DLI = ::T.let(nil, ::T.untyped) - PF_ECMA = ::T.let(nil, ::T.untyped) - PF_HYLINK = ::T.let(nil, ::T.untyped) - PF_IMPLINK = ::T.let(nil, ::T.untyped) - PF_ISO = ::T.let(nil, ::T.untyped) - PF_LAT = ::T.let(nil, ::T.untyped) - PF_LINK = ::T.let(nil, ::T.untyped) - PF_NATM = ::T.let(nil, ::T.untyped) - PF_NDRV = ::T.let(nil, ::T.untyped) - PF_NETBIOS = ::T.let(nil, ::T.untyped) - PF_NS = ::T.let(nil, ::T.untyped) - PF_OSI = ::T.let(nil, ::T.untyped) - PF_PIP = ::T.let(nil, ::T.untyped) - PF_PPP = ::T.let(nil, ::T.untyped) - PF_PUP = ::T.let(nil, ::T.untyped) - PF_RTIP = ::T.let(nil, ::T.untyped) - PF_SIP = ::T.let(nil, ::T.untyped) - PF_SYSTEM = ::T.let(nil, ::T.untyped) - PF_XTP = ::T.let(nil, ::T.untyped) - SCM_CREDS = ::T.let(nil, ::T.untyped) - SO_DONTTRUNC = ::T.let(nil, ::T.untyped) - SO_NKE = ::T.let(nil, ::T.untyped) - SO_NOSIGPIPE = ::T.let(nil, ::T.untyped) - SO_NREAD = ::T.let(nil, ::T.untyped) - SO_USELOOPBACK = ::T.let(nil, ::T.untyped) - SO_WANTMORE = ::T.let(nil, ::T.untyped) - SO_WANTOOBFLAG = ::T.let(nil, ::T.untyped) - TCP_NOOPT = ::T.let(nil, ::T.untyped) - TCP_NOPUSH = ::T.let(nil, ::T.untyped) + SO_BPF_EXTENSIONS = ::T.let(nil, ::T.untyped) end module Socket::Constants - AF_CCITT = ::T.let(nil, ::T.untyped) - AF_CHAOS = ::T.let(nil, ::T.untyped) - AF_CNT = ::T.let(nil, ::T.untyped) - AF_COIP = ::T.let(nil, ::T.untyped) - AF_DATAKIT = ::T.let(nil, ::T.untyped) - AF_DLI = ::T.let(nil, ::T.untyped) - AF_E164 = ::T.let(nil, ::T.untyped) - AF_ECMA = ::T.let(nil, ::T.untyped) - AF_HYLINK = ::T.let(nil, ::T.untyped) - AF_IMPLINK = ::T.let(nil, ::T.untyped) - AF_ISO = ::T.let(nil, ::T.untyped) - AF_LAT = ::T.let(nil, ::T.untyped) - AF_LINK = ::T.let(nil, ::T.untyped) - AF_NATM = ::T.let(nil, ::T.untyped) - AF_NDRV = ::T.let(nil, ::T.untyped) - AF_NETBIOS = ::T.let(nil, ::T.untyped) - AF_NS = ::T.let(nil, ::T.untyped) - AF_OSI = ::T.let(nil, ::T.untyped) - AF_PPP = ::T.let(nil, ::T.untyped) - AF_PUP = ::T.let(nil, ::T.untyped) - AF_SIP = ::T.let(nil, ::T.untyped) - AF_SYSTEM = ::T.let(nil, ::T.untyped) - AI_DEFAULT = ::T.let(nil, ::T.untyped) - AI_MASK = ::T.let(nil, ::T.untyped) - AI_V4MAPPED_CFG = ::T.let(nil, ::T.untyped) - EAI_BADHINTS = ::T.let(nil, ::T.untyped) - EAI_MAX = ::T.let(nil, ::T.untyped) - EAI_PROTOCOL = ::T.let(nil, ::T.untyped) - IFF_ALTPHYS = ::T.let(nil, ::T.untyped) - IFF_LINK0 = ::T.let(nil, ::T.untyped) - IFF_LINK1 = ::T.let(nil, ::T.untyped) - IFF_LINK2 = ::T.let(nil, ::T.untyped) - IFF_OACTIVE = ::T.let(nil, ::T.untyped) - IFF_SIMPLEX = ::T.let(nil, ::T.untyped) - IPPROTO_EON = ::T.let(nil, ::T.untyped) - IPPROTO_GGP = ::T.let(nil, ::T.untyped) - IPPROTO_HELLO = ::T.let(nil, ::T.untyped) - IPPROTO_MAX = ::T.let(nil, ::T.untyped) - IPPROTO_ND = ::T.let(nil, ::T.untyped) - IPPROTO_XTP = ::T.let(nil, ::T.untyped) IPV6_DONTFRAG = ::T.let(nil, ::T.untyped) IPV6_PATHMTU = ::T.let(nil, ::T.untyped) IPV6_RECVPATHMTU = ::T.let(nil, ::T.untyped) - IPV6_USE_MIN_MTU = ::T.let(nil, ::T.untyped) - IP_PORTRANGE = ::T.let(nil, ::T.untyped) - IP_RECVDSTADDR = ::T.let(nil, ::T.untyped) - IP_RECVIF = ::T.let(nil, ::T.untyped) - LOCAL_PEERCRED = ::T.let(nil, ::T.untyped) - MSG_EOF = ::T.let(nil, ::T.untyped) - MSG_FLUSH = ::T.let(nil, ::T.untyped) - MSG_HAVEMORE = ::T.let(nil, ::T.untyped) - MSG_HOLD = ::T.let(nil, ::T.untyped) - MSG_RCVMORE = ::T.let(nil, ::T.untyped) - MSG_SEND = ::T.let(nil, ::T.untyped) - PF_CCITT = ::T.let(nil, ::T.untyped) - PF_CHAOS = ::T.let(nil, ::T.untyped) - PF_CNT = ::T.let(nil, ::T.untyped) - PF_COIP = ::T.let(nil, ::T.untyped) - PF_DATAKIT = ::T.let(nil, ::T.untyped) - PF_DLI = ::T.let(nil, ::T.untyped) - PF_ECMA = ::T.let(nil, ::T.untyped) - PF_HYLINK = ::T.let(nil, ::T.untyped) - PF_IMPLINK = ::T.let(nil, ::T.untyped) - PF_ISO = ::T.let(nil, ::T.untyped) - PF_LAT = ::T.let(nil, ::T.untyped) - PF_LINK = ::T.let(nil, ::T.untyped) - PF_NATM = ::T.let(nil, ::T.untyped) - PF_NDRV = ::T.let(nil, ::T.untyped) - PF_NETBIOS = ::T.let(nil, ::T.untyped) - PF_NS = ::T.let(nil, ::T.untyped) - PF_OSI = ::T.let(nil, ::T.untyped) - PF_PIP = ::T.let(nil, ::T.untyped) - PF_PPP = ::T.let(nil, ::T.untyped) - PF_PUP = ::T.let(nil, ::T.untyped) - PF_RTIP = ::T.let(nil, ::T.untyped) - PF_SIP = ::T.let(nil, ::T.untyped) - PF_SYSTEM = ::T.let(nil, ::T.untyped) - PF_XTP = ::T.let(nil, ::T.untyped) - SCM_CREDS = ::T.let(nil, ::T.untyped) - SO_DONTTRUNC = ::T.let(nil, ::T.untyped) - SO_NKE = ::T.let(nil, ::T.untyped) - SO_NOSIGPIPE = ::T.let(nil, ::T.untyped) - SO_NREAD = ::T.let(nil, ::T.untyped) - SO_USELOOPBACK = ::T.let(nil, ::T.untyped) - SO_WANTMORE = ::T.let(nil, ::T.untyped) - SO_WANTOOBFLAG = ::T.let(nil, ::T.untyped) - TCP_NOOPT = ::T.let(nil, ::T.untyped) - TCP_NOPUSH = ::T.let(nil, ::T.untyped) + SO_BPF_EXTENSIONS = ::T.let(nil, ::T.untyped) end class SortedSet