bhook 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
7
7
  #
8
8
  # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop/all/rubocop.rbi
9
9
  #
10
- # rubocop-1.25.1
10
+ # rubocop-1.30.0
11
11
 
12
12
  module RuboCop
13
13
  end
@@ -248,6 +248,7 @@ module RuboCop::Cop::AutocorrectLogic
248
248
  def autocorrect?; end
249
249
  def autocorrect_enabled?; end
250
250
  def autocorrect_requested?; end
251
+ def autocorrect_with_disable_uncorrectable?; end
251
252
  def correctable?; end
252
253
  def disable_offense(range); end
253
254
  def disable_offense_at_end_of_line(range, eol_comment); end
@@ -272,6 +273,7 @@ class RuboCop::Cop::Badge
272
273
  def initialize(class_name_parts); end
273
274
  def match?(other); end
274
275
  def qualified?; end
276
+ def self.camel_case(name_part); end
275
277
  def self.for(class_name); end
276
278
  def self.parse(identifier); end
277
279
  def to_s; end
@@ -962,6 +964,13 @@ module RuboCop::Cop::AllowedMethods
962
964
  def allowed_method?(name); end
963
965
  def allowed_methods; end
964
966
  end
967
+ module RuboCop::Cop::AllowedPattern
968
+ def allowed_line?(line); end
969
+ def allowed_patterns; end
970
+ def ignored_line?(line); end
971
+ def matches_allowed_pattern?(line); end
972
+ def matches_ignored_pattern?(line); end
973
+ end
965
974
  module RuboCop::Cop::AutoCorrector
966
975
  def support_autocorrect?; end
967
976
  end
@@ -1257,11 +1266,6 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < Struct
1257
1266
  def trailing; end
1258
1267
  def trailing=(_); end
1259
1268
  end
1260
- module RuboCop::Cop::IgnoredPattern
1261
- def ignored_line?(line); end
1262
- def ignored_patterns; end
1263
- def matches_ignored_pattern?(line); end
1264
- end
1265
1269
  module RuboCop::Cop::IgnoredMethods
1266
1270
  def deprecated_key; end
1267
1271
  def ignored_method?(name); end
@@ -1287,6 +1291,7 @@ module RuboCop::Cop::LineLengthHelp
1287
1291
  def allow_uri?; end
1288
1292
  def allowed_uri_position?(line, uri_range); end
1289
1293
  def directive_on_source_line?(line_index); end
1294
+ def extend_uri_end_position(line, end_position); end
1290
1295
  def find_excessive_uri_range(line); end
1291
1296
  def ignore_cop_directives?; end
1292
1297
  def indentation_difference(line); end
@@ -1329,6 +1334,7 @@ module RuboCop::Cop::HashShorthandSyntax
1329
1334
  def enforced_shorthand_syntax; end
1330
1335
  def ignore_hash_shorthand_syntax?(pair_node); end
1331
1336
  def on_pair(node); end
1337
+ def register_offense(node, message, replacement); end
1332
1338
  def require_hash_value?(hash_key_source, node); end
1333
1339
  def require_hash_value_for_around_hash_literal?(node); end
1334
1340
  def use_element_of_hash_literal_as_receiver?(ancestor, parent); end
@@ -1651,10 +1657,11 @@ end
1651
1657
  module RuboCop::Cop::CommentsHelp
1652
1658
  def begin_pos_with_comment(node); end
1653
1659
  def buffer; end
1660
+ def contains_comments?(node); end
1654
1661
  def end_position_for(node); end
1662
+ def find_end_line(node); end
1655
1663
  def source_range_with_comment(node); end
1656
1664
  def start_line_position(node); end
1657
- include RuboCop::Cop::VisibilityHelp
1658
1665
  end
1659
1666
  module RuboCop::Cop::Utils
1660
1667
  end
@@ -1787,6 +1794,7 @@ class RuboCop::Cop::LineBreakCorrector
1787
1794
  def self.processed_source; end
1788
1795
  def self.remove_semicolon(node, corrector); end
1789
1796
  def self.semicolon(node); end
1797
+ def self.trailing_class_definition?(token, body); end
1790
1798
  extend RuboCop::Cop::Alignment
1791
1799
  extend RuboCop::Cop::TrailingBody
1792
1800
  extend RuboCop::Cop::Util
@@ -1945,8 +1953,34 @@ class RuboCop::Cop::Gemspec::DateAssignment < RuboCop::Cop::Base
1945
1953
  include RuboCop::Cop::GemspecHelp
1946
1954
  include RuboCop::Cop::RangeHelp
1947
1955
  end
1956
+ class RuboCop::Cop::Gemspec::DependencyVersion < RuboCop::Cop::Base
1957
+ def add_dependency_method?(method_name); end
1958
+ def add_dependency_method_declarations(param0); end
1959
+ def add_dependency_method_nodes; end
1960
+ def allowed_gem?(node); end
1961
+ def allowed_gems; end
1962
+ def forbidden_offense?(node); end
1963
+ def forbidden_style?; end
1964
+ def includes_commit_reference?(param0 = nil); end
1965
+ def includes_version_specification?(param0 = nil); end
1966
+ def match_block_variable_name?(receiver_name); end
1967
+ def message(range); end
1968
+ def offense?(node); end
1969
+ def on_new_investigation; end
1970
+ def required_offense?(node); end
1971
+ def required_style?; end
1972
+ def version_specification?(expression); end
1973
+ include RuboCop::Cop::ConfigurableEnforcedStyle
1974
+ include RuboCop::Cop::GemspecHelp
1975
+ end
1976
+ class RuboCop::Cop::Gemspec::DeprecatedAttributeAssignment < RuboCop::Cop::Base
1977
+ def gem_specification(param0 = nil); end
1978
+ def on_block(block_node); end
1979
+ def use_test_files?(node, block_parameter); end
1980
+ extend RuboCop::Cop::AutoCorrector
1981
+ include RuboCop::Cop::RangeHelp
1982
+ end
1948
1983
  class RuboCop::Cop::Gemspec::DuplicatedAssignment < RuboCop::Cop::Base
1949
- def assignment_method?(method_name); end
1950
1984
  def assignment_method_declarations(param0); end
1951
1985
  def duplicated_assignment_method_nodes; end
1952
1986
  def match_block_variable_name?(receiver_name); end
@@ -2012,14 +2046,18 @@ class RuboCop::Cop::Layout::ArgumentAlignment < RuboCop::Cop::Base
2012
2046
  def arguments_or_first_arg_pairs(node); end
2013
2047
  def arguments_with_last_arg_pairs(node); end
2014
2048
  def autocorrect(corrector, node); end
2049
+ def autocorrect_incompatible_with_other_cops?; end
2015
2050
  def base_column(node, first_argument); end
2051
+ def enforce_hash_argument_with_separator?; end
2016
2052
  def fixed_indentation?; end
2017
2053
  def flattened_arguments(node); end
2054
+ def hash_argument_config; end
2018
2055
  def message(_node); end
2019
2056
  def multiple_arguments?(node); end
2020
2057
  def on_csend(node); end
2021
2058
  def on_send(node); end
2022
2059
  def target_method_lineno(node); end
2060
+ def with_first_argument_style?; end
2023
2061
  extend RuboCop::Cop::AutoCorrector
2024
2062
  include RuboCop::Cop::Alignment
2025
2063
  end
