clean-architecture 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +52 -0
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +0 -2
  6. data/clean-architecture.gemspec +3 -3
  7. data/lib/clean_architecture/queries/http_failure_code.rb +2 -1
  8. data/lib/clean_architecture/version.rb +1 -1
  9. data/sorbet/rbi/gems/activemodel.rbi +2 -1
  10. data/sorbet/rbi/gems/activesupport.rbi +3 -3
  11. data/sorbet/rbi/gems/ast.rbi +1 -0
  12. data/sorbet/rbi/gems/byebug.rbi +3 -2
  13. data/sorbet/rbi/gems/coderay.rbi +1 -0
  14. data/sorbet/rbi/gems/concurrent-ruby.rbi +22 -23
  15. data/sorbet/rbi/gems/docile.rbi +1 -0
  16. data/sorbet/rbi/gems/dry-configurable.rbi +107 -57
  17. data/sorbet/rbi/gems/dry-container.rbi +1 -0
  18. data/sorbet/rbi/gems/dry-core.rbi +1 -0
  19. data/sorbet/rbi/gems/dry-equalizer.rbi +5 -4
  20. data/sorbet/rbi/gems/dry-inflector.rbi +1 -0
  21. data/sorbet/rbi/gems/dry-initializer.rbi +4 -4
  22. data/sorbet/rbi/gems/dry-logic.rbi +12 -11
  23. data/sorbet/rbi/gems/dry-matcher.rbi +2 -1
  24. data/sorbet/rbi/gems/dry-monads.rbi +8 -6
  25. data/sorbet/rbi/gems/dry-schema.rbi +92 -96
  26. data/sorbet/rbi/gems/dry-struct.rbi +32 -60
  27. data/sorbet/rbi/gems/dry-types.rbi +76 -55
  28. data/sorbet/rbi/gems/dry-validation.rbi +34 -30
  29. data/sorbet/rbi/gems/duckface-interfaces.rbi +1 -0
  30. data/sorbet/rbi/gems/i18n.rbi +2 -1
  31. data/sorbet/rbi/gems/jaro_winkler.rbi +2 -1
  32. data/sorbet/rbi/gems/method_source.rbi +1 -0
  33. data/sorbet/rbi/gems/parallel.rbi +2 -1
  34. data/sorbet/rbi/gems/parser.rbi +80 -452
  35. data/sorbet/rbi/gems/pry-byebug.rbi +10 -4
  36. data/sorbet/rbi/gems/pry.rbi +1 -0
  37. data/sorbet/rbi/gems/rainbow.rbi +1 -0
  38. data/sorbet/rbi/gems/rake.rbi +77 -67
  39. data/sorbet/rbi/gems/rb-readline.rbi +1 -0
  40. data/sorbet/rbi/gems/rexml.rbi +589 -0
  41. data/sorbet/rbi/gems/rspec-core.rbi +14 -1
  42. data/sorbet/rbi/gems/rspec-expectations.rbi +2 -34
  43. data/sorbet/rbi/gems/rspec-mocks.rbi +133 -1
  44. data/sorbet/rbi/gems/rspec-support.rbi +4 -1
  45. data/sorbet/rbi/gems/rspec.rbi +1 -0
  46. data/sorbet/rbi/gems/rubocop-rspec.rbi +51 -4
  47. data/sorbet/rbi/gems/rubocop.rbi +746 -442
  48. data/sorbet/rbi/gems/ruby-progressbar.rbi +1 -0
  49. data/sorbet/rbi/gems/simplecov-html.rbi +6 -1
  50. data/sorbet/rbi/gems/simplecov.rbi +144 -17
  51. data/sorbet/rbi/gems/stackprof.rbi +2 -1
  52. data/sorbet/rbi/gems/unicode-display_width.rbi +2 -1
  53. data/sorbet/rbi/hidden-definitions/errors.txt +2040 -890
  54. data/sorbet/rbi/hidden-definitions/hidden.rbi +1431 -2092
  55. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +325 -295
  56. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +357 -3
  57. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +9 -0
  58. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +37 -15
  59. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +8 -8
  60. data/sorbet/rbi/todo.rbi +1 -4
  61. metadata +11 -23
  62. data/.github/workflows/rspec.yml +0 -21
  63. data/sorbet/rbi/gems/axiom-types.rbi +0 -159
  64. data/sorbet/rbi/gems/codeclimate-engine-rb.rbi +0 -123
  65. data/sorbet/rbi/gems/coercible.rbi +0 -156
  66. data/sorbet/rbi/gems/descendants_tracker.rbi +0 -17
  67. data/sorbet/rbi/gems/equalizer.rbi +0 -22
  68. data/sorbet/rbi/gems/ice_nine.rbi +0 -66
  69. data/sorbet/rbi/gems/kwalify.rbi +0 -339
  70. data/sorbet/rbi/gems/psych.rbi +0 -462
  71. data/sorbet/rbi/gems/reek.rbi +0 -1066
  72. data/sorbet/rbi/gems/thread_safe.rbi +0 -81
  73. data/sorbet/rbi/gems/timecop.rbi +0 -97
  74. data/sorbet/rbi/gems/virtus.rbi +0 -421
@@ -7,7 +7,8 @@
7
7
  #
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-core/all/rspec-core.rbi
9
9
  #
10
- # rspec-core-3.9.0
10
+ # rspec-core-3.9.1
11
+
11
12
  module RSpec
12
13
  def self.clear_examples; end
13
14
  def self.configuration; end
@@ -564,6 +565,7 @@ module RSpec::Core::HashImitatable
564
565
  def all?(*args, &block); end
565
566
  def any?(*args, &block); end
566
567
  def assoc(*args, &block); end
568
+ def chain(*args, &block); end
567
569
  def chunk(*args, &block); end
568
570
  def chunk_while(*args, &block); end
569
571
  def clear(*args, &block); end
@@ -575,6 +577,8 @@ module RSpec::Core::HashImitatable
575
577
  def compare_by_identity?(*args, &block); end
576
578
  def count(*args, &block); end
577
579
  def cycle(*args, &block); end
580
+ def deep_merge!(*args, &block); end
581
+ def deep_merge(*args, &block); end
578
582
  def default(*args, &block); end
579
583
  def default=(*args, &block); end
580
584
  def default_proc(*args, &block); end
@@ -597,9 +601,15 @@ module RSpec::Core::HashImitatable
597
601
  def each_with_object(*args, &block); end
598
602
  def empty?(*args, &block); end
599
603
  def entries(*args, &block); end
604
+ def except!(*args, &block); end
605
+ def except(*args, &block); end
600
606
  def extra_hash_attributes; end
607
+ def extract!(*args, &block); end
608
+ def extractable_options?(*args, &block); end
601
609
  def fetch(*args, &block); end
602
610
  def fetch_values(*args, &block); end
611
+ def filter!(*args, &block); end
612
+ def filter(*args, &block); end
603
613
  def find(*args, &block); end
604
614
  def find_all(*args, &block); end
605
615
  def find_index(*args, &block); end
@@ -650,6 +660,7 @@ module RSpec::Core::HashImitatable
650
660
  def set_value(name, value); end
651
661
  def shift(*args, &block); end
652
662
  def size(*args, &block); end
663
+ def slice!(*args, &block); end
653
664
  def slice(*args, &block); end
654
665
  def slice_after(*args, &block); end
655
666
  def slice_before(*args, &block); end
@@ -1420,7 +1431,9 @@ class RSpec::Core::Example
1420
1431
  def with_around_example_hooks; end
1421
1432
  end
1422
1433
  class RSpec::Core::Example::Procsy
1434
+ def <<(*a, &b); end
1423
1435
  def ===(*a, &b); end
1436
+ def >>(*a, &b); end
1424
1437
  def [](*a, &b); end
1425
1438
  def arity(*a, &b); end
1426
1439
  def binding(*a, &b); end
@@ -8,6 +8,7 @@
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-expectations/all/rspec-expectations.rbi
9
9
  #
10
10
  # rspec-expectations-3.9.0
11
+
11
12
  module RSpec
12
13
  end
13
14
  module RSpec::Matchers
@@ -344,7 +345,7 @@ end
344
345
  module RSpec::Expectations::Configuration::NullBacktraceFormatter
345
346
  def self.format_backtrace(backtrace); end
346
347
  end
347
- class InvalidName___Class_0x00___Differ_106
348
+ class InvalidName___Class_0x00___Differ_101
348
349
  end
349
350
  module RSpec::Expectations::ExpectationHelper
350
351
  def self.check_message(msg); end
@@ -395,36 +396,3 @@ class RSpec::Core::ExampleGroup
395
396
  include RSpec::Core::MockingAdapters::RSpec
396
397
  include RSpec::Matchers
397
398
  end
398
- class RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase < RSpec::ExampleGroups::DuckfaceActsAsInterface
399
- include RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::LetDefinitions
400
- end
401
- class RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface < RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase
402
- include RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::LetDefinitions
403
- end
404
- class Dummy
405
- def initialize; end
406
- end
407
- class RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::WhenAllMethodsRaiseNotImplementedError < RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface
408
- def dummy; end
409
- include RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::WhenAllMethodsRaiseNotImplementedError::LetDefinitions
410
- end
411
- module RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::WhenAllMethodsRaiseNotImplementedError::NamedSubjectPreventSuper
412
- end
413
- module RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::WhenAllMethodsRaiseNotImplementedError::LetDefinitions
414
- def dummy; end
415
- include RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::WhenAllMethodsRaiseNotImplementedError::NamedSubjectPreventSuper
416
- end
417
- module RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::NamedSubjectPreventSuper
418
- end
419
- module RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::LetDefinitions
420
- include RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::BehavesLikeAnInterface::NamedSubjectPreventSuper
421
- end
422
- module RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::NamedSubjectPreventSuper
423
- end
424
- module RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::LetDefinitions
425
- include RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureInterfacesUseCase::NamedSubjectPreventSuper
426
- end
427
- class RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureSerializersSuccessCollectionPayload < RSpec::ExampleGroups::DuckfaceActsAsInterface
428
- end
429
- class RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureSerializersSuccessCollectionPayload::BehavesLikeItImplements < RSpec::ExampleGroups::DuckfaceActsAsInterface::CleanArchitectureSerializersSuccessCollectionPayload
430
- end
@@ -7,7 +7,8 @@
7
7
  #
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-mocks/all/rspec-mocks.rbi
9
9
  #
10
- # rspec-mocks-3.9.0
10
+ # rspec-mocks-3.9.1
11
+
11
12
  module RSpec
12
13
  end
13
14
  module RSpec::Mocks
@@ -813,3 +814,134 @@ module RSpec::Mocks::Matchers
813
814
  end
814
815
  module RSpec::Mocks::Matchers::Matcher
815
816
  end
817
+ module RSpec::Mocks::AnyInstance
818
+ def self.error_generator; end
819
+ end
820
+ class RSpec::Mocks::AnyInstance::Chain
821
+ def constrained_to_any_of?(*constraints); end
822
+ def expectation_fulfilled!; end
823
+ def initialize(recorder, *args, &block); end
824
+ def last_message; end
825
+ def matches_args?(*args); end
826
+ def messages; end
827
+ def negated?; end
828
+ def never; end
829
+ def playback!(instance); end
830
+ def record(rspec_method_name, *args, &block); end
831
+ def with(*args, &block); end
832
+ include RSpec::Mocks::AnyInstance::Chain::Customizations
833
+ end
834
+ module RSpec::Mocks::AnyInstance::Chain::Customizations
835
+ def and_call_original(*args, &block); end
836
+ def and_raise(*args, &block); end
837
+ def and_return(*args, &block); end
838
+ def and_throw(*args, &block); end
839
+ def and_wrap_original(*args, &block); end
840
+ def and_yield(*args, &block); end
841
+ def at_least(*args, &block); end
842
+ def at_most(*args, &block); end
843
+ def exactly(*args, &block); end
844
+ def never(*args, &block); end
845
+ def once(*args, &block); end
846
+ def self.record(method_name); end
847
+ def thrice(*args, &block); end
848
+ def time(*args, &block); end
849
+ def times(*args, &block); end
850
+ def twice(*args, &block); end
851
+ def with(*args, &block); end
852
+ end
853
+ class RSpec::Mocks::AnyInstance::ErrorGenerator < RSpec::Mocks::ErrorGenerator
854
+ def raise_does_not_implement_error(klass, method_name); end
855
+ def raise_message_already_received_by_other_instance_error(method_name, object_inspect, invoked_instance); end
856
+ def raise_not_supported_with_prepend_error(method_name, problem_mod); end
857
+ def raise_second_instance_received_message_error(unfulfilled_expectations); end
858
+ end
859
+ class RSpec::Mocks::AnyInstance::StubChain < RSpec::Mocks::AnyInstance::Chain
860
+ def create_message_expectation_on(instance); end
861
+ def expectation_fulfilled?; end
862
+ def invocation_order; end
863
+ def verify_invocation_order(rspec_method_name, *_args, &_block); end
864
+ end
865
+ class RSpec::Mocks::AnyInstance::StubChainChain < RSpec::Mocks::AnyInstance::StubChain
866
+ def create_message_expectation_on(instance); end
867
+ def initialize(*args); end
868
+ def invocation_order; end
869
+ end
870
+ class RSpec::Mocks::AnyInstance::ExpectChainChain < RSpec::Mocks::AnyInstance::StubChain
871
+ def create_message_expectation_on(instance); end
872
+ def expectation_fulfilled?; end
873
+ def initialize(*args); end
874
+ def invocation_order; end
875
+ def playback!(instance); end
876
+ end
877
+ class RSpec::Mocks::AnyInstance::ExpectationChain < RSpec::Mocks::AnyInstance::Chain
878
+ def expectation_fulfilled?; end
879
+ def initialize(*args, &block); end
880
+ def verify_invocation_order(_rspec_method_name, *_args, &_block); end
881
+ end
882
+ class RSpec::Mocks::AnyInstance::PositiveExpectationChain < RSpec::Mocks::AnyInstance::ExpectationChain
883
+ def create_message_expectation_on(instance); end
884
+ def invocation_order; end
885
+ end
886
+ class RSpec::Mocks::AnyInstance::MessageChains
887
+ def [](method_name); end
888
+ def add(method_name, chain); end
889
+ def all_expectations_fulfilled?; end
890
+ def each_unfulfilled_expectation_matching(method_name, *args); end
891
+ def has_expectation?(method_name); end
892
+ def initialize; end
893
+ def playback!(instance, method_name); end
894
+ def raise_if_second_instance_to_receive_message(instance); end
895
+ def received_expected_message!(method_name); end
896
+ def remove_stub_chains_for!(method_name); end
897
+ def unfulfilled_expectations; end
898
+ end
899
+ class RSpec::Mocks::AnyInstance::Recorder
900
+ def allow_no_prepended_module_definition_of(method_name); end
901
+ def already_observing?(method_name); end
902
+ def ancestor_is_an_observer?(method_name); end
903
+ def backup_method!(method_name); end
904
+ def build_alias_method_name(method_name); end
905
+ def expect_chain(*method_names_and_optional_return_values, &block); end
906
+ def initialize(klass); end
907
+ def instance_that_received(method_name); end
908
+ def klass; end
909
+ def mark_invoked!(method_name); end
910
+ def message_chains; end
911
+ def normalize_chain(*args); end
912
+ def notify_received_message(_object, message, args, _blk); end
913
+ def observe!(method_name); end
914
+ def playback!(instance, method_name); end
915
+ def public_protected_or_private_method_defined?(method_name); end
916
+ def received_expected_message!(method_name); end
917
+ def remove_dummy_method!(method_name); end
918
+ def restore_method!(method_name); end
919
+ def restore_original_method!(method_name); end
920
+ def should_not_receive(method_name, &block); end
921
+ def should_receive(method_name, &block); end
922
+ def stop_all_observation!; end
923
+ def stop_observing!(method_name); end
924
+ def stub(method_name, &block); end
925
+ def stub_chain(*method_names_and_optional_return_values, &block); end
926
+ def stubs; end
927
+ def super_class_observers_for(method_name); end
928
+ def super_class_observing?(method_name); end
929
+ def unstub(method_name); end
930
+ def verify; end
931
+ end
932
+ class RSpec::Mocks::AnyInstance::Proxy
933
+ def expect_chain(*chain, &block); end
934
+ def initialize(recorder, target_proxies); end
935
+ def klass; end
936
+ def perform_proxying(method_name, args, block, &target_proxy_block); end
937
+ def should_not_receive(method_name, &block); end
938
+ def should_receive(method_name, &block); end
939
+ def stub(method_name_or_method_map, &block); end
940
+ def stub_chain(*chain, &block); end
941
+ def unstub(method_name); end
942
+ end
943
+ class RSpec::Mocks::AnyInstance::FluentInterfaceProxy
944
+ def initialize(targets); end
945
+ def method_missing(*args, &block); end
946
+ def respond_to_missing?(method_name, include_private = nil); end
947
+ end
@@ -7,7 +7,8 @@
7
7
  #
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-support/all/rspec-support.rbi
9
9
  #
10
- # rspec-support-3.9.0
10
+ # rspec-support-3.9.2
11
+
11
12
  module RSpec
12
13
  extend RSpec::Support::Warnings
13
14
  end
@@ -77,8 +78,10 @@ module RSpec::Support::RubyFeatures
77
78
  def self.ripper_supported?; end
78
79
  def self.supports_exception_cause?; end
79
80
  def self.supports_rebinding_module_methods?; end
81
+ def self.supports_taint?; end
80
82
  def supports_exception_cause?; end
81
83
  def supports_rebinding_module_methods?; end
84
+ def supports_taint?; end
82
85
  end
83
86
  module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
84
87
  def self.===(exception); end
@@ -8,6 +8,7 @@
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec/all/rspec.rbi
9
9
  #
10
10
  # rspec-3.9.0
11
+
11
12
  module RSpec
12
13
  end
13
14
  module RSpec::Version
@@ -7,7 +7,8 @@
7
7
  #
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop-rspec/all/rubocop-rspec.rbi
9
9
  #
10
- # rubocop-rspec-1.36.0
10
+ # rubocop-rspec-1.38.1
11
+
11
12
  module RuboCop
12
13
  end
13
14
  module RuboCop::RSpec
@@ -70,6 +71,8 @@ module RuboCop::RSpec::Language::Examples
70
71
  end
71
72
  module RuboCop::RSpec::Language::Hooks
72
73
  end