@@ -2084,6 +2122,8 @@ class RuboCop::Cop::Layout::CaseIndentation < RuboCop::Cop::Base
2084
2122
  def base_column(case_node, base); end
2085
2123
  def check_when(when_node, branch_type); end
2086
2124
  def detect_incorrect_style(when_node); end
2125
+ def end_and_last_conditional_same_line?(node); end
2126
+ def enforced_style_end?; end
2087
2127
  def incorrect_style(when_node, branch_type); end
2088
2128
  def indent_one_step?; end
2089
2129
  def indentation_width; end
@@ -2711,9 +2751,9 @@ class RuboCop::Cop::Layout::IndentationWidth < RuboCop::Cop::Base
2711
2751
  def starts_with_access_modifier?(body_node); end
2712
2752
  extend RuboCop::Cop::AutoCorrector
2713
2753
  include RuboCop::Cop::Alignment
2754
+ include RuboCop::Cop::AllowedPattern
2714
2755
  include RuboCop::Cop::CheckAssignment
2715
2756
  include RuboCop::Cop::EndKeywordAlignment
2716
- include RuboCop::Cop::IgnoredPattern
2717
2757
  include RuboCop::Cop::RangeHelp
2718
2758
  end
2719
2759
  class RuboCop::Cop::Layout::InitialIndentation < RuboCop::Cop::Base
@@ -2759,6 +2799,7 @@ end
2759
2799
  class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Base
2760
2800
  def allow_heredoc?; end
2761
2801
  def allowed_heredoc; end
2802
+ def allowed_line?(line, line_index); end
2762
2803
  def breakable_block_range(block_node); end
2763
2804
  def breakable_range; end
2764
2805
  def breakable_range=(arg0); end
@@ -2774,7 +2815,6 @@ class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Base
2774
2815
  def extract_heredocs(ast); end
2775
2816
  def heredocs; end
2776
2817
  def highlight_start(line); end
2777
- def ignored_line?(line, line_index); end
2778
2818
  def line_in_heredoc?(line_number); end
2779
2819
  def line_in_permitted_heredoc?(line_number); end
2780
2820
  def max; end
@@ -2789,8 +2829,8 @@ class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Base
2789
2829
  def register_offense(loc, line, line_index, length: nil); end
2790
2830
  def shebang?(line, line_index); end
2791
2831
  extend RuboCop::Cop::AutoCorrector
2832
+ include RuboCop::Cop::AllowedPattern
2792
2833
  include RuboCop::Cop::CheckLineBreakable
2793
- include RuboCop::Cop::IgnoredPattern
2794
2834
  include RuboCop::Cop::LineLengthHelp
2795
2835
  include RuboCop::Cop::RangeHelp
2796
2836
  end
@@ -2860,6 +2900,8 @@ class RuboCop::Cop::Layout::MultilineMethodCallIndentation < RuboCop::Cop::Base
2860
2900
  def autocorrect(corrector, node); end
2861
2901
  def base_source; end
2862
2902
  def extra_indentation(given_style, parent); end
2903
+ def first_call_has_a_dot(node); end
2904
+ def get_dot_right_above(node); end
2863
2905
  def message(node, lhs, rhs); end
2864
2906
  def no_base_message(lhs, rhs, node); end
2865
2907
  def offending_range(node, lhs, rhs, given_style); end
@@ -3141,6 +3183,7 @@ class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < RuboCop::Cop::Base
3141
3183
  include RuboCop::Cop::RangeHelp
3142
3184
  end
3143
3185
  class RuboCop::Cop::Layout::SpaceBeforeBrackets < RuboCop::Cop::Base
3186
+ def dot_before_brackets?(node, receiver_end_pos, selector_begin_pos); end
3144
3187
  def offense_range(node, begin_pos); end
3145
3188
  def offense_range_for_assignment(node, begin_pos); end
3146
3189
  def on_send(node); end
@@ -3560,6 +3603,8 @@ class RuboCop::Cop::Lint::DuplicateRequire < RuboCop::Cop::Base
3560
3603
  def on_new_investigation; end
3561
3604
  def on_send(node); end
3562
3605
  def require_call?(param0 = nil); end
3606
+ extend RuboCop::Cop::AutoCorrector
3607
+ include RuboCop::Cop::RangeHelp
3563
3608
  end
3564
3609
  class RuboCop::Cop::Lint::DuplicateRescueException < RuboCop::Cop::Base
3565
3610
  def on_rescue(node); end
@@ -3593,6 +3638,7 @@ class RuboCop::Cop::Lint::EmptyClass < RuboCop::Cop::Base
3593
3638
  end
3594
3639
  class RuboCop::Cop::Lint::EmptyConditionalBody < RuboCop::Cop::Base
3595
3640
  def on_if(node); end
3641
+ include RuboCop::Cop::CommentsHelp
3596
3642
  end
3597
3643
  class RuboCop::Cop::Lint::EmptyEnsure < RuboCop::Cop::Base
3598
3644
  def on_ensure(node); end
@@ -3612,6 +3658,7 @@ end
3612
3658
  class RuboCop::Cop::Lint::EmptyInPattern < RuboCop::Cop::Base
3613
3659
  def on_case_match(node); end
3614
3660
  extend RuboCop::Cop::TargetRubyVersion
3661
+ include RuboCop::Cop::CommentsHelp
3615
3662
  end
3616
3663
  class RuboCop::Cop::Lint::EmptyInterpolation < RuboCop::Cop::Base
3617
3664
  def on_interpolation(begin_node); end
@@ -3620,6 +3667,7 @@ class RuboCop::Cop::Lint::EmptyInterpolation < RuboCop::Cop::Base
3620
3667
  end
3621
3668
  class RuboCop::Cop::Lint::EmptyWhen < RuboCop::Cop::Base
3622
3669
  def on_case(node); end
3670
+ include RuboCop::Cop::CommentsHelp
3623
3671
  end
3624
3672
  class RuboCop::Cop::Lint::EnsureReturn < RuboCop::Cop::Base
3625
3673
  def on_ensure(node); end
@@ -3732,7 +3780,7 @@ class RuboCop::Cop::Lint::IneffectiveAccessModifier < RuboCop::Cop::Base
3732
3780
  end
3733
3781
  class RuboCop::Cop::Lint::InheritException < RuboCop::Cop::Base
3734
3782
  def class_new_call?(param0 = nil); end
3735
- def illegal_class_name?(class_node); end
3783
+ def exception_class?(class_node); end
3736
3784
  def message(node); end
3737
3785
  def on_class(node); end
3738
3786
  def on_send(node); end
@@ -3747,6 +3795,7 @@ class RuboCop::Cop::Lint::InterpolationCheck < RuboCop::Cop::Base
3747
3795
  extend RuboCop::Cop::AutoCorrector
3748
3796
  end
3749
3797
  class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < RuboCop::Cop::Base
3798
+ def lambda_with_symbol_proc?(param0 = nil); end
3750
3799
  def on_send(node); end
3751
3800
  extend RuboCop::Cop::AutoCorrector
3752
3801
  end
@@ -4018,6 +4067,7 @@ class RuboCop::Cop::Lint::RedundantRequireStatement < RuboCop::Cop::Base
4018
4067
  def on_send(node); end
4019
4068
  def unnecessary_require_statement?(param0 = nil); end
4020
4069
  extend RuboCop::Cop::AutoCorrector