74
+ module RuboCop::RSpec::Language::Hooks::Scopes
75
+ end
73
76
  module RuboCop::RSpec::Language::Helpers
74
77
  end
75
78
  module RuboCop::RSpec::Language::Subject
@@ -121,12 +124,16 @@ class RuboCop::RSpec::Example < RuboCop::RSpec::Concept
121
124
  end
122
125
  class RuboCop::RSpec::Hook < RuboCop::RSpec::Concept
123
126
  def example?; end
127
+ def extract_metadata(node = nil); end
124
128
  def knowable_scope?; end
129
+ def metadata; end
125
130
  def name; end
126
131
  def scope; end
127
132
  def scope_argument; end
128
133
  def scope_name; end
129
- def valid_scope?; end
134
+ def transform_metadata(meta); end
135
+ def transform_true(node); end
136
+ def valid_scope?(node); end
130
137
  end
131
138
  module RuboCop::Cop
132
139
  end
@@ -146,8 +153,11 @@ class RuboCop::Cop::WorkaroundCop
146
153
  def duplicate_location?(location); end
147
154
  def enabled_line?(line_number); end
148
155
  def excluded_file?(file); end
156
+ def external_dependency_checksum; end
149
157
  def file_name_matches_any?(file, parameter, default_result); end
150
158
  def find_location(node, loc); end
159
+ def find_message(node, message); end
160
+ def find_severity(_node, severity); end
151
161
  def initialize(config = nil, options = nil); end
152
162
  def join_force?(_force_class); end
153
163
  def message(_node = nil); end
@@ -276,6 +286,12 @@ class RuboCop::Cop::RSpec::FactoryBot::CreateList::CreateListCorrector < RuboCop
276
286
  def initialize(node); end
277
287
  def node; end
278
288
  end
289
+ class RuboCop::Cop::RSpec::FactoryBot::FactoryClassName < RuboCop::Cop::RSpec::Cop
290
+ def allowed?(const_name); end
291
+ def autocorrect(node); end
292
+ def class_name(node = nil); end
293
+ def on_send(node); end
294
+ end
279
295
  class RuboCop::Cop::RSpec::AlignLeftLetBrace < RuboCop::Cop::RSpec::Cop
280
296
  def autocorrect(let); end
281
297
  def investigate(_processed_source); end
@@ -363,6 +379,10 @@ class RuboCop::Cop::RSpec::DescribedClass < RuboCop::Cop::RSpec::Cop
363
379
  def skippable_block?(node); end
364
380
  include RuboCop::Cop::ConfigurableEnforcedStyle
365
381
  end
382
+ class RuboCop::Cop::RSpec::DescribedClassModuleWrapping < RuboCop::Cop::RSpec::Cop
383
+ def find_rspec_blocks(node0); end
384
+ def on_module(node); end
385
+ end
366
386
  class RuboCop::Cop::RSpec::Dialect < RuboCop::Cop::RSpec::Cop
367
387
  def autocorrect(node); end
368
388
  def message(node); end
@@ -427,11 +447,13 @@ class RuboCop::Cop::RSpec::ExampleWording < RuboCop::Cop::RSpec::Cop
427
447
  def text(node); end
428
448
  end
429
449
  class RuboCop::Cop::RSpec::ExpectActual < RuboCop::Cop::RSpec::Cop
450
+ def autocorrect(node); end
430
451
  def complex_literal?(node); end
431
452
  def expect_literal(node = nil); end
432
453
  def literal?(node); end
433
454
  def on_send(node); end
434
455
  def simple_literal?(node); end
456
+ def swap(corrector, actual, expected); end
435
457
  end
436
458
  class RuboCop::Cop::RSpec::ExpectChange < RuboCop::Cop::RSpec::Cop
437
459
  def autocorrect(node); end
@@ -533,12 +555,13 @@ class RuboCop::Cop::RSpec::InstanceSpy < RuboCop::Cop::RSpec::Cop
533
555
  end
534
556
  class RuboCop::Cop::RSpec::InstanceVariable < RuboCop::Cop::RSpec::Cop
535
557
  def assignment_only?; end
558
+ def custom_matcher?(node = nil); end
536
559
  def dynamic_class?(node = nil); end
537
- def inside_dynamic_class?(node); end
538
560
  def ivar_assigned?(node0, param1); end
539
561
  def ivar_usage(node0); end
540
562
  def on_block(node); end
541
563
  def spec_group?(node = nil); end
564
+ def valid_usage?(node); end
542
565
  end
543
566
  class RuboCop::Cop::RSpec::InvalidPredicateMatcher < RuboCop::Cop::RSpec::Cop
544
567
  def invalid_predicate_matcher?(node = nil); end
@@ -701,6 +724,7 @@ module RuboCop::Cop::RSpec::InflectedHelper
701
724
  include RuboCop::RSpec::Language
702
725
  end
703
726
  module RuboCop::Cop::RSpec::ExplicitHelper
727
+ def allowed_explicit_matchers; end
704
728
  def autocorrect_explicit(node); end
705
729
  def autocorrect_explicit_block(node); end
706
730
  def autocorrect_explicit_send(node); end
@@ -741,6 +765,7 @@ class RuboCop::Cop::RSpec::ReceiveNever < RuboCop::Cop::RSpec::Cop
741
765
  def on_send(node); end
742
766
  end
743
767
  class RuboCop::Cop::RSpec::RepeatedDescription < RuboCop::Cop::RSpec::Cop
768
+ def example_signature(example); end
744
769
  def on_block(node); end
745
770
  def repeated_descriptions(node); end
746
771
  end
@@ -749,6 +774,27 @@ class RuboCop::Cop::RSpec::RepeatedExample < RuboCop::Cop::RSpec::Cop
749
774
  def on_block(node); end
750
775
  def repeated_examples(node); end
751
776
  end
777
+ class RuboCop::Cop::RSpec::RepeatedExampleGroupBody < RuboCop::Cop::RSpec::Cop
778
+ def add_repeated_lines(groups); end
779
+ def body(node = nil); end
780
+ def message(group, repeats); end
781
+ def metadata(node = nil); end
782
+ def on_begin(node); end
783
+ def repeated_group_bodies(node); end
784
+ def several_example_groups?(node = nil); end
785
+ def signature_keys(group); end
786
+ def skip_or_pending?(node = nil); end
787
+ end
788
+ class RuboCop::Cop::RSpec::RepeatedExampleGroupDescription < RuboCop::Cop::RSpec::Cop
789
+ def add_repeated_lines(groups); end
790
+ def doc_string_and_metadata(node = nil); end
791
+ def empty_description?(node = nil); end
792
+ def message(group, repeats); end
793
+ def on_begin(node); end
794
+ def repeated_group_descriptions(node); end
795
+ def several_example_groups?(node = nil); end
796
+ def skip_or_pending?(node = nil); end
797
+ end
752
798
  class RuboCop::Cop::RSpec::ReturnFromStub < RuboCop::Cop::RSpec::Cop
753
799
  def and_return_value(node0); end
754
800
  def autocorrect(node); end
@@ -784,8 +830,9 @@ class RuboCop::Cop::RSpec::ScatteredLet < RuboCop::Cop::RSpec::Cop
784
830
  def on_block(node); end
785
831
  end
786
832
  class RuboCop::Cop::RSpec::ScatteredSetup < RuboCop::Cop::RSpec::Cop
787
- def analyzable_hooks(node); end
833
+ def lines_msg(numbers); end
788
834
  def on_block(node); end
835
+ def repeated_hooks(node); end
789
836
  end
790
837
  class RuboCop::Cop::RSpec::SharedContext < RuboCop::Cop::RSpec::Cop
791
838
  def add_shared_item_offense(node, message); end
@@ -7,14 +7,14 @@
7
7
  #
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop/all/rubocop.rbi
9
9
  #
10
- # rubocop-0.75.1
10
+ # rubocop-0.80.0
11
+
11
12
  module RuboCop
12
13
  end
13
14
  module RuboCop::Version
14
15
  def self.version(debug = nil); end
15
16
  end
16
17
  class String
17
- def blank?; end
18
18
  end
19
19
  module RuboCop::PathUtil
20
20
  def absolute?(path); end
@@ -58,11 +58,13 @@ class RuboCop::NodePattern
58
58
  def marshal_load(pattern); end
59
59
  def match(*args); end
60
60
  def pattern; end
61
+ def self.descend(element, &block); end
61
62
  def to_s; end
62
63
  end
63
64
  class RuboCop::NodePattern::Invalid < StandardError
64
65
  end
65
66
  class RuboCop::NodePattern::Compiler
67
+ def access_unify(name); end
66
68
  def auto_use_temp_node?(code); end
67
69
  def captures; end
68
70
  def compile_any_order(capture_all = nil); end
@@ -71,6 +73,7 @@ class RuboCop::NodePattern::Compiler
71
73
  def compile_ascend; end
72
74
  def compile_capture; end
73
75
  def compile_captured_ellipsis; end
76
+ def compile_descend; end
74
77
  def compile_ellipsis; end
75
78
  def compile_expr(token = nil); end
76
79
  def compile_funcall(method); end
@@ -91,6 +94,7 @@ class RuboCop::NodePattern::Compiler
91
94
  def emit_trailing_params; end
92
95
  def emit_yield_capture(when_no_capture = nil); end
93
96
  def fail_due_to(message); end
97
+ def forbid_unification(*names); end
94
98
  def get_param(number); end
95
99
  def initialize(str, node_var = nil); end
96
100
  def insure_same_captures(enum, what); end
@@ -105,6 +109,7 @@ class RuboCop::NodePattern::Compiler
105
109
  def substitute_cur_node(code, cur_node, first_cur_node: nil); end
106
110
  def tokens; end
107
111
  def tokens_until(stop, what); end
112
+ def unify_in_union(enum); end
108
113
  def variadic_seq_term; end
109
114
  def with_child_context(code, child_index); end
110
115
  def with_context(code, cur_node, use_temp_node: nil); end
@@ -162,6 +167,8 @@ class RuboCop::AST::Node < Parser::AST::Node
162
167
  def arg_type?; end
163
168
  def args_type?; end
164
169
  def argument?; end
170
+ def array_pattern_type?; end
171
+ def array_pattern_with_tail_type?; end
165
172
  def array_type?; end
166
173
  def assignment?; end
167
174
  def assignment_or_similar?(node = nil); end
@@ -174,9 +181,11 @@ class RuboCop::AST::Node < Parser::AST::Node
174
181
  def block_type?; end
175
182
  def blockarg_expr_type?; end
176
183
  def blockarg_type?; end
184
+ def boolean_type?; end
177
185
  def break_type?; end
178
186
  def call_type?; end
179
187
  def case_if_value_used?; end
188
+ def case_match_type?; end
180
189
  def case_type?; end
181
190
  def casgn_type?; end
182
191
  def cbase_type?; end
@@ -189,6 +198,7 @@ class RuboCop::AST::Node < Parser::AST::Node
189
198
  def complex_type?; end
190
199
  def conditional?; end
191
200
  def const_name; end
201
+ def const_pattern_type?; end
192
202
  def const_type?; end
193
203
  def csend_type?; end
194
204
  def cvar_type?; end
@@ -217,14 +227,20 @@ class RuboCop::AST::Node < Parser::AST::Node
217
227
  def float_type?; end
218
228
  def for_type?; end
219
229
  def for_value_used?; end
230
+ def forward_args_type?; end
231
+ def forwarded_args_type?; end
220
232
  def guard_clause?(node = nil); end
221
233
  def gvar_type?; end
222
234
  def gvasgn_type?; end
235
+ def hash_pattern_type?; end
223
236
  def hash_type?; end
224
237
  def ident_type?; end
238
+ def if_guard_type?; end
225
239
  def if_type?; end
226
240
  def iflipflop_type?; end
227
241
  def immutable_literal?; end
242
+ def in_match_type?; end
243
+ def in_pattern_type?; end
228
244
  def index_type?; end
229
245
  def indexasgn_type?; end
230
246
  def initialize(type, children = nil, properties = nil); end
@@ -248,9 +264,14 @@ class RuboCop::AST::Node < Parser::AST::Node
248
264
  def lvar_type?; end
249
265
  def lvasgn_type?; end
250
266
  def masgn_type?; end
267
+ def match_alt_type?; end
268
+ def match_as_type?; end
251
269
  def match_current_line_type?; end
270
+ def match_nil_pattern_type?; end
271
+ def match_rest_type?; end
272
+ def match_var_type?; end
252
273
  def match_with_lvasgn_type?; end
253
- def meth_ref_type?; end
274
+ def match_with_trailing_comma_type?; end
254
275
  def mlhs_type?; end
255
276
  def module_type?; end
256
277
  def multiline?; end
@@ -265,7 +286,6 @@ class RuboCop::AST::Node < Parser::AST::Node
265
286
  def numargs_type?; end
266
287
  def numblock_type?; end
267
288
  def numeric_type?; end
268
- def numparam_type?; end
269
289
  def objc_kwarg_type?; end
270
290
  def objc_restarg_type?; end
271
291
  def objc_varargs_type?; end
@@ -282,6 +302,7 @@ class RuboCop::AST::Node < Parser::AST::Node
282
302
  def parent_module_name_for_sclass(sclass_node); end
283
303
  def parent_module_name_part(node); end
284
304
  def parenthesized_call?; end
305
+ def pin_type?; end
285
306
  def postexe_type?; end
286
307
  def preexe_type?; end
287
308
  def proc?(node = nil); end
@@ -322,6 +343,7 @@ class RuboCop::AST::Node < Parser::AST::Node
322
343
  def true_type?; end
323
344
  def truthy_literal?; end
324
345
  def undef_type?; end
346
+ def unless_guard_type?; end
325
347
  def until_post_type?; end
326
348
  def until_type?; end
327
349
  def updated(type = nil, children = nil, properties = nil); end
@@ -374,6 +396,7 @@ module RuboCop::AST::CollectionNode
374
396
  def at(*args, &block); end
375
397
  def bsearch(*args, &block); end
376
398
  def bsearch_index(*args, &block); end
399
+ def chain(*args, &block); end
377
400
  def chunk(*args, &block); end
378
401
  def chunk_while(*args, &block); end
379
402
  def clear(*args, &block); end
@@ -390,6 +413,7 @@ module RuboCop::AST::CollectionNode
390
413
  def delete_at(*args, &block); end
391
414
  def delete_if(*args, &block); end
392
415
  def detect(*args, &block); end
416
+ def difference(*args, &block); end
393
417
  def dig(*args, &block); end
394
418
  def drop(*args, &block); end
395
419
  def drop_while(*args, &block); end
@@ -402,8 +426,11 @@ module RuboCop::AST::CollectionNode
402
426
  def each_with_object(*args, &block); end
403
427
  def empty?(*args, &block); end
404
428
  def entries(*args, &block); end
429
+ def extract_options!(*args, &block); end
405
430
  def fetch(*args, &block); end
406
431
  def fill(*args, &block); end
432
+ def filter!(*args, &block); end
433
+ def filter(*args, &block); end
407
434
  def find(*args, &block); end
408
435
  def find_all(*args, &block); end
409
436
  def find_index(*args, &block); end
@@ -478,6 +505,7 @@ module RuboCop::AST::CollectionNode
478
505
  def to_h(*args, &block); end
479
506
  def to_set(*args, &block); end
480
507
  def transpose(*args, &block); end
508
+ def union(*args, &block); end
481
509
  def uniq!(*args, &block); end
482
510
  def uniq(*args, &block); end
483
511
  def unshift(*args, &block); end
@@ -603,6 +631,7 @@ class RuboCop::AST::BlockNode < RuboCop::AST::Node
603
631
  def send_node; end
604
632
  def single_line?; end
605
633
  def void_context?; end
634
+ include RuboCop::AST::MethodIdentifierPredicates
606
635
  end
607
636
  class RuboCop::AST::BreakNode < RuboCop::AST::Node
608
637
  def arguments; end
@@ -623,6 +652,7 @@ class RuboCop::AST::ClassNode < RuboCop::AST::Node
623
652
  def parent_class; end
624
653
  end
625
654
  class RuboCop::AST::DefNode < RuboCop::AST::Node
655
+ def argument_forwarding?; end
626
656
  def arguments; end
627
657
  def body; end
628
658
  def method_name; end
@@ -648,6 +678,10 @@ class RuboCop::AST::ForNode < RuboCop::AST::Node
648
678
  def variable; end
649
679
  def void_context?; end
650
680
  end
681
+ class RuboCop::AST::ForwardArgsNode < RuboCop::AST::Node
682
+ def to_a; end
683
+ include RuboCop::AST::CollectionNode
684
+ end
651
685
  class RuboCop::AST::FloatNode < RuboCop::AST::Node
652
686
  include RuboCop::AST::NumericNode
653
687
  end
@@ -728,6 +762,11 @@ class RuboCop::AST::RetryNode < RuboCop::AST::Node
728
762
  include RuboCop::AST::MethodDispatchNode
729
763
  include RuboCop::AST::ParameterizedNode
730
764
  end
765
+ class RuboCop::AST::ReturnNode < RuboCop::AST::Node
766
+ def arguments; end
767
+ include RuboCop::AST::MethodDispatchNode
768
+ include RuboCop::AST::ParameterizedNode
769
+ end
731
770
  class RuboCop::AST::SelfClassNode < RuboCop::AST::Node
732
771
  def body; end
733
772
  def identifier; end
@@ -787,6 +826,8 @@ module RuboCop::AST::Traversal
787
826
  def on_arg_expr(node); end
788
827
  def on_args(node); end
789
828
  def on_array(node); end
829
+ def on_array_pattern(node); end
830
+ def on_array_pattern_with_tail(node); end
790
831
  def on_back_ref(node); end
791
832
  def on_begin(node); end
792
833
  def on_block(node); end
@@ -794,11 +835,13 @@ module RuboCop::AST::Traversal
794
835
  def on_blockarg(node); end
795
836
  def on_break(node); end
796
837
  def on_case(node); end
838
+ def on_case_match(node); end
797
839
  def on_casgn(node); end
798
840
  def on_cbase(node); end
799
841
  def on_class(node); end
800
842
  def on_complex(node); end
801
843
  def on_const(node); end
844
+ def on_const_pattern(node); end
802
845
  def on_csend(node); end
803
846
  def on_cvar(node); end
804
847
  def on_cvasgn(node); end
@@ -813,11 +856,17 @@ module RuboCop::AST::Traversal
813
856
  def on_false(node); end
814
857
  def on_float(node); end
815
858
  def on_for(node); end
859
+ def on_forward_args(node); end
860
+ def on_forwarded_args(node); end
816
861
  def on_gvar(node); end
817
862
  def on_gvasgn(node); end
818
863
  def on_hash(node); end
864
+ def on_hash_pattern(node); end
819
865
  def on_if(node); end
866
+ def on_if_guard(node); end
820
867
  def on_iflipflop(node); end
868
+ def on_in_match(node); end
869
+ def on_in_pattern(node); end
821
870
  def on_int(node); end
822
871
  def on_irange(node); end
823
872
  def on_ivar(node); end
@@ -831,19 +880,27 @@ module RuboCop::AST::Traversal
831
880
  def on_lvar(node); end
832
881
  def on_lvasgn(node); end
833
882
  def on_masgn(node); end
883
+ def on_match_alt(node); end
884
+ def on_match_as(node); end
834
885
  def on_match_current_line(node); end
886
+ def on_match_nil_pattern(node); end
887
+ def on_match_rest(node); end
888
+ def on_match_var(node); end
835
889
  def on_match_with_lvasgn(node); end
890
+ def on_match_with_trailing_comma(node); end
836
891
  def on_mlhs(node); end
837
892
  def on_module(node); end
838
893
  def on_next(node); end
839
894
  def on_nil(node); end
840
895
  def on_not(node); end
841
896
  def on_nth_ref(node); end
897
+ def on_numblock(node); end
842
898
  def on_op_asgn(node); end
843
899
  def on_optarg(node); end
844
900
  def on_or(node); end
845
901
  def on_or_asgn(node); end
846
902
  def on_pair(node); end
903
+ def on_pin(node); end
847
904
  def on_postexe(node); end
848
905
  def on_preexe(node); end
849
906
  def on_rational(node); end
@@ -865,6 +922,7 @@ module RuboCop::AST::Traversal
865
922
  def on_sym(node); end
866
923
  def on_true(node); end
867
924
  def on_undef(node); end
925
+ def on_unless_guard(node); end
868
926
  def on_until(node); end
869
927
  def on_until_post(node); end
870
928
  def on_when(node); end
@@ -932,6 +990,7 @@ class RuboCop::Cop::Offense
932
990
  def column_length; end
933
991
  def column_range; end
934
992
  def cop_name; end
993
+ def correctable?; end
935
994
  def corrected?; end
936
995
  def corrected_with_todo?; end
937
996
  def disabled?; end
@@ -988,6 +1047,7 @@ module RuboCop::Cop::AutocorrectLogic
988
1047
  def max_line_length; end
989
1048
  def range_by_lines(range); end
990
1049
  def range_of_first_line(range); end
1050
+ def safe_autocorrect?; end
991
1051
  def support_autocorrect?; end
992
1052
  end
993
1053
  class RuboCop::Cop::Badge
@@ -1053,8 +1113,11 @@ class RuboCop::Cop::Cop
1053
1113
  def duplicate_location?(location); end
1054
1114
  def enabled_line?(line_number); end
1055
1115
  def excluded_file?(file); end
1116
+ def external_dependency_checksum; end
1056
1117
  def file_name_matches_any?(file, parameter, default_result); end
1057
1118
  def find_location(node, loc); end
1119
+ def find_message(node, message); end
1120
+ def find_severity(_node, severity); end
1058
1121
  def initialize(config = nil, options = nil); end
1059
1122
  def join_force?(_force_class); end
1060
1123
  def message(_node = nil); end
@@ -1110,6 +1173,8 @@ class RuboCop::Cop::Commissioner
1110
1173
  def on_arg_expr(node); end
1111
1174
  def on_args(node); end
1112
1175
  def on_array(node); end
1176
+ def on_array_pattern(node); end
1177
+ def on_array_pattern_with_tail(node); end
1113
1178
  def on_back_ref(node); end
1114
1179
  def on_begin(node); end
1115
1180
  def on_block(node); end
@@ -1117,11 +1182,13 @@ class RuboCop::Cop::Commissioner
1117
1182
  def on_blockarg(node); end
1118
1183
  def on_break(node); end
1119
1184
  def on_case(node); end
1185
+ def on_case_match(node); end
1120
1186
  def on_casgn(node); end
1121
1187
  def on_cbase(node); end
1122
1188
  def on_class(node); end
1123
1189
  def on_complex(node); end
1124
1190
  def on_const(node); end
1191
+ def on_const_pattern(node); end
1125
1192
  def on_csend(node); end
1126
1193
  def on_cvar(node); end
1127
1194
  def on_cvasgn(node); end
@@ -1136,11 +1203,17 @@ class RuboCop::Cop::Commissioner
1136
1203
  def on_false(node); end
1137
1204
  def on_float(node); end
1138
1205
  def on_for(node); end
1206
+ def on_forward_args(node); end
1207
+ def on_forwarded_args(node); end
1139
1208
  def on_gvar(node); end
1140
1209
  def on_gvasgn(node); end
1141
1210
  def on_hash(node); end
1211
+ def on_hash_pattern(node); end
1142
1212
  def on_if(node); end
1213
+ def on_if_guard(node); end
1143
1214
  def on_iflipflop(node); end
1215
+ def on_in_match(node); end
1216
+ def on_in_pattern(node); end
1144
1217
  def on_int(node); end
1145
1218
  def on_irange(node); end
1146
1219
  def on_ivar(node); end
@@ -1154,19 +1227,27 @@ class RuboCop::Cop::Commissioner
1154
1227
  def on_lvar(node); end
1155
1228
  def on_lvasgn(node); end
1156
1229
  def on_masgn(node); end
1230
+ def on_match_alt(node); end
1231
+ def on_match_as(node); end
1157
1232
  def on_match_current_line(node); end
1233
+ def on_match_nil_pattern(node); end
1234
+ def on_match_rest(node); end
1235
+ def on_match_var(node); end
1158
1236
  def on_match_with_lvasgn(node); end
1237
+ def on_match_with_trailing_comma(node); end
1159
1238
  def on_mlhs(node); end
1160
1239
  def on_module(node); end
1161
1240
  def on_next(node); end
1162
1241
  def on_nil(node); end
1163
1242
  def on_not(node); end
1164
1243
  def on_nth_ref(node); end
1244
+ def on_numblock(node); end
1165
1245
  def on_op_asgn(node); end
1166
1246
  def on_optarg(node); end
1167
1247
  def on_or(node); end
1168
1248
  def on_or_asgn(node); end
1169
1249
  def on_pair(node); end
1250
+ def on_pin(node); end
1170
1251
  def on_postexe(node); end
1171
1252
  def on_preexe(node); end
1172
1253
  def on_rational(node); end
@@ -1188,6 +1269,7 @@ class RuboCop::Cop::Commissioner
1188
1269
  def on_sym(node); end
1189
1270
  def on_true(node); end
1190
1271
  def on_undef(node); end
1272
+ def on_unless_guard(node); end
1191
1273
  def on_until(node); end
1192
1274
  def on_until_post(node); end
1193
1275
  def on_when(node); end
@@ -1200,6 +1282,8 @@ class RuboCop::Cop::Commissioner
1200
1282
  def remove_irrelevant_cops(filename); end
1201
1283
  def reset_callbacks; end
1202
1284
  def reset_errors; end
1285
+ def support_target_rails_version?(cop); end
1286
+ def support_target_ruby_version?(cop); end
1203
1287
  def trigger_responding_cops(callback, node); end
1204
1288
  def with_cop_error_handling(cop, node = nil); end
1205
1289
  include RuboCop::AST::Traversal
@@ -1316,6 +1400,7 @@ class RuboCop::Cop::VariableForce < RuboCop::Cop::Force
1316
1400
  def scanned_node?(node); end
1317
1401
  def scanned_nodes; end
1318
1402
  def skip_children!; end
1403
+ def twisted_nodes(node); end
1319
1404
  def variable_table; end
1320
1405
  end
1321
1406
  class RuboCop::Cop::VariableForce::VariableReference < Struct
@@ -1608,6 +1693,7 @@ module RuboCop::Cop::ConfigurableEnforcedStyle
1608
1693
  def no_acceptable_style?; end
1609
1694
  def opposite_style_detected; end
1610
1695
  def style; end
1696
+ def style_configured?; end
1611
1697
  def style_detected(detected); end
1612
1698
  def style_parameter_name; end
1613
1699
  def supported_styles; end
@@ -1717,25 +1803,26 @@ module RuboCop::Cop::FirstElementLineBreak
1717
1803
  end
1718
1804
  module RuboCop::Cop::FrozenStringLiteral
1719
1805
  def frozen_string_literal_comment_exists?; end
1806
+ def frozen_string_literal_specified?; end
1720
1807
  def frozen_string_literals_enabled?; end
1721
1808
  def leading_comment_lines; end
1722
1809
  def self.frozen_string_literal_comment_exists?; end
1723
1810
  end
1724
- module RuboCop::Cop::HashAlignment
1811
+ module RuboCop::Cop::HashAlignmentStyles
1725
1812
  end
1726
- class RuboCop::Cop::HashAlignment::KeyAlignment
1813
+ class RuboCop::Cop::HashAlignmentStyles::KeyAlignment
1727
1814
  def checkable_layout?(_node); end
1728
1815
  def deltas(first_pair, current_pair); end
1729
1816
  def deltas_for_first_pair(first_pair, _node); end
1730
1817
  def separator_delta(pair); end
1731
1818
  def value_delta(pair); end
1732
1819
  end
1733
- module RuboCop::Cop::HashAlignment::ValueAlignment
1820
+ module RuboCop::Cop::HashAlignmentStyles::ValueAlignment
1734
1821
  def checkable_layout?(node); end
1735
1822
  def deltas(first_pair, current_pair); end
1736
1823
  def separator_delta(first_pair, current_pair, key_delta); end
1737
1824
  end
1738
- class RuboCop::Cop::HashAlignment::TableAlignment
1825
+ class RuboCop::Cop::HashAlignmentStyles::TableAlignment
1739
1826
  def deltas_for_first_pair(first_pair, node); end
1740
1827
  def hash_rocket_delta(first_pair, current_pair); end
1741
1828
  def initialize; end
@@ -1743,14 +1830,63 @@ class RuboCop::Cop::HashAlignment::TableAlignment
1743
1830
  def max_key_width; end
1744
1831
  def max_key_width=(arg0); end
1745
1832
  def value_delta(first_pair, current_pair); end
1746
- include RuboCop::Cop::HashAlignment::ValueAlignment
1833
+ include RuboCop::Cop::HashAlignmentStyles::ValueAlignment
1747
1834
  end
1748
- class RuboCop::Cop::HashAlignment::SeparatorAlignment
1835
+ class RuboCop::Cop::HashAlignmentStyles::SeparatorAlignment
1749
1836
  def deltas_for_first_pair(*_nodes); end
1750
1837
  def hash_rocket_delta(first_pair, current_pair); end
1751
1838
  def key_delta(first_pair, current_pair); end
1752
1839
  def value_delta(first_pair, current_pair); end
1753
- include RuboCop::Cop::HashAlignment::ValueAlignment
1840
+ include RuboCop::Cop::HashAlignmentStyles::ValueAlignment
1841
+ end
1842
+ module RuboCop::Cop::HashTransformMethod
1843
+ def autocorrect(node); end
1844
+ def execute_correction(corrector, node, correction); end
1845
+ def extract_captures(_match); end
1846
+ def handle_possible_offense(node, match, match_desc); end
1847
+ def new_method_name; end
1848
+ def on_bad_each_with_object(_node); end
1849
+ def on_bad_hash_brackets_map(_node); end
1850
+ def on_bad_map_to_h(_node); end
1851
+ def on_block(node); end
1852
+ def on_csend(node); end
1853
+ def on_send(node); end
1854
+ def prepare_correction(node); end
1855
+ end
1856
+ class RuboCop::Cop::HashTransformMethod::Captures < Struct
1857
+ def noop_transformation?; end
1858
+ def self.[](*arg0); end
1859
+ def self.inspect; end
1860
+ def self.members; end
1861
+ def self.new(*arg0); end
1862
+ def transformation_uses_both_args?; end
1863
+ def transformed_argname; end
1864
+ def transformed_argname=(_); end
1865
+ def transforming_body_expr; end
1866
+ def transforming_body_expr=(_); end
1867
+ def unchanged_body_expr; end
1868
+ def unchanged_body_expr=(_); end
1869
+ end
1870
+ class RuboCop::Cop::HashTransformMethod::Autocorrection < Struct
1871
+ def block_node; end
1872
+ def block_node=(_); end
1873
+ def leading; end
1874
+ def leading=(_); end
1875
+ def match; end
1876
+ def match=(_); end
1877
+ def self.[](*arg0); end
1878
+ def self.from_each_with_object(node, match); end
1879
+ def self.from_hash_brackets_map(node, match); end
1880
+ def self.from_map_to_h(node, match); end
1881
+ def self.inspect; end
1882
+ def self.members; end
1883
+ def self.new(*arg0); end
1884
+ def set_new_arg_name(transformed_argname, corrector); end
1885
+ def set_new_body_expression(transforming_body_expr, corrector); end
1886
+ def set_new_method_name(new_method_name, corrector); end
1887
+ def strip_prefix_and_suffix(node, corrector); end
1888
+ def trailing; end
1889
+ def trailing=(_); end
1754
1890
  end
1755
1891
  module RuboCop::Cop::IgnoredPattern
1756
1892
  def ignored_line?(line); end
@@ -1771,6 +1907,20 @@ module RuboCop::Cop::Interpolation
1771
1907
  def on_regexp(node); end
1772
1908
  def on_xstr(node); end
1773
1909
  end
1910
+ module RuboCop::Cop::LineLengthHelp
1911
+ def allow_uri?; end
1912
+ def allowed_uri_position?(line, uri_range); end
1913
+ def directive_on_source_line?(line_index); end
1914
+ def find_excessive_uri_range(line); end
1915
+ def ignore_cop_directives?; end
1916
+ def indentation_difference(line); end
1917
+ def line_length(line); end
1918
+ def line_length_without_directive(line); end
1919
+ def match_uris(string); end
1920
+ def tab_indentation_width; end
1921
+ def uri_regexp; end
1922
+ def valid_uri?(uri_ish_string); end
1923
+ end
1774
1924
  module RuboCop::Cop::MatchRange
1775
1925
  def each_match_range(range, regex); end
1776
1926
  def match_range(range, match); end
@@ -1866,9 +2016,9 @@ module RuboCop::Cop::Heredoc
1866
2016
  def on_xstr(node); end
1867
2017
  end
1868
2018
  module RuboCop::Cop::NilMethods
2019
+ def allowed_methods; end
1869
2020
  def nil_methods; end
1870
2021
  def other_stdlib_methods; end
1871
- def whitelist; end
1872
2022
  end
1873
2023
  module RuboCop::Cop::OnNormalIfUnless
1874
2024
  def on_if(node); end
@@ -1936,6 +2086,10 @@ class RuboCop::Cop::PreferredDelimiters
1936
2086
  def preferred_delimiters_config; end
1937
2087
  def type; end
1938
2088
  end
2089
+ module RuboCop::Cop::RationalLiteral
2090
+ def rational_literal?(node = nil); end
2091
+ extend RuboCop::NodePattern::Macros
2092
+ end
1939
2093
  module RuboCop::Cop::RescueNode
1940
2094
  def investigate(processed_source); end
1941
2095
  def rescue_modifier?(node); end
@@ -1947,11 +2101,6 @@ module RuboCop::Cop::SafeAssignment
1947
2101
  def setter_method?(node = nil); end
1948
2102
  extend RuboCop::NodePattern::Macros
1949
2103
  end
1950
- module RuboCop::Cop::SafeMode
1951
- def rails?; end
1952
- def rails_safe_mode?; end
1953
- def safe_mode?; end
1954
- end
1955
2104
  module RuboCop::Cop::SpaceAfterPunctuation
1956
2105
  def allowed_type?(token); end
1957
2106
  def each_missing_space(tokens); end
@@ -2027,12 +2176,12 @@ module RuboCop::Cop::TrailingComma
2027
2176
  def allowed_multiline_argument?(node); end
2028
2177
  def any_heredoc?(items); end
2029
2178
  def autocorrect_range(item); end
2030
- def avoid_autocorrect?(_nodes); end
2031
2179
  def avoid_comma(kind, comma_begin_pos, extra_info); end
2032
2180
  def brackets?(node); end
2033
2181
  def check(node, items, kind, begin_pos, end_pos); end
2034
2182
  def check_comma(node, kind, comma_pos); end
2035
2183
  def check_literal(node, kind); end
2184
+ def comma_offset(items, range); end
2036
2185
  def elements(node); end
2037
2186
  def extra_avoid_comma_info; end
2038
2187
  def heredoc?(node); end
@@ -2042,7 +2191,7 @@ module RuboCop::Cop::TrailingComma
2042
2191
  def multiline?(node); end
2043
2192
  def no_elements_on_same_line?(node); end
2044
2193
  def on_same_line?(range1, range2); end
2045
- def put_comma(node, items, kind); end
2194
+ def put_comma(items, kind); end
2046
2195
  def should_have_comma?(style, node); end
2047
2196
  def style_parameter_name; end
2048
2197
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -2088,7 +2237,7 @@ class RuboCop::Cop::Utils::FormatString::FormatSequence
2088
2237
  def begin_pos; end
2089
2238
  def end_pos; end
2090
2239
  def flags; end
2091
- def initialize(string, **opts); end
2240
+ def initialize(match); end
2092
2241
  def max_digit_dollar_num; end
2093
2242
  def name; end
2094
2243
  def percent?; end
@@ -2104,6 +2253,8 @@ class RuboCop::Cop::Migration::DepartmentName < RuboCop::Cop::Cop
2104
2253
  def autocorrect(range); end
2105
2254
  def check_cop_name(name, comment, offset); end
2106
2255
  def investigate(processed_source); end
2256
+ def qualified_legacy_cop_name(cop_name); end
2257
+ def valid_content_token?(content_token); end
2107
2258
  include RuboCop::Cop::RangeHelp
2108
2259
  end
2109
2260
  class RuboCop::Cop::AlignmentCorrector
@@ -2272,11 +2423,11 @@ end
2272
2423
  class RuboCop::Cop::Bundler::GemComment < RuboCop::Cop::Cop
2273
2424
  def commented?(node); end
2274
2425
  def gem_declaration?(node = nil); end
2426
+ def ignored_gem?(node); end
2275
2427
  def on_send(node); end
2276
2428
  def precede?(node1, node2); end