4070
+ extend RuboCop::Cop::TargetRubyVersion
4021
4071
  include RuboCop::Cop::RangeHelp
4022
4072
  end
4023
4073
  class RuboCop::Cop::Lint::RedundantSafeNavigation < RuboCop::Cop::Base
@@ -4068,6 +4118,10 @@ class RuboCop::Cop::Lint::RedundantWithObject < RuboCop::Cop::Base
4068
4118
  extend RuboCop::Cop::AutoCorrector
4069
4119
  include RuboCop::Cop::RangeHelp
4070
4120
  end
4121
+ class RuboCop::Cop::Lint::RefinementImportMethods < RuboCop::Cop::Base
4122
+ def on_send(node); end
4123
+ extend RuboCop::Cop::TargetRubyVersion
4124
+ end
4071
4125
  class RuboCop::Cop::Lint::RegexpAsCondition < RuboCop::Cop::Base
4072
4126
  def on_match_current_line(node); end
4073
4127
  extend RuboCop::Cop::AutoCorrector
@@ -4099,11 +4153,8 @@ class RuboCop::Cop::Lint::RescueType < RuboCop::Cop::Base
4099
4153
  extend RuboCop::Cop::AutoCorrector
4100
4154
  end
4101
4155
  class RuboCop::Cop::Lint::ReturnInVoidContext < RuboCop::Cop::Base
4102
- def method_name(context_node); end
4103
4156
  def non_void_context(return_node); end
4104
4157
  def on_return(return_node); end
4105
- def setter_method?(method_name); end
4106
- def void_context_method?(method_name); end
4107
4158
  end
4108
4159
  class RuboCop::Cop::Lint::SafeNavigationConsistency < RuboCop::Cop::Base
4109
4160
  def autocorrect(corrector, node); end
@@ -4120,6 +4171,7 @@ class RuboCop::Cop::Lint::SafeNavigationChain < RuboCop::Cop::Base
4120
4171
  def bad_method?(param0 = nil); end
4121
4172
  def method_chain(node); end
4122
4173
  def on_send(node); end
4174
+ extend RuboCop::Cop::TargetRubyVersion
4123
4175
  include RuboCop::Cop::NilMethods
4124
4176
  end
4125
4177
  class RuboCop::Cop::Lint::SafeNavigationWithEmpty < RuboCop::Cop::Base
@@ -4184,6 +4236,7 @@ end
4184
4236
  class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < RuboCop::Cop::Base
4185
4237
  def before_declaring_variable(variable, variable_table); end
4186
4238
  def ractor_block?(param0 = nil); end
4239
+ def same_conditions_node_different_branch?(variable, outer_local_variable); end
4187
4240
  def self.joining_forces; end
4188
4241
  end
4189
4242
  class RuboCop::Cop::Lint::StructNewOverride < RuboCop::Cop::Base
@@ -4304,7 +4357,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < RuboCop::Cop::Base
4304
4357
  def on_while_post(node); end
4305
4358
  def preceded_by_continue_statement?(break_statement); end
4306
4359
  def statements(node); end
4307
- include RuboCop::Cop::IgnoredPattern
4360
+ include RuboCop::Cop::AllowedPattern
4308
4361
  end
4309
4362
  class RuboCop::Cop::Lint::UnusedBlockArgument < RuboCop::Cop::Base
4310
4363
  def allow_unused_keyword_arguments?; end
@@ -4381,9 +4434,6 @@ class RuboCop::Cop::Lint::UselessAssignment < RuboCop::Cop::Base
4381
4434
  def similar_name_message(variable); end
4382
4435
  def variable_like_method_invocation?(node); end
4383
4436
  end
4384
- class RuboCop::Cop::Lint::UselessElseWithoutRescue < RuboCop::Cop::Base
4385
- def on_new_investigation; end
4386
- end
4387
4437
  class RuboCop::Cop::Lint::UselessMethodDefinition < RuboCop::Cop::Base
4388
4438
  def delegating?(node, def_node); end
4389
4439
  def on_def(node); end
@@ -4417,6 +4467,7 @@ class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker
4417
4467
  def scan(node, &block); end
4418
4468
  end
4419
4469
  class RuboCop::Cop::Lint::UselessTimes < RuboCop::Cop::Base
4470
+ def autocorrect(corrector, count, node, proc_name); end
4420
4471
  def autocorrect_block(corrector, node); end
4421
4472
  def autocorrect_block_pass(corrector, node, proc_name); end
4422
4473
  def block_arg(param0 = nil); end
@@ -4476,6 +4527,7 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
4476
4527
  include RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount
4477
4528
  end
4478
4529
  class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator
4530
+ def another_args?(node); end
4479
4531
  def build_foldable_checks(types); end
4480
4532
  def calculate; end
4481
4533
  def classlike_code_length(node); end
@@ -4492,6 +4544,8 @@ class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator
4492
4544
  def line_numbers_of_inner_nodes(node, *types); end
4493
4545
  def namespace_module?(node); end
4494
4546
  def normalize_foldable_types(types); end
4547
+ def omit_length(descendant); end
4548
+ def parenthesized?(node); end
4495
4549
  extend RuboCop::AST::NodePattern::Macros
4496
4550
  include RuboCop::Cop::Util
4497
4551
  end
@@ -4703,8 +4757,8 @@ class RuboCop::Cop::Naming::MethodName < RuboCop::Cop::Base
4703
4757
  def range_position(node); end
4704
4758
  def str_name(param0 = nil); end
4705
4759
  def sym_name(param0 = nil); end
4760
+ include RuboCop::Cop::AllowedPattern
4706
4761
  include RuboCop::Cop::ConfigurableNaming
4707
- include RuboCop::Cop::IgnoredPattern
4708
4762
  include RuboCop::Cop::RangeHelp
4709
4763
  end
4710
4764
  class RuboCop::Cop::Naming::MethodParameterName < RuboCop::Cop::Base
@@ -4756,7 +4810,9 @@ class RuboCop::Cop::Naming::VariableName < RuboCop::Cop::Base
4756
4810
  def on_lvasgn(node); end
4757
4811
  def on_optarg(node); end
4758
4812
  def on_restarg(node); end
4813
+ def valid_name?(node, name, given_style = nil); end
4759
4814
  include RuboCop::Cop::AllowedIdentifiers
4815
+ include RuboCop::Cop::AllowedPattern
4760
4816
  include RuboCop::Cop::ConfigurableNaming
4761
4817
  end
4762
4818
  class RuboCop::Cop::Naming::VariableNumber < RuboCop::Cop::Base
@@ -4765,10 +4821,13 @@ class RuboCop::Cop::Naming::VariableNumber < RuboCop::Cop::Base
4765
4821
  def on_cvasgn(node); end
4766
4822
  def on_def(node); end
4767
4823
  def on_defs(node); end
4824
+ def on_gvasgn(node); end
4768
4825
  def on_ivasgn(node); end
4769
4826
  def on_lvasgn(node); end
4770
4827
  def on_sym(node); end
4828
+ def valid_name?(node, name, given_style = nil); end
4771
4829
  include RuboCop::Cop::AllowedIdentifiers
4830
+ include RuboCop::Cop::AllowedPattern
4772
4831
  include RuboCop::Cop::ConfigurableNumbering
4773
4832
  end
4774
4833
  module RuboCop::Cop::Style