2277
2429
  def preceding_comment?(node1, node2); end
2278
2430
  def preceding_lines(node); end
2279
- def whitelisted_gem?(node); end
2280
2431
  include RuboCop::Cop::DefNode
2281
2432
  end
2282
2433
  class RuboCop::Cop::Bundler::InsecureProtocolSource < RuboCop::Cop::Cop
@@ -2342,7 +2493,7 @@ class RuboCop::Cop::Layout::AccessModifierIndentation < RuboCop::Cop::Cop
2342
2493
  include RuboCop::Cop::ConfigurableEnforcedStyle
2343
2494
  include RuboCop::Cop::RangeHelp
2344
2495
  end
2345
- class RuboCop::Cop::Layout::AlignArguments < RuboCop::Cop::Cop
2496
+ class RuboCop::Cop::Layout::ArgumentAlignment < RuboCop::Cop::Cop
2346
2497
  def autocorrect(node); end
2347
2498
  def base_column(node, args); end
2348
2499
  def fixed_indentation?; end
@@ -2352,47 +2503,17 @@ class RuboCop::Cop::Layout::AlignArguments < RuboCop::Cop::Cop
2352
2503
  def target_method_lineno(node); end
2353
2504
  include RuboCop::Cop::Alignment
2354
2505
  end
2355
- class RuboCop::Cop::Layout::AlignArray < RuboCop::Cop::Cop
2506
+ class RuboCop::Cop::Layout::ArrayAlignment < RuboCop::Cop::Cop
2356
2507
  def autocorrect(node); end
2357
2508
  def on_array(node); end
2358
2509
  include RuboCop::Cop::Alignment
2359
2510
  end
2360
- class RuboCop::Cop::Layout::AlignHash < RuboCop::Cop::Cop
2361
- def add_offences; end
2362
- def adjust(corrector, delta, range); end
2363
- def alignment_for(pair); end
2364
- def alignment_for_colons; end
2365
- def alignment_for_hash_rockets; end
2366
- def autocorrect(node); end
2367
- def check_delta(delta, node:, alignment:); end
2368
- def check_pairs(node); end
2369
- def column_deltas; end
2370
- def column_deltas=(arg0); end
2371
- def correct_key_value(delta, key, value, separator); end
2372
- def correct_no_value(key_delta, key); end
2373
- def correct_node(node, delta); end
2374
- def double_splat?(node); end
2375
- def good_alignment?(column_deltas); end
2376
- def ignore_hash_argument?(node); end
2377
- def new_alignment(key); end
2378
- def offences_by; end
2379
- def offences_by=(arg0); end
2380
- def on_hash(node); end
2381
- def on_send(node); end
2382
- def on_super(node); end
2383
- def on_yield(node); end
2384
- include RuboCop::Cop::HashAlignment
2385
- include RuboCop::Cop::RangeHelp
2386
- end
2387
- class RuboCop::Cop::Layout::AlignParameters < RuboCop::Cop::Cop
2511
+ class RuboCop::Cop::Layout::AssignmentIndentation < RuboCop::Cop::Cop
2388
2512
  def autocorrect(node); end
2389
- def base_column(node, args); end
2390
- def fixed_indentation?; end
2391
- def message(_node); end
2392
- def on_def(node); end
2393
- def on_defs(node); end
2394
- def target_method_lineno(node); end
2513
+ def check_assignment(node, rhs); end
2514
+ def leftmost_multiple_assignment(node); end
2395
2515
  include RuboCop::Cop::Alignment
2516
+ include RuboCop::Cop::CheckAssignment
2396
2517
  end
2397
2518
  class RuboCop::Cop::Layout::BlockAlignment < RuboCop::Cop::Cop
2398
2519
  def add_space_before(loc, delta); end
@@ -2506,7 +2627,7 @@ class RuboCop::Cop::Layout::CommentIndentation < RuboCop::Cop::Cop
2506
2627
  def line_after_comment(comment); end
2507
2628
  def message(column, correct_comment_indentation); end
2508
2629
  def own_line_comment?(comment); end
2509
- def should_correct?(comment, column, line_no); end
2630
+ def should_correct?(preceding_comment, reference_comment); end
2510
2631
  def two_alternatives?(line); end
2511
2632
  include RuboCop::Cop::Alignment
2512
2633
  end
@@ -2558,7 +2679,7 @@ class RuboCop::Cop::Layout::EmptyComment < RuboCop::Cop::Cop
2558
2679
  def autocorrect(node); end
2559
2680
  def comment_text(comment); end
2560
2681
  def concat_consecutive_comments(comments); end
2561
- def current_token(node); end
2682
+ def current_token(comment); end
2562
2683
  def empty_comment_only?(comment_text); end
2563
2684
  def investigate(processed_source); end
2564
2685
  def previous_token(node); end
@@ -2712,6 +2833,7 @@ class RuboCop::Cop::Layout::EndAlignment < RuboCop::Cop::Cop
2712
2833
  end
2713
2834
  class RuboCop::Cop::Layout::EndOfLine < RuboCop::Cop::Cop
2714
2835
  def investigate(processed_source); end
2836
+ def last_line(processed_source); end
2715
2837
  def offense_message(line); end
2716
2838
  def unimportant_missing_cr?(index, last_line, line); end
2717
2839
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -2740,12 +2862,58 @@ class RuboCop::Cop::Layout::ExtraSpacing < RuboCop::Cop::Cop
2740
2862
  include RuboCop::Cop::PrecedingFollowingAlignment
2741
2863
  include RuboCop::Cop::RangeHelp
2742
2864
  end
2865
+ class RuboCop::Cop::Layout::FirstArgumentIndentation < RuboCop::Cop::Cop
2866
+ def autocorrect(node); end
2867
+ def base_indentation(node); end
2868
+ def base_range(send_node, arg_node); end
2869
+ def column_of(range); end
2870
+ def comment_lines; end
2871
+ def eligible_method_call?(node = nil); end
2872
+ def message(arg_node); end
2873
+ def on_csend(node); end
2874
+ def on_send(node); end
2875
+ def previous_code_line(line_number); end
2876
+ def special_inner_call_indentation?(node); end
2877
+ include RuboCop::Cop::Alignment
2878
+ include RuboCop::Cop::ConfigurableEnforcedStyle
2879
+ include RuboCop::Cop::RangeHelp
2880
+ end
2881
+ class RuboCop::Cop::Layout::FirstArrayElementIndentation < RuboCop::Cop::Cop
2882
+ def autocorrect(node); end
2883
+ def base_description(left_parenthesis); end
2884
+ def brace_alignment_style; end
2885
+ def check(array_node, left_parenthesis); end
2886
+ def check_right_bracket(right_bracket, left_bracket, left_parenthesis); end
2887
+ def message(base_description); end
2888
+ def on_array(node); end
2889
+ def on_csend(node); end
2890
+ def on_send(node); end
2891
+ include RuboCop::Cop::Alignment
2892
+ include RuboCop::Cop::ConfigurableEnforcedStyle
2893
+ include RuboCop::Cop::MultilineElementIndentation
2894
+ end
2743
2895
  class RuboCop::Cop::Layout::FirstArrayElementLineBreak < RuboCop::Cop::Cop
2744
2896
  def assignment_on_same_line?(node); end
2745
2897
  def autocorrect(node); end
2746
2898
  def on_array(node); end
2747
2899
  include RuboCop::Cop::FirstElementLineBreak
2748
2900
  end
2901
+ class RuboCop::Cop::Layout::FirstHashElementIndentation < RuboCop::Cop::Cop
2902
+ def autocorrect(node); end
2903
+ def base_description(left_parenthesis); end
2904
+ def brace_alignment_style; end
2905
+ def check(hash_node, left_parenthesis); end
2906
+ def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end
2907
+ def check_right_brace(right_brace, left_brace, left_parenthesis); end
2908
+ def message(base_description); end
2909
+ def on_csend(node); end
2910
+ def on_hash(node); end
2911
+ def on_send(node); end
2912
+ def separator_style?(first_pair); end
2913
+ include RuboCop::Cop::Alignment
2914
+ include RuboCop::Cop::ConfigurableEnforcedStyle
2915
+ include RuboCop::Cop::MultilineElementIndentation
2916
+ end
2749
2917
  class RuboCop::Cop::Layout::FirstHashElementLineBreak < RuboCop::Cop::Cop
2750
2918
  def autocorrect(node); end
2751
2919
  def on_hash(node); end
@@ -2764,6 +2932,46 @@ class RuboCop::Cop::Layout::FirstMethodParameterLineBreak < RuboCop::Cop::Cop
2764
2932
  def on_defs(node); end
2765
2933
  include RuboCop::Cop::FirstElementLineBreak
2766
2934
  end
2935
+ class RuboCop::Cop::Layout::FirstParameterIndentation < RuboCop::Cop::Cop
2936
+ def autocorrect(node); end
2937
+ def base_description(_); end
2938
+ def brace_alignment_style; end
2939
+ def check(def_node); end
2940
+ def message(base_description); end
2941
+ def on_def(node); end
2942
+ def on_defs(node); end
2943
+ include RuboCop::Cop::Alignment
2944
+ include RuboCop::Cop::ConfigurableEnforcedStyle
2945
+ include RuboCop::Cop::MultilineElementIndentation
2946
+ end
2947
+ class RuboCop::Cop::Layout::HashAlignment < RuboCop::Cop::Cop
2948
+ def add_offences; end
2949
+ def adjust(corrector, delta, range); end
2950
+ def alignment_for(pair); end
2951
+ def alignment_for_colons; end
2952
+ def alignment_for_hash_rockets; end
2953
+ def autocorrect(node); end
2954
+ def check_delta(delta, node:, alignment:); end
2955
+ def check_pairs(node); end
2956
+ def column_deltas; end
2957
+ def column_deltas=(arg0); end
2958
+ def correct_key_value(delta, key, value, separator); end
2959
+ def correct_no_value(key_delta, key); end
2960
+ def correct_node(node, delta); end
2961
+ def double_splat?(node); end
2962
+ def good_alignment?(column_deltas); end
2963
+ def ignore_hash_argument?(node); end
2964
+ def new_alignment(key); end
2965
+ def offences_by; end
2966
+ def offences_by=(arg0); end
2967
+ def on_hash(node); end
2968
+ def on_send(node); end
2969
+ def on_super(node); end
2970
+ def on_yield(node); end
2971
+ def reset!; end
2972
+ include RuboCop::Cop::HashAlignmentStyles
2973
+ include RuboCop::Cop::RangeHelp
2974
+ end
2767
2975
  class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < RuboCop::Cop::Cop
2768
2976
  def add_correct_closing_paren(node, corrector); end
2769
2977
  def add_correct_external_trailing_comma(node, corrector); end
@@ -2791,12 +2999,33 @@ class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < RuboCop::Cop::Co
2791
2999
  def space?(pos); end
2792
3000
  include RuboCop::Cop::RangeHelp
2793
3001
  end
2794
- class RuboCop::Cop::Layout::IndentAssignment < RuboCop::Cop::Cop
3002
+ class RuboCop::Cop::Layout::HeredocIndentation < RuboCop::Cop::Cop
3003
+ def adjust_minus(corrector, node); end
3004
+ def adjust_squiggly(corrector, node); end
2795
3005
  def autocorrect(node); end
2796
- def check_assignment(node, rhs); end
2797
- def leftmost_multiple_assignment(node); end
2798
- include RuboCop::Cop::Alignment
2799
- include RuboCop::Cop::CheckAssignment
3006
+ def base_indent_level(node); end
3007
+ def check_style!; end
3008
+ def correct_by_library(node); end
3009
+ def correct_by_squiggly(node); end
3010
+ def heredoc_body(node); end
3011
+ def heredoc_end(node); end
3012
+ def heredoc_indent_type(node); end
3013
+ def indent_level(str); end
3014
+ def indentation_width; end
3015
+ def indented_body(node); end
3016
+ def indented_end(node); end
3017
+ def library_message(indentation_width, method); end
3018
+ def line_too_long?(node); end
3019
+ def longest_line(lines); end
3020
+ def max_line_length; end
3021
+ def message(node); end
3022
+ def on_heredoc(node); end
3023
+ def ruby23_message(indentation_width, current_indent_type); end
3024
+ def ruby23_type_message(indentation_width, current_indent_type); end
3025
+ def ruby23_width_message(indentation_width); end
3026
+ def unlimited_heredoc_length?; end
3027
+ include RuboCop::Cop::ConfigurableEnforcedStyle
3028
+ include RuboCop::Cop::Heredoc
2800
3029
  end
2801
3030
  class RuboCop::Cop::Layout::IndentationConsistency < RuboCop::Cop::Cop
2802
3031
  def autocorrect(node); end
@@ -2857,119 +3086,74 @@ class RuboCop::Cop::Layout::IndentationWidth < RuboCop::Cop::Cop
2857
3086
  include RuboCop::Cop::IgnoredPattern
2858
3087
  include RuboCop::Cop::RangeHelp
2859
3088
  end
2860
- class RuboCop::Cop::Layout::IndentFirstArgument < RuboCop::Cop::Cop
3089
+ class RuboCop::Cop::Layout::InitialIndentation < RuboCop::Cop::Cop
3090
+ def autocorrect(range); end
3091
+ def first_token; end
3092
+ def investigate(_processed_source); end
3093
+ def space_before(token); end
3094
+ include RuboCop::Cop::RangeHelp
3095
+ end
3096
+ class RuboCop::Cop::Layout::LeadingCommentSpace < RuboCop::Cop::Cop
3097
+ def allow_doxygen_comment?; end
3098
+ def allow_gemfile_ruby_comment?; end
3099
+ def allowed_on_first_line?(comment); end
3100
+ def autocorrect(comment); end
3101
+ def doxygen_comment_style?(comment); end
3102
+ def gemfile?; end
3103
+ def gemfile_ruby_comment?(comment); end
3104
+ def investigate(processed_source); end
3105
+ def rackup_config_file?; end
3106
+ def rackup_options?(comment); end
3107
+ def ruby_comment_in_gemfile?(comment); end
3108
+ def shebang?(comment); end
3109
+ include RuboCop::Cop::RangeHelp
3110
+ end
3111
+ class RuboCop::Cop::Layout::LeadingEmptyLines < RuboCop::Cop::Cop
2861
3112
  def autocorrect(node); end
2862
- def base_indentation(node); end
2863
- def base_range(send_node, arg_node); end
2864
- def column_of(range); end
2865
- def eligible_method_call?(node = nil); end
2866
- def message(arg_node); end
2867
- def on_csend(node); end
3113
+ def investigate(processed_source); end
3114
+ end
3115
+ class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Cop
3116
+ def allow_heredoc?; end
3117
+ def allowed_heredoc; end
3118
+ def autocorrect(range); end
3119
+ def breakable_block_range(block_node); end
3120
+ def breakable_range_after_semicolon(semicolon_token); end
3121
+ def breakable_range_by_line_index; end
3122
+ def check_directive_line(line, line_index); end
3123
+ def check_for_breakable_block(block_node); end
3124
+ def check_for_breakable_node(node); end
3125
+ def check_for_breakable_semicolons(processed_source); end
3126
+ def check_line(line, line_index); end
3127
+ def check_uri_line(line, line_index); end
3128
+ def excess_range(uri_range, line, line_index); end
3129
+ def extract_heredocs(ast); end
3130
+ def heredocs; end
3131
+ def highlight_start(line); end
3132
+ def ignored_line?(line, line_index); end
3133
+ def investigate(processed_source); end
3134
+ def investigate_post_walk(processed_source); end
3135
+ def line_in_heredoc?(line_number); end
3136
+ def line_in_permitted_heredoc?(line_number); end
3137
+ def max; end
3138
+ def on_array(node); end
3139
+ def on_block(node); end
3140
+ def on_hash(node); end
3141
+ def on_potential_breakable_node(node); end
2868
3142
  def on_send(node); end
2869
- def previous_code_line(line_number); end
2870
- def special_inner_call_indentation?(node); end
2871
- include RuboCop::Cop::Alignment
2872
- include RuboCop::Cop::ConfigurableEnforcedStyle
3143
+ def register_offense(loc, line, line_index); end
3144
+ def shebang?(line, line_index); end
3145
+ include RuboCop::Cop::CheckLineBreakable
3146
+ include RuboCop::Cop::ConfigurableMax
3147
+ include RuboCop::Cop::IgnoredPattern
3148
+ include RuboCop::Cop::LineLengthHelp
2873
3149
  include RuboCop::Cop::RangeHelp
2874
3150
  end
2875
- class RuboCop::Cop::Layout::IndentFirstArrayElement < RuboCop::Cop::Cop
3151
+ class RuboCop::Cop::Layout::MultilineArrayBraceLayout < RuboCop::Cop::Cop
2876
3152
  def autocorrect(node); end
2877
- def base_description(left_parenthesis); end
2878
- def brace_alignment_style; end
2879
- def check(array_node, left_parenthesis); end
2880
- def check_right_bracket(right_bracket, left_bracket, left_parenthesis); end
2881
- def message(base_description); end
2882
3153
  def on_array(node); end
2883
- def on_csend(node); end
2884
- def on_send(node); end
2885
- include RuboCop::Cop::Alignment
2886
- include RuboCop::Cop::ConfigurableEnforcedStyle
2887
- include RuboCop::Cop::MultilineElementIndentation
3154
+ include RuboCop::Cop::MultilineLiteralBraceLayout
2888
3155
  end
2889
- class RuboCop::Cop::Layout::IndentFirstHashElement < RuboCop::Cop::Cop
2890
- def autocorrect(node); end
2891
- def base_description(left_parenthesis); end
2892
- def brace_alignment_style; end
2893
- def check(hash_node, left_parenthesis); end
2894
- def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end
2895
- def check_right_brace(right_brace, left_brace, left_parenthesis); end
2896
- def message(base_description); end
2897
- def on_csend(node); end
2898
- def on_hash(node); end
2899
- def on_send(node); end
2900
- def separator_style?(first_pair); end
2901
- include RuboCop::Cop::Alignment
2902
- include RuboCop::Cop::ConfigurableEnforcedStyle
2903
- include RuboCop::Cop::MultilineElementIndentation
2904
- end
2905
- class RuboCop::Cop::Layout::IndentFirstParameter < RuboCop::Cop::Cop
2906
- def autocorrect(node); end
2907
- def base_description(_); end
2908
- def brace_alignment_style; end
2909
- def check(def_node); end
2910
- def message(base_description); end
2911
- def on_def(node); end
2912
- def on_defs(node); end
2913
- include RuboCop::Cop::Alignment
2914
- include RuboCop::Cop::ConfigurableEnforcedStyle
2915
- include RuboCop::Cop::MultilineElementIndentation
2916
- end
2917
- class RuboCop::Cop::Layout::IndentHeredoc < RuboCop::Cop::Cop
2918
- def adjust_minus(corrector, node); end
2919
- def adjust_squiggly(corrector, node); end
2920
- def autocorrect(node); end
2921
- def base_indent_level(node); end
2922
- def check_style!; end
2923
- def correct_by_library(node); end
2924
- def correct_by_squiggly(node); end
2925
- def heredoc_body(node); end
2926
- def heredoc_end(node); end
2927
- def heredoc_indent_type(node); end
2928
- def indent_level(str); end
2929
- def indentation_width; end
2930
- def indented_body(node); end
2931
- def indented_end(node); end
2932
- def library_message(indentation_width, method); end
2933
- def line_too_long?(node); end
2934
- def longest_line(lines); end
2935
- def max_line_length; end
2936
- def message(node); end
2937
- def on_heredoc(node); end
2938
- def ruby23_message(indentation_width, current_indent_type); end
2939
- def ruby23_type_message(indentation_width, current_indent_type); end
2940
- def ruby23_width_message(indentation_width); end
2941
- def unlimited_heredoc_length?; end
2942
- include RuboCop::Cop::ConfigurableEnforcedStyle
2943
- include RuboCop::Cop::Heredoc
2944
- end
2945
- class RuboCop::Cop::Layout::InitialIndentation < RuboCop::Cop::Cop
2946
- def autocorrect(range); end
2947
- def first_token; end
2948
- def investigate(_processed_source); end
2949
- def space_before(token); end
2950
- include RuboCop::Cop::RangeHelp
2951
- end
2952
- class RuboCop::Cop::Layout::LeadingBlankLines < RuboCop::Cop::Cop
2953
- def autocorrect(node); end
2954
- def investigate(processed_source); end
2955
- end
2956
- class RuboCop::Cop::Layout::LeadingCommentSpace < RuboCop::Cop::Cop
2957
- def allow_doxygen_comment?; end
2958
- def allowed_on_first_line?(comment); end
2959
- def autocorrect(comment); end
2960
- def doxygen_comment_style?(comment); end
2961
- def investigate(processed_source); end
2962
- def rackup_config_file?; end
2963
- def rackup_options?(comment); end
2964
- def shebang?(comment); end
2965
- include RuboCop::Cop::RangeHelp
2966
- end
2967
- class RuboCop::Cop::Layout::MultilineArrayBraceLayout < RuboCop::Cop::Cop
2968
- def autocorrect(node); end
2969
- def on_array(node); end
2970
- include RuboCop::Cop::MultilineLiteralBraceLayout
2971
- end
2972
- class RuboCop::Cop::Layout::MultilineArrayLineBreaks < RuboCop::Cop::Cop
3156
+ class RuboCop::Cop::Layout::MultilineArrayLineBreaks < RuboCop::Cop::Cop
2973
3157
  def autocorrect(node); end
2974
3158
  def on_array(node); end
2975
3159
  include RuboCop::Cop::MultilineElementLineBreaks
@@ -2991,7 +3175,8 @@ class RuboCop::Cop::Layout::MultilineBlockLayout < RuboCop::Cop::Cop
2991
3175
  def autocorrect(node); end
2992
3176
  def autocorrect_arguments(corrector, node); end
2993
3177
  def autocorrect_body(corrector, node, block_body); end
2994
- def block_arg_string(args); end
3178
+ def block_arg_string(node, args); end
3179
+ def include_trailing_comma?(args); end
2995
3180
  def line_break_necessary_in_args?(node); end
2996
3181
  def on_block(node); end
2997
3182
  include RuboCop::Cop::RangeHelp
@@ -2999,7 +3184,6 @@ end
2999
3184
  class RuboCop::Cop::Layout::MultilineHashBraceLayout < RuboCop::Cop::Cop
3000
3185
  def autocorrect(node); end
3001
3186
  def on_hash(node); end
3002
- def self.autocorrect_incompatible_with; end
3003
3187
  include RuboCop::Cop::MultilineLiteralBraceLayout
3004
3188
  end
3005
3189
  class RuboCop::Cop::Layout::MultilineHashKeyLineBreaks < RuboCop::Cop::Cop
@@ -3065,6 +3249,16 @@ class RuboCop::Cop::Layout::MultilineOperationIndentation < RuboCop::Cop::Cop
3065
3249
  include RuboCop::Cop::ConfigurableEnforcedStyle
3066
3250
  include RuboCop::Cop::MultilineExpressionIndentation
3067
3251
  end
3252
+ class RuboCop::Cop::Layout::ParameterAlignment < RuboCop::Cop::Cop
3253
+ def autocorrect(node); end
3254
+ def base_column(node, args); end
3255
+ def fixed_indentation?; end
3256
+ def message(_node); end
3257
+ def on_def(node); end
3258
+ def on_defs(node); end
3259
+ def target_method_lineno(node); end
3260
+ include RuboCop::Cop::Alignment
3261
+ end
3068
3262
  class RuboCop::Cop::Layout::RescueEnsureAlignment < RuboCop::Cop::Cop
3069
3263
  def access_modifier?(node); end
3070
3264
  def access_modifier_node(node); end
@@ -3147,6 +3341,7 @@ end
3147
3341
  class RuboCop::Cop::Layout::SpaceAroundKeyword < RuboCop::Cop::Cop
3148
3342
  def accept_left_parenthesis?(range); end
3149
3343
  def accept_left_square_bracket?(range); end
3344
+ def accept_namespace_operator?(range); end
3150
3345
  def accepted_opening_delimiter?(range, char); end
3151
3346
  def autocorrect(range); end
3152
3347
  def check(node, locations, begin_keyword = nil); end
@@ -3154,6 +3349,7 @@ class RuboCop::Cop::Layout::SpaceAroundKeyword < RuboCop::Cop::Cop
3154
3349
  def check_end(node, range, begin_keyword); end
3155
3350
  def check_keyword(node, range); end
3156
3351
  def do?(node); end
3352
+ def namespace_operator?(range, pos); end
3157
3353
  def offense(range, msg); end
3158
3354
  def on_and(node); end
3159
3355
  def on_block(node); end
@@ -3214,13 +3410,18 @@ class RuboCop::Cop::Layout::SpaceAroundOperators < RuboCop::Cop::Cop
3214
3410
  def operator_with_regular_syntax?(send_node); end
3215
3411
  def regular_operator?(send_node); end
3216
3412
  def self.autocorrect_incompatible_with; end
3413
+ def should_not_have_surrounding_space?(operator); end
3414
+ def space_around_exponent_operator?; end
3217
3415
  include RuboCop::Cop::PrecedingFollowingAlignment
3218
3416
  include RuboCop::Cop::RangeHelp
3417
+ include RuboCop::Cop::RationalLiteral
3219
3418
  end
3220
3419
  class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < RuboCop::Cop::Cop
3221
3420
  def autocorrect(range); end
3421
+ def block_delimiters_style; end
3222
3422
  def check_empty(left_brace, space_plus_brace, used_style); end
3223
3423
  def check_non_empty(left_brace, space_plus_brace, used_style); end
3424
+ def conflict_with_block_delimiters?(node); end
3224
3425
  def empty_braces?(loc); end
3225
3426
  def on_block(node); end
3226
3427
  def self.autocorrect_incompatible_with; end
@@ -3242,6 +3443,7 @@ end
3242
3443
  class RuboCop::Cop::Layout::SpaceBeforeFirstArg < RuboCop::Cop::Cop
3243
3444
  def autocorrect(range); end
3244
3445
  def expect_params_after_method_name?(node); end
3446
+ def no_space_between_method_name_and_first_argument?(node); end
3245
3447
  def on_csend(node); end
3246
3448
  def on_send(node); end
3247
3449
  def regular_method_call_with_arguments?(node); end
@@ -3258,6 +3460,7 @@ class RuboCop::Cop::Layout::SpaceInLambdaLiteral < RuboCop::Cop::Cop
3258
3460
  def autocorrect(lambda_node); end
3259
3461
  def on_send(node); end
3260
3462
  def range_of_offense(node); end
3463
+ def space_after_arrow(lambda_node); end
3261
3464
  def space_after_arrow?(lambda_node); end
3262
3465
  include RuboCop::Cop::ConfigurableEnforcedStyle
3263
3466
  include RuboCop::Cop::RangeHelp
@@ -3273,6 +3476,7 @@ end
3273
3476
  class RuboCop::Cop::Layout::SpaceInsideArrayLiteralBrackets < RuboCop::Cop::Cop
3274
3477
  def array_brackets(node); end
3275
3478
  def autocorrect(node); end
3479
+ def compact(corrector, bracket, side); end
3276
3480
  def compact_corrections(corrector, node, left, right); end
3277
3481
  def compact_offense(node, token, side: nil); end
3278
3482
  def compact_offenses(node, left, right, start_ok, end_ok); end
@@ -3338,6 +3542,7 @@ class RuboCop::Cop::Layout::SpaceInsideParens < RuboCop::Cop::Cop
3338
3542
  def each_missing_space(tokens); end
3339
3543
  def investigate(processed_source); end
3340
3544
  def parens?(token1, token2); end
3545
+ def same_line?(token1, token2); end
3341
3546
  include RuboCop::Cop::ConfigurableEnforcedStyle
3342
3547
  include RuboCop::Cop::RangeHelp
3343
3548
  include RuboCop::Cop::SurroundingSpace
@@ -3387,7 +3592,7 @@ class RuboCop::Cop::Layout::Tab < RuboCop::Cop::Cop
3387
3592
  include RuboCop::Cop::Alignment
3388
3593
  include RuboCop::Cop::RangeHelp
3389
3594
  end
3390
- class RuboCop::Cop::Layout::TrailingBlankLines < RuboCop::Cop::Cop
3595
+ class RuboCop::Cop::Layout::TrailingEmptyLines < RuboCop::Cop::Cop
3391
3596
  def autocorrect(range); end
3392
3597
  def ends_in_end?(processed_source); end
3393
3598
  def investigate(processed_source); end
@@ -3481,6 +3686,10 @@ class RuboCop::Cop::Lint::DuplicateCaseCondition < RuboCop::Cop::Cop
3481
3686
  def on_case(case_node); end
3482
3687
  def repeated_condition?(previous, condition); end
3483
3688
  end
3689
+ class RuboCop::Cop::Lint::DuplicateHashKey < RuboCop::Cop::Cop
3690
+ def on_hash(node); end
3691
+ include RuboCop::Cop::Duplication
3692
+ end
3484
3693
  class RuboCop::Cop::Lint::DuplicateMethods < RuboCop::Cop::Cop
3485
3694
  def alias_method?(node = nil); end
3486
3695
  def attr?(node = nil); end
@@ -3503,10 +3712,6 @@ class RuboCop::Cop::Lint::DuplicateMethods < RuboCop::Cop::Cop
3503
3712
  def source_location(node); end
3504
3713
  def sym_name(node = nil); end
3505
3714
  end
3506
- class RuboCop::Cop::Lint::DuplicatedKey < RuboCop::Cop::Cop
3507
- def on_hash(node); end
3508
- include RuboCop::Cop::Duplication
3509
- end
3510
3715
  class RuboCop::Cop::Lint::EachWithObjectArgument < RuboCop::Cop::Cop
3511
3716
  def each_with_object?(node = nil); end
3512
3717
  def on_csend(node); end
@@ -3577,10 +3782,6 @@ class RuboCop::Cop::Lint::FormatParameterMismatch < RuboCop::Cop::Cop
3577
3782
  def splat_args?(node); end
3578
3783
  def sprintf?(node); end
3579
3784
  end
3580
- class RuboCop::Cop::Lint::HandleExceptions < RuboCop::Cop::Cop
3581
- def comment_lines?(node); end
3582
- def on_resbody(node); end
3583
- end
3584
3785
  class RuboCop::Cop::Lint::HeredocMethodCallPosition < RuboCop::Cop::Cop
3585
3786
  def all_on_same_line?(nodes); end
3586
3787
  def autocorrect(node); end
@@ -3674,7 +3875,7 @@ class RuboCop::Cop::Lint::MissingCopEnableDirective < RuboCop::Cop::Cop
3674
3875
  def message(max_range:, cop:); end
3675
3876
  include RuboCop::Cop::RangeHelp
3676
3877
  end
3677
- class RuboCop::Cop::Lint::MultipleCompare < RuboCop::Cop::Cop
3878
+ class RuboCop::Cop::Lint::MultipleComparison < RuboCop::Cop::Cop
3678
3879
  def autocorrect(node); end
3679
3880
  def multiple_compare?(node = nil); end
3680
3881
  def on_send(node); end
@@ -3699,6 +3900,15 @@ class RuboCop::Cop::Lint::NextWithoutAccumulator < RuboCop::Cop::Cop
3699
3900
  def on_body_of_reduce(node = nil); end
3700
3901
  def parent_block_node(node); end
3701
3902
  end
3903
+ class RuboCop::Cop::Lint::NonDeterministicRequireOrder < RuboCop::Cop::Cop
3904
+ def autocorrect(node); end
3905
+ def loop_variable(node = nil); end
3906
+ def on_block(node); end
3907
+ def unsorted_dir_block?(node = nil); end
3908
+ def unsorted_dir_each?(node = nil); end
3909
+ def unsorted_dir_loop?(node); end
3910
+ def var_is_required?(node0, param1); end
3911
+ end
3702
3912
  class RuboCop::Cop::Lint::NonLocalExitFromIterator < RuboCop::Cop::Cop
3703
3913
  def chained_send?(node = nil); end
3704
3914
  def define_method?(node = nil); end
@@ -3748,6 +3958,70 @@ class RuboCop::Cop::Lint::RandOne < RuboCop::Cop::Cop
3748
3958
  def on_send(node); end
3749
3959
  def rand_one?(node = nil); end
3750
3960
  end
3961
+ class RuboCop::Cop::Lint::RedundantCopDisableDirective < RuboCop::Cop::Cop
3962
+ def add_offense_for_entire_comment(comment, cops); end
3963
+ def add_offense_for_some_cops(comment, cops); end
3964
+ def add_offenses(redundant_cops); end
3965
+ def all_cop_names; end
3966
+ def all_disabled?(comment); end
3967
+ def autocorrect(args); end
3968
+ def check(offenses, cop_disabled_line_ranges, comments); end
3969
+ def collect_variable_like_names(scope); end
3970
+ def comment_range_with_surrounding_space(range); end
3971
+ def cop_range(comment, cop); end
3972
+ def describe(cop); end
3973
+ def directive_count(comment); end
3974
+ def directive_range_in_list(range, ranges); end
3975
+ def each_already_disabled(line_ranges, disabled_ranges, comments); end
3976
+ def each_line_range(line_ranges, disabled_ranges, offenses, comments, cop); end
3977
+ def each_redundant_disable(cop_disabled_line_ranges, offenses, comments, &block); end
3978
+ def ends_its_line?(range); end
3979
+ def find_redundant(comment, offenses, cop, line_range, next_line_range); end
3980
+ def ignore_offense?(disabled_ranges, line_range); end
3981
+ def matching_range(haystack, needle); end
3982
+ def trailing_range?(ranges, range); end
3983
+ include RuboCop::Cop::RangeHelp
3984
+ include RuboCop::NameSimilarity
3985
+ end
3986
+ class RuboCop::Cop::Lint::RedundantCopEnableDirective < RuboCop::Cop::Cop
3987
+ def all_or_name(name); end
3988
+ def autocorrect(comment_and_name); end
3989
+ def comment_start(comment); end
3990
+ def cop_name_indention(comment, name); end
3991
+ def investigate(processed_source); end
3992
+ def range_of_offense(comment, name); end
3993
+ def range_to_remove(begin_pos, end_pos, comma_pos, comment); end
3994
+ def range_with_comma(comment, name); end
3995
+ include RuboCop::Cop::RangeHelp
3996
+ include RuboCop::Cop::SurroundingSpace
3997
+ end
3998
+ class RuboCop::Cop::Lint::RedundantRequireStatement < RuboCop::Cop::Cop
3999
+ def autocorrect(node); end
4000
+ def on_send(node); end
4001
+ def unnecessary_require_statement?(node = nil); end
4002
+ include RuboCop::Cop::RangeHelp
4003
+ end
4004
+ class RuboCop::Cop::Lint::RedundantSplatExpansion < RuboCop::Cop::Cop
4005
+ def array_new?(node = nil); end
4006
+ def array_new_inside_array_literal?(array_new_node); end
4007
+ def array_splat?(node); end
4008
+ def autocorrect(node); end
4009
+ def literal_expansion(node = nil); end
4010
+ def method_argument?(node); end
4011
+ def on_splat(node); end
4012
+ def part_of_an_array?(node); end
4013
+ def redundant_brackets?(node); end
4014
+ def redundant_splat_expansion(node); end
4015
+ def remove_brackets(array); end
4016
+ def replacement_range_and_content(node); end
4017
+ end
4018
+ class RuboCop::Cop::Lint::RedundantStringCoercion < RuboCop::Cop::Cop
4019
+ def autocorrect(node); end
4020
+ def message(node); end
4021
+ def on_interpolation(begin_node); end
4022
+ def to_s_without_args?(node = nil); end
4023
+ include RuboCop::Cop::Interpolation
4024
+ end
3751
4025
  class RuboCop::Cop::Lint::RedundantWithIndex < RuboCop::Cop::Cop
3752
4026
  def autocorrect(node); end
3753
4027
  def message(node); end
@@ -3858,12 +4132,9 @@ class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < RuboCop::Cop::Cop
3858
4132
  def before_declaring_variable(variable, variable_table); end
3859
4133
  def join_force?(force_class); end
3860
4134
  end
3861
- class RuboCop::Cop::Lint::StringConversionInInterpolation < RuboCop::Cop::Cop
3862
- def autocorrect(node); end
3863
- def message(node); end
3864
- def on_interpolation(begin_node); end
3865
- def to_s_without_args?(node = nil); end
3866
- include RuboCop::Cop::Interpolation
4135
+ class RuboCop::Cop::Lint::SuppressedException < RuboCop::Cop::Cop
4136
+ def comment_lines?(node); end
4137
+ def on_resbody(node); end
3867
4138
  end