@@ -4982,6 +5041,7 @@ class RuboCop::Cop::Style::BlockDelimiters < RuboCop::Cop::Base
4982
5041
  def special_method_proper_block_style?(node); end
4983
5042
  def whitespace_after?(range, length = nil); end
4984
5043
  def whitespace_before?(range); end
5044
+ def with_block?(node); end
4985
5045
  extend RuboCop::Cop::AutoCorrector
4986
5046
  extend RuboCop::Cop::IgnoredMethods::Config
4987
5047
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -5098,7 +5158,7 @@ class RuboCop::Cop::Style::ClassVars < RuboCop::Cop::Base
5098
5158
  def on_send(node); end
5099
5159
  end
5100
5160
  class RuboCop::Cop::Style::CollectionCompact < RuboCop::Cop::Base
5101
- def good_method_name(method_name); end
5161
+ def good_method_name(node); end
5102
5162
  def offense_range(node); end
5103
5163
  def on_send(node); end
5104
5164
  def range(begin_pos_node, end_pos_node); end
@@ -5302,6 +5362,7 @@ class RuboCop::Cop::Style::Dir < RuboCop::Cop::Base
5302
5362
  def file_keyword?(node); end
5303
5363
  def on_send(node); end
5304
5364
  extend RuboCop::Cop::AutoCorrector
5365
+ extend RuboCop::Cop::TargetRubyVersion
5305
5366
  end
5306
5367
  class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < RuboCop::Cop::Base
5307
5368
  def allowed_cops; end
@@ -5359,10 +5420,14 @@ class RuboCop::Cop::Style::DoubleCopDisableDirective < RuboCop::Cop::Base
5359
5420
  end
5360
5421
  class RuboCop::Cop::Style::DoubleNegation < RuboCop::Cop::Base
5361
5422
  def allowed_in_returns?(node); end
5423
+ def define_mehod?(node); end
5362
5424
  def double_negative?(param0 = nil); end
5425
+ def double_negative_condition_return_value?(node, last_child, conditional_node); end
5363
5426
  def end_of_method_definition?(node); end
5427
+ def find_conditional_node_from_ascendant(node); end
5364
5428
  def find_def_node_from_ascendant(node); end
5365
5429
  def find_last_child(node); end
5430
+ def find_parent_not_enumerable(node); end
5366
5431
  def on_send(node); end
5367
5432
  extend RuboCop::Cop::AutoCorrector
5368
5433
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -5484,6 +5549,11 @@ class RuboCop::Cop::Style::EndBlock < RuboCop::Cop::Base
5484
5549
  def on_postexe(node); end
5485
5550
  extend RuboCop::Cop::AutoCorrector
5486
5551
  end
5552
+ class RuboCop::Cop::Style::EnvHome < RuboCop::Cop::Base
5553
+ def env_home?(param0 = nil); end
5554
+ def on_send(node); end
5555
+ extend RuboCop::Cop::AutoCorrector
5556
+ end
5487
5557
  class RuboCop::Cop::Style::EvalWithLocation < RuboCop::Cop::Base
5488
5558
  def add_offense_for_different_line(node, line_node, line_diff); end
5489
5559
  def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end
@@ -5555,6 +5625,40 @@ class RuboCop::Cop::Style::ExponentialNotation < RuboCop::Cop::Base
5555
5625
  def scientific?(node); end
5556
5626
  include RuboCop::Cop::ConfigurableEnforcedStyle
5557
5627
  end
5628
+ class RuboCop::Cop::Style::FetchEnvVar < RuboCop::Cop::Base
5629
+ def allowable_use?(node); end
5630
+ def allowed_var?(node); end
5631
+ def assigned?(node); end
5632
+ def block_control?(param0 = nil); end
5633
+ def configured_indentation; end
5634
+ def conterpart_rhs_of(node); end
5635
+ def default_nil(node, name_node); end
5636
+ def default_rhs(node, name_node); end
5637
+ def default_rhs_in_outer_or(node, name_node); end
5638
+ def default_rhs_in_same_or(node, name_node); end
5639
+ def default_to_rhs?(node); end
5640
+ def env_with_bracket?(param0 = nil); end
5641
+ def first_line_of(source); end
5642
+ def left_end_of_or_chains?(node); end
5643
+ def message_chained_with_dot?(node); end
5644
+ def message_template_for(rhs); end
5645
+ def new_code_default_nil(name_node); end
5646
+ def new_code_default_rhs(node, name_node); end
5647
+ def new_code_default_rhs_multiline(node, name_node); end
5648
+ def new_code_default_rhs_single_line(node, name_node); end
5649
+ def offensive?(node); end
5650
+ def offensive_nodes(param0); end
5651
+ def on_send(node); end
5652
+ def operand_of_or?(param0 = nil); end
5653
+ def or_chain_root(node); end
5654
+ def rhs_can_be_default_value?(node); end
5655
+ def rhs_is_block_control?(node); end
5656
+ def right_end_of_or_chains?(node); end
5657
+ def used_as_flag?(node); end
5658
+ def used_if_condition_in_body(node); end
5659
+ def used_in_condition?(node, condition); end
5660
+ extend RuboCop::Cop::AutoCorrector
5661
+ end
5558
5662
  class RuboCop::Cop::Style::FileRead < RuboCop::Cop::Base
5559
5663
  def block_read?(param0 = nil); end
5560
5664
  def evidence(node); end
@@ -5653,6 +5757,7 @@ class RuboCop::Cop::Style::FrozenStringLiteralComment < RuboCop::Cop::Base
5653
5757
  def remove_comment(corrector, node); end
5654
5758
  def unnecessary_comment_offense(processed_source); end
5655
5759
  extend RuboCop::Cop::AutoCorrector
5760
+ extend RuboCop::Cop::TargetRubyVersion
5656
5761
  include RuboCop::Cop::ConfigurableEnforcedStyle
5657
5762
  include RuboCop::Cop::FrozenStringLiteral
5658
5763
  include RuboCop::Cop::RangeHelp
@@ -5674,7 +5779,9 @@ end
5674
5779
  class RuboCop::Cop::Style::GuardClause < RuboCop::Cop::Base
5675
5780
  def accepted_form?(node, ending: nil); end
5676
5781
  def accepted_if?(node, ending); end
5782
+ def allowed_consecutive_conditionals?; end
5677
5783
  def check_ending_if(node); end
5784
+ def consecutive_conditionals?(parent, node); end
5678
5785
  def guard_clause_source(guard_clause); end
5679
5786
  def on_def(node); end
5680
5787
  def on_defs(node); end
@@ -5774,6 +5881,7 @@ class RuboCop::Cop::Style::HashTransformKeys < RuboCop::Cop::Base
5774
5881
  def on_bad_map_to_h(param0 = nil); end
5775
5882
  def on_bad_to_h(param0 = nil); end
5776
5883
  extend RuboCop::Cop::AutoCorrector
5884
+ extend RuboCop::Cop::TargetRubyVersion
5777
5885
  include RuboCop::Cop::HashTransformMethod
5778
5886
  end
5779
5887
  class RuboCop::Cop::Style::HashTransformValues < RuboCop::Cop::Base
@@ -5784,6 +5892,7 @@ class RuboCop::Cop::Style::HashTransformValues < RuboCop::Cop::Base
5784
5892
  def on_bad_map_to_h(param0 = nil); end
5785
5893
  def on_bad_to_h(param0 = nil); end
5786
5894
  extend RuboCop::Cop::AutoCorrector