3868
4139
  class RuboCop::Cop::Lint::Syntax < RuboCop::Cop::Cop
3869
4140
  def add_offense_from_diagnostic(diagnostic, ruby_version); end
@@ -3902,63 +4173,6 @@ class RuboCop::Cop::Lint::UnifiedInteger < RuboCop::Cop::Cop
3902
4173
  def fixnum_or_bignum_const(node = nil); end
3903
4174
  def on_const(node); end
3904
4175
  end
3905
- class RuboCop::Cop::Lint::UnneededCopDisableDirective < RuboCop::Cop::Cop
3906
- def add_offense_for_entire_comment(comment, cops); end
3907
- def add_offense_for_some_cops(comment, cops); end
3908
- def add_offenses(unneeded_cops); end
3909
- def all_cop_names; end
3910
- def all_disabled?(comment); end
3911
- def autocorrect(args); end
3912
- def check(offenses, cop_disabled_line_ranges, comments); end
3913
- def collect_variable_like_names(scope); end
3914
- def comment_range_with_surrounding_space(range); end
3915
- def cop_range(comment, cop); end
3916
- def describe(cop); end
3917
- def directive_count(comment); end
3918
- def directive_range_in_list(range, ranges); end
3919
- def each_already_disabled(line_ranges, disabled_ranges, comments); end
3920
- def each_line_range(line_ranges, disabled_ranges, offenses, comments, cop); end
3921
- def each_unneeded_disable(cop_disabled_line_ranges, offenses, comments, &block); end
3922
- def ends_its_line?(range); end
3923
- def find_unneeded(comment, offenses, cop, line_range, next_line_range); end
3924
- def ignore_offense?(disabled_ranges, line_range); end
3925
- def matching_range(haystack, needle); end
3926
- def trailing_range?(ranges, range); end
3927
- include RuboCop::Cop::RangeHelp
3928
- include RuboCop::NameSimilarity
3929
- end
3930
- class RuboCop::Cop::Lint::UnneededCopEnableDirective < RuboCop::Cop::Cop
3931
- def all_or_name(name); end
3932
- def autocorrect(comment_and_name); end
3933
- def comment_start(comment); end
3934
- def cop_name_indention(comment, name); end
3935
- def investigate(processed_source); end
3936
- def range_of_offense(comment, name); end
3937
- def range_to_remove(begin_pos, end_pos, comma_pos, comment); end
3938
- def range_with_comma(comment, name); end
3939
- include RuboCop::Cop::RangeHelp
3940
- include RuboCop::Cop::SurroundingSpace
3941
- end
3942
- class RuboCop::Cop::Lint::UnneededRequireStatement < RuboCop::Cop::Cop
3943
- def autocorrect(node); end
3944
- def on_send(node); end
3945
- def unnecessary_require_statement?(node = nil); end
3946
- include RuboCop::Cop::RangeHelp
3947
- end
3948
- class RuboCop::Cop::Lint::UnneededSplatExpansion < RuboCop::Cop::Cop
3949
- def array_new?(node = nil); end
3950
- def array_new_inside_array_literal?(array_new_node); end
3951
- def array_splat?(node); end
3952
- def autocorrect(node); end
3953
- def literal_expansion(node = nil); end
3954
- def method_argument?(node); end
3955
- def on_splat(node); end
3956
- def part_of_an_array?(node); end
3957
- def remove_brackets(array); end
3958
- def replacement_range_and_content(node); end
3959
- def unneeded_brackets?(node); end
3960
- def unneeded_splat_expansion(node); end
3961
- end
3962
4176
  class RuboCop::Cop::Lint::UnreachableCode < RuboCop::Cop::Cop
3963
4177
  def check_case(node); end
3964
4178
  def check_if(node); end
@@ -4085,10 +4299,13 @@ end
4085
4299
  module RuboCop::Cop::Metrics::Utils
4086
4300
  end
4087
4301
  class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
4302
+ def branch?(node); end
4088
4303
  def calculate; end
4304
+ def condition?(node); end
4305
+ def else_branch?(node); end
4089
4306
  def evaluate_branch_nodes(node); end
4307
+ def evaluate_condition_node(node); end
4090
4308
  def initialize(node); end
4091
- def node_has_else_branch?(node); end
4092
4309
  def self.calculate(node); end
4093
4310
  end
4094
4311
  class RuboCop::Cop::Metrics::AbcSize < RuboCop::Cop::Cop
@@ -4117,49 +4334,6 @@ class RuboCop::Cop::Metrics::ClassLength < RuboCop::Cop::Cop
4117
4334
  def on_class(node); end
4118
4335
  include RuboCop::Cop::ClassishLength
4119
4336
  end
4120
- class RuboCop::Cop::Metrics::LineLength < RuboCop::Cop::Cop
4121
- def allow_heredoc?; end
4122
- def allow_uri?; end
4123
- def allowed_heredoc; end
4124
- def allowed_uri_position?(line, uri_range); end
4125
- def autocorrect(range); end
4126
- def breakable_nodes_by_line_index; end
4127
- def breakable_range(line, line_index); end
4128
- def breakable_semicolon_range(line, line_index); end
4129
- def check_directive_line(line, line_index); end
4130
- def check_for_breakable_node(node); end
4131
- def check_line(line, line_index); end
4132
- def check_uri_line(line, line_index); end
4133
- def directive_on_source_line?(line_index); end
4134
- def excess_range(uri_range, line, line_index); end
4135
- def extract_heredocs(ast); end
4136
- def find_excessive_uri_range(line); end
4137
- def heredocs; end
4138
- def highlight_start(line); end
4139
- def ignore_cop_directives?; end
4140
- def ignored_line?(line, line_index); end
4141
- def indentation_difference(line); end
4142
- def investigate_post_walk(processed_source); end
4143
- def line_in_heredoc?(line_number); end
4144
- def line_in_permitted_heredoc?(line_number); end
4145
- def line_length(line); end
4146
- def line_length_without_directive(line); end
4147
- def match_uris(string); end
4148
- def max; end
4149
- def on_array(node); end
4150
- def on_hash(node); end
4151
- def on_potential_breakable_node(node); end
4152
- def on_send(node); end
4153
- def register_offense(loc, line, line_index); end
4154
- def shebang?(line, line_index); end
4155
- def tab_indentation_width; end
4156
- def uri_regexp; end
4157
- def valid_uri?(uri_ish_string); end
4158
- include RuboCop::Cop::CheckLineBreakable
4159
- include RuboCop::Cop::ConfigurableMax
4160
- include RuboCop::Cop::IgnoredPattern
4161
- include RuboCop::Cop::RangeHelp
4162
- end
4163
4337
  class RuboCop::Cop::Metrics::MethodLength < RuboCop::Cop::Cop
4164
4338
  def cop_label; end
4165
4339
  def on_block(node); end
@@ -4202,6 +4376,10 @@ class RuboCop::Cop::Naming::AsciiIdentifiers < RuboCop::Cop::Cop
4202
4376
  def investigate(processed_source); end
4203
4377
  include RuboCop::Cop::RangeHelp
4204
4378
  end
4379
+ class RuboCop::Cop::Naming::BlockParameterName < RuboCop::Cop::Cop
4380
+ def on_block(node); end
4381
+ include RuboCop::Cop::UncommunicativeName
4382
+ end
4205
4383
  class RuboCop::Cop::Naming::ClassAndModuleCamelCase < RuboCop::Cop::Cop
4206
4384
  def on_class(node); end
4207
4385
  def on_module(node); end
@@ -4217,6 +4395,7 @@ class RuboCop::Cop::Naming::ConstantName < RuboCop::Cop::Cop
4217
4395
  end
4218
4396
  class RuboCop::Cop::Naming::FileName < RuboCop::Cop::Cop
4219
4397
  def allowed_acronyms; end
4398
+ def bad_filename_allowed?; end
4220
4399
  def expect_matching_definition?; end
4221
4400
  def filename_good?(basename); end
4222
4401
  def find_class_or_module(node, namespace); end
@@ -4226,6 +4405,7 @@ class RuboCop::Cop::Naming::FileName < RuboCop::Cop::Cop
4226
4405
  def match?(expected); end
4227
4406
  def match_acronym?(expected, name); end
4228
4407
  def match_namespace(node, namespace, expected); end
4408
+ def matching_definition?(file_path); end
4229
4409
  def no_definition_message(basename, file_path); end
4230
4410
  def other_message(basename); end
4231
4411
  def partial_matcher!(expected); end
@@ -4243,7 +4423,7 @@ class RuboCop::Cop::Naming::HeredocDelimiterCase < RuboCop::Cop::Cop
4243
4423
  include RuboCop::Cop::Heredoc
4244
4424
  end
4245
4425
  class RuboCop::Cop::Naming::HeredocDelimiterNaming < RuboCop::Cop::Cop
4246
- def blacklisted_delimiters; end
4426
+ def forbidden_delimiters; end
4247
4427
  def meaningful_delimiters?(node); end
4248
4428
  def on_heredoc(node); end
4249
4429
  include RuboCop::Cop::Heredoc
@@ -4267,6 +4447,11 @@ class RuboCop::Cop::Naming::MethodName < RuboCop::Cop::Cop
4267
4447
  include RuboCop::Cop::ConfigurableNaming
4268
4448
  include RuboCop::Cop::IgnoredPattern
4269
4449
  end
4450
+ class RuboCop::Cop::Naming::MethodParameterName < RuboCop::Cop::Cop
4451
+ def on_def(node); end
4452
+ def on_defs(node); end
4453
+ include RuboCop::Cop::UncommunicativeName
4454
+ end
4270
4455
  class RuboCop::Cop::Naming::BinaryOperatorParameterName < RuboCop::Cop::Cop
4271
4456
  def on_def(node); end
4272
4457
  def op_method?(name); end
@@ -4274,16 +4459,16 @@ class RuboCop::Cop::Naming::BinaryOperatorParameterName < RuboCop::Cop::Cop
4274
4459
  end
4275
4460
  class RuboCop::Cop::Naming::PredicateName < RuboCop::Cop::Cop
4276
4461
  def allowed_method_name?(method_name, prefix); end
4462
+ def allowed_methods; end
4277
4463
  def dynamic_method_define(node = nil); end
4278
4464
  def expected_name(method_name, prefix); end
4465
+ def forbidden_prefixes; end
4279
4466
  def message(method_name, new_name); end
4280
4467
  def method_definition_macros(macro_name); end
4281
4468
  def on_def(node); end
4282
4469
  def on_defs(node); end
4283
4470
  def on_send(node); end
4284
4471
  def predicate_prefixes; end
4285
- def predicate_whitelist; end
4286
- def prefix_blacklist; end
4287
4472
  end
4288
4473
  class RuboCop::Cop::Naming::RescuedExceptionsVariableName < RuboCop::Cop::Cop
4289
4474
  def autocorrect(node); end
@@ -4293,15 +4478,6 @@ class RuboCop::Cop::Naming::RescuedExceptionsVariableName < RuboCop::Cop::Cop
4293
4478
  def preferred_name(variable_name); end
4294
4479
  def variable_name(node); end
4295
4480
  end
4296
- class RuboCop::Cop::Naming::UncommunicativeBlockParamName < RuboCop::Cop::Cop
4297
- def on_block(node); end
4298
- include RuboCop::Cop::UncommunicativeName
4299
- end
4300
- class RuboCop::Cop::Naming::UncommunicativeMethodParamName < RuboCop::Cop::Cop
4301
- def on_def(node); end
4302
- def on_defs(node); end
4303
- include RuboCop::Cop::UncommunicativeName
4304
- end
4305
4481
  class RuboCop::Cop::Naming::VariableName < RuboCop::Cop::Cop
4306
4482
  def message(style); end
4307
4483
  def on_arg(node); end
@@ -4387,6 +4563,7 @@ class RuboCop::Cop::Style::AsciiComments < RuboCop::Cop::Cop
4387
4563
  end
4388
4564
  class RuboCop::Cop::Style::Attr < RuboCop::Cop::Cop
4389
4565
  def autocorrect(node); end
4566
+ def class_eval?(node = nil); end
4390
4567
  def message(node); end
4391
4568
  def on_send(node); end
4392
4569
  def replacement_method(node); end
@@ -4421,6 +4598,9 @@ class RuboCop::Cop::Style::BlockDelimiters < RuboCop::Cop::Cop
4421
4598
  def autocorrect(node); end
4422
4599
  def braces_for_chaining_message(node); end
4423
4600
  def braces_for_chaining_style?(node); end
4601
+ def braces_required_message(node); end
4602
+ def braces_required_method?(method_name); end
4603
+ def braces_required_methods; end
4424
4604
  def braces_style?(node); end
4425
4605
  def conditional?(node); end
4426
4606
  def correction_would_break_code?(node); end
@@ -4441,34 +4621,13 @@ class RuboCop::Cop::Style::BlockDelimiters < RuboCop::Cop::Cop
4441
4621
  def return_value_used?(node); end
4442
4622
  def semantic_block_style?(node); end
4443
4623
  def semantic_message(node); end
4624
+ def special_method?(method_name); end
4625
+ def special_method_proper_block_style?(node); end
4444
4626
  def whitespace_after?(range, length = nil); end
4445
4627
  def whitespace_before?(range); end
4446
4628
  include RuboCop::Cop::ConfigurableEnforcedStyle
4447
4629
  include RuboCop::Cop::IgnoredMethods
4448
4630
  end
4449
- class RuboCop::Cop::Style::BracesAroundHashParameters < RuboCop::Cop::Cop
4450
- def add_arg_offense(arg, type); end
4451
- def add_braces(corrector, node); end
4452
- def autocorrect(send_node); end
4453
- def braces_needed_for_semantics?(arg); end
4454
- def check(arg, args); end
4455
- def check_braces(arg); end
4456
- def check_context_dependent(arg, args); end
4457
- def check_no_braces(arg); end
4458
- def extra_left_space?(hash_node); end
4459
- def extra_right_space?(hash_node); end
4460
- def extra_space(hash_node); end
4461
- def left_brace_and_space(loc_begin, space); end
4462
- def left_whole_line_range(loc_begin); end
4463
- def on_csend(node); end
4464
- def on_send(node); end
4465
- def remove_braces_with_range(corrector, left_range, right_range); end
4466
- def remove_braces_with_whitespace(corrector, node, space); end
4467
- def right_brace_and_space(loc_end, space); end
4468
- def right_whole_line_range(loc_end); end
4469
- include RuboCop::Cop::ConfigurableEnforcedStyle
4470
- include RuboCop::Cop::RangeHelp
4471
- end
4472
4631
  class RuboCop::Cop::Style::CaseEquality < RuboCop::Cop::Cop
4473
4632
  def case_equality?(node = nil); end
4474
4633
  def on_send(node); end
@@ -4559,7 +4718,7 @@ class RuboCop::Cop::Style::CommandLiteral < RuboCop::Cop::Cop
4559
4718
  include RuboCop::Cop::ConfigurableEnforcedStyle
4560
4719
  end
4561
4720
  class RuboCop::Cop::Style::CommentAnnotation < RuboCop::Cop::Cop
4562
- def annotation_range(comment, margin, length); end
4721
+ def annotation_range(comment, margin, first_word, colon, space); end
4563
4722
  def autocorrect(comment); end
4564
4723
  def concat_length(*args); end
4565
4724
  def correct_annotation?(first_word, colon, space, note); end
@@ -4676,6 +4835,7 @@ class RuboCop::Cop::Style::Copyright < RuboCop::Cop::Cop
4676
4835
  def notice; end
4677
4836
  def notice_found?(processed_source); end
4678
4837
  def shebang_token?(processed_source, token_index); end
4838
+ def verify_autocorrect_notice!; end
4679
4839
  include RuboCop::Cop::RangeHelp
4680
4840
  end
4681
4841
  class RuboCop::Cop::Style::DateTime < RuboCop::Cop::Cop
@@ -4903,15 +5063,19 @@ class RuboCop::Cop::Style::FormatStringToken < RuboCop::Cop::Cop
4903
5063
  end
4904
5064
  class RuboCop::Cop::Style::FrozenStringLiteralComment < RuboCop::Cop::Cop
4905
5065
  def autocorrect(node); end
4906
- def check_for_comment(processed_source); end
4907
- def check_for_no_comment(processed_source); end
5066
+ def disabled_offense(processed_source); end
5067
+ def enable_comment(corrector); end
5068
+ def ensure_comment(processed_source); end
5069
+ def ensure_enabled_comment(processed_source); end
5070
+ def ensure_no_comment(processed_source); end
4908
5071
  def following_comment; end
4909
5072
  def frozen_string_literal_comment(processed_source); end
4910
5073
  def insert_comment(corrector); end
4911
5074
  def investigate(processed_source); end
4912
5075
  def last_special_comment(processed_source); end
4913
5076
  def line_range(line); end
4914
- def offense(processed_source); end
5077
+ def missing_offense(processed_source); end
5078
+ def missing_true_offense(processed_source); end
4915
5079
  def preceding_comment; end
4916
5080
  def remove_comment(corrector, node); end
4917
5081
  def unnecessary_comment_offense(processed_source); end
@@ -4939,6 +5103,19 @@ class RuboCop::Cop::Style::GuardClause < RuboCop::Cop::Cop
4939
5103
  include RuboCop::Cop::MinBodyLength
4940
5104
  include RuboCop::Cop::StatementModifier
4941
5105
  end
5106
+ class RuboCop::Cop::Style::HashEachMethods < RuboCop::Cop::Cop
5107
+ def autocorrect(node); end
5108
+ def check_argument(variable); end
5109
+ def correct_args(node, corrector); end
5110
+ def correct_implicit(node, corrector, method_name); end
5111
+ def correct_key_value_each(node, corrector); end
5112
+ def kv_each(node = nil); end
5113
+ def kv_range(outer_node); end
5114
+ def on_block(node); end
5115
+ def register_kv_offense(node); end
5116
+ def used?(arg); end
5117
+ include RuboCop::Cop::Lint::UnusedArgument
5118
+ end
4942
5119
  class RuboCop::Cop::Style::HashSyntax < RuboCop::Cop::Cop
4943
5120
  def acceptable_19_syntax_symbol?(sym_name); end
4944
5121
  def alternative_style; end
@@ -4959,6 +5136,24 @@ class RuboCop::Cop::Style::HashSyntax < RuboCop::Cop::Cop
4959
5136
  include RuboCop::Cop::ConfigurableEnforcedStyle
4960
5137
  include RuboCop::Cop::RangeHelp
4961
5138
  end