5895
+ extend RuboCop::Cop::TargetRubyVersion
5787
5896
  include RuboCop::Cop::HashTransformMethod
5788
5897
  end
5789
5898
  class RuboCop::Cop::Style::IdenticalConditionalBranches < RuboCop::Cop::Base
@@ -5814,10 +5923,10 @@ class RuboCop::Cop::Style::IfInsideElse < RuboCop::Cop::Base
5814
5923
  include RuboCop::Cop::RangeHelp
5815
5924
  end
5816
5925
  class RuboCop::Cop::Style::IfUnlessModifier < RuboCop::Cop::Base
5926
+ def allowed_patterns; end
5817
5927
  def another_statement_on_same_line?(node); end
5818
5928
  def autocorrect(corrector, node); end
5819
5929
  def extract_heredoc_from(last_argument); end
5820
- def ignored_patterns; end
5821
5930
  def line_length_enabled_at_line?(line); end
5822
5931
  def named_capture_in_condition?(node); end
5823
5932
  def non_eligible_node?(node); end
@@ -5833,7 +5942,7 @@ class RuboCop::Cop::Style::IfUnlessModifier < RuboCop::Cop::Base
5833
5942
  def too_long_line_based_on_ignore_cop_directives?(range, line); end
5834
5943
  def too_long_single_line?(node); end
5835
5944
  extend RuboCop::Cop::AutoCorrector
5836
- include RuboCop::Cop::IgnoredPattern
5945
+ include RuboCop::Cop::AllowedPattern
5837
5946
  include RuboCop::Cop::LineLengthHelp
5838
5947
  include RuboCop::Cop::RangeHelp
5839
5948
  include RuboCop::Cop::StatementModifier
@@ -5950,12 +6059,11 @@ class RuboCop::Cop::Style::Lambda < RuboCop::Cop::Base
5950
6059
  include RuboCop::Cop::ConfigurableEnforcedStyle
5951
6060
  end
5952
6061
  class RuboCop::Cop::Style::LambdaCall < RuboCop::Cop::Base
5953
- def autocorrect(corrector, node); end
5954
6062
  def explicit_style?; end
5955
6063
  def implicit_style?; end
5956
- def message(_node); end
5957
6064
  def offense?(node); end
5958
6065
  def on_send(node); end
6066
+ def prefer(node); end
5959
6067
  extend RuboCop::Cop::AutoCorrector
5960
6068
  include RuboCop::Cop::ConfigurableEnforcedStyle
5961
6069
  end
@@ -6006,9 +6114,9 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < RuboCop::Cop::Base
6006
6114
  def self.autocorrect_incompatible_with; end
6007
6115
  extend RuboCop::Cop::AutoCorrector
6008
6116
  extend RuboCop::Cop::IgnoredMethods::Config
6117
+ include RuboCop::Cop::AllowedPattern
6009
6118
  include RuboCop::Cop::ConfigurableEnforcedStyle
6010
6119
  include RuboCop::Cop::IgnoredMethods
6011
- include RuboCop::Cop::IgnoredPattern
6012
6120
  include RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
6013
6121
  include RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses
6014
6122
  end
@@ -6104,6 +6212,18 @@ class RuboCop::Cop::Style::RedundantFileExtensionInRequire < RuboCop::Cop::Base
6104
6212
  extend RuboCop::Cop::AutoCorrector
6105
6213
  include RuboCop::Cop::RangeHelp
6106
6214
  end
6215
+ class RuboCop::Cop::Style::RedundantInitialize < RuboCop::Cop::Base
6216
+ def acceptable?(node); end
6217
+ def allow_comments?(node); end
6218
+ def forwards?(node); end
6219
+ def initialize_forwards?(param0 = nil); end
6220
+ def on_def(node); end
6221
+ def register_offense(node, message); end
6222
+ def same_args?(super_node, args); end
6223
+ extend RuboCop::Cop::AutoCorrector
6224
+ include RuboCop::Cop::CommentsHelp
6225
+ include RuboCop::Cop::RangeHelp
6226
+ end
6107
6227
  class RuboCop::Cop::Style::RedundantSelfAssignment < RuboCop::Cop::Base
6108
6228
  def correction_range(node); end
6109
6229
  def method_returning_self?(method_name); end
@@ -6134,15 +6254,21 @@ class RuboCop::Cop::Style::SoleNestedConditional < RuboCop::Cop::Base
6134
6254
  def arguments_range(node); end
6135
6255
  def assigned_variables(condition); end
6136
6256
  def autocorrect(corrector, node, if_branch); end
6257
+ def autocorrect_outer_condition_basic(corrector, node, if_branch); end
6258
+ def autocorrect_outer_condition_modify_form(corrector, node, if_branch); end
6137
6259
  def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end
6138
6260
  def correct_for_comment(corrector, node, if_branch); end
6139
- def correct_for_guard_condition_style(corrector, node, if_branch, and_operator); end
6140
- def correct_from_unless_to_if(corrector, node); end
6261
+ def correct_for_guard_condition_style(corrector, outer_condition, if_branch, and_operator); end
6262
+ def correct_for_outer_condition_modify_form_style(corrector, node, if_branch); end
6263
+ def correct_from_unless_to_if(corrector, node, is_modify_form: nil); end
6141
6264
  def correct_outer_condition(corrector, condition); end
6142
- def offending_branch?(branch); end
6265
+ def insert_bang(corrector, node, is_modify_form); end
6266
+ def insert_bang_for_and(corrector, node); end
6267
+ def offending_branch?(node, branch); end
6143
6268
  def on_if(node); end
6144
- def replacement_condition(and_operator, condition); end
6145
- def requrie_parentheses?(condition); end
6269
+ def outer_condition_modify_form?(node, if_branch); end
6270
+ def replace_condition(condition); end
6271
+ def require_parentheses?(condition); end
6146
6272
  def self.autocorrect_incompatible_with; end
6147
6273
  def use_variable_assignment_in_condition?(condition, if_branch); end
6148
6274
  def wrap_condition?(node); end
@@ -6157,6 +6283,16 @@ class RuboCop::Cop::Style::StaticClass < RuboCop::Cop::Base
6157
6283
  def sclass_convertible_to_module?(node); end
6158
6284
  include RuboCop::Cop::VisibilityHelp
6159
6285
  end
6286
+ class RuboCop::Cop::Style::MapCompactWithConditionalBlock < RuboCop::Cop::Base
6287
+ def map_and_compact?(param0 = nil); end
6288
+ def on_send(node); end
6289
+ def range(node); end
6290
+ def returns_block_argument?(block_argument_node, return_value_node); end
6291
+ def truthy_branch?(node); end
6292
+ def truthy_branch_for_guard?(node); end
6293
+ def truthy_branch_for_if?(node); end
6294
+ extend RuboCop::Cop::AutoCorrector
6295
+ end
6160
6296
  class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < RuboCop::Cop::Base
6161
6297
  def on_block(node); end
6162
6298
  def on_csend(node); end
@@ -6286,8 +6422,11 @@ class RuboCop::Cop::Style::MultilineMemoization < RuboCop::Cop::Base
6286
6422
  include RuboCop::Cop::ConfigurableEnforcedStyle
6287
6423
  end
6288
6424
  class RuboCop::Cop::Style::MultilineTernaryOperator < RuboCop::Cop::Base
6425
+ def enforce_single_line_ternary_operator?(node); end
6289
6426
  def offense?(node); end
6290
6427
  def on_if(node); end
6428
+ def replacement(node); end
6429
+ def use_assignment_method?(node); end
6291
6430
  extend RuboCop::Cop::AutoCorrector
6292
6431
  end
6293
6432
  class RuboCop::Cop::Style::MultilineWhenThen < RuboCop::Cop::Base
@@ -6380,6 +6519,15 @@ class RuboCop::Cop::Style::NegatedWhile < RuboCop::Cop::Base
6380
6519
  extend RuboCop::Cop::AutoCorrector
6381
6520
  include RuboCop::Cop::NegativeConditional
6382
6521
  end
6522
+ class RuboCop::Cop::Style::NestedFileDirname < RuboCop::Cop::Base
6523
+ def file_dirname?(param0 = nil); end
6524
+ def offense_range(node); end
6525
+ def on_send(node); end
6526
+ def path_with_dir_level(node, level); end
6527
+ extend RuboCop::Cop::AutoCorrector
6528
+ extend RuboCop::Cop::TargetRubyVersion
6529
+ include RuboCop::Cop::RangeHelp
6530
+ end
6383
6531
  class RuboCop::Cop::Style::NestedModifier < RuboCop::Cop::Base
6384
6532
  def add_parentheses_to_method_arguments(send_node); end
6385
6533
  def autocorrect(corrector, node); end
@@ -6535,12 +6683,22 @@ class RuboCop::Cop::Style::NumericPredicate < RuboCop::Cop::Base
6535
6683
  def parenthesized_source(node); end
6536
6684
  def predicate(param0 = nil); end
6537
6685
  def replacement(numeric, operation); end
6686
+ def replacement_supported?(operator); end
6538
6687
  def require_parentheses?(node); end
6539
6688
  extend RuboCop::Cop::AutoCorrector
6540
6689
  extend RuboCop::Cop::IgnoredMethods::Config
6541
6690
  include RuboCop::Cop::ConfigurableEnforcedStyle
6542
6691
  include RuboCop::Cop::IgnoredMethods
6543
6692
  end
6693
+ class RuboCop::Cop::Style::ObjectThen < RuboCop::Cop::Base
6694
+ def check_method_node(node); end
6695
+ def message(node); end
6696
+ def on_block(node); end
6697
+ def on_send(node); end
6698
+ def preferred_method(node); end
6699
+ extend RuboCop::Cop::AutoCorrector
6700
+ include RuboCop::Cop::ConfigurableEnforcedStyle
6701
+ end
6544
6702
  class RuboCop::Cop::Style::OneLineConditional < RuboCop::Cop::Base
6545
6703
  def always_multiline?; end
6546
6704
  def autocorrect(corrector, node); end
@@ -6733,6 +6891,7 @@ class RuboCop::Cop::Style::RaiseArgs < RuboCop::Cop::Base
6733
6891
  def correction_exploded_to_compact(node); end
6734
6892
  def on_send(node); end
6735
6893
  def requires_parens?(parent); end
6894
+ def use_new_method?(first_arg); end
6736
6895
  extend RuboCop::Cop::AutoCorrector
6737
6896
  include RuboCop::Cop::ConfigurableEnforcedStyle
6738
6897
  end
@@ -6760,11 +6919,13 @@ class RuboCop::Cop::Style::RedundantArgument < RuboCop::Cop::Base
6760
6919
  include RuboCop::Cop::RangeHelp
6761
6920
  end
6762
6921
  class RuboCop::Cop::Style::RedundantBegin < RuboCop::Cop::Base
6922
+ def allowable_kwbegin?(node); end
6763
6923
  def begin_block_has_multiline_statements?(node); end
6764
6924
  def condition_range(node); end
6765
6925
  def contain_rescue_or_ensure?(node); end
6766
6926
  def correct_modifier_form_after_multiline_begin_block(corrector, node); end
6767
6927
  def empty_begin?(node); end
6928
+ def offensive_kwbegins(param0); end
6768
6929
  def on_block(node); end
6769
6930
  def on_def(node); end
6770
6931
  def on_defs(node); end
@@ -6786,14 +6947,25 @@ class RuboCop::Cop::Style::RedundantCapitalW < RuboCop::Cop::Base
6786
6947
  include RuboCop::Cop::PercentLiteral
6787
6948
  end
6788
6949
  class RuboCop::Cop::Style::RedundantCondition < RuboCop::Cop::Base
6950
+ def asgn_type?(node); end
6951
+ def branches_have_assignment?(node); end
6952
+ def branches_have_method?(node); end
6789
6953
  def correct_ternary(corrector, node); end
6790
6954
  def else_source(else_branch); end
6955
+ def else_source_if_has_assignment(else_branch); end
6956
+ def else_source_if_has_method(else_branch); end
6957
+ def if_source(if_branch); end
6791
6958
  def make_ternary_form(node); end
6792
6959
  def message(node); end
6793
6960
  def offense?(node); end
6794
6961
  def on_if(node); end
6795
6962
  def range_of_offense(node); end
6963
+ def redundant_condition?(node); end
6964
+ def require_braces?(node); end
6796
6965
  def require_parentheses?(node); end
6966
+ def same_method?(if_branch, else_branch); end
6967
+ def synonymous_condition_and_branch?(node); end
6968
+ def use_hash_key_access?(node); end
6797
6969
  def use_hash_key_assignment?(else_branch); end
6798
6970
  def use_if_branch?(else_branch); end
6799
6971
  def without_argument_parentheses_method?(node); end
@@ -6902,6 +7074,7 @@ class RuboCop::Cop::Style::RedundantRegexpCharacterClass < RuboCop::Cop::Base
6902
7074
  def backslash_b?(elem); end
6903
7075
  def each_redundant_character_class(node); end
6904
7076
  def each_single_element_character_class(node); end
7077
+ def multiple_codepoins?(expression); end
6905
7078
  def on_regexp(node); end
6906
7079
  def redundant_single_element_character_class?(node, char_class); end
6907
7080
  def requires_escape_outside_char_class?(elem); end
@@ -7026,7 +7199,7 @@ class RuboCop::Cop::Style::RescueModifier < RuboCop::Cop::Base
7026
7199
  include RuboCop::Cop::RescueNode
7027
7200
  end
7028
7201
  class RuboCop::Cop::Style::RescueStandardError < RuboCop::Cop::Base
7029
- def offense_for_exlicit_enforced_style(node); end
7202
+ def offense_for_explicit_enforced_style(node); end
7030
7203
  def offense_for_implicit_enforced_style(node, error); end
7031
7204
  def on_resbody(node); end
7032
7205
  def rescue_standard_error?(param0 = nil); end
@@ -7053,7 +7226,7 @@ class RuboCop::Cop::Style::SafeNavigation < RuboCop::Cop::Base
7053
7226
  def allowed_if_condition?(node); end
7054
7227
  def autocorrect(corrector, node); end
7055
7228
  def begin_range(node, method_call); end
7056
- def chain_size(method_chain, method); end
7229
+ def chain_length(method_chain, method); end
7057
7230
  def check_node(node); end
7058
7231
  def comments(node); end
7059
7232
  def end_range(node, method_call); end
@@ -7063,6 +7236,7 @@ class RuboCop::Cop::Style::SafeNavigation < RuboCop::Cop::Base
7063
7236
  def extract_parts_from_if(node); end