5139
+ class RuboCop::Cop::Style::HashTransformKeys < RuboCop::Cop::Cop
5140
+ def extract_captures(match); end
5141
+ def new_method_name; end
5142
+ def on_bad_each_with_object(node = nil); end
5143
+ def on_bad_hash_brackets_map(node = nil); end
5144
+ def on_bad_map_to_h(node = nil); end
5145
+ extend RuboCop::Cop::TargetRubyVersion
5146
+ include RuboCop::Cop::HashTransformMethod
5147
+ end
5148
+ class RuboCop::Cop::Style::HashTransformValues < RuboCop::Cop::Cop
5149
+ def extract_captures(match); end
5150
+ def new_method_name; end
5151
+ def on_bad_each_with_object(node = nil); end
5152
+ def on_bad_hash_brackets_map(node = nil); end
5153
+ def on_bad_map_to_h(node = nil); end
5154
+ extend RuboCop::Cop::TargetRubyVersion
5155
+ include RuboCop::Cop::HashTransformMethod
5156
+ end
4962
5157
  class RuboCop::Cop::Style::IdenticalConditionalBranches < RuboCop::Cop::Cop
4963
5158
  def check_branches(branches); end
4964
5159
  def check_expressions(expressions); end
@@ -4978,13 +5173,20 @@ class RuboCop::Cop::Style::IfUnlessModifier < RuboCop::Cop::Cop
4978
5173
  def autocorrect(node); end
4979
5174
  def eligible_node?(node); end
4980
5175
  def first_line_comment(node); end
5176
+ def ignored_patterns; end
5177
+ def line_length_enabled_at_line?(line); end
4981
5178
  def named_capture_in_condition?(node); end
4982
5179
  def non_eligible_if?(node); end
4983
5180
  def on_if(node); end
4984
5181
  def parenthesize?(node); end
4985
5182
  def to_modifier_form(node); end
4986
5183
  def to_normal_form(node); end
5184
+ def too_long_line_based_on_allow_uri?(line); end
5185
+ def too_long_line_based_on_config?(range, line); end
5186
+ def too_long_line_based_on_ignore_cop_directives?(range, line); end
4987
5187
  def too_long_single_line?(node); end
5188
+ include RuboCop::Cop::IgnoredPattern
5189
+ include RuboCop::Cop::LineLengthHelp
4988
5190
  include RuboCop::Cop::StatementModifier
4989
5191
  end
4990
5192
  class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < RuboCop::Cop::Cop
@@ -5021,6 +5223,7 @@ class RuboCop::Cop::Style::InverseMethods < RuboCop::Cop::Cop
5021
5223
  def autocorrect(node); end
5022
5224
  def camel_case_constant?(node); end
5023
5225
  def correct_inverse_block(node); end
5226
+ def correct_inverse_method(node); end
5024
5227
  def correct_inverse_selector(block, corrector); end
5025
5228
  def dot_range(loc); end
5026
5229
  def end_parentheses(node, method_call); end
@@ -5041,13 +5244,13 @@ class RuboCop::Cop::Style::InlineComment < RuboCop::Cop::Cop
5041
5244
  def investigate(processed_source); end
5042
5245
  end
5043
5246
  class RuboCop::Cop::Style::IpAddresses < RuboCop::Cop::Cop
5247
+ def allowed_addresses; end
5044
5248
  def correct_style_detected; end
5045
5249
  def could_be_ip?(str); end
5046
5250
  def offense?(node); end
5047
5251
  def opposite_style_detected; end
5048
5252
  def starts_with_hex_or_colon?(str); end
5049
5253
  def too_long?(str); end
5050
- def whitelist; end
5051
5254
  include RuboCop::Cop::StringHelp
5052
5255
  end
5053
5256
  class RuboCop::Cop::Style::Lambda < RuboCop::Cop::Cop
@@ -5080,6 +5283,7 @@ class RuboCop::Cop::Style::LineEndConcatenation < RuboCop::Cop::Cop
5080
5283
  def eligible_operator?(operator); end
5081
5284
  def eligible_predecessor?(predecessor); end
5082
5285
  def eligible_successor?(successor); end
5286
+ def eligible_token_set?(predecessor, operator, successor); end
5083
5287
  def investigate(processed_source); end
5084
5288
  def self.autocorrect_incompatible_with; end
5085
5289
  def standard_string_literal?(token); end
@@ -5096,30 +5300,30 @@ class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < RuboCop::Cop::Cop
5096
5300
  include RuboCop::Cop::IgnoredMethods
5097
5301
  end
5098
5302
  class RuboCop::Cop::Style::MethodCallWithArgsParentheses < RuboCop::Cop::Cop
5099
- def add_offense_for_omit_parentheses(node); end
5100
- def add_offense_for_require_parentheses(node); end
5303
+ def args_begin(node); end
5304
+ def args_end(node); end
5305
+ def args_parenthesized?(node); end
5306
+ def autocorrect(_node); end
5307
+ def initialize(*arg0); end
5308
+ include RuboCop::Cop::ConfigurableEnforcedStyle
5309
+ include RuboCop::Cop::IgnoredMethods
5310
+ include RuboCop::Cop::IgnoredPattern
5311
+ end
5312
+ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
5101
5313
  def allowed_camel_case_method_call?(node); end
5102
5314
  def allowed_chained_call_with_parentheses?(node); end
5103
5315
  def allowed_multiline_call_with_parentheses?(node); end
5104
5316
  def ambigious_literal?(node); end
5105
- def args_begin(node); end
5106
- def args_end(node); end
5107
- def args_parenthesized?(node); end
5108
5317
  def assigned_before?(node, target); end
5109
5318
  def autocorrect(node); end
5110
- def autocorrect_for_omit_parentheses(node); end
5111
- def autocorrect_for_require_parentheses(node); end
5112
5319
  def call_as_argument_or_chain?(node); end
5113
5320
  def call_in_literals?(node); end
5114
5321
  def call_in_logical_operators?(node); end
5115
5322
  def call_in_optional_arguments?(node); end
5116
5323
  def call_with_ambiguous_arguments?(node); end
5117
5324
  def call_with_braced_block?(node); end
5118
- def eligible_for_parentheses_omission?(node); end
5119
5325
  def hash_literal?(node); end
5120
5326
  def hash_literal_in_arguments?(node); end
5121
- def ignored_macro?(node); end
5122
- def included_macros_list; end
5123
5327
  def legitimate_call_with_parentheses?(node); end
5124
5328
  def logical_operator?(node); end
5125
5329
  def message(_node = nil); end
@@ -5133,9 +5337,17 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < RuboCop::Cop::Cop
5133
5337
  def super_call_without_arguments?(node); end
5134
5338
  def ternary_if?(node); end
5135
5339
  def unary_literal?(node); end
5136
- include RuboCop::Cop::ConfigurableEnforcedStyle
5137
- include RuboCop::Cop::IgnoredMethods
5138
- include RuboCop::Cop::IgnoredPattern
5340
+ end
5341
+ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses
5342
+ def autocorrect(node); end
5343
+ def eligible_for_parentheses_omission?(node); end
5344
+ def ignored_macro?(node); end
5345
+ def included_macros_list; end
5346
+ def message(_node = nil); end
5347
+ def on_csend(node); end
5348
+ def on_send(node); end
5349
+ def on_super(node); end
5350
+ def on_yield(node); end
5139
5351
  end
5140
5352
  class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < RuboCop::Cop::Cop
5141
5353
  def on_block(node); end
@@ -5146,6 +5358,8 @@ end
5146
5358
  class RuboCop::Cop::Style::MethodDefParentheses < RuboCop::Cop::Cop
5147
5359
  def arguments_without_parentheses?(node); end
5148
5360
  def autocorrect(node); end
5361
+ def correct_arguments(arg_node, corrector); end
5362
+ def correct_definition(def_node, corrector); end
5149
5363
  def missing_parentheses(node); end
5150
5364
  def on_def(node); end
5151
5365
  def on_defs(node); end
@@ -5266,6 +5480,7 @@ class RuboCop::Cop::Style::MultilineTernaryOperator < RuboCop::Cop::Cop
5266
5480
  def on_if(node); end
5267
5481
  end
5268
5482
  class RuboCop::Cop::Style::MultilineWhenThen < RuboCop::Cop::Cop
5483
+ def accept_node_type?(node); end
5269
5484
  def autocorrect(node); end
5270
5485
  def on_when(node); end
5271
5486
  include RuboCop::Cop::RangeHelp
@@ -5329,7 +5544,7 @@ class RuboCop::Cop::Style::NestedModifier < RuboCop::Cop::Cop
5329
5544
  def check(node); end
5330
5545
  def left_hand_operand(node, operator); end
5331
5546
  def modifier?(node); end
5332
- def new_expression(outer_node, inner_node); end
5547
+ def new_expression(inner_node); end
5333
5548
  def on_if(node); end
5334
5549
  def on_until(node); end
5335
5550
  def on_while(node); end
@@ -5339,12 +5554,12 @@ class RuboCop::Cop::Style::NestedModifier < RuboCop::Cop::Cop
5339
5554
  include RuboCop::Cop::RangeHelp
5340
5555
  end
5341
5556
  class RuboCop::Cop::Style::NestedParenthesizedCalls < RuboCop::Cop::Cop
5557
+ def allowed?(send_node); end
5558
+ def allowed_methods; end
5342
5559
  def allowed_omission?(send_node); end
5343
5560
  def autocorrect(nested); end
5344
5561
  def on_csend(node); end
5345
5562
  def on_send(node); end
5346
- def whitelisted?(send_node); end
5347
- def whitelisted_methods; end
5348
5563
  include RuboCop::Cop::RangeHelp
5349
5564
  end
5350
5565
  class RuboCop::Cop::Style::NestedTernaryOperator < RuboCop::Cop::Cop
@@ -5484,11 +5699,11 @@ class RuboCop::Cop::Style::OrAssignment < RuboCop::Cop::Cop
5484
5699
  def unless_assignment?(node = nil); end
5485
5700
  end
5486
5701
  class RuboCop::Cop::Style::OptionHash < RuboCop::Cop::Cop
5702
+ def allowlist; end
5487
5703
  def on_args(node); end
5488
5704
  def option_hash(node = nil); end
5489
5705
  def super_used?(node); end
5490
5706
  def suspicious_name?(arg_name); end
5491
- def whitelist; end
5492
5707
  end
5493
5708
  class RuboCop::Cop::Style::OptionalArguments < RuboCop::Cop::Cop
5494
5709
  def argument_positions(arguments); end
@@ -5560,6 +5775,7 @@ class RuboCop::Cop::Style::ParenthesesAroundCondition < RuboCop::Cop::Cop
5560
5775
  end
5561
5776
  class RuboCop::Cop::Style::PercentLiteralDelimiters < RuboCop::Cop::Cop
5562
5777
  def autocorrect(node); end
5778
+ def contains_delimiter?(node, delimiters); end
5563
5779
  def contains_preferred_delimiter?(node, type); end
5564
5780
  def include_same_character_as_used_for_delimiter?(node, type); end
5565
5781
  def matchpairs(begin_delimiter); end
@@ -5638,6 +5854,24 @@ class RuboCop::Cop::Style::RedundantBegin < RuboCop::Cop::Cop
5638
5854
  def on_def(node); end
5639
5855
  def on_defs(node); end
5640
5856
  end
5857
+ class RuboCop::Cop::Style::RedundantCapitalW < RuboCop::Cop::Cop
5858
+ def autocorrect(node); end
5859
+ def on_array(node); end
5860
+ def on_percent_literal(node); end
5861
+ def requires_interpolation?(node); end
5862
+ include RuboCop::Cop::PercentLiteral
5863
+ end
5864
+ class RuboCop::Cop::Style::RedundantCondition < RuboCop::Cop::Cop
5865
+ def autocorrect(node); end
5866
+ def else_source(else_branch); end
5867
+ def make_ternary_form(node); end
5868
+ def message(node); end
5869
+ def offense?(node); end
5870
+ def on_if(node); end
5871
+ def range_of_offense(node); end
5872
+ def use_if_branch?(else_branch); end
5873
+ include RuboCop::Cop::RangeHelp
5874
+ end
5641
5875
  class RuboCop::Cop::Style::RedundantConditional < RuboCop::Cop::Cop
5642
5876
  def autocorrect(node); end
5643
5877
  def configured_indentation_width; end
@@ -5665,6 +5899,21 @@ class RuboCop::Cop::Style::RedundantFreeze < RuboCop::Cop::Cop
5665
5899
  def strip_parenthesis(node); end
5666
5900
  include RuboCop::Cop::FrozenStringLiteral
5667
5901
  end
5902
+ class RuboCop::Cop::Style::RedundantInterpolation < RuboCop::Cop::Cop
5903
+ def autocorrect(node); end
5904
+ def autocorrect_other(embedded_node, node); end
5905
+ def autocorrect_single_variable_interpolation(embedded_node, node); end
5906
+ def autocorrect_variable_interpolation(embedded_node, node); end
5907
+ def embedded_in_percent_array?(node); end
5908
+ def implicit_concatenation?(node); end
5909
+ def interpolation?(node); end
5910
+ def on_dstr(node); end
5911
+ def self.autocorrect_incompatible_with; end
5912
+ def single_interpolation?(node); end
5913
+ def single_variable_interpolation?(node); end
5914
+ def variable_interpolation?(node); end
5915
+ include RuboCop::Cop::PercentLiteral
5916
+ end
5668
5917
  class RuboCop::Cop::Style::RedundantParentheses < RuboCop::Cop::Cop
5669
5918
  def allowed_ancestor?(node); end
5670
5919
  def allowed_array_or_hash_element?(node); end
@@ -5702,11 +5951,23 @@ class RuboCop::Cop::Style::RedundantParentheses < RuboCop::Cop::Cop
5702
5951
  def suspect_unary?(node); end
5703
5952
  include RuboCop::Cop::Parentheses
5704
5953
  end
5954
+ class RuboCop::Cop::Style::RedundantPercentQ < RuboCop::Cop::Cop
5955
+ def acceptable_capital_q?(node); end
5956
+ def acceptable_q?(node); end
5957
+ def allowed_percent_q?(node); end
5958
+ def autocorrect(node); end
5959
+ def check(node); end
5960
+ def interpolated_quotes?(node); end
5961
+ def message(node); end
5962
+ def on_dstr(node); end
5963
+ def on_str(node); end
5964
+ def start_with_percent_q_variant?(string); end
5965
+ def string_literal?(node); end
5966
+ end
5705
5967
  class RuboCop::Cop::Style::RedundantReturn < RuboCop::Cop::Cop
5706
5968
  def add_braces(corrector, node); end
5707
5969
  def add_brackets(corrector, node); end
5708
5970
  def allow_multiple_return_values?; end
5709
- def arguments?(args); end
5710
5971
  def autocorrect(node); end
5711
5972
  def check_begin_node(node); end
5712
5973
  def check_branch(node); end
@@ -5715,6 +5976,9 @@ class RuboCop::Cop::Style::RedundantReturn < RuboCop::Cop::Cop
5715
5976
  def check_if_node(node); end
5716
5977
  def check_rescue_node(node); end
5717
5978
  def check_return_node(node); end
5979
+ def correct_with_arguments(return_node, corrector); end
5980
+ def correct_without_arguments(return_node, corrector); end
5981
+ def hash_without_braces?(node); end
5718
5982
  def message(node); end
5719
5983
  def on_def(node); end
5720
5984
  def on_defs(node); end
@@ -5743,6 +6007,19 @@ class RuboCop::Cop::Style::RedundantSelf < RuboCop::Cop::Cop
5743
6007
  def regular_method_call?(node); end
5744
6008
  def self.autocorrect_incompatible_with; end
5745
6009
  end
6010
+ class RuboCop::Cop::Style::RedundantSort < RuboCop::Cop::Cop
6011
+ def accessor_start(node); end
6012
+ def arg_node(node); end
6013
+ def arg_value(node); end
6014
+ def autocorrect(node); end
6015
+ def base(accessor, arg); end
6016
+ def message(node, sorter, accessor); end
6017
+ def on_send(node); end
6018
+ def redundant_sort?(node = nil); end
6019
+ def suffix(sorter); end
6020
+ def suggestion(sorter, accessor, arg); end
6021
+ include RuboCop::Cop::RangeHelp
6022
+ end
5746
6023
  class RuboCop::Cop::Style::RedundantSortBy < RuboCop::Cop::Cop
5747
6024
  def autocorrect(node); end
5748
6025
  def on_block(node); end
@@ -5817,6 +6094,7 @@ class RuboCop::Cop::Style::SafeNavigation < RuboCop::Cop::Cop
5817
6094
  def extract_parts_from_if(node); end
5818
6095
  def find_matching_receiver_invocation(method_chain, checked_variable); end
5819
6096
  def handle_comments(corrector, node, method_call); end
6097
+ def method_call(node); end
5820
6098
  def method_called?(send_node); end
5821
6099
  def modifier_if_safe_navigation_candidate(node = nil); end
5822
6100
  def negated?(send_node); end
@@ -6064,8 +6342,6 @@ class RuboCop::Cop::Style::TrailingBodyOnModule < RuboCop::Cop::Cop
6064
6342
  end
6065
6343
  class RuboCop::Cop::Style::TrailingCommaInArguments < RuboCop::Cop::Cop
6066
6344
  def autocorrect(range); end
6067
- def avoid_autocorrect?(args); end
6068
- def braces_will_be_removed?(args); end
6069
6345
  def on_csend(node); end
6070
6346
  def on_send(node); end
6071
6347
  def self.autocorrect_incompatible_with; end
@@ -6114,6 +6390,7 @@ class RuboCop::Cop::Style::TrivialAccessors < RuboCop::Cop::Cop
6114
6390
  def allow_dsl_writers?; end
6115
6391
  def allow_predicates?; end
6116
6392
  def allowed_method?(node); end
6393
+ def allowed_methods; end
6117
6394
  def allowed_reader?(node); end
6118
6395
  def allowed_writer?(method_name); end
6119
6396
  def autocorrect(node); end
@@ -6133,7 +6410,6 @@ class RuboCop::Cop::Style::TrivialAccessors < RuboCop::Cop::Cop
6133
6410
  def trivial_accessor_kind(node); end
6134
6411
  def trivial_reader?(node); end
6135
6412
  def trivial_writer?(node); end
6136
- def whitelist; end
6137
6413
  end
6138
6414
  class RuboCop::Cop::Style::UnlessElse < RuboCop::Cop::Cop
6139
6415
  def autocorrect(node); end