7064
7237
  def find_matching_receiver_invocation(method_chain, checked_variable); end
7065
7238
  def handle_comments(corrector, node, method_call); end
7239
+ def max_chain_length; end
7066
7240
  def method_call(node); end
7067
7241
  def method_called?(send_node); end
7068
7242
  def modifier_if_safe_navigation_candidate(param0 = nil); end
@@ -7096,6 +7270,7 @@ end
7096
7270
  class RuboCop::Cop::Style::SelectByRegexp < RuboCop::Cop::Base
7097
7271
  def calls_lvar?(param0 = nil, param1); end
7098
7272
  def creates_hash?(param0 = nil); end
7273
+ def env_const?(param0 = nil); end
7099
7274
  def extract_send_node(block_node); end
7100
7275
  def find_regexp(node, block); end
7101
7276
  def match_predicate_without_receiver?(node); end
@@ -7201,8 +7376,10 @@ class RuboCop::Cop::Style::SpecialGlobalVars < RuboCop::Cop::Base
7201
7376
  def format_english_message(global_var); end
7202
7377
  def format_list(items); end
7203
7378
  def format_message(english, regular, global); end
7379
+ def matching_styles(global); end
7204
7380
  def message(global_var); end
7205
7381
  def on_gvar(node); end
7382
+ def on_new_investigation; end
7206
7383
  def preferred_names(global); end
7207
7384
  def replacement(node, global_var); end
7208
7385
  def should_require_english?(global_var); end
@@ -7242,6 +7419,7 @@ class RuboCop::Cop::Style::StringConcatenation < RuboCop::Cop::Base
7242
7419
  def corrected_ancestor?(node); end
7243
7420
  def find_topmost_plus_node(node); end
7244
7421
  def handle_quotes(parts); end
7422
+ def heredoc?(node); end
7245
7423
  def line_end_concatenation?(node); end
7246
7424
  def offensive_for_mode?(receiver_node); end
7247
7425
  def on_new_investigation; end
@@ -7336,6 +7514,7 @@ class RuboCop::Cop::Style::SymbolArray < RuboCop::Cop::Base
7336
7514
  def symbols_contain_spaces?(node); end
7337
7515
  def to_symbol_literal(string); end
7338
7516
  extend RuboCop::Cop::AutoCorrector
7517
+ extend RuboCop::Cop::TargetRubyVersion
7339
7518
  include RuboCop::Cop::ArrayMinSize
7340
7519
  include RuboCop::Cop::ArraySyntax
7341
7520
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -7346,7 +7525,8 @@ class RuboCop::Cop::Style::SymbolLiteral < RuboCop::Cop::Base
7346
7525
  extend RuboCop::Cop::AutoCorrector
7347
7526
  end
7348
7527
  class RuboCop::Cop::Style::SymbolProc < RuboCop::Cop::Base
7349
- def allow_if_method_has_argument?(node); end
7528
+ def allow_comments?; end
7529
+ def allow_if_method_has_argument?(send_node); end
7350
7530
  def autocorrect(corrector, node); end
7351
7531
  def autocorrect_with_args(corrector, node, args, method_name); end
7352
7532
  def autocorrect_without_args(corrector, node); end
@@ -7362,6 +7542,7 @@ class RuboCop::Cop::Style::SymbolProc < RuboCop::Cop::Base
7362
7542
  def symbol_proc_receiver?(param0 = nil); end
7363
7543
  extend RuboCop::Cop::AutoCorrector
7364
7544
  extend RuboCop::Cop::IgnoredMethods::Config
7545
+ include RuboCop::Cop::CommentsHelp
7365
7546
  include RuboCop::Cop::IgnoredMethods
7366
7547
  include RuboCop::Cop::RangeHelp
7367
7548
  end
@@ -7475,11 +7656,11 @@ class RuboCop::Cop::Style::TrivialAccessors < RuboCop::Cop::Base
7475
7656
  def allowed_method_name?(node); end
7476
7657
  def allowed_method_names; end
7477
7658
  def allowed_reader?(node); end
7478
- def allowed_writer?(method_name); end
7659
+ def allowed_writer?(node); end
7479
7660
  def autocorrect(corrector, node); end
7480
7661
  def autocorrect_class(corrector, node); end
7481
7662
  def autocorrect_instance(corrector, node); end
7482
- def dsl_writer?(method_name); end
7663
+ def dsl_writer?(node); end
7483
7664
  def exact_name_match?; end
7484
7665
  def ignore_class_methods?; end
7485
7666
  def in_module_or_instance_eval?(node); end
@@ -7518,6 +7699,7 @@ class RuboCop::Cop::Style::UnpackFirst < RuboCop::Cop::Base
7518
7699
  def on_send(node); end
7519
7700
  def unpack_and_first_element?(param0 = nil); end
7520
7701
  extend RuboCop::Cop::AutoCorrector
7702
+ extend RuboCop::Cop::TargetRubyVersion
7521
7703
  end
7522
7704
  class RuboCop::Cop::Style::VariableInterpolation < RuboCop::Cop::Base
7523
7705
  def message(range); end
@@ -7589,6 +7771,18 @@ class RuboCop::Cop::Style::ZeroLengthPredicate < RuboCop::Cop::Base
7589
7771
  end
7590
7772
  module RuboCop::Cop::Security
7591
7773
  end
7774
+ class RuboCop::Cop::Security::CompoundHash < RuboCop::Cop::Base
7775
+ def bad_hash_combinator?(param0 = nil); end
7776
+ def contained_in_hash_method?(node, &block); end
7777
+ def dynamic_hash_method_definition?(param0 = nil); end
7778
+ def hash_method_definition?(param0 = nil); end
7779
+ def monuple_hash?(param0 = nil); end
7780
+ def on_op_asgn(node); end
7781
+ def on_send(node); end
7782
+ def outer_bad_hash_combinator?(node); end
7783
+ def redundant_hash?(param0 = nil); end
7784
+ def static_hash_method_definition?(param0 = nil); end
7785
+ end
7592
7786
  class RuboCop::Cop::Security::Eval < RuboCop::Cop::Base
7593
7787
  def eval?(param0 = nil); end
7594
7788
  def on_send(node); end
@@ -7850,6 +8044,22 @@ class RuboCop::Formatter::JUnitFormatter < RuboCop::Formatter::BaseFormatter
7850
8044
  def relevant_for_output?(options, target_offenses); end
7851
8045
  def reset_count; end
7852
8046
  end
8047
+ class RuboCop::Formatter::MarkdownFormatter < RuboCop::Formatter::BaseFormatter
8048
+ def file_finished(file, offenses); end
8049
+ def files; end
8050
+ def finished(inspected_files); end
8051
+ def initialize(output, options = nil); end
8052
+ def possible_ellipses(location); end
8053
+ def render_markdown; end
8054
+ def started(target_files); end
8055
+ def summary; end
8056
+ def write_code(offense); end
8057
+ def write_context(offense); end
8058
+ def write_file_messages; end
8059
+ def write_heading(file); end
8060
+ include RuboCop::Formatter::TextUtil
8061
+ include RuboCop::PathUtil
8062
+ end
7853
8063
  class RuboCop::Formatter::OffenseCountFormatter < RuboCop::Formatter::BaseFormatter
7854
8064
  def file_finished(_file, offenses); end
7855
8065
  def finished(_inspected_files); end
@@ -8043,6 +8253,8 @@ class RuboCop::ConfigLoader
8043
8253
  def self.ignore_parent_exclusion; end
8044
8254
  def self.ignore_parent_exclusion=(arg0); end
8045
8255
  def self.ignore_parent_exclusion?; end
8256
+ def self.ignore_unrecognized_cops; end
8257
+ def self.ignore_unrecognized_cops=(arg0); end
8046
8258
  def self.load_file(file, check: nil); end
8047
8259
  def self.load_yaml_configuration(absolute_path); end
8048
8260
  def self.loaded_features; end
@@ -8158,6 +8370,7 @@ class RuboCop::ConfigValidator
8158
8370
  def each_invalid_parameter(cop_name); end
8159
8371
  def for_all_cops(*args, &block); end
8160
8372
  def initialize(config); end
8373
+ def list_unknown_cops(invalid_cop_names); end
8161
8374
  def msg_not_boolean(parent, key, value); end
8162
8375
  def reject_conflicting_safe_settings; end
8163
8376
  def reject_mutually_exclusive_defaults; end
@@ -8278,6 +8491,8 @@ class RuboCop::MagicComment
8278
8491
  def shareable_constant_value; end
8279
8492
  def shareable_constant_value_specified?; end
8280
8493
  def specified?(value); end
8494
+ def typed; end
8495
+ def typed_specified?; end
8281
8496
  def valid?; end
8282
8497
  def valid_literal_value?; end
8283
8498
  def valid_shareable_constant_value?; end
@@ -8291,9 +8506,11 @@ end
8291
8506
  class RuboCop::MagicComment::EmacsComment < RuboCop::MagicComment::EditorComment
8292
8507
  def extract_frozen_string_literal; end
8293
8508
  def extract_shareable_constant_value; end
8509
+ def extract_typed; end
8294
8510
  end
8295
8511
  class RuboCop::MagicComment::VimComment < RuboCop::MagicComment::EditorComment
8296
8512
  def encoding; end
8513
+ def extract_typed; end
8297
8514
  def frozen_string_literal; end
8298
8515
  def shareable_constant_value; end
8299
8516
  end
@@ -8301,6 +8518,7 @@ class RuboCop::MagicComment::SimpleComment < RuboCop::MagicComment
8301
8518
  def encoding; end
8302
8519
  def extract_frozen_string_literal; end
8303
8520
  def extract_shareable_constant_value; end
8521
+ def extract_typed; end
8304
8522
  def without(type); end
8305
8523
  end
8306
8524
  class RuboCop::ResultCache
@@ -8340,6 +8558,7 @@ class RuboCop::Runner
8340
8558
  def check_for_infinite_loop(processed_source, offenses_by_iteration); end
8341
8559
  def check_for_redundant_disables?(source); end
8342
8560
  def considered_failure?(offense); end
8561
+ def default_config(cop_name); end
8343
8562
  def do_inspection_loop(file); end
8344
8563
  def each_inspected_file(files); end
8345
8564
  def errors; end
@@ -8357,9 +8576,11 @@ class RuboCop::Runner
8357
8576
  def inspect_files(files); end
8358
8577
  def iterate_until_no_changes(source, offenses_by_iteration); end
8359
8578
  def list_files(paths); end
8579
+ def mark_as_safe_by_config?(config); end
8360
8580
  def minimum_severity_to_fail; end
8361
8581
  def mobilize_team(processed_source); end
8362
8582
  def mobilized_cop_classes(config); end
8583
+ def offenses_to_report(offenses); end
8363
8584
  def process_file(file); end
8364
8585
  def qualify_option_cop_names; end
8365
8586
  def redundant_cop_disable_directive(file); end
@@ -8367,11 +8588,12 @@ class RuboCop::Runner
8367
8588
  def save_in_cache(cache, offenses); end
8368
8589
  def standby_team(config); end
8369
8590
  def style_guide_cops_only?(config); end
8591
+ def supports_safe_auto_correct?(offense); end
8370
8592
  def team_for_redundant_disables(file, offenses, source); end
8371
8593
  def warm_cache(target_files); end
8372
8594
  def warnings; end
8373
8595
  end
8374
- class RuboCop::Runner::InfiniteCorrectionLoop < RuntimeError
8596
+ class RuboCop::Runner::InfiniteCorrectionLoop < StandardError
8375
8597
  def initialize(path, offenses_by_iteration, loop_start: nil); end
8376
8598
  def offenses; end
8377
8599
  end
@@ -8390,7 +8612,7 @@ class RuboCop::CLI
8390
8612
  def suggest_extensions; end
8391
8613
  def validate_options_vs_config; end
8392
8614
  end
8393
- class RuboCop::CLI::Finished < RuntimeError
8615
+ class RuboCop::CLI::Finished < StandardError
8394
8616
  end
8395
8617
  module RuboCop::CLI::Command
8396
8618
  def self.class_for(name); end
@@ -8420,6 +8642,8 @@ class RuboCop::CLI::Command::AutoGenerateConfig < RuboCop::CLI::Command::Base
8420
8642
  def line_length_enabled?(config); end
8421
8643
  def max_line_length(config); end
8422
8644
  def maybe_run_line_length_cop; end
8645
+ def options_config_in_root?; end
8646
+ def relative_path_to_todo_from_options_config; end
8423
8647
  def reset_config_and_auto_gen_file; end
8424
8648
  def run; end
8425
8649
  def run_all_cops(line_length_contents); end
@@ -8493,6 +8717,7 @@ class RuboCop::Options
8493
8717
  def args_from_env; end
8494
8718
  def args_from_file; end
8495
8719
  def define_options; end
8720
+ def handle_deprecated_option(old_option, new_option); end
8496
8721
  def initialize; end
8497
8722
  def long_opt_symbol(args); end
8498
8723
  def option(opts, *args); end
@@ -8508,15 +8733,18 @@ class RuboCop::OptionsValidator
8508
8733
  def except_syntax?; end
8509
8734
  def incompatible_options; end
8510
8735
  def initialize(options); end
8736
+ def invalid_arguments_for_parallel; end
8511
8737
  def only_includes_redundant_disable?; end
8512
8738
  def self.format_message_from(name, cop_names); end
8513
8739
  def self.validate_cop_list(names); end
8514
- def validate_auto_correct; end
8515
8740
  def validate_auto_gen_config; end
8741
+ def validate_autocorrect; end
8516
8742
  def validate_cache_enabled_for_cache_root; end
8517
8743
  def validate_compatibility; end
8518
8744
  def validate_cop_options; end
8745
+ def validate_display_only_correctable_and_autocorrect; end
8519
8746
  def validate_display_only_failed; end
8747
+ def validate_display_only_failed_and_display_only_correctable; end
8520
8748
  def validate_exclude_limit_option; end
8521
8749
  end
8522
8750
  module RuboCop::OptionsHelp
@@ -8571,7 +8799,7 @@ class RuboCop::TargetRuby::BundlerLockFile < RuboCop::TargetRuby::Source
8571
8799
  def name; end
8572
8800
  end
8573
8801
  class RuboCop::TargetRuby::GemspecFile < RuboCop::TargetRuby::Source
8574
- def find_minimal_known_ruby(right_hand_side); end
8802
+ def find_default_minimal_known_ruby(right_hand_side); end
8575
8803
  def find_version; end
8576
8804
  def gem_requirement?(param0 = nil); end
8577
8805
  def gemspec_filename; end