@@ -6142,65 +6418,6 @@ class RuboCop::Cop::Style::UnlessElse < RuboCop::Cop::Cop
6142
6418
  def range_between_else_and_end(node); end
6143
6419
  include RuboCop::Cop::RangeHelp
6144
6420
  end
6145
- class RuboCop::Cop::Style::UnneededCapitalW < RuboCop::Cop::Cop
6146
- def autocorrect(node); end
6147
- def on_array(node); end
6148
- def on_percent_literal(node); end
6149
- def requires_interpolation?(node); end
6150
- include RuboCop::Cop::PercentLiteral
6151
- end
6152
- class RuboCop::Cop::Style::UnneededCondition < RuboCop::Cop::Cop
6153
- def autocorrect(node); end
6154
- def else_source(else_branch); end
6155
- def make_ternary_form(node); end
6156
- def message(node); end
6157
- def offense?(node); end
6158
- def on_if(node); end
6159
- def range_of_offense(node); end
6160
- def use_if_branch?(else_branch); end
6161
- include RuboCop::Cop::RangeHelp
6162
- end
6163
- class RuboCop::Cop::Style::UnneededInterpolation < RuboCop::Cop::Cop
6164
- def autocorrect(node); end
6165
- def autocorrect_other(embedded_node, node); end
6166
- def autocorrect_single_variable_interpolation(embedded_node, node); end
6167
- def autocorrect_variable_interpolation(embedded_node, node); end
6168
- def embedded_in_percent_array?(node); end
6169
- def implicit_concatenation?(node); end
6170
- def interpolation?(node); end
6171
- def on_dstr(node); end
6172
- def self.autocorrect_incompatible_with; end
6173
- def single_interpolation?(node); end
6174
- def single_variable_interpolation?(node); end
6175
- def variable_interpolation?(node); end
6176
- include RuboCop::Cop::PercentLiteral
6177
- end
6178
- class RuboCop::Cop::Style::UnneededPercentQ < RuboCop::Cop::Cop
6179
- def acceptable_capital_q?(node); end
6180
- def acceptable_q?(node); end
6181
- def allowed_percent_q?(node); end
6182
- def autocorrect(node); end
6183
- def check(node); end
6184
- def interpolated_quotes?(node); end
6185
- def message(node); end
6186
- def on_dstr(node); end
6187
- def on_str(node); end
6188
- def start_with_percent_q_variant?(string); end
6189
- def string_literal?(node); end
6190
- end
6191
- class RuboCop::Cop::Style::UnneededSort < RuboCop::Cop::Cop
6192
- def accessor_start(node); end
6193
- def arg_node(node); end
6194
- def arg_value(node); end
6195
- def autocorrect(node); end
6196
- def base(accessor, arg); end
6197
- def message(node, sorter, accessor); end
6198
- def on_send(node); end
6199
- def suffix(sorter); end
6200
- def suggestion(sorter, accessor, arg); end
6201
- def unneeded_sort?(node = nil); end
6202
- include RuboCop::Cop::RangeHelp
6203
- end
6204
6421
  class RuboCop::Cop::Style::UnpackFirst < RuboCop::Cop::Cop
6205
6422
  def autocorrect(node); end
6206
6423
  def first_element_range(node, unpack_call); end
@@ -6252,11 +6469,14 @@ class RuboCop::Cop::Style::YodaCondition < RuboCop::Cop::Cop
6252
6469
  def corrected_code(node); end
6253
6470
  def enforce_yoda?; end
6254
6471
  def equality_only?; end
6472
+ def file_constant_equal_program_name?(node = nil); end
6255
6473
  def message(node); end
6256
6474
  def non_equality_operator?(node); end
6257
6475
  def noncommutative_operator?(node); end
6258
6476
  def on_send(node); end
6477
+ def program_name?(name); end
6259
6478
  def reverse_comparison(operator); end
6479
+ def source_file_path_constant?(node); end
6260
6480
  def valid_yoda?(node); end
6261
6481
  def yoda_compatible_condition?(node); end
6262
6482
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -6312,6 +6532,7 @@ class RuboCop::Cop::Team
6312
6532
  def cops; end
6313
6533
  def debug?; end
6314
6534
  def errors; end
6535
+ def external_dependency_checksum; end
6315
6536
  def forces; end
6316
6537
  def forces_for(cops); end
6317
6538
  def handle_error(error, location, cop); end
@@ -6495,6 +6716,12 @@ class RuboCop::Formatter::JSONFormatter < RuboCop::Formatter::BaseFormatter
6495
6716
  def started(target_files); end
6496
6717
  include RuboCop::PathUtil
6497
6718
  end
6719
+ class RuboCop::Formatter::JUnitFormatter < RuboCop::Formatter::BaseFormatter
6720
+ def add_failure_to(testcase, offenses, cop_name); end
6721
+ def file_finished(file, offenses); end
6722
+ def finished(_inspected_files); end
6723
+ def initialize(output, options = nil); end
6724
+ end
6498
6725
  class RuboCop::Formatter::OffenseCountFormatter < RuboCop::Formatter::BaseFormatter
6499
6726
  def file_finished(_file, offenses); end
6500
6727
  def finished(_inspected_files); end
@@ -6589,6 +6816,7 @@ class RuboCop::Config
6589
6816
  def for_cop(cop); end
6590
6817
  def for_department(department_name); end
6591
6818
  def initialize(hash = nil, loaded_path = nil); end
6819
+ def internal?; end
6592
6820
  def key?(*args, &block); end
6593
6821
  def keys(*args, &block); end
6594
6822
  def loaded_path; end
@@ -6625,7 +6853,7 @@ class RuboCop::ConfigLoaderResolver
6625
6853
  def merge_with_default(config, config_file, unset_nil:); end
6626
6854
  def remote_file?(uri); end
6627
6855
  def resolve_inheritance(path, hash, file, debug); end
6628
- def resolve_inheritance_from_gems(hash, gems); end
6856
+ def resolve_inheritance_from_gems(hash); end
6629
6857
  def resolve_requires(path, hash); end
6630
6858
  def should_union?(base_hash, key, inherit_mode); end
6631
6859
  def transform(config); end
@@ -6640,7 +6868,6 @@ class RuboCop::ConfigLoader
6640
6868
  def self.auto_gen_config; end
6641
6869
  def self.auto_gen_config=(arg0); end
6642
6870
  def self.auto_gen_config?; end
6643
- def self.check_cop_config_value(hash, parent = nil); end
6644
6871
  def self.check_duplication(yaml_code, absolute_path); end
6645
6872
  def self.clear_options; end
6646
6873
  def self.configuration_file_for(target_dir); end
@@ -6666,6 +6893,7 @@ class RuboCop::ConfigLoader
6666
6893
  def self.options_config=(arg0); end
6667
6894
  def self.read_file(absolute_path); end
6668
6895
  def self.resolver; end
6896
+ def self.warn_on_pending_cops(config); end
6669
6897
  def self.write_config_file(file_name, file_string, rubocop_yml_contents); end
6670
6898
  def self.yaml_safe_load(yaml_code, filename); end
6671
6899
  end
@@ -6686,27 +6914,24 @@ class RuboCop::ConfigStore
6686
6914
  def options_config=(options_config); end
6687
6915
  end
6688
6916
  class RuboCop::ConfigValidator
6689
- def base_dir_for_path_parameters(*args, &block); end
6690
- def bundler_lock_file_path(*args, &block); end
6917
+ def alert_about_unrecognized_cops(invalid_cop_names); end
6918
+ def check_cop_config_value(hash, parent = nil); end
6691
6919
  def check_target_ruby; end
6692
- def find_file_upwards(*args, &block); end
6920
+ def each_invalid_parameter(cop_name); end
6693
6921
  def for_all_cops(*args, &block); end
6694
6922
  def initialize(config); end
6695
- def read_ruby_version_from_bundler_lock_file; end
6923
+ def msg_not_boolean(parent, key, value); end
6924
+ def reject_conflicting_safe_settings; end
6696
6925
  def reject_mutually_exclusive_defaults; end
6697
- def ruby_version_file; end
6698
6926
  def smart_loaded_path(*args, &block); end
6699
- def target_ruby_source; end
6927
+ def target_ruby; end
6700
6928
  def target_ruby_version; end
6701
- def target_ruby_version_from_bundler_lock_file; end
6702
- def target_ruby_version_from_version_file; end
6703
6929
  def validate; end
6704
6930
  def validate_enforced_styles(valid_cop_names); end
6705
6931
  def validate_parameter_names(valid_cop_names); end
6706
6932
  def validate_section_presence(name); end
6707
6933
  def validate_support_and_has_list(name, formats, valid); end
6708
6934
  def validate_syntax_cop; end
6709
- def warn_about_unrecognized_cops(invalid_cop_names); end
6710
6935
  extend Forwardable
6711
6936
  end
6712
6937
  class RuboCop::TargetFinder
@@ -6720,6 +6945,7 @@ class RuboCop::TargetFinder
6720
6945
  def force_exclusion?; end
6721
6946
  def included_file?(file); end
6722
6947
  def initialize(config_store, options = nil); end
6948
+ def order; end
6723
6949
  def process_explicit_path(path); end
6724
6950
  def ruby_executable?(file); end
6725
6951
  def ruby_extension?(file); end
@@ -6773,6 +6999,7 @@ class RuboCop::CommentConfig
6773
6999
  def cop_disabled_line_ranges; end
6774
7000
  def cop_enabled_at_line?(cop, line_number); end
6775
7001
  def cop_line_ranges(analysis); end
7002
+ def directive_on_comment_line?(comment); end
6776
7003
  def directive_parts(comment); end
6777
7004
  def each_directive; end
6778
7005
  def each_mentioned_cop; end
@@ -6864,8 +7091,9 @@ class RuboCop::ProcessedSource
6864
7091
  end
6865
7092
  class RuboCop::ResultCache
6866
7093
  def any_symlink?(path); end
7094
+ def context_checksum(team, options); end
6867
7095
  def file_checksum(file, config_store); end
6868
- def initialize(file, options, config_store, cache_root = nil); end
7096
+ def initialize(file, team, options, config_store, cache_root = nil); end
6869
7097
  def load; end
6870
7098
  def relevant_options_digest(options); end
6871
7099
  def rubocop_checksum; end
@@ -6881,20 +7109,23 @@ class RuboCop::ResultCache
6881
7109
  def self.source_checksum; end
6882
7110
  def self.source_checksum=(arg0); end
6883
7111
  def symlink_protection_triggered?(path); end
7112
+ def team_checksum(team); end
6884
7113
  def valid?; end
6885
7114
  end
6886
7115
  class RuboCop::Runner
6887
7116
  def aborting=(arg0); end
6888
7117
  def aborting?; end
6889
- def add_unneeded_disables(file, offenses, source); end
6890
- def autocorrect_unneeded_disables(file, source, cop, offenses); end
7118
+ def add_redundant_disables(file, offenses, source); end
7119
+ def autocorrect_redundant_disables(file, source, cop, offenses); end
7120
+ def cached_result(file, team); end
6891
7121
  def cached_run?; end
6892
7122
  def check_for_infinite_loop(processed_source, offenses); end
6893
- def check_for_unneeded_disables?(source); end
7123
+ def check_for_redundant_disables?(source); end
6894
7124
  def considered_failure?(offense); end
6895
7125
  def do_inspection_loop(file, processed_source); end
6896
7126
  def each_inspected_file(files); end
6897
7127
  def errors; end
7128
+ def file_finished(file, offenses); end
6898
7129
  def file_offense_cache(file); end
6899
7130
  def file_offenses(file); end
6900
7131
  def file_started(file); end
@@ -6911,8 +7142,10 @@ class RuboCop::Runner
6911
7142
  def minimum_severity_to_fail; end
6912
7143
  def mobilized_cop_classes(config); end
6913
7144
  def process_file(file); end
7145
+ def redundant_cop_disable_directive(file); end
6914
7146
  def run(paths); end
6915
7147
  def save_in_cache(cache, offenses); end
7148
+ def standby_team(config); end
6916
7149
  def style_guide_cops_only?(config); end
6917
7150
  def warm_cache(target_files); end
6918
7151
  def warnings; end
@@ -6924,35 +7157,73 @@ end
6924
7157
  class RuboCop::CLI
6925
7158
  def act_on_options; end
6926
7159
  def apply_default_formatter; end
6927
- def config_lines(cop); end
6928
7160
  def config_store; end
6929
- def cops_of_department(cops, department); end
6930
- def display_error_summary(errors); end
6931
- def display_warning_summary(warnings); end
6932
- def execute_runner(paths); end
6933
- def execute_runners(paths); end
7161
+ def execute_runners; end
6934
7162
  def handle_exiting_options; end
6935
- def init_dotfile; end
6936
7163
  def initialize; end
7164
+ def options; end
7165
+ def run(args = nil); end
7166
+ def run_command(name); end
7167
+ def validate_options_vs_config; end
7168
+ end
7169
+ class RuboCop::CLI::Finished < RuntimeError
7170
+ end
7171
+ module RuboCop::CLI::Command
7172
+ def self.class_for(name); end
7173
+ def self.run(env, name); end
7174
+ end
7175
+ class RuboCop::CLI::Environment
7176
+ def config_store; end
7177
+ def initialize(options, config_store, paths); end
7178
+ def options; end
7179
+ def paths; end
7180
+ def run(name); end
7181
+ end
7182
+ class RuboCop::CLI::Command::Base
7183
+ def env; end
7184
+ def initialize(env); end
7185
+ def self.by_command_name(name); end
7186
+ def self.command_name; end
7187
+ def self.command_name=(arg0); end
7188
+ def self.inherited(subclass); end
7189
+ end
7190
+ class RuboCop::CLI::Command::AutoGenerateConfig < RuboCop::CLI::Command::Base
7191
+ def add_formatter; end
7192
+ def execute_runner; end
6937
7193
  def line_length_cop(config); end
6938
7194
  def line_length_enabled?(config); end
6939
7195
  def max_line_length(config); end
7196
+ def maybe_run_line_length_cop; end
7197
+ def reset_config_and_auto_gen_file; end
7198
+ def run; end
7199
+ def run_all_cops(line_length_contents); end
7200
+ def run_line_length_cop; end
7201
+ def same_max_line_length?(config1, config2); end
7202
+ def skip_line_length_cop(reason); end
7203
+ end
7204
+ class RuboCop::CLI::Command::ExecuteRunner < RuboCop::CLI::Command::Base
7205
+ def display_error_summary(errors); end
7206
+ def display_warning_summary(warnings); end
7207
+ def execute_runner(paths); end
6940
7208
  def maybe_print_corrected_source; end
6941
- def maybe_run_line_length_cop(paths); end
6942
- def options; end
7209
+ def run; end
7210
+ include RuboCop::Formatter::TextUtil
7211
+ end
7212
+ class RuboCop::CLI::Command::InitDotfile < RuboCop::CLI::Command::Base
7213
+ def run; end
7214
+ end
7215
+ class RuboCop::CLI::Command::ShowCops < RuboCop::CLI::Command::Base
7216
+ def config_lines(cop); end
7217
+ def cops_of_department(cops, department); end
7218
+ def initialize(env); end
6943
7219
  def print_available_cops; end
6944
7220
  def print_cop_details(cops); end
6945
7221
  def print_cops_of_department(registry, department, show_all); end
6946
- def reset_config_and_auto_gen_file; end
6947
- def run(args = nil); end
6948
- def run_all_cops_auto_gen_config(line_length_contents, paths); end
6949
- def run_line_length_cop_auto_gen_config(paths); end
6950
- def same_max_line_length?(config1, config2); end
7222
+ def run; end
6951
7223
  def selected_cops_of_department(cops, department); end
6952
- def validate_options_vs_config; end
6953
- include RuboCop::Formatter::TextUtil
6954
7224
  end
6955
- class RuboCop::CLI::Finished < RuntimeError
7225
+ class RuboCop::CLI::Command::Version < RuboCop::CLI::Command::Base
7226
+ def run; end
6956
7227
  end
6957
7228
  class RuboCop::IncorrectCopNameError < StandardError
6958
7229
  end
@@ -6983,12 +7254,13 @@ class RuboCop::OptionsValidator
6983
7254
  def except_syntax?; end
6984
7255
  def incompatible_options; end
6985
7256
  def initialize(options); end
6986
- def only_includes_unneeded_disable?; end
7257
+ def only_includes_redundant_disable?; end
6987
7258
  def self.format_message_from(name, cop_names); end
6988
7259
  def self.validate_cop_list(names); end
6989
7260
  def validate_auto_correct; end
6990
7261
  def validate_auto_gen_config; end
6991
7262
  def validate_compatibility; end
7263
+ def validate_cop_options; end
6992
7264
  def validate_exclude_limit_option; end
6993
7265
  def validate_parallel; end
6994
7266
  def validate_parallel_with_combo_option; end
@@ -7008,6 +7280,38 @@ class RuboCop::RemoteConfig
7008
7280
  def request(uri = nil, limit = nil, &block); end
7009
7281
  def uri; end
7010
7282
  end
7283
+ class RuboCop::TargetRuby
7284
+ def initialize(config); end
7285
+ def rubocop_version_with_support; end
7286
+ def self.supported_versions; end
7287
+ def source; end
7288
+ def supported?; end
7289
+ def version; end
7290
+ end
7291
+ class RuboCop::TargetRuby::Source
7292
+ def initialize(config); end
7293
+ def name; end
7294
+ def to_s; end
7295
+ def version; end
7296
+ end
7297
+ class RuboCop::TargetRuby::RuboCopConfig < RuboCop::TargetRuby::Source
7298
+ def find_version; end
7299
+ def name; end
7300
+ end
7301
+ class RuboCop::TargetRuby::RubyVersionFile < RuboCop::TargetRuby::Source
7302
+ def find_version; end
7303
+ def name; end
7304
+ def ruby_version_file; end
7305
+ end
7306
+ class RuboCop::TargetRuby::BundlerLockFile < RuboCop::TargetRuby::Source
7307
+ def bundler_lock_file_path; end
7308
+ def find_version; end
7309
+ def name; end
7310
+ end
7311
+ class RuboCop::TargetRuby::Default < RuboCop::TargetRuby::Source
7312
+ def find_version; end
7313
+ def name; end
7314
+ end
7011
7315
  module RuboCop::YAMLDuplicationChecker
7012
7316
  def self.check(yaml_string, filename, &on_duplicated); end
7013
7317
  def self.traverse(tree, &on_duplicated); end